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.001032/0.001032, allocations: 181.3 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008641/0.0008645, allocations: 94.59 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002849/0.0002848, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2419, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09281/0.3347, allocations: 79.49 MB / 455.4 MB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.335, allocations: 71.97 kB / 455.5 MB, free: 1.094 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01582/0.3508, allocations: 5.809 MB / 461.3 MB, free: 11.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3509, allocations: 0 / 461.3 MB, free: 11.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.526e-05/0.3509, allocations: 8 kB / 461.3 MB, free: 11.28 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.0007818/0.3517, allocations: 0.5227 MB / 461.8 MB, free: 10.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3518, allocations: 11.97 kB / 461.8 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.446e-05/0.3518, allocations: 50.55 kB / 461.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.352, allocations: 27.72 kB / 461.9 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.3524, allocations: 263.5 kB / 462.1 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.129e-05/0.3524, allocations: 19.89 kB / 462.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.3524, allocations: 16 kB / 462.2 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.3527, allocations: 161.4 kB / 462.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.3528, allocations: 0 / 462.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.3528, allocations: 4 kB / 462.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.3528, allocations: 4 kB / 462.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002505/0.3531, allocations: 131.7 kB / 462.5 MB, free: 9.969 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009341/0.354, allocations: 0.5821 MB / 463.1 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.3543, allocations: 166.2 kB / 463.2 MB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.3544, allocations: 4 kB / 463.2 MB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.3546, allocations: 117.4 kB / 463.3 MB, free: 9.035 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.3546, allocations: 4 kB / 463.3 MB, free: 9.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004846/0.3551, allocations: 233.6 kB / 463.6 MB, free: 8.797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.3552, allocations: 63.36 kB / 463.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/0.3554, allocations: 232.2 kB / 463.9 MB, free: 8.488 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.3555, allocations: 29.7 kB / 463.9 MB, free: 8.453 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.676e-05/0.3556, allocations: 144.3 kB / 464 MB, free: 8.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.745e-05/0.3556, allocations: 67.03 kB / 464.1 MB, free: 8.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.3557, allocations: 8 kB / 464.1 MB, free: 8.234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3558, allocations: 330.8 kB / 464.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.3559, allocations: 55.97 kB / 464.5 MB, free: 7.848 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.3561, allocations: 89.5 kB / 464.6 MB, free: 7.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.3563, allocations: 69.05 kB / 464.6 MB, free: 7.688 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3563, allocations: 4 kB / 464.6 MB, free: 7.684 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003471/0.3566, allocations: 207.9 kB / 464.8 MB, free: 7.477 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.3566, allocations: 8.094 kB / 464.8 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3567, allocations: 0 / 464.8 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.3567, allocations: 4 kB / 464.9 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.3569, allocations: 43.92 kB / 464.9 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.3569, allocations: 7.953 kB / 464.9 MB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.357, allocations: 35.61 kB / 464.9 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.3571, allocations: 4 kB / 464.9 MB, free: 7.375 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.0001513/0.3572, allocations: 155.8 kB / 465.1 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.3573, allocations: 19.81 kB / 465.1 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004107/0.3577, allocations: 215.7 kB / 465.3 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3577, allocations: 4 kB / 465.3 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3577, allocations: 0 / 465.3 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3577, allocations: 3.953 kB / 465.3 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.358, allocations: 301.3 kB / 465.6 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.358, allocations: 0 / 465.6 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.3582, allocations: 39.98 kB / 465.7 MB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3582, allocations: 3.938 kB / 465.7 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.3583, allocations: 8 kB / 465.7 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3583, allocations: 4 kB / 465.7 MB, free: 6.578 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3583, allocations: 0 / 465.7 MB, free: 6.578 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005123/0.3588, allocations: 315.3 kB / 466 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.219e-05/0.3589, allocations: 100.9 kB / 466.1 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/0.3589, allocations: 8 kB / 466.1 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.756e-05/0.3591, allocations: 12.05 kB / 466.1 MB, free: 6.117 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.3591, allocations: 15.97 kB / 466.1 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.3591, allocations: 8 kB / 466.1 MB, free: 6.094 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001888/0.3593, allocations: 188.5 kB / 466.3 MB, free: 5.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3593, allocations: 0 / 466.3 MB, free: 5.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002932/0.3596, allocations: 71.84 kB / 466.4 MB, free: 5.84 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.00171/0.3613, allocations: 1.157 MB / 467.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003191/0.3617, allocations: 147.8 kB / 467.7 MB, free: 4.535 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3617, allocations: 0 / 467.7 MB, free: 4.535 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.3618, allocations: 83.84 kB / 467.8 MB, free: 4.453 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.3621, allocations: 48.81 kB / 467.8 MB, free: 4.402 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.3644, allocations: 1.888 MB / 469.7 MB, free: 2.453 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.3648, allocations: 0.7677 MB / 470.5 MB, free: 1.66 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000113/0.3649, allocations: 29.94 kB / 470.5 MB, free: 1.633 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.365, allocations: 75.41 kB / 470.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.365, allocations: 0 / 470.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01652/0.3816, allocations: 4.837 MB / 475.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.3818, allocations: 212.9 kB / 475.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.216, allocations: 0 / 475.6 MB, free: 12.47 MB / 362.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