Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.MultiSensorTest,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_MultiSensorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.MultiSensorTest,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_MultiSensorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001866/0.001866, allocations: 180.1 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 221.3 MB / 236 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008316/0.0008316, allocations: 88.03 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2161/0.2161, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.785e-05/3.792e-05, allocations: 0 / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.154, allocations: 61.91 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.54/0.6941, allocations: 110.4 MB / 0.6096 GB, free: 10.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.6945, allocations: 67.97 kB / 0.6097 GB, free: 10.74 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6558/1.35, allocations: 133.9 MB / 0.7404 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.826e-06/1.35, allocations: 0 / 0.7404 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003896/1.351, allocations: 105.2 kB / 0.7405 GB, free: 119.5 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1308 * Number of variables: 1308 Notification: Performance of Generate backend data structure: time 0.0169/1.368, allocations: 4.656 MB / 0.7451 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/1.368, allocations: 11.69 kB / 0.7451 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002618/1.37, allocations: 0.6805 MB / 0.7458 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01384/1.384, allocations: 2.434 MB / 0.7481 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00841/1.393, allocations: 2.969 MB / 0.751 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003797/1.393, allocations: 354.8 kB / 0.7514 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002143/1.395, allocations: 476 kB / 0.7518 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02127/1.416, allocations: 7.229 MB / 0.7589 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001672/1.417, allocations: 7.688 kB / 0.7589 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007072/1.417, allocations: 201.5 kB / 0.7591 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003843/1.418, allocations: 329.9 kB / 0.7594 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/1.43, allocations: 6.344 MB / 0.7656 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03636/1.466, allocations: 22.25 MB / 0.7873 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/1.477, allocations: 11.75 MB / 0.7988 GB, free: 92.52 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002449/1.48, allocations: 1.662 MB / 0.8004 GB, free: 91.91 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002148/1.48, allocations: 139.2 kB / 0.8005 GB, free: 91.81 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002537/1.482, allocations: 1.998 MB / 0.8025 GB, free: 91.01 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=288): time 4.659e-06/1.482, allocations: 3.938 kB / 0.8025 GB, free: 91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=288): time 0.005134/1.488, allocations: 3.234 MB / 0.8057 GB, free: 89.86 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000188/1.488, allocations: 0.5129 MB / 0.8062 GB, free: 89.29 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/1.491, allocations: 1.809 MB / 0.8079 GB, free: 88.61 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002141/1.491, allocations: 88.44 kB / 0.808 GB, free: 88.54 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001708/1.493, allocations: 1.996 MB / 0.81 GB, free: 87.06 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006966/1.493, allocations: 0.9698 MB / 0.8109 GB, free: 86.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/1.493, allocations: 74.28 kB / 0.811 GB, free: 86.26 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000205/1.494, allocations: 459.9 kB / 0.8114 GB, free: 85.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/1.496, allocations: 1.545 MB / 0.8129 GB, free: 85.36 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002488/1.498, allocations: 2.831 MB / 0.8157 GB, free: 82.29 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00239/1.501, allocations: 2.154 MB / 0.8178 GB, free: 80.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.765e-05/1.501, allocations: 8 kB / 0.8178 GB, free: 80.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=484) (initialization): time 0.006408/1.507, allocations: 4.892 MB / 0.8226 GB, free: 76.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/1.507, allocations: 20 kB / 0.8226 GB, free: 76.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.059e-05/1.507, allocations: 40 kB / 0.8226 GB, free: 76.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007509/1.508, allocations: 344.7 kB / 0.823 GB, free: 75.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002599/1.51, allocations: 0.8369 MB / 0.8238 GB, free: 75.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004796/1.515, allocations: 7.133 MB / 0.8307 GB, free: 67.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002908/1.518, allocations: 489.1 kB / 0.8312 GB, free: 67.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/1.518, allocations: 171.9 kB / 0.8314 GB, free: 67.28 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.meanpowerA.y_last,meanpowerA.y_last,$whenCondition12,$whenCondition11,$whenCondition10,$PRE.rmsiA.mean.y_last,rmsiA.mean.y_last,$PRE.rmsvA.mean.y_last,rmsvA.mean.y_last,$PRE.meanpowerM[1].y_last,meanpowerM[1].y_last,$PRE.meanpowerM[2].y_last,meanpowerM[2].y_last,$PRE.meanpowerM[3].y_last,meanpowerM[3].y_last,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsiM[3].mean.y_last,rmsiM[3].mean.y_last,$PRE.rmsiM[2].mean.y_last,rmsiM[2].mean.y_last,$PRE.rmsiM[1].mean.y_last,rmsiM[1].mean.y_last,$PRE.rmsvM[3].mean.y_last,rmsvM[3].mean.y_last,$PRE.rmsvM[2].mean.y_last,rmsvM[2].mean.y_last,$PRE.rmsvM[1].mean.y_last,rmsvM[1].mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 460 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006579/1.519, allocations: 370.6 kB / 0.8317 GB, free: 66.92 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000443/1.52, allocations: 241 kB / 0.832 GB, free: 66.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004529/1.524, allocations: 2.996 MB / 0.8349 GB, free: 64.15 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.3e-05/1.524, allocations: 32 kB / 0.8349 GB, free: 64.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.782e-05/1.524, allocations: 8 kB / 0.8349 GB, free: 64.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.949e-05/1.524, allocations: 17.81 kB / 0.8349 GB, free: 64.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/1.538, allocations: 8.59 MB / 0.8433 GB, free: 57.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/1.538, allocations: 3.656 kB / 0.8433 GB, free: 57.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/1.54, allocations: 0.5175 MB / 0.8438 GB, free: 56.58 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007077/1.541, allocations: 271.9 kB / 0.8441 GB, free: 56.35 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002294/1.541, allocations: 84.61 kB / 0.8442 GB, free: 56.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004872/1.546, allocations: 7.058 MB / 0.8511 GB, free: 49.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.546, allocations: 7.938 kB / 0.8511 GB, free: 49.08 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008447/1.555, allocations: 5.819 MB / 0.8568 GB, free: 43.21 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/1.556, allocations: 369.6 kB / 0.8571 GB, free: 42.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000547/1.557, allocations: 79.92 kB / 0.8572 GB, free: 42.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001666/1.558, allocations: 187 kB / 0.8574 GB, free: 42.57 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003885/1.559, allocations: 202.2 kB / 0.8576 GB, free: 42.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001617/1.559, allocations: 95.95 kB / 0.8577 GB, free: 42.28 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001915/1.561, allocations: 1.347 MB / 0.859 GB, free: 40.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/1.561, allocations: 0 / 0.859 GB, free: 40.94 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004442/1.565, allocations: 1.264 MB / 0.8602 GB, free: 39.67 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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_last,rmsvM[2].mean.y_last,rmsvM[3].mean.y_last,rmsiM[1].mean.y_last,rmsiM[2].mean.y_last,rmsiM[3].mean.y_last,meanpowerM[1].y_last,meanpowerM[2].y_last,meanpowerM[3].y_last,$whenCondition12,$whenCondition11,$whenCondition10,rmsvA.mean.y_last,rmsiA.mean.y_last,meanpowerA.y_last) * 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 (289): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007882/1.573, allocations: 7.322 MB / 0.8674 GB, free: 32.21 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006283/1.579, allocations: 4.221 MB / 0.8715 GB, free: 27.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/1.579, allocations: 0 / 0.8715 GB, free: 27.93 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003349/1.583, allocations: 2.189 MB / 0.8736 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003409/1.586, allocations: 401 kB / 0.874 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02122/1.608, allocations: 8.906 MB / 0.8827 GB, free: 16.36 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002908/1.61, allocations: 3.42 MB / 0.886 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003482/1.614, allocations: 1.129 MB / 0.8871 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002318/1.616, allocations: 1.651 MB / 0.8887 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of SimCode: time 1.813e-06/1.616, allocations: 0 / 0.8887 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4565/2.073, allocations: 64.57 MB / 0.9518 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/2.073, allocations: 164.5 kB / 0.952 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.795/5.868, allocations: 0 / 0.952 GB, free: 118.5 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_MultiSensorTest_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_MultiSensorTest.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest_res.mat does not exist to compare? outputFormat=mat