Skip to content

Regression

simulation_modelica_nonlinear_system.TestInputIteration.mos (from (result.xml))

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

Stacktrace

Output mismatch (see stdout for details)

Standard Output

 + TestInputIteration                                                                ... equation mismatch [time: 3]

==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/simulation/modelica/nonlinear_system/TestInputIteration.mos_temp2628/log-TestInputIteration.mos
true
""
true
""


*********************
* SimCode Equations *
*********************


allEquations:
========================================

26: x1[1]=5.0 + time [Real]
29:  (NONLINEAR) index:5 jacobian: false
crefs: z1
27:   ($TMP_f127.x1[1], x1[2]) := f1(z1);

28: $TMP_f127.x1[1] - x1[1] (RESIDUAL)

30: x2[2]=time [Real]
31: x2[1]=5.0 + time [Real]
34:  (NONLINEAR) index:6 jacobian: false
crefs: z2
32:   ($TMP_f132.x2[1], y2) := f1(z2);

33: $TMP_f132.x2[1] - x2[1] (RESIDUAL)

35: y3=5.0 + time [Real]
38:  (NONLINEAR) index:7 jacobian: false
crefs: z3
36:   ($TMP_f336.y3, x3) := f3(z3);

37: $TMP_f336.y3 - y3 (RESIDUAL)

39: x4[4]=7.0 + time [Real]
46:  (NONLINEAR) index:8 jacobian: false
crefs: z4
40:   ($TMP_f440.x4, y4) := f4(z4);

41: x4[5]=$TMP_f440.x4[5] [Real]
42: x4[3]=$TMP_f440.x4[3] [Real]
43: x4[2]=$TMP_f440.x4[2] [Real]
44: x4[1]=$TMP_f440.x4[1] [Real]
45: $TMP_f440.x4[4] - x4[4] (RESIDUAL)

47: x5=5.0 + time [Real]
50:  (NONLINEAR) index:9 jacobian: false
crefs: z5
48:   ($TMP_f148.x5, y5) := f1(z5);

49: $TMP_f148.x5 - x5 (RESIDUAL)

========================================



odeEquations (0 systems):
========================================
========================================



algebraicEquations (1 systems):
========================================
26: x1[1]=5.0 + time [Real]
29:  (NONLINEAR) index:5 jacobian: false
crefs: z1
27:   ($TMP_f127.x1[1], x1[2]) := f1(z1);

28: $TMP_f127.x1[1] - x1[1] (RESIDUAL)

30: x2[2]=time [Real]
31: x2[1]=5.0 + time [Real]
34:  (NONLINEAR) index:6 jacobian: false
crefs: z2
32:   ($TMP_f132.x2[1], y2) := f1(z2);

33: $TMP_f132.x2[1] - x2[1] (RESIDUAL)

35: y3=5.0 + time [Real]
38:  (NONLINEAR) index:7 jacobian: false
crefs: z3
36:   ($TMP_f336.y3, x3) := f3(z3);

37: $TMP_f336.y3 - y3 (RESIDUAL)

39: x4[4]=7.0 + time [Real]
46:  (NONLINEAR) index:8 jacobian: false
crefs: z4
40:   ($TMP_f440.x4, y4) := f4(z4);

41: x4[5]=$TMP_f440.x4[5] [Real]
42: x4[3]=$TMP_f440.x4[3] [Real]
43: x4[2]=$TMP_f440.x4[2] [Real]
44: x4[1]=$TMP_f440.x4[1] [Real]
45: $TMP_f440.x4[4] - x4[4] (RESIDUAL)

47: x5=5.0 + time [Real]
50:  (NONLINEAR) index:9 jacobian: false
crefs: z5
48:   ($TMP_f148.x5, y5) := f1(z5);

49: $TMP_f148.x5 - x5 (RESIDUAL)

========================================


clockPartitions (0 systems):

========================================



initialEquations: (11)
========================================
1: alias of 26
4:  (NONLINEAR) index:0 jacobian: false
crefs: z1
2:   ($TMP_f12.x1[1], x1[2]) := f1(z1);

3: $TMP_f12.x1[1] - x1[1] (RESIDUAL)

5: alias of 30
6: alias of 31
9:  (NONLINEAR) index:1 jacobian: false
crefs: z2
7:   ($TMP_f17.x2[1], y2) := f1(z2);

8: $TMP_f17.x2[1] - x2[1] (RESIDUAL)

10: alias of 35
13:  (NONLINEAR) index:2 jacobian: false
crefs: z3
11:   ($TMP_f311.y3, x3) := f3(z3);

12: $TMP_f311.y3 - y3 (RESIDUAL)

14: alias of 39
21:  (NONLINEAR) index:3 jacobian: false
crefs: z4
15:   ($TMP_f415.x4, y4) := f4(z4);

