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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001464/0.001465, allocations: 185 kB / 8.354 MB, free: 0.7305 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.284/1.284, allocations: 194.4 MB / 203.1 MB, free: 13.02 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.001761/0.001761, allocations: 116 kB / 248.1 MB, free: 24 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.456e-05/1.458e-05, allocations: 4 kB / 298.1 MB, free: 35.49 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07157/0.0716, allocations: 44.5 MB / 342.6 MB, free: 6.977 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2694/0.3411, allocations: 93.74 MB / 436.3 MB, free: 6.777 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000177/0.3413, allocations: 85.73 kB / 436.4 MB, free: 6.766 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07807/0.4194, allocations: 29.89 MB / 466.3 MB, free: 1.641 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.4194, allocations: 4 kB / 466.3 MB, free: 1.637 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001016/0.4195, allocations: 35.92 kB / 466.3 MB, free: 1.602 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.002938/0.4225, allocations: 1.343 MB / 467.7 MB, free: 288 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.4225, allocations: 8.031 kB / 467.7 MB, free: 280 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008181/0.4233, allocations: 202.4 kB / 467.9 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.4254, allocations: 0.8369 MB / 468.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.4255, allocations: 75.84 kB / 468.8 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002035/0.4257, allocations: 75.33 kB / 468.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001462/0.4272, allocations: 0.6287 MB / 469.5 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.4288, allocations: 0.9288 MB / 470.4 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/0.4289, allocations: 4 kB / 470.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.198e-05/0.429, allocations: 7.938 kB / 470.4 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.429, allocations: 28 kB / 470.5 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005896/0.4349, allocations: 3.702 MB / 474.2 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.4362, allocations: 0.5233 MB / 474.7 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/0.4366, allocations: 227 kB / 474.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.337e-05/0.4367, allocations: 13.3 kB / 474.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004607/0.4371, allocations: 253.9 kB / 475.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.216e-06/0.4371, allocations: 0 / 475.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.002696/0.4398, allocations: 1.395 MB / 476.6 MB, free: 8.668 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001928/0.4401, allocations: 483.2 kB / 477 MB, free: 8.086 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.4411, allocations: 0.7232 MB / 477.8 MB, free: 7.344 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.699e-05/0.4412, allocations: 29.7 kB / 477.8 MB, free: 7.309 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004909/0.4417, allocations: 0.646 MB / 478.4 MB, free: 6.652 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.4419, allocations: 228.7 kB / 478.7 MB, free: 6.426 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.442, allocations: 0 / 478.7 MB, free: 6.426 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4421, allocations: 349.9 kB / 479 MB, free: 6.078 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/0.4424, allocations: 190.6 kB / 479.2 MB, free: 5.895 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006607/0.4431, allocations: 0.6482 MB / 479.8 MB, free: 5.039 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000522/0.4436, allocations: 300.3 kB / 480.1 MB, free: 4.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/0.4436, allocations: 4 kB / 480.1 MB, free: 4.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001773/0.4454, allocations: 0.9462 MB / 481.1 MB, free: 3.781 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.754e-05/0.4455, allocations: 63.41 kB / 481.1 MB, free: 3.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/0.4455, allocations: 12 kB / 481.1 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006881/0.4462, allocations: 185.8 kB / 481.3 MB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007427/0.447, allocations: 219.6 kB / 481.5 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004034/0.451, allocations: 3.413 MB / 485 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009528/0.452, allocations: 59.88 kB / 485 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.4521, allocations: 51.98 kB / 485.1 MB, free: 15.54 MB / 346.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.0002118/0.4523, allocations: 144.7 kB / 485.2 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002812/0.4526, allocations: 106.8 kB / 485.3 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/0.454, allocations: 0.6204 MB / 485.9 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.454, allocations: 8 kB / 485.9 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.454, allocations: 11.94 kB / 486 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001063/0.4551, allocations: 0.8787 MB / 486.8 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002824/0.4579, allocations: 1.591 MB / 488.4 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.458, allocations: 4.031 kB / 488.4 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/0.4585, allocations: 111.9 kB / 488.5 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004367/0.4589, allocations: 129.6 kB / 488.7 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/0.459, allocations: 8 kB / 488.7 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002999/0.462, allocations: 3.14 MB / 491.8 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.462, allocations: 4 kB / 491.8 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.4636, allocations: 1.036 MB / 492.8 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004606/0.4641, allocations: 235.7 kB / 493.1 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.4643, allocations: 12 kB / 493.1 MB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006107/0.4649, allocations: 39.91 kB / 493.1 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.4651, allocations: 56.47 kB / 493.2 MB, free: 6.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.697e-05/0.4651, allocations: 20 kB / 493.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009252/0.4661, allocations: 0.5364 MB / 493.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4661, allocations: 0 / 493.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001283/0.4674, allocations: 292.1 kB / 494 MB, free: 6.008 MB / 346.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.000552/0.4679, allocations: 310.8 kB / 494.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001923/0.4699, allocations: 0.9627 MB / 495.3 MB, free: 4.695 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4699, allocations: 4 kB / 495.3 MB, free: 4.691 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007241/0.4706, allocations: 0.4908 MB / 495.8 MB, free: 4.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.472, allocations: 248.5 kB / 496 MB, free: 3.938 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.4754, allocations: 1.564 MB / 497.6 MB, free: 2.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000721/0.4761, allocations: 1.096 MB / 498.7 MB, free: 1.191 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007146/0.4768, allocations: 128.5 kB / 498.8 MB, free: 1.062 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.4771, allocations: 71.42 kB / 498.9 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4771, allocations: 0 / 498.9 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of Templates: time 0.0266/0.5037, allocations: 14.22 MB / 0.5011 GB, free: 2.758 MB / 362.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)