Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Electrical_MulitSensorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.MulitSensorTest,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_MulitSensorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001589/0.001594, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.111/2.111, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001157/0.001156, allocations: 90.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3063/0.3063, allocations: 43.48 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.285e-05/3.314e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1196, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5036/0.6232, allocations: 108.7 MB / 0.579 GB, free: 11.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.6235, allocations: 69.12 kB / 0.5791 GB, free: 11.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8199/1.443, allocations: 131.9 MB / 0.7079 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.946e-06/1.443, allocations: 1.469 kB / 0.7079 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004002/1.444, allocations: 107.6 kB / 0.708 GB, free: 106.3 MB / 0.4948 GB 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.02362/1.468, allocations: 4.629 MB / 0.7125 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.757e-05/1.468, allocations: 9.969 kB / 0.7125 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003441/1.471, allocations: 0.6781 MB / 0.7132 GB, free: 105.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02165/1.493, allocations: 2.426 MB / 0.7155 GB, free: 105 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/1.504, allocations: 2.885 MB / 0.7184 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007076/1.505, allocations: 357.1 kB / 0.7187 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002813/1.508, allocations: 474.1 kB / 0.7191 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02816/1.536, allocations: 7.41 MB / 0.7264 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003102/1.536, allocations: 15.81 kB / 0.7264 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002053/1.538, allocations: 199.3 kB / 0.7266 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000504/1.539, allocations: 309.5 kB / 0.7269 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02012/1.559, allocations: 6.658 MB / 0.7334 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06429/1.623, allocations: 22.71 MB / 0.7556 GB, free: 99.21 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01472/1.638, allocations: 7.267 MB / 0.7627 GB, free: 94.62 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006866/1.645, allocations: 3.006 MB / 0.7656 GB, free: 93.41 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007046/1.646, allocations: 168 kB / 0.7658 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008196/1.654, allocations: 3.115 MB / 0.7688 GB, free: 92.09 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=414): time 1.389e-05/1.654, allocations: 0 / 0.7688 GB, free: 92.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=414): time 0.01657/1.671, allocations: 5.727 MB / 0.7744 GB, free: 89.92 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/1.671, allocations: 472.3 kB / 0.7748 GB, free: 89.41 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003395/1.674, allocations: 1.437 MB / 0.7762 GB, free: 88.88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001031/1.675, allocations: 104.3 kB / 0.7763 GB, free: 88.79 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001922/1.677, allocations: 1.628 MB / 0.7779 GB, free: 87.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002243/1.679, allocations: 1.376 MB / 0.7793 GB, free: 86.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008662/1.68, allocations: 78.47 kB / 0.7793 GB, free: 86.42 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004355/1.681, allocations: 477.3 kB / 0.7798 GB, free: 86.04 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005773/1.687, allocations: 2.251 MB / 0.782 GB, free: 85.19 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00699/1.694, allocations: 3.081 MB / 0.785 GB, free: 83.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006967/1.701, allocations: 2.758 MB / 0.7877 GB, free: 82.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.854e-05/1.701, allocations: 3.875 kB / 0.7877 GB, free: 82.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=526) (initialization): time 0.01837/1.719, allocations: 6.472 MB / 0.794 GB, free: 79.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/1.719, allocations: 18.97 kB / 0.794 GB, free: 79.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.25e-05/1.719, allocations: 25.09 kB / 0.7941 GB, free: 79.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004859/1.724, allocations: 1.398 MB / 0.7954 GB, free: 79.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006096/1.73, allocations: 0.7603 MB / 0.7962 GB, free: 79.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006471/1.737, allocations: 4.586 MB / 0.8007 GB, free: 76.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004825/1.742, allocations: 485.2 kB / 0.8011 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.743, allocations: 160 kB / 0.8013 GB, free: 75.93 MB / 0.4948 GB 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 (415): * Single equations (assignments): 394 * 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.001563/1.744, allocations: 345.6 kB / 0.8016 GB, free: 75.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/1.746, allocations: 256.8 kB / 0.8018 GB, free: 75.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01531/1.761, allocations: 5.651 MB / 0.8074 GB, free: 70.58 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001545/1.761, allocations: 87.17 kB / 0.8074 GB, free: 70.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-05/1.761, allocations: 0 / 0.8074 GB, free: 70.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/1.761, allocations: 32.25 kB / 0.8075 GB, free: 70.49 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0329/1.794, allocations: 12.52 MB / 0.8197 GB, free: 60.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.707e-05/1.794, allocations: 0 / 0.8197 GB, free: 60.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005153/1.8, allocations: 0.5846 MB / 0.8203 GB, free: 59.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004131/1.804, allocations: 1.371 MB / 0.8216 GB, free: 58.44 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001051/1.805, allocations: 106.9 kB / 0.8217 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006049/1.811, allocations: 4.563 MB / 0.8262 GB, free: 53.95 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/1.811, allocations: 6.656 kB / 0.8262 GB, free: 53.95 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02355/1.834, allocations: 9.714 MB / 0.8357 GB, free: 45.32 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/1.836, allocations: 404.2 kB / 0.8361 GB, free: 44.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001646/1.837, allocations: 83.78 kB / 0.8361 GB, free: 44.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004061/1.842, allocations: 221 kB / 0.8363 GB, free: 44.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001458/1.843, allocations: 297.8 kB / 0.8366 GB, free: 44.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006382/1.844, allocations: 123.4 kB / 0.8367 GB, free: 44.39 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002399/1.846, allocations: 1.087 MB / 0.8378 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.42e-07/1.846, allocations: 0 / 0.8378 GB, free: 43.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005792/1.852, allocations: 1.264 MB / 0.839 GB, free: 42.16 MB / 0.4948 GB 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 (322): * Single equations (assignments): 289 * 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.02441/1.876, allocations: 10.95 MB / 0.8497 GB, free: 32.38 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01477/1.891, allocations: 5.642 MB / 0.8552 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/1.891, allocations: 4.188 kB / 0.8552 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008562/1.9, allocations: 3.14 MB / 0.8583 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004212/1.904, allocations: 404.5 kB / 0.8587 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0312/1.935, allocations: 10.06 MB / 0.8685 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006265/1.942, allocations: 3.364 MB / 0.8718 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005044/1.947, allocations: 1.687 MB / 0.8735 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of SimCode: time 1.413e-06/1.947, allocations: 4 kB / 0.8735 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.35/6.297, allocations: 146.5 MB / 1.017 GB, free: 60.19 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_MulitSensorTest_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_MulitSensorTest.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest_res.mat does not exist to compare? outputFormat=mat