16: x4[5]=$TMP_f415.x4[5] [Real]
17: x4[3]=$TMP_f415.x4[3] [Real]
18: x4[2]=$TMP_f415.x4[2] [Real]
19: x4[1]=$TMP_f415.x4[1] [Real]
20: $TMP_f415.x4[4] - x4[4] (RESIDUAL)

22: alias of 47
25:  (NONLINEAR) index:4 jacobian: false
crefs: z5
23:   ($TMP_f123.x5, y5) := f1(z5);

24: $TMP_f123.x5 - x5 (RESIDUAL)

========================================



initialEquations_lambda0: (0)
========================================

removedInitialEquations:
========================================

startValueEquations:
========================================

nominalValueEquations:
========================================

minValueEquations:
========================================

maxValueEquations:
========================================

parameterEquations:
========================================

removedEquations:
========================================

algorithmAndEquationAsserts:
========================================

equationsForZeroCrossings:
========================================

generic calls:
========================================

jacobianEquations:
========================================

jacobianMatrices:
========================================
Jacobian idx: 0

Jacobian idx: 1

Jacobian idx: 2

Jacobian idx: 3

Jacobian idx: 4

Jacobian idx: 5


modelInfo:
========================================
algVars (39)
----------------------
index:0: $TMP_f12.x1[1] (no alias)  protected  hideResult  initial: arrCref:$TMP_f12.x1 index:(1) []
index:1: $TMP_f123.x5 (no alias)  protected  hideResult  initial: no arrCref index:(2) []
index:2: $TMP_f127.x1[1] (no alias)  protected  hideResult  initial: arrCref:$TMP_f127.x1 index:(3) []
index:3: $TMP_f132.x2[1] (no alias)  protected  hideResult  initial: arrCref:$TMP_f132.x2 index:(4) []
index:4: $TMP_f148.x5 (no alias)  protected  hideResult  initial: no arrCref index:(5) []
index:5: $TMP_f17.x2[1] (no alias)  protected  hideResult  initial: arrCref:$TMP_f17.x2 index:(6) []
index:6: $TMP_f311.y3 (no alias)  protected  hideResult  initial: no arrCref index:(7) []
index:7: $TMP_f336.y3 (no alias)  protected  hideResult  initial: no arrCref index:(8) []
index:8: $TMP_f415.x4[1] (no alias)  protected  hideResult  initial: arrCref:$TMP_f415.x4 index:(9) []
index:9: $TMP_f415.x4[2] (no alias)  protected  hideResult  initial: no arrCref index:(10) []
index:10: $TMP_f415.x4[3] (no alias)  protected  hideResult  initial: no arrCref index:(11) []
index:11: $TMP_f415.x4[4] (no alias)  protected  hideResult  initial: no arrCref index:(12) []
index:12: $TMP_f415.x4[5] (no alias)  protected  hideResult  initial: no arrCref index:(13) []
index:13: $TMP_f440.x4[1] (no alias)  protected  hideResult  initial: arrCref:$TMP_f440.x4 index:(14) []
index:14: $TMP_f440.x4[2] (no alias)  protected  hideResult  initial: no arrCref index:(15) []
index:15: $TMP_f440.x4[3] (no alias)  protected  hideResult  initial: no arrCref index:(16) []
index:16: $TMP_f440.x4[4] (no alias)  protected  hideResult  initial: no arrCref index:(17) []
index:17: $TMP_f440.x4[5] (no alias)  protected  hideResult  initial: no arrCref index:(18) []
index:18: x1[1] (no alias)  initial: 5.0arrCref:x1 index:(19) [2]
index:19: x1[2] (no alias)  initial: no arrCref index:(20) [2]
index:20: x2[1] (no alias)  initial: 5.0arrCref:x2 index:(21) [2]
index:21: x2[2] (no alias)  initial: 0.0no arrCref index:(22) [2]
index:22: x3[1] (no alias)  initial: arrCref:x3 index:(23) [2]
index:23: x3[2] (no alias)  initial: no arrCref index:(24) [2]
index:24: x4[1] (no alias)  initial: arrCref:x4 index:(25) [5]
index:25: x4[2] (no alias)  initial: no arrCref index:(26) [5]
index:26: x4[3] (no alias)  initial: no arrCref index:(27) [5]
index:27: x4[4] (no alias)  initial: 7.0no arrCref index:(28) [5]
index:28: x4[5] (no alias)  initial: no arrCref index:(29) [5]
index:29: x5 (no alias)  initial: 5.0no arrCref index:(30) []
index:30: y2 (no alias)  initial: no arrCref index:(31) []
index:31: y3 (no alias)  initial: 5.0no arrCref index:(32) []
index:32: y4 (no alias)  initial: no arrCref index:(33) []
index:33: y5 (no alias)  initial: no arrCref index:(34) []
index:34: z1 (no alias)  initial: no arrCref index:(35) []
index:35: z2 (no alias)  initial: no arrCref index:(36) []
index:36: z3 (no alias)  initial: no arrCref index:(37) []
index:37: z4 (no alias)  initial: no arrCref index:(38) []
index:38: z5 (no alias)  initial: no arrCref index:(39) []
functions:
-----------

