Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.004471/0.004471, allocations: 183.8 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.46/1.46, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001693/0.001693, allocations: 113.1 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.554e-06/7.575e-06, allocations: 4 kB / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0932/0.09322, allocations: 38.75 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2717/0.365, allocations: 68.82 MB / 369.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.3653, allocations: 70.97 kB / 369.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.0136/0.3789, allocations: 4.763 MB / 374.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.3789, allocations: 12 kB / 374.2 MB, free: 11.67 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006998/0.3796, allocations: 0.5143 MB / 374.7 MB, free: 11.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3797, allocations: 12.03 kB / 374.7 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.3798, allocations: 31.7 kB / 374.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.3802, allocations: 241.1 kB / 375 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.3802, allocations: 8.203 kB / 375 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.692e-05/0.3803, allocations: 12 kB / 375 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002431/0.3805, allocations: 110.2 kB / 375.1 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.3808, allocations: 124.1 kB / 375.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.3808, allocations: 3.906 kB / 375.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.3808, allocations: 0 / 375.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.3808, allocations: 4 kB / 375.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009004/0.3817, allocations: 0.5444 MB / 375.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.3819, allocations: 108 kB / 375.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.3821, allocations: 73.28 kB / 375.9 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.3821, allocations: 0 / 375.9 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.3822, allocations: 100.5 kB / 376 MB, free: 9.891 MB / 266.7 MB Notification: Performance of pre-optimization done (n=18): time 1.293e-06/0.3823, allocations: 0 / 376 MB, free: 9.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=18): time 0.0003346/0.3826, allocations: 155.7 kB / 376.2 MB, free: 9.762 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.3826, allocations: 51.41 kB / 376.2 MB, free: 9.699 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.3829, allocations: 215.6 kB / 376.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.3829, allocations: 25.7 kB / 376.5 MB, free: 9.484 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.286e-05/0.383, allocations: 130.5 kB / 376.6 MB, free: 9.355 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.172e-05/0.3831, allocations: 60.62 kB / 376.7 MB, free: 9.305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.927e-06/0.3831, allocations: 0 / 376.7 MB, free: 9.305 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3832, allocations: 338 kB / 377 MB, free: 8.977 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.299e-05/0.3833, allocations: 52.55 kB / 377 MB, free: 8.941 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.3834, allocations: 79.78 kB / 377.1 MB, free: 8.879 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.3836, allocations: 61.7 kB / 377.2 MB, free: 8.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3836, allocations: 0 / 377.2 MB, free: 8.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003015/0.3839, allocations: 199.5 kB / 377.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.3839, allocations: 4 kB / 377.4 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3839, allocations: 4 kB / 377.4 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.3839, allocations: 7.969 kB / 377.4 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.3842, allocations: 43.91 kB / 377.4 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3842, allocations: 4 kB / 377.4 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.3843, allocations: 11.84 kB / 377.4 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.3843, allocations: 19.25 kB / 377.5 MB, free: 8.59 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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 8.417e-05/0.3844, allocations: 105 kB / 377.6 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.3845, allocations: 23.66 kB / 377.6 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003325/0.3848, allocations: 181.3 kB / 377.8 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3848, allocations: 3.984 kB / 377.8 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3848, allocations: 4 kB / 377.8 MB, free: 8.309 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.3848, allocations: 0 / 377.8 MB, free: 8.309 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002786/0.3851, allocations: 255.8 kB / 378 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3851, allocations: 0 / 378 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.3853, allocations: 43.3 kB / 378.1 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3854, allocations: 0 / 378.1 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.3854, allocations: 7.906 kB / 378.1 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3854, allocations: 0 / 378.1 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3854, allocations: 4 kB / 378.1 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003871/0.3858, allocations: 249.9 kB / 378.3 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.273e-05/0.3859, allocations: 108 kB / 378.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.3859, allocations: 0 / 378.4 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.752e-05/0.386, allocations: 7.906 kB / 378.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.3861, allocations: 8.156 kB / 378.4 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.3861, allocations: 11.12 kB / 378.5 MB, free: 7.652 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001433/0.3862, allocations: 176.1 kB / 378.6 MB, free: 7.508 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002978/0.3866, allocations: 71.64 kB / 378.7 MB, free: 7.441 MB / 266.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: 2 ($whenCondition1,lossTable.nextTimeEvent) * Number of discrete states: 1 (lossTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005249/0.3871, allocations: 248.1 kB / 378.9 MB, free: 7.195 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000267/0.3874, allocations: 169.9 kB / 379.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3874, allocations: 0 / 379.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.3875, allocations: 66.61 kB / 379.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.3877, allocations: 22.67 kB / 379.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008077/0.3886, allocations: 409 kB / 379.6 MB, free: 6.605 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004066/0.389, allocations: 0.7703 MB / 380.4 MB, free: 5.812 MB / 266.7 MB Notification: Performance of SimCode: time 3.566e-06/0.389, allocations: 4 kB / 380.4 MB, free: 5.809 MB / 266.7 MB Notification: Performance of Templates: time 0.005893/0.3949, allocations: 2.441 MB / 382.8 MB, free: 3.375 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)