Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001091/0.001091, allocations: 197.4 kB / 8.142 MB, free: 2.191 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.266/1.266, allocations: 194.2 MB / 202.8 MB, free: 8.672 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.001865/0.001865, allocations: 112.8 kB / 247.7 MB, free: 6.43 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.891e-06/6.001e-06, allocations: 0 / 297.6 MB, free: 8.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07013/0.07016, allocations: 44.49 MB / 342.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1977/0.2679, allocations: 93.66 MB / 435.7 MB, free: 1.754 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.2682, allocations: 86.58 kB / 435.8 MB, free: 1.711 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.08171/0.3499, allocations: 29.84 MB / 465.6 MB, free: 9.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.657e-05/0.35, allocations: 24.66 kB / 465.7 MB, free: 9.414 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.002486/0.3525, allocations: 1.389 MB / 467.1 MB, free: 8.047 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.3525, allocations: 8.031 kB / 467.1 MB, free: 8.039 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006753/0.3532, allocations: 198.2 kB / 467.3 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001612/0.3548, allocations: 0.8404 MB / 468.1 MB, free: 7.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.355, allocations: 82.89 kB / 468.2 MB, free: 7.051 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.3551, allocations: 71.98 kB / 468.3 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00125/0.3564, allocations: 0.6331 MB / 468.9 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.358, allocations: 0.9324 MB / 469.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/0.358, allocations: 0.6875 kB / 469.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.946e-05/0.3581, allocations: 4 kB / 469.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.518e-05/0.3581, allocations: 24 kB / 469.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005802/0.3639, allocations: 3.741 MB / 473.6 MB, free: 2.719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006023/0.3646, allocations: 325.3 kB / 473.9 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.3649, allocations: 219.7 kB / 474.1 MB, free: 2.375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.018e-05/0.365, allocations: 12.44 kB / 474.1 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003936/0.3654, allocations: 237.2 kB / 474.4 MB, free: 2.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 2.134e-06/0.3654, allocations: 4 kB / 474.4 MB, free: 2.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.002671/0.3681, allocations: 1.384 MB / 475.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001913/0.3683, allocations: 479.3 kB / 476.2 MB, free: 224 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.3693, allocations: 0.7233 MB / 476.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.284e-05/0.3694, allocations: 33.7 kB / 477 MB, free: 15.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003526/0.3698, allocations: 0.5015 MB / 477.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.37, allocations: 232.6 kB / 477.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.605e-05/0.37, allocations: 4 kB / 477.7 MB, free: 14.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3702, allocations: 345.8 kB / 478 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/0.3705, allocations: 198.6 kB / 478.2 MB, free: 14.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006846/0.3712, allocations: 0.6485 MB / 478.9 MB, free: 13.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005271/0.3718, allocations: 298.9 kB / 479.2 MB, free: 13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.3718, allocations: 4 kB / 479.2 MB, free: 13 MB / 362.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001902/0.3737, allocations: 0.9222 MB / 480.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3737, allocations: 5.25 kB / 480.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.3737, allocations: 16 kB / 480.1 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006877/0.3744, allocations: 186.6 kB / 480.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007842/0.3752, allocations: 215.6 kB / 480.5 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004047/0.3793, allocations: 3.369 MB / 483.9 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008009/0.3801, allocations: 60.02 kB / 483.9 MB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.558e-05/0.3802, allocations: 48 kB / 484 MB, free: 7.941 MB / 362.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.0001712/0.3804, allocations: 148.7 kB / 484.1 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.3805, allocations: 106.7 kB / 484.2 MB, free: 7.684 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.3819, allocations: 0.6133 MB / 484.9 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.3819, allocations: 8 kB / 484.9 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.3819, allocations: 11.98 kB / 484.9 MB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00115/0.383, allocations: 0.8718 MB / 485.7 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002575/0.3856, allocations: 1.584 MB / 487.3 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.3857, allocations: 0 / 487.3 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000571/0.3862, allocations: 116.1 kB / 487.4 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004653/0.3867, allocations: 129.6 kB / 487.6 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.139e-05/0.3868, allocations: 4 kB / 487.6 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003107/0.3899, allocations: 3.112 MB / 490.7 MB, free: 0.793 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.3899, allocations: 4.031 kB / 490.7 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001612/0.3915, allocations: 1.037 MB / 491.7 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003581/0.3919, allocations: 235.7 kB / 492 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/0.3921, allocations: 7.984 kB / 492 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006539/0.3927, allocations: 35.97 kB / 492 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.3929, allocations: 44.44 kB / 492 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.346e-05/0.3929, allocations: 19.98 kB / 492.1 MB, free: 15.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007604/0.3937, allocations: 0.5287 MB / 492.6 MB, free: 14.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001022/0.3947, allocations: 292.2 kB / 492.9 MB, free: 14.49 MB / 378.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.0004304/0.3951, allocations: 318 kB / 493.2 MB, free: 14.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001722/0.3969, allocations: 0.8897 MB / 494.1 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3969, allocations: 0 / 494.1 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007569/0.3977, allocations: 470.6 kB / 494.5 MB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.3987, allocations: 236.6 kB / 494.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/0.4021, allocations: 1.584 MB / 496.4 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009404/0.403, allocations: 1.174 MB / 497.5 MB, free: 9.707 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.4031, allocations: 0 / 497.5 MB, free: 9.707 MB / 378.7 MB Notification: Performance of Templates: time 0.02724/0.4303, allocations: 14.69 MB / 0.5002 GB, free: 11.03 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)