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.001334/0.001334, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 221.5 MB / 230.7 MB, free: 7.551 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.001046/0.001046, allocations: 92.95 kB / 281.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2121/0.2121, allocations: 44.15 MB / 376.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.759e-05/1.763e-05, allocations: 0 / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1443, allocations: 61.92 MB / 0.4948 GB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.6284, allocations: 109.8 MB / 0.602 GB, free: 2.508 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.6286, allocations: 67.97 kB / 0.602 GB, free: 2.441 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5802/1.209, allocations: 132.4 MB / 0.7313 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.075e-06/1.209, allocations: 3.75 kB / 0.7313 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002747/1.209, allocations: 113.2 kB / 0.7314 GB, free: 120.2 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.01424/1.223, allocations: 4.645 MB / 0.736 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/1.223, allocations: 12.77 kB / 0.736 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01331/1.237, allocations: 2.433 MB / 0.7383 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006551/1.243, allocations: 2.97 MB / 0.7412 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/1.244, allocations: 146.3 kB / 0.7414 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001358/1.245, allocations: 288 kB / 0.7417 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01259/1.258, allocations: 5.74 MB / 0.7473 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01477/1.272, allocations: 6.469 MB / 0.7536 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001497/1.273, allocations: 6.25 kB / 0.7536 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005084/1.273, allocations: 10.41 kB / 0.7536 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002799/1.273, allocations: 338.4 kB / 0.7539 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03285/1.306, allocations: 21.81 MB / 0.7752 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01138/1.318, allocations: 13.38 MB / 0.7883 GB, free: 97.14 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002376/1.32, allocations: 1.678 MB / 0.7899 GB, free: 96.53 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002134/1.32, allocations: 140.2 kB / 0.7901 GB, free: 96.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002354/1.323, allocations: 2 MB / 0.792 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=291): time 5.62e-06/1.323, allocations: 0 / 0.792 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=291): time 0.005706/1.328, allocations: 3.673 MB / 0.7956 GB, free: 94.46 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/1.329, allocations: 0.5053 MB / 0.7961 GB, free: 93.89 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002232/1.331, allocations: 1.713 MB / 0.7978 GB, free: 93.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002811/1.331, allocations: 37.28 kB / 0.7978 GB, free: 93.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001379/1.332, allocations: 2.002 MB / 0.7998 GB, free: 91.71 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006975/1.333, allocations: 0.9369 MB / 0.8007 GB, free: 90.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/1.333, allocations: 0 / 0.8007 GB, free: 90.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000172/1.334, allocations: 458.1 kB / 0.8011 GB, free: 90.61 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/1.335, allocations: 1.568 MB / 0.8026 GB, free: 90.04 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002457/1.338, allocations: 2.828 MB / 0.8054 GB, free: 87.87 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004107/1.342, allocations: 2.684 MB / 0.808 GB, free: 87.02 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.132e-05/1.342, allocations: 14.12 kB / 0.808 GB, free: 87.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=490) (initialization): time 0.009182/1.351, allocations: 5.218 MB / 0.8131 GB, free: 85.28 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.987e-05/1.351, allocations: 21.19 kB / 0.8132 GB, free: 85.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.686e-05/1.351, allocations: 40.53 kB / 0.8132 GB, free: 85.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007461/1.352, allocations: 327.8 kB / 0.8135 GB, free: 85.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/1.355, allocations: 0.8629 MB / 0.8143 GB, free: 84.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004557/1.36, allocations: 6.867 MB / 0.8211 GB, free: 77.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003245/1.363, allocations: 438 kB / 0.8215 GB, free: 77.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003922/1.363, allocations: 175.5 kB / 0.8216 GB, free: 76.93 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 (470): * Single equations (assignments): 466 * 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.0006625/1.364, allocations: 257.2 kB / 0.8219 GB, free: 76.68 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00585/1.37, allocations: 3.677 MB / 0.8255 GB, free: 73.61 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000498/1.37, allocations: 244.9 kB / 0.8257 GB, free: 73.37 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005713/1.376, allocations: 3.444 MB / 0.8291 GB, free: 70.59 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.539e-05/1.376, allocations: 28 kB / 0.8291 GB, free: 70.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/1.376, allocations: 19.41 kB / 0.8291 GB, free: 70.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.585e-05/1.376, allocations: 21.48 kB / 0.8291 GB, free: 70.54 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/1.389, allocations: 8.495 MB / 0.8374 GB, free: 63.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/1.389, allocations: 4 kB / 0.8374 GB, free: 63.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0021/1.391, allocations: 0.5268 MB / 0.838 GB, free: 63.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006601/1.392, allocations: 276.1 kB / 0.8382 GB, free: 62.99 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002094/1.392, allocations: 43.06 kB / 0.8383 GB, free: 62.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004263/1.397, allocations: 6.796 MB / 0.8449 GB, free: 56.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.397, allocations: 0 / 0.8449 GB, free: 56.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009073/1.406, allocations: 6.369 MB / 0.8511 GB, free: 50.49 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/1.407, allocations: 367.9 kB / 0.8515 GB, free: 50.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003921/1.407, allocations: 31.12 kB / 0.8515 GB, free: 50.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/1.409, allocations: 149.9 kB / 0.8516 GB, free: 50.01 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003651/1.409, allocations: 201.2 kB / 0.8518 GB, free: 49.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/1.409, allocations: 94.7 kB / 0.8519 GB, free: 49.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001721/1.411, allocations: 1.264 MB / 0.8532 GB, free: 48.71 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/1.411, allocations: 0 / 0.8532 GB, free: 48.71 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003696/1.415, allocations: 1.155 MB / 0.8543 GB, free: 47.55 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 (292): * Single equations (assignments): 276 * 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.008495/1.423, allocations: 7.761 MB / 0.8619 GB, free: 40.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005765/1.429, allocations: 4.193 MB / 0.866 GB, free: 36.56 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/1.429, allocations: 4.172 kB / 0.866 GB, free: 36.56 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002356/1.431, allocations: 2.187 MB / 0.8681 GB, free: 34.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002218/1.434, allocations: 347.7 kB / 0.8684 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01624/1.45, allocations: 8.75 MB / 0.877 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002345/1.452, allocations: 3.419 MB / 0.8803 GB, free: 21.77 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002969/1.455, allocations: 1.152 MB / 0.8814 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001869/1.457, allocations: 1.667 MB / 0.8831 GB, free: 18.96 MB / 0.5105 GB Notification: Performance of SimCode: time 1.072e-06/1.457, allocations: 4 kB / 0.8831 GB, free: 18.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3933/1.85, allocations: 62.11 MB / 0.9437 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001476/1.851, allocations: 138.7 kB / 0.9439 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.865/5.715, allocations: 0 / 0.9439 GB, free: 105.6 MB / 0.5105 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