Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 206.7 kB / 8.544 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008967/0.0008967, allocations: 92.03 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.111/0.1119, allocations: 56.9 MB / 343.2 MB, free: 8.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.2112, allocations: 51.47 MB / 394.7 MB, free: 5.051 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2336/0.4449, allocations: 81.17 MB / 475.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.4452, allocations: 77.58 kB / 476 MB, free: 10.99 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.0165/0.4617, allocations: 6.775 MB / 482.7 MB, free: 6.102 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.4617, allocations: 8 kB / 482.7 MB, free: 6.094 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.4619, allocations: 34.89 kB / 482.8 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.4623, allocations: 255.4 kB / 483 MB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.4623, allocations: 8 kB / 483 MB, free: 5.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.208e-05/0.4623, allocations: 12 kB / 483 MB, free: 5.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002235/0.4626, allocations: 115.6 kB / 483.2 MB, free: 5.695 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.4628, allocations: 128.5 kB / 483.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.4628, allocations: 0 / 483.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.4628, allocations: 0 / 483.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.4628, allocations: 4 kB / 483.3 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007571/0.4636, allocations: 0.5389 MB / 483.8 MB, free: 5.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.4638, allocations: 96.64 kB / 483.9 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.4639, allocations: 82.16 kB / 484 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.4639, allocations: 7.984 kB / 484 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001351/0.4641, allocations: 112.6 kB / 484.1 MB, free: 4.863 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.944e-06/0.4641, allocations: 0 / 484.1 MB, free: 4.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002936/0.4644, allocations: 160.3 kB / 484.3 MB, free: 4.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.885e-05/0.4644, allocations: 51.41 kB / 484.3 MB, free: 4.672 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.4646, allocations: 222.1 kB / 484.5 MB, free: 4.477 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.4646, allocations: 33.7 kB / 484.6 MB, free: 4.438 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.694e-05/0.4647, allocations: 126 kB / 484.7 MB, free: 4.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/0.4647, allocations: 60.23 kB / 484.7 MB, free: 4.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.035e-06/0.4647, allocations: 2.906 kB / 484.8 MB, free: 4.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.913e-05/0.4648, allocations: 340.5 kB / 485.1 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-05/0.4649, allocations: 45.12 kB / 485.1 MB, free: 3.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.961e-05/0.465, allocations: 84.47 kB / 485.2 MB, free: 3.836 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.491e-05/0.4651, allocations: 56.11 kB / 485.3 MB, free: 3.797 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4651, allocations: 0 / 485.3 MB, free: 3.797 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002565/0.4653, allocations: 191.5 kB / 485.5 MB, free: 3.645 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.4654, allocations: 4 kB / 485.5 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4654, allocations: 3.984 kB / 485.5 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.4654, allocations: 4 kB / 485.5 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.4656, allocations: 47.52 kB / 485.5 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.4656, allocations: 8 kB / 485.5 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.4658, allocations: 15.83 kB / 485.5 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.4658, allocations: 8 kB / 485.5 MB, free: 3.559 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 5.936e-05/0.4658, allocations: 112.8 kB / 485.7 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.846e-05/0.4659, allocations: 15.81 kB / 485.7 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002888/0.4662, allocations: 191.1 kB / 485.9 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4662, allocations: 4 kB / 485.9 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.4662, allocations: 0 / 485.9 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4662, allocations: 0 / 485.9 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.4664, allocations: 260 kB / 486.1 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.4664, allocations: 9.797 kB / 486.1 MB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.4666, allocations: 39.92 kB / 486.2 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4666, allocations: 0 / 486.2 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.4667, allocations: 0 / 486.2 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.4667, allocations: 4 kB / 486.2 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4667, allocations: 0 / 486.2 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003446/0.467, allocations: 276.9 kB / 486.4 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004424/0.4675, allocations: 0.7186 MB / 487.2 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.4675, allocations: 112.3 kB / 487.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.4676, allocations: 0 / 487.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.953e-05/0.4677, allocations: 12.67 kB / 487.3 MB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.562e-05/0.4677, allocations: 11.55 kB / 487.3 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.4677, allocations: 4 kB / 487.3 MB, free: 1.961 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001177/0.4679, allocations: 177.9 kB / 487.5 MB, free: 1.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008329/0.4687, allocations: 70.88 kB / 487.5 MB, free: 1.754 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.0005864/0.4693, allocations: 316.5 kB / 487.8 MB, free: 1.559 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.4695, allocations: 136 kB / 488 MB, free: 1.461 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4695, allocations: 0 / 488 MB, free: 1.461 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.4696, allocations: 71.81 kB / 488 MB, free: 1.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.4699, allocations: 37.33 kB / 488.1 MB, free: 1.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000751/0.4707, allocations: 418.3 kB / 488.5 MB, free: 1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.4709, allocations: 0.7898 MB / 489.3 MB, free: 196 kB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.471, allocations: 0 / 489.3 MB, free: 196 kB / 346.7 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat