Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_cpp_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.003747/0.003747, allocations: 186.1 kB / 16.4 MB, free: 5.75 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.151/2.151, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001177/0.001177, allocations: 93.48 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003979, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.342, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.4719, allocations: 79.48 MB / 454.1 MB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.4723, allocations: 79.97 kB / 454.2 MB, free: 1.078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02599/0.4983, allocations: 5.8 MB / 460 MB, free: 11.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4984, allocations: 4 kB / 460 MB, free: 11.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.654e-05/0.4984, allocations: 8 kB / 460 MB, free: 11.27 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.0011/0.4995, allocations: 0.5188 MB / 460.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.4996, allocations: 12.03 kB / 460.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.4997, allocations: 50.55 kB / 460.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.4999, allocations: 27.72 kB / 460.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005137/0.5004, allocations: 259.5 kB / 460.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.5005, allocations: 23.89 kB / 460.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.169e-05/0.5006, allocations: 12 kB / 460.9 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004803/0.501, allocations: 165.3 kB / 461.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.5011, allocations: 0 / 461.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.5011, allocations: 8 kB / 461.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.5011, allocations: 4 kB / 461.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004207/0.5016, allocations: 123.7 kB / 461.2 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.5029, allocations: 0.586 MB / 461.8 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004911/0.5034, allocations: 168.6 kB / 461.9 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.5035, allocations: 0 / 461.9 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003522/0.5038, allocations: 125.8 kB / 462.1 MB, free: 9.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 2.465e-06/0.5039, allocations: 0 / 462.1 MB, free: 9.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0008107/0.5047, allocations: 245.6 kB / 462.3 MB, free: 8.773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.5047, allocations: 59.36 kB / 462.4 MB, free: 8.703 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.5051, allocations: 232.2 kB / 462.6 MB, free: 8.469 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.5052, allocations: 25.7 kB / 462.6 MB, free: 8.438 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.5053, allocations: 202.8 kB / 462.8 MB, free: 8.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.47e-05/0.5054, allocations: 71.08 kB / 462.9 MB, free: 8.168 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.5055, allocations: 0 / 462.9 MB, free: 8.168 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5056, allocations: 322.8 kB / 463.2 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.5058, allocations: 51.98 kB / 463.2 MB, free: 7.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.5061, allocations: 93.48 kB / 463.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.5063, allocations: 68.98 kB / 463.4 MB, free: 7.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.5063, allocations: 0 / 463.4 MB, free: 7.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005605/0.5069, allocations: 196.1 kB / 463.6 MB, free: 7.426 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.5069, allocations: 4 kB / 463.6 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.507, allocations: 4 kB / 463.6 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.507, allocations: 4.094 kB / 463.6 MB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003861/0.5074, allocations: 47.91 kB / 463.7 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.5074, allocations: 7.953 kB / 463.7 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.5077, allocations: 31.62 kB / 463.7 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.5077, allocations: 4 kB / 463.7 MB, free: 7.324 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 () * Number of clocked 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.000214/0.5079, allocations: 146.7 kB / 463.8 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.508, allocations: 19.81 kB / 463.9 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006575/0.5087, allocations: 223.6 kB / 464.1 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.5087, allocations: 4 kB / 464.1 MB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.5087, allocations: 0 / 464.1 MB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.5087, allocations: 3.953 kB / 464.1 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004554/0.5092, allocations: 293.5 kB / 464.4 MB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.5092, allocations: 0 / 464.4 MB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003574/0.5096, allocations: 43.91 kB / 464.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.5096, allocations: 0 / 464.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.5096, allocations: 4 kB / 464.4 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.5096, allocations: 4 kB / 464.4 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5097, allocations: 4 kB / 464.4 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008319/0.5105, allocations: 303.5 kB / 464.7 MB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.5106, allocations: 104.8 kB / 464.8 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.589e-05/0.5107, allocations: 8 kB / 464.8 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.5109, allocations: 4 kB / 464.8 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.613e-05/0.5109, allocations: 19.91 kB / 464.9 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.511, allocations: 16 kB / 464.9 MB, free: 6.051 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002906/0.5113, allocations: 188.5 kB / 465.1 MB, free: 5.867 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5113, allocations: 0 / 465.1 MB, free: 5.867 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004523/0.5118, allocations: 71.84 kB / 465.1 MB, free: 5.797 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) * Number of clocked states: 0 () * 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.002279/0.514, allocations: 1.163 MB / 466.3 MB, free: 4.637 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005336/0.5146, allocations: 147.8 kB / 466.4 MB, free: 4.492 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5146, allocations: 3.938 kB / 466.4 MB, free: 4.488 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.5149, allocations: 83.89 kB / 466.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004689/0.5154, allocations: 40.64 kB / 466.6 MB, free: 4.363 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/0.519, allocations: 1.928 MB / 468.5 MB, free: 2.363 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.5195, allocations: 0.7676 MB / 469.3 MB, free: 1.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.5197, allocations: 75.41 kB / 469.3 MB, free: 1.496 MB / 346.7 MB Notification: Performance of SimCode: time 1.423e-06/0.5197, allocations: 0 / 469.3 MB, free: 1.496 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.689/3.208, allocations: 4.221 MB / 473.5 MB, free: 13.27 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat