Failed
tests / 01 testsuite-gcc 1/3 / flattening_modelica_scodeinst.EmptyArray2.mo (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ EmptyArray2 ... equation mismatch [time: 0] ==== Log /tmp/omc-rtest-omtmpuser/flattening/modelica/scodeinst/EmptyArray2.mo_temp4258/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_temp4258/equations-expected2024-06-29 01:22:12.358943012 +0000 +++ /tmp/omc-rtest-omtmpuser/flattening/modelica/scodeinst/EmptyArray2.mo_temp4258/equations-got2024-06-29 01:22:12.414942498 +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_temp4258, time: 0]