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: "" <> buildModelFMU(ModelicaTest.Electrical.MulitSensorTest,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_MulitSensorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.MulitSensorTest,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_MulitSensorTest",fmuType="me",version="2.0",platforms={"static"}) [: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.001297/0.001297, allocations: 191.5 kB / 7.807 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.644/1.644, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.001049/0.001048, allocations: 99.94 kB / 261.4 MB, free: 13.47 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.2054/0.2054, allocations: 43.49 MB / 352.8 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2159/0.4214, allocations: 64.96 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.7708, allocations: 58.84 MB / 476.6 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1571/0.928, allocations: 107.9 MB / 0.5709 GB, free: 6.957 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.9282, allocations: 67.97 kB / 0.5709 GB, free: 6.891 MB / 410.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.5804/1.509, allocations: 134.6 MB / 0.7024 GB, free: 98.9 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.225e-05/1.509, allocations: 8.938 kB / 0.7024 GB, free: 98.9 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01607/1.525, allocations: 2.29 MB / 0.7047 GB, free: 97.79 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/1.535, allocations: 2.911 MB / 0.7075 GB, free: 95.92 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005928/1.536, allocations: 152.1 kB / 0.7076 GB, free: 95.92 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002757/1.538, allocations: 284.2 kB / 0.7079 GB, free: 95.91 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01852/1.557, allocations: 6.055 MB / 0.7138 GB, free: 92.98 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02267/1.58, allocations: 6.793 MB / 0.7205 GB, free: 86.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003129/1.58, allocations: 15.91 kB / 0.7205 GB, free: 86.23 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00194/1.582, allocations: 7.984 kB / 0.7205 GB, free: 86.23 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000332/1.582, allocations: 316.3 kB / 0.7208 GB, free: 85.92 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04754/1.63, allocations: 22.35 MB / 0.7426 GB, free: 63.31 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006341/1.636, allocations: 4.64 MB / 0.7471 GB, free: 58.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004214/1.641, allocations: 3.048 MB / 0.7501 GB, free: 55.54 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003852/1.641, allocations: 178.5 kB / 0.7503 GB, free: 55.36 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005027/1.646, allocations: 3.117 MB / 0.7533 GB, free: 52.17 MB / 474.7 MB Notification: Performance of pre-optimization done (n=417): time 9.738e-06/1.646, allocations: 0 / 0.7533 GB, free: 52.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=417): time 0.01105/1.657, allocations: 6.027 MB / 0.7592 GB, free: 46.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/1.657, allocations: 469.7 kB / 0.7597 GB, free: 45.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00332/1.661, allocations: 1.397 MB / 0.761 GB, free: 44.13 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001272/1.662, allocations: 41.62 kB / 0.7611 GB, free: 44.08 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002336/1.664, allocations: 1.447 MB / 0.7625 GB, free: 42.61 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002748/1.667, allocations: 1.328 MB / 0.7638 GB, free: 41.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008377/1.668, allocations: 0 / 0.7638 GB, free: 41.27 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000525/1.668, allocations: 482.9 kB / 0.7642 GB, free: 40.79 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003996/1.672, allocations: 2.393 MB / 0.7666 GB, free: 38.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004564/1.677, allocations: 3.215 MB / 0.7697 GB, free: 34.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005789/1.683, allocations: 3.011 MB / 0.7727 GB, free: 31.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.772e-05/1.683, allocations: 4 kB / 0.7727 GB, free: 31.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01313/1.696, allocations: 6.839 MB / 0.7793 GB, free: 24.94 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/1.696, allocations: 4 kB / 0.7793 GB, free: 24.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.358e-05/1.696, allocations: 20 kB / 0.7794 GB, free: 24.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002614/1.699, allocations: 1.401 MB / 0.7807 GB, free: 23.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00395/1.703, allocations: 0.7566 MB / 0.7815 GB, free: 22.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004921/1.708, allocations: 4.709 MB / 0.7861 GB, free: 17.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004208/1.712, allocations: 376.3 kB / 0.7864 GB, free: 17.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/1.713, allocations: 168 kB / 0.7866 GB, free: 17.34 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.001998/1.715, allocations: 238.3 kB / 0.7868 GB, free: 17.11 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/1.716, allocations: 252.9 kB / 0.7871 GB, free: 16.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/1.727, allocations: 6.065 MB / 0.793 GB, free: 10.73 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-05/1.728, allocations: 79.97 kB / 0.7931 GB, free: 10.66 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.394e-05/1.728, allocations: 4 kB / 0.7931 GB, free: 10.65 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.992e-05/1.728, allocations: 23.83 kB / 0.7931 GB, free: 10.63 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02244/1.75, allocations: 12.12 MB / 0.8049 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.517e-05/1.75, allocations: 7.938 kB / 0.8049 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003758/1.754, allocations: 0.5851 MB / 0.8055 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003547/1.758, allocations: 1.37 MB / 0.8068 GB, free: 12.48 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009424/1.759, allocations: 63.94 kB / 0.8069 GB, free: 12.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005878/1.764, allocations: 4.664 MB / 0.8114 GB, free: 7.594 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/1.765, allocations: 7.891 kB / 0.8115 GB, free: 7.586 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2691/2.034, allocations: 10.32 MB / 0.8215 GB, free: 158.4 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02152/2.055, allocations: 14.47 MB / 0.8357 GB, free: 157.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/2.057, allocations: 392.3 kB / 0.836 GB, free: 157.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001734/2.059, allocations: 29.06 kB / 0.8361 GB, free: 157.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002541/2.061, allocations: 134.3 kB / 0.8362 GB, free: 157.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007014/2.062, allocations: 275.9 kB / 0.8365 GB, free: 157.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003083/2.062, allocations: 128.4 kB / 0.8366 GB, free: 157.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.00139/2.064, allocations: 1.033 MB / 0.8376 GB, free: 157.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006288/2.07, allocations: 1.155 MB / 0.8387 GB, free: 157.1 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.0009676/2.071, allocations: 237.1 kB / 0.8389 GB, free: 157 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009826/2.081, allocations: 5.871 MB / 0.8447 GB, free: 156.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/2.081, allocations: 2.781 kB / 0.8447 GB, free: 156.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004778/2.086, allocations: 3.086 MB / 0.8477 GB, free: 156.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002634/2.088, allocations: 318.6 kB / 0.848 GB, free: 156.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01938/2.108, allocations: 8.969 MB / 0.8568 GB, free: 155.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004838/2.113, allocations: 3.731 MB / 0.8604 GB, free: 154.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/2.113, allocations: 0 / 0.8604 GB, free: 154.1 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_MulitSensorTest_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_MulitSensorTest.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest_res.mat does not exist to compare? outputFormat=mat