Skip to content

Regression

tests / testsuite-gcc / simulation_modelica_functions_eval.functionTest8.mos (from (result.xml))

Failing for the past 1 build (Since #25 )
Took 1 sec.

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + functionTest8                                                                     ... equation mismatch [time: 1]

==== Log /tmp/omc-rtest-unknown/simulation/modelica/functions_eval/functionTest8.mos_temp6833/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/HARPE5PKGUCTTU7KPWYDQXZC5S:/var/lib/docker/overlay2/l/AKUSGG2DJ2VNFFSFKIZ77OVOVT:/var/lib/docker/overlay2/l/6EAWHLLNQ4VNIHV6JWX763TT3V:/var/lib/docker/overlay2/l/CSHIUSYFZCK4EBRLHZTUP4D54K:/var/lib/docker/overlay2/l/STL54MVTFWD2TABVXYNZ7IPE74:/var/lib/docker/overlay2/l/GGYGSX4UHIVXAQSELYLXSV4LV6:/var/lib/docker/overlay2/l/FGCIUGECWESRTLJ22UYYTVRTIF:/var/lib/docker/overlay2/l/QEFCR6W3IF3JFHZSD6HWLTY5FM:/var/lib/docker/overlay2/l/D6VBA3BXFB2KX'
Unexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/HARPE5PKGUCTTU7KPWYDQXZC5S:/var/lib/docker/overlay2/l/AKUSGG2DJ2VNFFSFKIZ77OVOVT:/var/lib/docker/overlay2/l/6EAWHLLNQ4VNIHV6JWX763TT3V:/var/lib/docker/overlay2/l/CSHIUSYFZCK4EBRLHZTUP4D54K:/var/lib/docker/overlay2/l/STL54MVTFWD2TABVXYNZ7IPE74:/var/lib/docker/overlay2/l/GGYGSX4UHIVXAQSELYLXSV4LV6:/var/lib/docker/overlay2/l/FGCIUGECWESRTLJ22UYYTVRTIF:/var/lib/docker/overlay2/l/QEFCR6W3IF3JFHZSD6HWLTY5FM:/var/lib/docker/overlay2/l/D6VBA3BXFB2KX'
Unexpected end of /proc/mounts line `overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/HARPE5PKGUCTTU7KPWYDQXZC5S:/var/lib/docker/overlay2/l/AKUSGG2DJ2VNFFSFKIZ77OVOVT:/var/lib/docker/overlay2/l/6EAWHLLNQ4VNIHV6JWX763TT3V:/var/lib/docker/overlay2/l/CSHIUSYFZCK4EBRLHZTUP4D54K:/var/lib/docker/overlay2/l/STL54MVTFWD2TABVXYNZ7IPE74:/var/lib/docker/overlay2/l/GGYGSX4UHIVXAQSELYLXSV4LV6:/var/lib/docker/overlay2/l/FGCIUGECWESRTLJ22UYYTVRTIF:/var/lib/docker/overlay2/l/QEFCR6W3IF3JFHZSD6HWLTY5FM:/var/lib/docker/overlay2/l/D6VBA3BXFB2KX'
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_temp6833/equations-expected2019-10-28 13:22:35.024383605 +0000
+++ /tmp/omc-rtest-unknown/simulation/modelica/functions_eval/functionTest8.mos_temp6833/equations-got2019-10-28 13:22:36.916367419 +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/HARPE5PKGUCTTU7KPWYDQXZC5S:/var/lib/docker/overlay2/l/AKUSGG2DJ2VNFFSFKIZ77OVOVT:/var/lib/docker/overlay2/l/6EAWHLLNQ4VNIHV6JWX763TT3V:/var/lib/docker/overlay2/l/CSHIUSYFZCK4EBRLHZTUP4D54K:/var/lib/docker/overlay2/l/STL54MVTFWD2TABVXYNZ7IPE74:/var/lib/docker/overlay2/l/GGYGSX4UHIVXAQSELYLXSV4LV6:/var/lib/docker/overlay2/l/FGCIUGECWESRTLJ22UYYTVRTIF:/var/lib/docker/overlay2/l/QEFCR6W3IF3JFHZSD6HWLTY5FM:/var/lib/docker/overlay2/l/D6VBA3BXFB2KX'
+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_temp6833, time: 1]