Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.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) 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(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",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.001925/0.001925, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.814/1.814, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009777/0.0009774, allocations: 88.09 kB / 262.4 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.542e-05/1.545e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.332/0.4339, allocations: 78.97 MB / 442.1 MB, free: 448 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.4342, allocations: 78.17 kB / 442.2 MB, free: 408 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01563/0.4499, allocations: 5.751 MB / 448 MB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4499, allocations: 0 / 448 MB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.843e-05/0.45, allocations: 4 kB / 448 MB, free: 11.62 MB / 330.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.0006994/0.4507, allocations: 499.7 kB / 448.5 MB, free: 11.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4507, allocations: 12.03 kB / 448.5 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.4509, allocations: 27.72 kB / 448.5 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000372/0.4513, allocations: 259.9 kB / 448.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.4513, allocations: 4 kB / 448.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.666e-05/0.4513, allocations: 15.95 kB / 448.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002469/0.4516, allocations: 111.3 kB / 448.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002432/0.4518, allocations: 126.8 kB / 449 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.4519, allocations: 4.219 kB / 449 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.4519, allocations: 0 / 449 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4519, allocations: 11.94 kB / 449 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008436/0.4528, allocations: 0.5366 MB / 449.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.453, allocations: 152.3 kB / 449.7 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.4532, allocations: 81.28 kB / 449.8 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.4532, allocations: 3.938 kB / 449.8 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.4534, allocations: 108.4 kB / 449.9 MB, free: 9.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 3.406e-06/0.4534, allocations: 0 / 449.9 MB, free: 9.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003467/0.4537, allocations: 169.7 kB / 450.1 MB, free: 9.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.4538, allocations: 59.41 kB / 450.1 MB, free: 9.609 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.454, allocations: 217 kB / 450.3 MB, free: 9.422 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.4541, allocations: 25.7 kB / 450.4 MB, free: 9.391 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.4542, allocations: 147.6 kB / 450.5 MB, free: 9.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.408e-05/0.4542, allocations: 65.36 kB / 450.6 MB, free: 9.215 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-06/0.4542, allocations: 0 / 450.6 MB, free: 9.215 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.4544, allocations: 333.8 kB / 450.9 MB, free: 8.887 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.396e-05/0.4545, allocations: 49.61 kB / 450.9 MB, free: 8.855 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.4546, allocations: 82.67 kB / 451 MB, free: 8.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.4547, allocations: 52.92 kB / 451.1 MB, free: 8.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4547, allocations: 0 / 451.1 MB, free: 8.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002947/0.455, allocations: 187.9 kB / 451.3 MB, free: 8.602 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.4551, allocations: 11.98 kB / 451.3 MB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.4551, allocations: 4.094 kB / 451.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.4551, allocations: 4 kB / 451.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.4553, allocations: 43.98 kB / 451.3 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.4553, allocations: 0 / 451.3 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.4555, allocations: 23.77 kB / 451.3 MB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.4555, allocations: 11.12 kB / 451.3 MB, free: 8.508 MB / 330.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 0.000104/0.4556, allocations: 104.9 kB / 451.5 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000263/0.4559, allocations: 179.8 kB / 451.6 MB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.4559, allocations: 15.81 kB / 451.6 MB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000327/0.4562, allocations: 201.6 kB / 451.8 MB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.4563, allocations: 3.938 kB / 451.8 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4563, allocations: 4 kB / 451.8 MB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4563, allocations: 0 / 451.8 MB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.4565, allocations: 259.5 kB / 452.1 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4565, allocations: 0 / 452.1 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.4567, allocations: 39.92 kB / 452.1 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.4567, allocations: 0 / 452.1 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.4568, allocations: 4 kB / 452.1 MB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.4568, allocations: 0 / 452.1 MB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4568, allocations: 4 kB / 452.1 MB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003944/0.4572, allocations: 272.2 kB / 452.4 MB, free: 7.547 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.541e-05/0.4573, allocations: 111.9 kB / 452.5 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.4573, allocations: 0 / 452.5 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.516e-05/0.4574, allocations: 11.98 kB / 452.5 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.4575, allocations: 19.73 kB / 452.6 MB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.4575, allocations: 7.938 kB / 452.6 MB, free: 7.387 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001599/0.4577, allocations: 170 kB / 452.7 MB, free: 7.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4577, allocations: 0 / 452.7 MB, free: 7.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003454/0.458, allocations: 59.88 kB / 452.8 MB, free: 7.191 MB / 330.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.001405/0.4594, allocations: 1.063 MB / 453.8 MB, free: 6.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002516/0.4597, allocations: 127.6 kB / 454 MB, free: 6.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4597, allocations: 0 / 454 MB, free: 6.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.4598, allocations: 78.11 kB / 454 MB, free: 6.035 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.4601, allocations: 46.64 kB / 454.1 MB, free: 5.996 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009653/0.4611, allocations: 490.2 kB / 454.6 MB, free: 5.512 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.4615, allocations: 0.7546 MB / 455.3 MB, free: 4.734 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.4616, allocations: 33.78 kB / 455.4 MB, free: 4.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.4617, allocations: 77.59 kB / 455.4 MB, free: 4.676 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4617, allocations: 0 / 455.4 MB, free: 4.676 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.486, allocations: 4.249 MB / 459.7 MB, free: 432 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002891/0.4863, allocations: 164.9 kB / 459.8 MB, free: 232 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/2.361, allocations: 0 / 459.8 MB, free: 232 kB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat