Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [: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.004074/0.004074, allocations: 174.7 kB / 7.449 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.449/1.449, allocations: 170.6 MB / 178.4 MB, free: 15.45 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.001593/0.001593, allocations: 115.8 kB / 217.7 MB, free: 8.199 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.644e-06, allocations: 0 / 261.7 MB, free: 26.62 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0714/0.07142, allocations: 38.75 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2387/0.3102, allocations: 88.51 MB / 389 MB, free: 12.29 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001911/0.3104, allocations: 81.39 kB / 389.1 MB, free: 12.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.07941/0.3898, allocations: 29.9 MB / 419 MB, free: 3.773 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.046e-05/0.39, allocations: 24 kB / 419 MB, free: 3.75 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.002538/0.3925, allocations: 1.379 MB / 420.4 MB, free: 2.391 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.3926, allocations: 8.031 kB / 420.4 MB, free: 2.383 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006732/0.3932, allocations: 198.1 kB / 420.6 MB, free: 2.188 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001652/0.3949, allocations: 0.8448 MB / 421.4 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.395, allocations: 79.83 kB / 421.5 MB, free: 1.387 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.3952, allocations: 75.16 kB / 421.6 MB, free: 1.316 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001224/0.3964, allocations: 0.6353 MB / 422.2 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.398, allocations: 0.9354 MB / 423.2 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/0.3981, allocations: 7.844 kB / 423.2 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.291e-05/0.3981, allocations: 4 kB / 423.2 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.3982, allocations: 27.98 kB / 423.2 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005973/0.4041, allocations: 3.716 MB / 426.9 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.4048, allocations: 328.3 kB / 427.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.4051, allocations: 218.8 kB / 427.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.252e-05/0.4052, allocations: 8.5 kB / 427.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003987/0.4056, allocations: 247.7 kB / 427.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 2.805e-06/0.4056, allocations: 0 / 427.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.00299/0.4086, allocations: 1.391 MB / 429.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002646/0.4089, allocations: 471.3 kB / 429.5 MB, free: 9.176 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.41, allocations: 0.7349 MB / 430.3 MB, free: 8.422 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.4101, allocations: 25.7 kB / 430.3 MB, free: 8.391 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003867/0.4105, allocations: 0.5093 MB / 430.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.4107, allocations: 232.6 kB / 431 MB, free: 7.641 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.4107, allocations: 0 / 431 MB, free: 7.641 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4109, allocations: 345.9 kB / 431.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.4112, allocations: 194.6 kB / 431.6 MB, free: 7.109 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007458/0.412, allocations: 0.6485 MB / 432.2 MB, free: 6.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005238/0.4125, allocations: 302.9 kB / 432.5 MB, free: 5.953 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.4125, allocations: 4 kB / 432.5 MB, free: 5.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00176/0.4143, allocations: 0.9263 MB / 433.4 MB, free: 5.012 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.4143, allocations: 4 kB / 433.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.4143, allocations: 15.98 kB / 433.5 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006676/0.415, allocations: 182.8 kB / 433.6 MB, free: 4.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007412/0.4158, allocations: 215.6 kB / 433.9 MB, free: 4.598 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003984/0.4198, allocations: 3.352 MB / 437.2 MB, free: 1.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009791/0.4208, allocations: 59.94 kB / 437.3 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.981e-05/0.4209, allocations: 44 kB / 437.3 MB, free: 0.9102 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000185/0.421, allocations: 149.4 kB / 437.5 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.4212, allocations: 114.7 kB / 437.6 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.4225, allocations: 0.6172 MB / 438.2 MB, free: 4 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-05/0.4225, allocations: 8.047 kB / 438.2 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.4226, allocations: 0 / 438.2 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001064/0.4236, allocations: 0.8679 MB / 439.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/0.4263, allocations: 1.572 MB / 440.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4263, allocations: 4 kB / 440.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005527/0.4269, allocations: 120 kB / 440.8 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004662/0.4274, allocations: 122.4 kB / 440.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.294e-05/0.4274, allocations: 11.94 kB / 440.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003115/0.4306, allocations: 3.116 MB / 444 MB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.4306, allocations: 0 / 444 MB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00176/0.4323, allocations: 1.033 MB / 445 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005374/0.4329, allocations: 235.7 kB / 445.3 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.4331, allocations: 4 kB / 445.3 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005721/0.4336, allocations: 39.88 kB / 445.3 MB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.4338, allocations: 52.42 kB / 445.4 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.992e-05/0.4339, allocations: 20 kB / 445.4 MB, free: 8.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0008842/0.4348, allocations: 0.5325 MB / 445.9 MB, free: 7.742 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001303/0.4361, allocations: 292.1 kB / 446.2 MB, free: 7.457 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.000488/0.4366, allocations: 308.7 kB / 446.5 MB, free: 7.152 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001997/0.4386, allocations: 0.8744 MB / 447.4 MB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.4386, allocations: 4.125 kB / 447.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008055/0.4394, allocations: 477.1 kB / 447.8 MB, free: 5.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.4406, allocations: 244.5 kB / 448.1 MB, free: 5.523 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003639/0.4443, allocations: 1.607 MB / 449.7 MB, free: 3.855 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009481/0.4452, allocations: 1.17 MB / 450.9 MB, free: 2.652 MB / 330.7 MB Notification: Performance of SimCode: time 9.01e-07/0.4452, allocations: 0 / 450.9 MB, free: 2.652 MB / 330.7 MB Notification: Performance of Templates: time 0.02763/0.4729, allocations: 14.61 MB / 465.5 MB, free: 4.012 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)