Skip to content

Regression

simulation_modelica_functions_eval.functionTest9.mos (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

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

==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/simulation/modelica/functions_eval/functionTest9.mos_temp8773/log-functionTest9.mos
true
""
true
""

Start constant evaluation of expression: functionTest9.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
    Ent := 1.0 + Ent;
    Ent2 := Ent;
  elseif temp < 200.0 then
    Ent := -1.0 + Ent;
    Ent2 := -Ent;
  else
    Ent := 1.0 + Ent;
    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 
assignment:
  Ent := 1.0 + Ent;
evaluated assignment to:
  Ent := 1.0;

assignment:
  Ent2 := Ent;
evaluated assignment to:
  Ent2 := 1.0;

assignment:
  Ent := -1.0 + Ent;
evaluated assignment to:
  Ent := -1.0;

assignment:
  Ent2 := -Ent;
evaluated assignment to:
  Ent2 := 1.0;

assignment:
  Ent := 1.0 + Ent;
evaluated assignment to:
  Ent := 1.0;

assignment:
  Ent2 := Ent;
evaluated assignment to:
  Ent2 := 1.0;

--> the predicted const outputs:
Ent2could it be predicted? true
assignment:
  Ent2 := 1.0;
evaluated assignment to:
  Ent2 := 1.0;

evaluated IF-statements to:
  if T > 298.15 then
    Ent := 1.0;
    Ent2 := 1.0;
  elseif temp < 200.0 then
    Ent := -1.0;
    Ent2 := 1.0;
  else
    Ent := 1.0;
    Ent2 := 1.0;
  end if;

  Ent2 := 1.0;



evaluated to: 1.0

record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'functionTest9', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
    messages = "Failed to build model: functionTest9"
end SimulationResult;
"Internal error: System.launchParallelTasks: Failed to create thread: Invalid argument
"

'' 
Equation mismatch: diff says: 
--- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/functions_eval/functionTest9.mos_temp8773/equations-expected"2024-05-08 15:09:52.994384000 +0200
+++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/functions_eval/functionTest9.mos_temp8773/equations-got"2024-05-08 15:09:53.297386100 +0200
@@ -85,13 +85,12 @@
 
 
 evaluated to: 1.0
 
 record SimulationResult
-resultFile = "functionTest9_res.mat",
-simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'functionTest9', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
-messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
-LOG_SUCCESS       | info    | The simulation finished successfully.
-"
+resultFile = "",
+simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'functionTest9', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
+messages = "Failed to build model: functionTest9"
 end SimulationResult;
-""
-1.0
+"Internal error: System.launchParallelTasks: Failed to create thread: Invalid argument
+"
+
'' 
Equation mismatch: omc-diff says: 
------------Failed 'f' '"'
Line 90: Text differs:
expected: resultFile = "functionTest
got:      resultFile = "",

== 1 out of 1 tests failed [simulation/modelica/functions_eval/functionTest9.mos_temp8773, time: 17]