Skip to content

Failed

tests / 05 testsuite-clang 2/3 / flattening_modelica_scodeinst.ImplicitRangeAlg2.mo (from (result.xml))

Failing for the past 2 builds (Since #1 )
Took 0 ms.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + ImplicitRangeAlg2                                                                 ... equation mismatch [time: 0]

==== Log /tmp/omc-rtest-omtmpuser/flattening/modelica/scodeinst/ImplicitRangeAlg2.mo_temp4674/log-ImplicitRangeAlg2.mo
function f
  input Real[:] x;
  output Real sum = 0.0;
algorithm
  for i in 1:size(x, 1) loop
    sum := sum + x[i];
  end for;
end f;

class ImplicitRangeAlg2
  Real x = f({1.0, 2.0, 3.0});
end ImplicitRangeAlg2;

Equation mismatch: diff says:
--- /tmp/omc-rtest-omtmpuser/flattening/modelica/scodeinst/ImplicitRangeAlg2.mo_temp4674/equations-expected2024-06-15 01:42:36.332046605 +0000
+++ /tmp/omc-rtest-omtmpuser/flattening/modelica/scodeinst/ImplicitRangeAlg2.mo_temp4674/equations-got2024-06-15 01:42:36.544045390 +0000
@@ -1,3 +1,12 @@
+function f
+input Real[:] x;
+output Real sum = 0.0;
+algorithm
+for i in 1:size(x, 1) loop
+sum := sum + x[i];
+end for;
+end f;
+
 class ImplicitRangeAlg2
-Real x = 6.0;
+Real x = f({1.0, 2.0, 3.0});
 end ImplicitRangeAlg2;

Equation mismatch: omc-diff says:
Failed 'c' 'f'
Line 1: Text differs:
expected: class ImplicitRangeAlg
got:      function f

== 1 out of 1 tests failed [flattening/modelica/scodeinst/ImplicitRangeAlg2.mo_temp4674, time: 0]