Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.MulitSensorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductorA.i|inductorM.inductor.1..i|inductorM.inductor.2..i|inductorM.inductor.3..i|meanpowerA.x|meanpowerM.1..x|meanpowerM.2..x|meanpowerM.3..x|resistorQM.plug_p.reference.gamma|resistorQS.pin_p.reference.gamma|rmsiA.mean.x|rmsiM.1..mean.x|rmsiM.2..mean.x|rmsiM.3..mean.x|rmsvA.mean.x|rmsvM.1..mean.x|rmsvM.2..mean.x|rmsvM.3..mean.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest") translateModel(ModelicaTest.Electrical.MulitSensorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductorA.i|inductorM.inductor.1..i|inductorM.inductor.2..i|inductorM.inductor.3..i|meanpowerA.x|meanpowerM.1..x|meanpowerM.2..x|meanpowerM.3..x|resistorQM.plug_p.reference.gamma|resistorQS.pin_p.reference.gamma|rmsiA.mean.x|rmsiM.1..mean.x|rmsiM.2..mean.x|rmsiM.3..mean.x|rmsvA.mean.x|rmsvM.1..mean.x|rmsvM.2..mean.x|rmsvM.3..mean.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009979/0.0009974, allocations: 191 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.03/1.03, allocations: 205.2 MB / 213.4 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000792/0.0007919, allocations: 91.44 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1514/0.1514, allocations: 43.49 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.17e-06/5.19e-06, allocations: 0 / 417.7 MB, free: 40.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2372, allocations: 58.85 MB / 476.5 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.3543, allocations: 107.9 MB / 0.5708 GB, free: 6.984 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001521/0.3545, allocations: 71.97 kB / 0.5709 GB, free: 6.914 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3955/0.7501, allocations: 129.9 MB / 0.6977 GB, free: 102.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001927/0.7503, allocations: 106.9 kB / 0.6978 GB, free: 102.1 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1296 * Number of variables: 1296 Notification: Performance of Generate backend data structure: time 0.01076/0.7611, allocations: 4.644 MB / 0.7023 GB, free: 99.02 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.7611, allocations: 7.719 kB / 0.7023 GB, free: 99.02 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01308/0.7742, allocations: 2.29 MB / 0.7046 GB, free: 97.91 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005897/0.7801, allocations: 2.905 MB / 0.7074 GB, free: 96.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.7803, allocations: 157 kB / 0.7075 GB, free: 96.04 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008/0.7811, allocations: 283.9 kB / 0.7078 GB, free: 96.03 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01028/0.7914, allocations: 6.056 MB / 0.7137 GB, free: 93.1 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00921/0.8007, allocations: 6.792 MB / 0.7204 GB, free: 86.35 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.8008, allocations: 11.91 kB / 0.7204 GB, free: 86.34 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004154/0.8012, allocations: 11.98 kB / 0.7204 GB, free: 86.33 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001919/0.8014, allocations: 312.4 kB / 0.7207 GB, free: 86.02 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02858/0.83, allocations: 22.35 MB / 0.7425 GB, free: 63.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005255/0.8353, allocations: 4.64 MB / 0.747 GB, free: 58.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003376/0.8387, allocations: 3.052 MB / 0.75 GB, free: 55.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002981/0.839, allocations: 182.7 kB / 0.7502 GB, free: 55.45 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003573/0.8426, allocations: 3.106 MB / 0.7532 GB, free: 52.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=417): time 7.754e-06/0.8426, allocations: 4 kB / 0.7532 GB, free: 52.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=417): time 0.008417/0.8511, allocations: 6.035 MB / 0.7591 GB, free: 46.19 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.8513, allocations: 469.8 kB / 0.7596 GB, free: 45.63 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002472/0.8537, allocations: 1.39 MB / 0.7609 GB, free: 44.23 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004792/0.8542, allocations: 41.69 kB / 0.761 GB, free: 44.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001119/0.8554, allocations: 1.451 MB / 0.7624 GB, free: 42.71 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001063/0.8564, allocations: 1.324 MB / 0.7637 GB, free: 41.37 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003498/0.8568, allocations: 4 kB / 0.7637 GB, free: 41.36 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.857, allocations: 474.9 kB / 0.7641 GB, free: 40.89 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002765/0.8598, allocations: 2.397 MB / 0.7665 GB, free: 38.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003085/0.8629, allocations: 3.215 MB / 0.7696 GB, free: 34.96 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004133/0.867, allocations: 3.011 MB / 0.7726 GB, free: 31.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.761e-05/0.8671, allocations: 4 kB / 0.7726 GB, free: 31.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.009401/0.8765, allocations: 6.835 MB / 0.7792 GB, free: 25.04 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.8765, allocations: 4 kB / 0.7792 GB, free: 25.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.284e-05/0.8766, allocations: 20.09 kB / 0.7793 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002167/0.8787, allocations: 1.413 MB / 0.7806 GB, free: 23.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00317/0.8819, allocations: 0.7566 MB / 0.7814 GB, free: 22.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003932/0.8859, allocations: 4.697 MB / 0.786 GB, free: 17.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003116/0.889, allocations: 380.3 kB / 0.7863 GB, free: 17.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000714/0.8897, allocations: 164 kB / 0.7865 GB, free: 17.43 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQM.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQM.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQM.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQM.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQM.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQM.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQM.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 91 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.meanpowerA.y,meanpowerA.y,$whenCondition12,$whenCondition11,$whenCondition10,$PRE.rmsiA.mean.y,rmsiA.mean.y,$PRE.rmsvA.mean.y,rmsvA.mean.y,$PRE.meanpowerM[1].y,meanpowerM[1].y,$PRE.meanpowerM[2].y,meanpowerM[2].y,$PRE.meanpowerM[3].y,meanpowerM[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsiM[3].mean.y,rmsiM[3].mean.y,$PRE.rmsiM[2].mean.y,rmsiM[2].mean.y,$PRE.rmsiM[1].mean.y,rmsiM[1].mean.y,$PRE.rmsvM[3].mean.y,rmsvM[3].mean.y,$PRE.rmsvM[2].mean.y,rmsvM[2].mean.y,$PRE.rmsvM[1].mean.y,rmsvM[1].mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 400 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {6 9,6 45} Notification: Performance of prepare postOptimizeDAE: time 0.001218/0.891, allocations: 245.3 kB / 0.7867 GB, free: 17.19 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008171/0.8918, allocations: 249 kB / 0.787 GB, free: 16.94 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009059/0.9009, allocations: 6.057 MB / 0.7929 GB, free: 10.83 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.669e-05/0.901, allocations: 87.89 kB / 0.793 GB, free: 10.74 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.901, allocations: 4 kB / 0.793 GB, free: 10.74 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4e-05/0.901, allocations: 19.84 kB / 0.793 GB, free: 10.72 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01685/0.9179, allocations: 12.13 MB / 0.8048 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.728e-05/0.9179, allocations: 3.906 kB / 0.8048 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002808/0.9208, allocations: 0.5813 MB / 0.8054 GB, free: 13.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/0.9232, allocations: 1.374 MB / 0.8067 GB, free: 12.57 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003401/0.9235, allocations: 59.94 kB / 0.8068 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004326/0.9279, allocations: 4.664 MB / 0.8113 GB, free: 7.68 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.9279, allocations: 3.906 kB / 0.8114 GB, free: 7.676 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.144/1.072, allocations: 10.32 MB / 0.8214 GB, free: 160.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007264/1.073, allocations: 394.2 kB / 0.8218 GB, free: 160 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006167/1.073, allocations: 33.39 kB / 0.8218 GB, free: 160 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/1.075, allocations: 128.9 kB / 0.822 GB, free: 160 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004531/1.075, allocations: 275.3 kB / 0.8222 GB, free: 160 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002496/1.076, allocations: 126.3 kB / 0.8223 GB, free: 160 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001047/1.077, allocations: 1.033 MB / 0.8234 GB, free: 159.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002595/1.079, allocations: 1.144 MB / 0.8245 GB, free: 159.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 18 (inductorQS.pin_p.reference.gamma,sineVoltageQM.plug_p.reference.gamma,inductorM.inductor[1].i,inductorM.inductor[2].i,inductorM.inductor[3].i,rmsvM[1].mean.x,rmsvM[2].mean.x,rmsvM[3].mean.x,rmsiM[1].mean.x,rmsiM[2].mean.x,rmsiM[3].mean.x,meanpowerM[1].x,meanpowerM[2].x,meanpowerM[3].x,inductorA.i,rmsvA.mean.x,rmsiA.mean.x,meanpowerA.x) * Number of discrete variables: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rmsvM[1].mean.y,rmsvM[2].mean.y,rmsvM[3].mean.y,rmsiM[1].mean.y,rmsiM[2].mean.y,rmsiM[3].mean.y,meanpowerM[1].y,meanpowerM[2].y,meanpowerM[3].y,$whenCondition12,$whenCondition11,$whenCondition10,rmsvA.mean.y,rmsiA.mean.y,meanpowerA.y) * Number of discrete states: 12 (meanpowerA.x,rmsiA.mean.x,rmsvA.mean.x,rmsvM[1].mean.x,rmsvM[2].mean.x,rmsvM[3].mean.x,rmsiM[1].mean.x,rmsiM[2].mean.x,rmsiM[3].mean.x,meanpowerM[1].x,meanpowerM[2].x,meanpowerM[3].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (325): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {6 9,6 45} Notification: Performance of Backend phase and start with SimCode phase: time 0.000445/1.08, allocations: 229.9 kB / 0.8247 GB, free: 159.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006833/1.087, allocations: 5.884 MB / 0.8304 GB, free: 159.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/1.087, allocations: 0 / 0.8304 GB, free: 159.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003825/1.091, allocations: 3.091 MB / 0.8335 GB, free: 159.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/1.093, allocations: 313 kB / 0.8338 GB, free: 159.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/1.105, allocations: 8.951 MB / 0.8425 GB, free: 158.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003392/1.109, allocations: 3.692 MB / 0.8461 GB, free: 157.3 MB / 490.7 MB Notification: Performance of SimCode: time 8.72e-07/1.109, allocations: 0 / 0.8461 GB, free: 157.3 MB / 490.7 MB Notification: Performance of Templates: time 0.07044/1.179, allocations: 56.67 MB / 0.9014 GB, free: 136.2 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/MulitSensorTest/MulitSensorTest.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches