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.001103/0.001103, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.274/1.274, allocations: 194.3 MB / 208.4 MB, free: 6.703 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.001836/0.001836, allocations: 104.8 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.656e-05/2.659e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08775/0.0878, allocations: 44.5 MB / 349.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2726/0.3605, allocations: 94.4 MB / 443.8 MB, free: 1.207 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.3607, allocations: 84.28 kB / 443.9 MB, free: 1.164 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07998/0.4407, allocations: 30.3 MB / 474.2 MB, free: 7.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4407, allocations: 0 / 474.2 MB, free: 7.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.376e-05/0.4408, allocations: 24 kB / 474.3 MB, free: 7.637 MB / 330.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.002186/0.443, allocations: 1.351 MB / 475.6 MB, free: 6.309 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.4431, allocations: 16.03 kB / 475.6 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005363/0.4436, allocations: 202.4 kB / 475.8 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.445, allocations: 0.8231 MB / 476.6 MB, free: 5.402 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.4451, allocations: 119.1 kB / 476.8 MB, free: 5.312 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.4453, allocations: 114 kB / 476.9 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.447, allocations: 1.086 MB / 478 MB, free: 4.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.447, allocations: 8 kB / 478 MB, free: 4.402 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-05/0.4471, allocations: 45.88 kB / 478 MB, free: 4.391 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.4471, allocations: 27.95 kB / 478 MB, free: 4.363 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.4483, allocations: 0.6916 MB / 478.7 MB, free: 3.918 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005057/0.4534, allocations: 3.916 MB / 482.6 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.4546, allocations: 0.548 MB / 483.2 MB, free: 360 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003839/0.455, allocations: 243.7 kB / 483.4 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.595e-05/0.4551, allocations: 8.562 kB / 483.4 MB, free: 200 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004783/0.4556, allocations: 277.1 kB / 483.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 2.475e-06/0.4556, allocations: 0 / 483.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.002576/0.4582, allocations: 1.521 MB / 485.2 MB, free: 14.35 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001843/0.4584, allocations: 471.2 kB / 485.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.4595, allocations: 0.9156 MB / 486.6 MB, free: 12.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/0.4596, allocations: 37.7 kB / 486.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004557/0.46, allocations: 0.6427 MB / 487.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.4602, allocations: 232.7 kB / 487.5 MB, free: 11.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.929e-05/0.4603, allocations: 23.94 kB / 487.5 MB, free: 11.9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.4604, allocations: 345.9 kB / 487.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003816/0.4608, allocations: 222.6 kB / 488.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007033/0.4615, allocations: 0.6781 MB / 488.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005327/0.462, allocations: 381.3 kB / 489.1 MB, free: 10.06 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.4621, allocations: 4 kB / 489.1 MB, free: 10.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001819/0.4639, allocations: 1.128 MB / 490.3 MB, free: 8.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.464, allocations: 63.84 kB / 490.3 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.464, allocations: 12 kB / 490.3 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000654/0.4646, allocations: 205.5 kB / 490.5 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007058/0.4654, allocations: 215.7 kB / 490.8 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003952/0.4693, allocations: 3.533 MB / 494.3 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007858/0.4701, allocations: 75.95 kB / 494.4 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.426e-05/0.4702, allocations: 44.09 kB / 494.4 MB, free: 4.484 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,(3,88.9%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001842/0.4704, allocations: 188.5 kB / 494.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.4705, allocations: 126.5 kB / 494.7 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/0.4719, allocations: 0.6917 MB / 495.4 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.4719, allocations: 4 kB / 495.4 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4719, allocations: 4 kB / 495.4 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001135/0.4731, allocations: 0.9217 MB / 496.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00256/0.4756, allocations: 1.762 MB / 498.1 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.4756, allocations: 0 / 498.1 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004976/0.4762, allocations: 111.8 kB / 498.2 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004111/0.4766, allocations: 138 kB / 498.3 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.925e-05/0.4766, allocations: 16 kB / 498.4 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003041/0.4797, allocations: 3.267 MB / 0.4899 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.4797, allocations: 0 / 0.4899 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.4813, allocations: 1.117 MB / 0.491 GB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.4817, allocations: 247.6 kB / 0.4912 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.4819, allocations: 20 kB / 0.4912 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.4824, allocations: 43.97 kB / 0.4913 GB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.4826, allocations: 64.42 kB / 0.4913 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/0.4826, allocations: 16 kB / 0.4913 GB, free: 11.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000917/0.4835, allocations: 0.6904 MB / 0.492 GB, free: 10.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.773e-06/0.4835, allocations: 0 / 0.492 GB, free: 10.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001081/0.4846, allocations: 364 kB / 0.4924 GB, free: 10.11 MB / 362.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.0004645/0.4851, allocations: 360.8 kB / 0.4927 GB, free: 9.754 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00184/0.487, allocations: 1.038 MB / 0.4937 GB, free: 8.668 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.487, allocations: 3.906 kB / 0.4937 GB, free: 8.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007492/0.4877, allocations: 0.5284 MB / 0.4942 GB, free: 8.113 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.489, allocations: 294.1 kB / 0.4945 GB, free: 7.828 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002971/0.492, allocations: 1.608 MB / 0.4961 GB, free: 6.168 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006961/0.4927, allocations: 1.101 MB / 0.4972 GB, free: 5.039 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005937/0.4933, allocations: 141.8 kB / 0.4973 GB, free: 4.898 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.4935, allocations: 83.42 kB / 0.4974 GB, free: 4.816 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.4935, allocations: 3.938 kB / 0.4974 GB, free: 4.812 MB / 362.7 MB Notification: Performance of Templates: time 0.03041/0.5239, allocations: 18.87 MB / 0.5158 GB, free: 1.906 MB / 378.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)