Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.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) 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(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",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.001429/0.001429, allocations: 177 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008763/0.0008764, allocations: 90.17 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/1.993e-05, allocations: 4 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 50.41 MB / 387.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3325/0.4389, allocations: 80.02 MB / 467.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.4391, allocations: 67.97 kB / 467.6 MB, free: 14.65 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01586/0.455, allocations: 5.813 MB / 473.4 MB, free: 8.844 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4551, allocations: 0 / 473.4 MB, free: 8.844 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.181e-05/0.4551, allocations: 4 kB / 473.4 MB, free: 8.84 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007272/0.4558, allocations: 0.5 MB / 473.9 MB, free: 8.293 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.4559, allocations: 12.03 kB / 474 MB, free: 8.281 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.4561, allocations: 35.55 kB / 474 MB, free: 8.246 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.4565, allocations: 255.6 kB / 474.2 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.4565, allocations: 4 kB / 474.2 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.4565, allocations: 16 kB / 474.3 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002387/0.4568, allocations: 104 kB / 474.4 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.457, allocations: 145.3 kB / 474.5 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.4571, allocations: 0 / 474.5 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.4571, allocations: 3.953 kB / 474.5 MB, free: 7.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.4571, allocations: 4 kB / 474.5 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008572/0.458, allocations: 0.5203 MB / 475 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002569/0.4582, allocations: 154.5 kB / 475.2 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.4584, allocations: 80.84 kB / 475.3 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.4584, allocations: 8.328 kB / 475.3 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001774/0.4586, allocations: 107.3 kB / 475.4 MB, free: 6.746 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.633e-06/0.4586, allocations: 0 / 475.4 MB, free: 6.746 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003269/0.4589, allocations: 165.4 kB / 475.5 MB, free: 6.578 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.459, allocations: 55.41 kB / 475.6 MB, free: 6.512 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.4592, allocations: 214.1 kB / 475.8 MB, free: 6.293 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.4592, allocations: 25.7 kB / 475.8 MB, free: 6.262 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.608e-05/0.4593, allocations: 148.2 kB / 476 MB, free: 6.113 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.491e-05/0.4594, allocations: 71.09 kB / 476 MB, free: 6.043 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-06/0.4594, allocations: 0 / 476 MB, free: 6.043 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.4595, allocations: 334.8 kB / 476.4 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.679e-05/0.4596, allocations: 43.94 kB / 476.4 MB, free: 5.664 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.4597, allocations: 83.55 kB / 476.5 MB, free: 5.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.4599, allocations: 60.91 kB / 476.6 MB, free: 5.512 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4599, allocations: 0 / 476.6 MB, free: 5.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002816/0.4602, allocations: 195.8 kB / 476.7 MB, free: 5.316 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.4602, allocations: 4 kB / 476.7 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4602, allocations: 0 / 476.7 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.4602, allocations: 4 kB / 476.8 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.4604, allocations: 51.84 kB / 476.8 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.4604, allocations: 0 / 476.8 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.4606, allocations: 19.94 kB / 476.8 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.4606, allocations: 12 kB / 476.8 MB, free: 5.227 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.551e-05/0.4607, allocations: 112 kB / 476.9 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002477/0.4609, allocations: 165.4 kB / 477.1 MB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.531e-05/0.461, allocations: 27.67 kB / 477.1 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003266/0.4613, allocations: 201.9 kB / 477.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.4613, allocations: 8 kB / 477.3 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4613, allocations: 0 / 477.3 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.4614, allocations: 4 kB / 477.3 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002737/0.4616, allocations: 253.9 kB / 477.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4616, allocations: 0 / 477.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001927/0.4618, allocations: 35.98 kB / 477.6 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.4618, allocations: 0 / 477.6 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.4619, allocations: 3.984 kB / 477.6 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.4619, allocations: 7.953 kB / 477.6 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4619, allocations: 0 / 477.6 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004011/0.4623, allocations: 286.1 kB / 477.9 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.113e-05/0.4624, allocations: 100.9 kB / 478 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.4624, allocations: 0 / 478 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.365e-05/0.4625, allocations: 7.906 kB / 478 MB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.4626, allocations: 19.92 kB / 478 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.4626, allocations: 8 kB / 478 MB, free: 3.93 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001426/0.4627, allocations: 172.6 kB / 478.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4628, allocations: 0 / 478.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002886/0.463, allocations: 63.88 kB / 478.3 MB, free: 3.699 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001306/0.4644, allocations: 1.059 MB / 479.3 MB, free: 2.699 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000238/0.4646, allocations: 131.9 kB / 479.5 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4646, allocations: 7.938 kB / 479.5 MB, free: 2.562 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.4647, allocations: 75.88 kB / 479.5 MB, free: 2.488 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.465, allocations: 34.36 kB / 479.6 MB, free: 2.457 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009434/0.466, allocations: 487.4 kB / 480.1 MB, free: 1.945 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.4663, allocations: 0.7594 MB / 480.8 MB, free: 1.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.947e-05/0.4664, allocations: 21.86 kB / 480.8 MB, free: 1.137 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.4665, allocations: 75.41 kB / 480.9 MB, free: 1.066 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4665, allocations: 0 / 480.9 MB, free: 1.066 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.4902, allocations: 4.243 MB / 485.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/0.4904, allocations: 168.5 kB / 485.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/2.294, allocations: 3.938 kB / 485.3 MB, free: 12.64 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat