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.001599/0.001599, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 100.5 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.388e-05/2.417e-05, allocations: 0 / 314.9 MB, free: 9.082 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3808, allocations: 47.57 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.5173, allocations: 78.73 MB / 441.2 MB, free: 7.582 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.5177, allocations: 77.47 kB / 441.2 MB, free: 7.508 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02598/0.5437, allocations: 5.748 MB / 447 MB, free: 1.809 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5437, allocations: 4 kB / 447 MB, free: 1.805 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.5438, allocations: 4 kB / 447 MB, free: 1.801 MB / 331.1 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.001024/0.5448, allocations: 0.4935 MB / 447.5 MB, free: 1.266 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.5449, allocations: 8.031 kB / 447.5 MB, free: 1.258 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.5451, allocations: 27.72 kB / 447.5 MB, free: 1.23 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005741/0.5457, allocations: 266.5 kB / 447.8 MB, free: 0.9297 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.5457, allocations: 8 kB / 447.8 MB, free: 0.9219 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.9e-05/0.5458, allocations: 11.95 kB / 447.8 MB, free: 0.9102 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003848/0.5462, allocations: 108 kB / 447.9 MB, free: 0.8047 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.5466, allocations: 125.6 kB / 448 MB, free: 0.6758 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.5466, allocations: 4.203 kB / 448 MB, free: 0.6719 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.5466, allocations: 7.984 kB / 448 MB, free: 0.6641 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.5467, allocations: 7.938 kB / 448 MB, free: 0.6562 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.548, allocations: 0.5356 MB / 448.6 MB, free: 80 kB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004657/0.5485, allocations: 154.2 kB / 448.7 MB, free: 15.92 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.5487, allocations: 85.34 kB / 448.8 MB, free: 15.84 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.5488, allocations: 3.938 kB / 448.8 MB, free: 15.83 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/0.5491, allocations: 105.3 kB / 448.9 MB, free: 15.72 MB / 347.1 MB Notification: Performance of pre-optimization done (n=20): time 3.276e-06/0.5491, allocations: 0 / 448.9 MB, free: 15.72 MB / 347.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005483/0.5497, allocations: 168.7 kB / 449.1 MB, free: 15.55 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.5497, allocations: 55.41 kB / 449.1 MB, free: 15.48 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003487/0.5501, allocations: 213 kB / 449.3 MB, free: 15.27 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.5501, allocations: 29.7 kB / 449.4 MB, free: 15.23 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.5503, allocations: 202.7 kB / 449.6 MB, free: 15.04 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.935e-05/0.5504, allocations: 71.03 kB / 449.6 MB, free: 14.96 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.223e-05/0.5504, allocations: 0 / 449.6 MB, free: 14.96 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.5506, allocations: 322.8 kB / 450 MB, free: 14.64 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.5507, allocations: 44.66 kB / 450 MB, free: 14.6 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.5509, allocations: 83.98 kB / 450.1 MB, free: 14.5 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.5511, allocations: 60.91 kB / 450.1 MB, free: 14.45 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.5511, allocations: 0 / 450.1 MB, free: 14.45 MB / 347.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004621/0.5516, allocations: 172.1 kB / 450.3 MB, free: 14.27 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.5516, allocations: 4 kB / 450.3 MB, free: 14.27 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.5516, allocations: 4 kB / 450.3 MB, free: 14.27 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.5517, allocations: 0 / 450.3 MB, free: 14.27 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.5521, allocations: 43.92 kB / 450.4 MB, free: 14.22 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.5521, allocations: 12.08 kB / 450.4 MB, free: 14.21 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.5524, allocations: 19.78 kB / 450.4 MB, free: 14.2 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.5524, allocations: 5.031 kB / 450.4 MB, free: 14.19 MB / 347.1 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.0001361/0.5526, allocations: 119.5 kB / 450.5 MB, free: 14.07 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004734/0.5531, allocations: 169.3 kB / 450.7 MB, free: 13.9 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.82e-05/0.5531, allocations: 23.72 kB / 450.7 MB, free: 13.88 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005459/0.5537, allocations: 190.9 kB / 450.9 MB, free: 13.68 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.5537, allocations: 7.938 kB / 450.9 MB, free: 13.68 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5537, allocations: 0 / 450.9 MB, free: 13.68 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.5537, allocations: 3.984 kB / 450.9 MB, free: 13.67 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.5542, allocations: 261.9 kB / 451.2 MB, free: 13.38 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5542, allocations: 0 / 451.2 MB, free: 13.38 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003769/0.5546, allocations: 39.97 kB / 451.2 MB, free: 13.34 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.5546, allocations: 0.9375 kB / 451.2 MB, free: 13.34 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.5546, allocations: 4 kB / 451.2 MB, free: 13.34 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.5547, allocations: 0 / 451.2 MB, free: 13.34 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.5547, allocations: 3.984 kB / 451.2 MB, free: 13.33 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007097/0.5554, allocations: 276.8 kB / 451.5 MB, free: 13.04 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.5556, allocations: 112.7 kB / 451.6 MB, free: 12.91 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.403e-05/0.5556, allocations: 4 kB / 451.6 MB, free: 12.91 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.5558, allocations: 8 kB / 451.6 MB, free: 12.9 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.5559, allocations: 7.984 kB / 451.6 MB, free: 12.89 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.5559, allocations: 11.98 kB / 451.6 MB, free: 12.88 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002641/0.5562, allocations: 169.1 kB / 451.8 MB, free: 12.72 MB / 347.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5562, allocations: 0 / 451.8 MB, free: 12.72 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004987/0.5567, allocations: 71.77 kB / 451.9 MB, free: 12.65 MB / 347.1 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.002051/0.5588, allocations: 1.064 MB / 452.9 MB, free: 11.61 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0004505/0.5593, allocations: 132.7 kB / 453 MB, free: 11.48 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5593, allocations: 0 / 453 MB, free: 11.48 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.5595, allocations: 75.88 kB / 453.1 MB, free: 11.41 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005129/0.56, allocations: 35.91 kB / 453.2 MB, free: 11.37 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.5617, allocations: 0.5169 MB / 453.7 MB, free: 10.81 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.5622, allocations: 0.7594 MB / 454.4 MB, free: 10.02 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.5624, allocations: 71.41 kB / 454.5 MB, free: 9.957 MB / 347.1 MB Notification: Performance of SimCode: time 1.403e-06/0.5624, allocations: 0 / 454.5 MB, free: 9.957 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.824/3.386, allocations: 4.128 MB / 458.6 MB, free: 5.832 MB / 347.1 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