Skip to content

Failed

tests / 03 testsuite-gcc 3/3 / flattening_modelica_scodeinst.EmptyArray2.mo (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

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

==== Log /tmp/omc-rtest-omtmpuser/flattening/modelica/scodeinst/EmptyArray2.mo_temp3820/log-EmptyArray2.mo
class EmptyArray2
  Real y = time;
  Real z;
algorithm
  for m in 1:1 loop
    z := if m == 1 then y else x[m - 1];
  end for;
end EmptyArray2;

Equation mismatch: diff says:
--- /tmp/omc-rtest-omtmpuser/flattening/modelica/scodeinst/EmptyArray2.mo_temp3820/equations-expected2024-06-15 01:43:58.791570750 +0000
+++ /tmp/omc-rtest-omtmpuser/flattening/modelica/scodeinst/EmptyArray2.mo_temp3820/equations-got2024-06-15 01:43:58.931569936 +0000
@@ -1,8 +1,8 @@
 class EmptyArray2
 Real y = time;
 Real z;
 algorithm
 for m in 1:1 loop
-z := if m == 1 then y else {}[m - 1];
+z := if m == 1 then y else x[m - 1];
 end for;
 end EmptyArray2;

Equation mismatch: omc-diff says:
Failed '{' 'x'
Line 6: Text differs:
expected:  then y else {}[m 
got:       then y else x[m 

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