Regression
tests / testsuite-gcc / simulation_modelica_functions_eval.functionTest8.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ functionTest8 ... equation mismatch [time: 4] ==== Log /tmp/omc-rtest-unknown/simulation/modelica/functions_eval/functionTest8.mos_temp7183/log-functionTest8.mos true "" true "" Start constant evaluation of expression: functionTest8.hl(Tc_model, T_model) IF-statement: if T < Tc then Ent1 := functionTest8.hv(Tc, T) + (1.0 - T / Tc) ^ 2.0; else Ent1 := functionTest8.hv(Tc, T); end if; -->try to check if its the if case -->is the if const? false and is it the if case ? false -->try to check if its another case -->is it an other case? false -->try to predict the outputs assignment: Ent1 := functionTest8.hv(Tc, T) + (1.0 - T / Tc) ^ 2.0; evaluated assignment to: Ent1 := functionTest8.hv(Tc, T) + (1.0 - T / Tc) ^ 2.0; assignment: Ent1 := functionTest8.hv(Tc, T); Start function evaluation of: Ent1 := functionTest8.hv(Tc, T) assignment: temp := 298.15; evaluated assignment to: temp := 298.15; assignment: Ent := 0.0; evaluated assignment to: Ent := 0.0; IF-statement: if T > 298.15 then while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; Ent2 := Ent; else while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; Ent2 := -Ent; end if; -->try to check if its the if case -->is the if const? false and is it the if case ? false -->try to check if its another case -->is it an other case? false -->try to predict the outputs While-statement (not evaluated): while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; evaluated While-statement to: while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; assignment: Ent2 := Ent; evaluated assignment to: Ent2 := Ent; While-statement (not evaluated): while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; evaluated While-statement to: while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; assignment: Ent2 := -Ent; evaluated assignment to: Ent2 := -Ent; --> the predicted const outputs: could it be predicted? false evaluated IF-statements to: if T > 298.15 then while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; Ent2 := Ent; else while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; Ent2 := -Ent; end if; the function output is not constant in any case evaluated assignment to: Ent1 := functionTest8.hv(Tc, T); --> the predicted const outputs: could it be predicted? false evaluated IF-statements to: if T < Tc then Ent1 := functionTest8.hv(Tc, T) + (1.0 - T / Tc) ^ 2.0; else Ent1 := functionTest8.hv(Tc, T); end if; evaluated to: functionTest8.hl(Tc_model, T_model) Start constant evaluation of expression: functionTest8.hv(Tc_model, T_model) assignment: temp := 298.15; evaluated assignment to: temp := 298.15; assignment: Ent := 0.0; evaluated assignment to: Ent := 0.0; IF-statement: if T > 298.15 then while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; Ent2 := Ent; else while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; Ent2 := -Ent; end if; -->try to check if its the if case -->is the if const? false and is it the if case ? false -->try to check if its another case -->is it an other case? false -->try to predict the outputs While-statement (not evaluated): while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; evaluated While-statement to: while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; assignment: Ent2 := Ent; evaluated assignment to: Ent2 := Ent; While-statement (not evaluated): while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; evaluated While-statement to: while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; assignment: Ent2 := -Ent; evaluated assignment to: Ent2 := -Ent; --> the predicted const outputs: could it be predicted? false evaluated IF-statements to: if T > 298.15 then while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; Ent2 := EUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/DCSTFYG3DVWP53HLMAXKZTPDR5:/var/lib/docker/overlay2/l/OFBQHWN5VWB3ZDIVLSEHB4ZZO7:/var/lib/docker/overlay2/l/XKNAMZMLHIGLUIWZN6NHS4LQOB:/var/lib/docker/overlay2/l/XDXTSPLZ4IFADJTBU5VPCFEWAO:/var/lib/docker/overlay2/l/TLE42ND4WLQ5HMCG4FABWZYYBM:/var/lib/docker/overlay2/l/N2ZO5AQSQ6RGU55LFPZO3NSFIG:/var/lib/docker/overlay2/l/AFXOGW55ZNK4NUDS4WEZ6VE76H:/var/lib/docker/overlay2/l/KJ36F2MJVNS5N45ELI4N3CNXLN:/var/lib/docker/overlay2/l/SFDLWMOUVQFPH' Unexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/DCSTFYG3DVWP53HLMAXKZTPDR5:/var/lib/docker/overlay2/l/OFBQHWN5VWB3ZDIVLSEHB4ZZO7:/var/lib/docker/overlay2/l/XKNAMZMLHIGLUIWZN6NHS4LQOB:/var/lib/docker/overlay2/l/XDXTSPLZ4IFADJTBU5VPCFEWAO:/var/lib/docker/overlay2/l/TLE42ND4WLQ5HMCG4FABWZYYBM:/var/lib/docker/overlay2/l/N2ZO5AQSQ6RGU55LFPZO3NSFIG:/var/lib/docker/overlay2/l/AFXOGW55ZNK4NUDS4WEZ6VE76H:/var/lib/docker/overlay2/l/KJ36F2MJVNS5N45ELI4N3CNXLN:/var/lib/docker/overlay2/l/SFDLWMOUVQFPH' Unexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/DCSTFYG3DVWP53HLMAXKZTPDR5:/var/lib/docker/overlay2/l/OFBQHWN5VWB3ZDIVLSEHB4ZZO7:/var/lib/docker/overlay2/l/XKNAMZMLHIGLUIWZN6NHS4LQOB:/var/lib/docker/overlay2/l/XDXTSPLZ4IFADJTBU5VPCFEWAO:/var/lib/docker/overlay2/l/TLE42ND4WLQ5HMCG4FABWZYYBM:/var/lib/docker/overlay2/l/N2ZO5AQSQ6RGU55LFPZO3NSFIG:/var/lib/docker/overlay2/l/AFXOGW55ZNK4NUDS4WEZ6VE76H:/var/lib/docker/overlay2/l/KJ36F2MJVNS5N45ELI4N3CNXLN:/var/lib/docker/overlay2/l/SFDLWMOUVQFPH' nt; else while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; Ent2 := -Ent; end if; evaluated to: functionTest8.hv(Tc_model, T_model) record SimulationResult resultFile = "functionTest8_res.mat", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'functionTest8', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method. LOG_SUCCESS | info | The simulation finished successfully. " end SimulationResult; "" 35562.30000000006 35562.30000000006 Equation mismatch: diff says: --- /tmp/omc-rtest-unknown/simulation/modelica/functions_eval/functionTest8.mos_temp7183/equations-expected2019-01-23 19:14:57.915185338 +0000 +++ /tmp/omc-rtest-unknown/simulation/modelica/functions_eval/functionTest8.mos_temp7183/equations-got2019-01-23 19:15:01.171139300 +0000 @@ -189,11 +189,12 @@ if T > 298.15 then while temp < T loop Ent := Ent + temp; temp := 1.0 + temp; end while; -Ent2 := Ent; +Ent2 := EUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/DCSTFYG3DVWP53HLMAXKZTPDR5:/var/lib/docker/overlay2/l/OFBQHWN5VWB3ZDIVLSEHB4ZZO7:/var/lib/docker/overlay2/l/XKNAMZMLHIGLUIWZN6NHS4LQOB:/var/lib/docker/overlay2/l/XDXTSPLZ4IFADJTBU5VPCFEWAO:/var/lib/docker/overlay2/l/TLE42ND4WLQ5HMCG4FABWZYYBM:/var/lib/docker/overlay2/l/N2ZO5AQSQ6RGU55LFPZO3NSFIG:/var/lib/docker/overlay2/l/AFXOGW55ZNK4NUDS4WEZ6VE76H:/var/lib/docker/overlay2/l/KJ36F2MJVNS5N45ELI4N3CNXLN:/var/lib/docker/overlay2/l/SFDLWMOUVQFPH' +nt; else while temp > T loop Ent := Ent + temp; temp := -1.0 + temp; end while; Equation mismatch: omc-diff says: ------------------------------------Failed 'n' 'U' Line 194: Text differs: expected: := Ent; got: := EUnexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay == 1 out of 1 tests failed [simulation/modelica/functions_eval/functionTest8.mos_temp7183, time: 4]