Function: f1
outVars: x1 (Real, )  , x2 (Real, )  , 
functionArguments: z (Real, )  , 
variableDeclarations: x1 (Real, )  , x2 (Real, )  , 
Function: f3
outVars: y (Real, )  , x (Real, )  , 
functionArguments: z (Real, )  , 
variableDeclarations: y (Real, )  , x (Real, )  , 
Function: f4
outVars: x (Real, )  , y (Real, )  , 
functionArguments: z (Real, )  , 
variableDeclarations: x (Real, )  , y (Real, )  , 
record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'TestInputIteration', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-output=x1[1],x1[2],z1,x2[1],x2[2],y2,z2,x3[1],x3[2],y3,z3,x4[1],x4[2],x4[3],x4[4],x4[5],y4,z4,x5,y5,z5'",
    messages = "Failed to build model: TestInputIteration"
end SimulationResult;
"Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/NONLIN~1/TESTIN~2.MOS'
clang -municode  -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TestInputIteration -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=10 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o TestInputIteration.o TestInputIteration.c
clang -municode  -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TestInputIteration -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=10 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o TestInputIteration_functions.o TestInputIteration_functions.c
clang -municode  -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TestInputIteration -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=10 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o TestInputIteration_records.o TestInputIteration_records.c
clang -municode  -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TestInputIteration -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=10 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o TestInputIteration_01exo.o TestInputIteration_01exo.c
      0 [main] make 19332 dofork: child -1 - forked process 5317156 died unexpectedly, retry 0, exit code 0xC000012D, errno 11
make: *** [<builtin>: TestInputIteration_01exo.o] Error 127
make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/NONLIN~1/TESTIN~2.MOS'
RESULT: 2
"
'' 
Equation mismatch: diff says: 
--- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/nonlinear_system/TestInputIteration.mos_temp2628/equations-expected"2024-06-13 15:28:03.654461800 +0200
+++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/nonlinear_system/TestInputIteration.mos_temp2628/equations-got"2024-06-13 15:28:06.263463300 +0200
@@ -267,13 +267,19 @@
 Function: f4
 outVars: x (Real, )  , y (Real, )  ,
 functionArguments: z (Real, )  ,
 variableDeclarations: x (Real, )  , y (Real, )  ,
 record SimulationResult
-resultFile = "TestInputIteration_res.mat",
+resultFile = "",
 simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'TestInputIteration', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-output=x1[1],x1[2],z1,x2[1],x2[2],y2,z2,x3[1],x3[2],y3,z3,x4[1],x4[2],x4[3],x4[4],x4[5],y4,z4,x5,y5,z5'",
-messages = "LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
-time=0,x1[1]=5,x1[2]=7,z1=5,x2[1]=5,x2[2]=0,y2=7,z2=5,x3[1]=5,x3[2]=1,y3=5,z3=5,x4[1]=4,x4[2]=5,x4[3]=6,x4[4]=7,x4[5]=8,y4=9,z4=4,x5=5,y5=7,z5=5
-LOG_SUCCESS       | info    | The simulation finished successfully.
-"
+messages = "Failed to build model: TestInputIteration"
 end SimulationResult;
-""
+"Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/NONLIN~1/TESTIN~2.MOS'
+clang -municode  -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TestInputIteration -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=10 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o TestInputIteration.o TestInputIteration.c
+clang -municode  -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TestInputIteration -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=10 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o TestInputIteration_functions.o TestInputIteration_functions.c
+clang -municode  -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TestInputIteration -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=10 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o TestInputIteration_records.o TestInputIteration_records.c
+clang -municode  -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse     -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=TestInputIteration -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=10 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0  -c -o TestInputIteration_01exo.o TestInputIteration_01exo.c
+0 [main] make 19332 dofork: child -1 - forked process 5317156 died unexpectedly, retry 0, exit code 0xC000012D, errno 11
+make: *** [<builtin>: TestInputIteration_01exo.o] Error 127
+make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/NONLIN~1/TESTIN~2.MOS'
+RESULT: 2
+"
'' 
Equation mismatch: omc-diff says: 
------------------------------------------------------------------Failed 'T' '"'
Line 272: Text differs:
expected: resultFile = "TestInputIteration_res.mat",
got:      resultFile = "",

== 1 out of 1 tests failed [simulation/modelica/nonlinear_system/TestInputIteration.mos_temp2628, time: 17]