Failed
tests / 05 testsuite-clang 2/3 / simulation_modelica_nonlinear_system.TestInputIteration.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ TestInputIteration ... equation mismatch [time: 2] ==== Log /tmp/omc-rtest-unknown/simulation/modelica/nonlinear_system/TestInputIteration.mos_temp7431/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: ======================================== jacobianEquations: ======================================== jacobianMatrices: ======================================== Jacobian idx: 0 Jacobian idx: 1 Jacobian idx: 2 Jacobian idx: 3 Jacobian idx: 4 Jacobian idx: 5 columnVars(21) ---------------------- index:0: x1.$pDERA.dummyVarA[1] (no alias) initial: arrCref:x1.$pDERA.dummyVarA index:() [2] index:1: x1.$pDERA.dummyVarA[2] (no alias) initial: no arrCref index:() [2] index:2: x2.$pDERA.dummyVarA[1] (no alias) initial: arrCref:x2.$pDERA.dummyVarA index:() [2] index:3: x2.$pDERA.dummyVarA[2] (no alias) initial: no arrCref index:() [2] index:4: x3.$pDERA.dummyVarA[1] (no alias) initial: arrCref:x3.$pDERA.dummyVarA index:() [2] index:5: x3.$pDERA.dummyVarA[2] (no alias) initial: no arrCref index:() [2] index:6: x4.$pDERA.dummyVarA[1] (no alias) initial: arrCref:x4.$pDERA.dummyVarA index:() [5] index:7: x4.$pDERA.dummyVarA[2] (no alias) initial: no arrCref index:() [5] index:8: x4.$pDERA.dummyVarA[3] (no alias) initial: no arrCref index:() [5] index:9: x4.$pDERA.dummyVarA[4] (no alias) initial: no arrCref index:() [5] index:10: x4.$pDERA.dummyVarA[5] (no alias) initial: no arrCref index:() [5] index:11: x5.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:12: y2.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:13: y3.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:14: y4.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:15: y5.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:16: z1.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:17: z2.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:18: z3.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:19: z4.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] index:20: z5.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] 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 = "TestInputIteration_res.mat", 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. " end SimulationResult; "" Equation mismatch: diff says: --- /tmp/omc-rtest-unknown/simulation/modelica/nonlinear_system/TestInputIteration.mos_temp7431/equations-expected2024-01-20 03:57:25.826208694 +0000 +++ /tmp/omc-rtest-unknown/simulation/modelica/nonlinear_system/TestInputIteration.mos_temp7431/equations-got2024-01-20 03:57:27.434187214 +0000 @@ -204,10 +204,33 @@ Jacobian idx: 4 Jacobian idx: 5 +columnVars(21) +---------------------- +index:0: x1.$pDERA.dummyVarA[1] (no alias) initial: arrCref:x1.$pDERA.dummyVarA index:() [2] +index:1: x1.$pDERA.dummyVarA[2] (no alias) initial: no arrCref index:() [2] +index:2: x2.$pDERA.dummyVarA[1] (no alias) initial: arrCref:x2.$pDERA.dummyVarA index:() [2] +index:3: x2.$pDERA.dummyVarA[2] (no alias) initial: no arrCref index:() [2] +index:4: x3.$pDERA.dummyVarA[1] (no alias) initial: arrCref:x3.$pDERA.dummyVarA index:() [2] +index:5: x3.$pDERA.dummyVarA[2] (no alias) initial: no arrCref index:() [2] +index:6: x4.$pDERA.dummyVarA[1] (no alias) initial: arrCref:x4.$pDERA.dummyVarA index:() [5] +index:7: x4.$pDERA.dummyVarA[2] (no alias) initial: no arrCref index:() [5] +index:8: x4.$pDERA.dummyVarA[3] (no alias) initial: no arrCref index:() [5] +index:9: x4.$pDERA.dummyVarA[4] (no alias) initial: no arrCref index:() [5] +index:10: x4.$pDERA.dummyVarA[5] (no alias) initial: no arrCref index:() [5] +index:11: x5.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:12: y2.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:13: y3.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:14: y4.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:15: y5.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:16: z1.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:17: z2.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:18: z3.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:19: z4.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] +index:20: z5.$pDERA.dummyVarA (no alias) initial: no arrCref index:() [] modelInfo: ======================================== algVars (39) ---------------------- @@ -265,11 +288,11 @@ outVars: x (Real, ) , y (Real, ) , functionArguments: z (Real, ) , variableDeclarations: x (Real, ) , y (Real, ) , record SimulationResult resultFile = "TestInputIteration_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-06, 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'", +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. " end SimulationResult; Equation mismatch: omc-diff says: Line 209: Lexical token differs: expected: got: columnVars( == 1 out of 1 tests failed [simulation/modelica/nonlinear_system/TestInputIteration.mos_temp7431, time: 2]