Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor") [: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 3.2.2+maint.om/package.mo): time 0.001062/0.001062, allocations: 191.7 kB / 8.139 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.094/1.094, allocations: 194.2 MB / 202.8 MB, free: 8.652 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001806/0.001805, allocations: 116.6 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.19e-06/5.22e-06, allocations: 0 / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06956/0.06959, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1844/0.254, allocations: 73.69 MB / 415.7 MB, free: 21.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001675/0.2542, allocations: 77.34 kB / 415.8 MB, free: 21.31 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2331:7-2332:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableValueNoDer. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$lossTable.getTableTimeTmax. Notification: Performance of FrontEnd: time 0.01331/0.2676, allocations: 4.853 MB / 420.7 MB, free: 17.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.2676, allocations: 8 kB / 420.7 MB, free: 17.37 MB / 314.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.0005785/0.2682, allocations: 0.5329 MB / 421.2 MB, free: 16.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.2682, allocations: 12.03 kB / 421.2 MB, free: 16.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001545/0.2684, allocations: 35.61 kB / 421.3 MB, free: 16.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.2687, allocations: 260.5 kB / 421.5 MB, free: 16.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.2687, allocations: 8 kB / 421.5 MB, free: 16.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.681e-05/0.2688, allocations: 12 kB / 421.5 MB, free: 16.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000227/0.269, allocations: 108.8 kB / 421.6 MB, free: 16.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.2692, allocations: 136 kB / 421.8 MB, free: 16.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.2692, allocations: 4 kB / 421.8 MB, free: 16.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.2693, allocations: 0 / 421.8 MB, free: 16.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.2693, allocations: 7.984 kB / 421.8 MB, free: 16.26 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007649/0.2701, allocations: 0.5564 MB / 422.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001476/0.2702, allocations: 101.2 kB / 422.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.2703, allocations: 90.33 kB / 422.5 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.2704, allocations: 4 kB / 422.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001369/0.2705, allocations: 101.8 kB / 422.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 2.374e-06/0.2705, allocations: 4 kB / 422.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002834/0.2708, allocations: 161.5 kB / 422.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.776e-05/0.2708, allocations: 55.31 kB / 422.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.271, allocations: 213 kB / 423.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.271, allocations: 25.7 kB / 423.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.064e-05/0.2711, allocations: 127.1 kB / 423.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.2711, allocations: 69.56 kB / 423.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.2711, allocations: 0 / 423.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.227e-05/0.2712, allocations: 329.3 kB / 423.6 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.2713, allocations: 64.53 kB / 423.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.2714, allocations: 96.52 kB / 423.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.2716, allocations: 69.72 kB / 423.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2716, allocations: 0 / 423.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003223/0.2719, allocations: 234.3 kB / 424 MB, free: 14.26 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.2719, allocations: 11.94 kB / 424.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.2719, allocations: 3.984 kB / 424.1 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.2719, allocations: 4 kB / 424.1 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.2722, allocations: 46.84 kB / 424.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.2722, allocations: 4 kB / 424.1 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.2723, allocations: 21.88 kB / 424.1 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.2724, allocations: 8 kB / 424.1 MB, free: 14.16 MB / 314.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 1 * 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.875e-05/0.2724, allocations: 121.1 kB / 424.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.2725, allocations: 19.72 kB / 424.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002981/0.2728, allocations: 186.8 kB / 424.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2728, allocations: 0 / 424.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2728, allocations: 4 kB / 424.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2728, allocations: 3.984 kB / 424.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.273, allocations: 257.9 kB / 424.7 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.273, allocations: 0 / 424.7 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.2733, allocations: 42.64 kB / 424.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.2733, allocations: 7.938 kB / 424.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.2733, allocations: 0 / 424.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.2733, allocations: 4 kB / 424.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2733, allocations: 0 / 424.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004198/0.2737, allocations: 279.2 kB / 425 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-05/0.2738, allocations: 116.6 kB / 425.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.103e-05/0.2739, allocations: 6.125 kB / 425.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.274, allocations: 12.05 kB / 425.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.274, allocations: 11.67 kB / 425.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.274, allocations: 4 kB / 425.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001073/0.2742, allocations: 165.3 kB / 425.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002872/0.2745, allocations: 67.84 kB / 425.4 MB, free: 13 MB / 314.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.0005419/0.275, allocations: 286.8 kB / 425.7 MB, free: 12.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002772/0.2753, allocations: 202.7 kB / 425.9 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2753, allocations: 0 / 425.9 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.961e-05/0.2754, allocations: 73.75 kB / 426 MB, free: 12.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.2757, allocations: 39.31 kB / 426 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000739/0.2764, allocations: 416.1 kB / 426.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002082/0.2766, allocations: 0.7782 MB / 427.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2766, allocations: 0 / 427.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of Templates: time 0.005077/0.2817, allocations: 2.602 MB / 429.8 MB, free: 8.789 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)