Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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.1_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.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002067/0.002067, allocations: 194.8 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.824/1.824, allocations: 205.1 MB / 222.1 MB, free: 4.691 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 43.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3739, allocations: 46.63 MB / 324.9 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01375/0.3877, allocations: 9.497 MB / 334.4 MB, free: 10.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009173/0.397, allocations: 3.076 MB / 337.4 MB, free: 7.484 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003303/0.4005, allocations: 31.88 kB / 337.5 MB, free: 7.453 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003875/0.4044, allocations: 0.5246 MB / 338 MB, free: 6.926 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004445/0.4089, allocations: 496.4 kB / 338.5 MB, free: 6.438 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00174/0.4107, allocations: 279.7 kB / 338.7 MB, free: 6.164 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00444/0.4151, allocations: 1.755 MB / 340.5 MB, free: 4.402 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001748/0.4169, allocations: 0.6297 MB / 341.1 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001643/0.4186, allocations: 0.6771 MB / 341.8 MB, free: 3.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/0.4202, allocations: 0.7389 MB / 342.5 MB, free: 2.328 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006488/0.4209, allocations: 156 kB / 342.7 MB, free: 2.176 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.422, allocations: 196 kB / 342.9 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000548/0.4225, allocations: 338.8 kB / 343.2 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002188/0.4247, allocations: 0.8048 MB / 344 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003366/0.4281, allocations: 1.958 MB / 346 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.4282, allocations: 0 / 346 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4282, allocations: 0 / 346 MB, free: 14.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.072e-05/0.4282, allocations: 0 / 346 MB, free: 14.88 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003968/0.4322, allocations: 1.796 MB / 347.8 MB, free: 13.01 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.4323, allocations: 16.03 kB / 347.8 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006312/0.4329, allocations: 195 kB / 348 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.4343, allocations: 0.8172 MB / 348.8 MB, free: 11.94 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.4344, allocations: 112.4 kB / 348.9 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001646/0.4346, allocations: 120 kB / 349 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.4369, allocations: 1.142 MB / 350.2 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.781e-05/0.437, allocations: 0 / 350.2 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.4371, allocations: 48 kB / 350.2 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.4371, allocations: 24 kB / 350.2 MB, free: 10.4 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/0.4388, allocations: 0.7652 MB / 351 MB, free: 9.637 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007214/0.446, allocations: 3.945 MB / 355 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.4477, allocations: 0.585 MB / 355.5 MB, free: 4.898 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004888/0.4482, allocations: 267.5 kB / 355.8 MB, free: 4.637 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.87e-05/0.4482, allocations: 12.5 kB / 355.8 MB, free: 4.625 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008132/0.4491, allocations: 295 kB / 356.1 MB, free: 4.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 3.086e-06/0.4491, allocations: 4 kB / 356.1 MB, free: 4.316 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.005199/0.4543, allocations: 2.08 MB / 358.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003741/0.4547, allocations: 475.2 kB / 358.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.4566, allocations: 1.101 MB / 359.7 MB, free: 464 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.039e-05/0.4567, allocations: 45.7 kB / 359.8 MB, free: 412 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007405/0.4575, allocations: 0.6466 MB / 360.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.4577, allocations: 228.8 kB / 360.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003833/0.4581, allocations: 194.8 kB / 360.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002328/0.4584, allocations: 341.9 kB / 361.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006006/0.459, allocations: 250.5 kB / 361.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.4603, allocations: 0.7169 MB / 362.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/0.462, allocations: 0.9375 MB / 363.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.926e-05/0.4621, allocations: 7.938 kB / 363.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002859/0.4649, allocations: 1.145 MB / 364.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.905e-05/0.465, allocations: 67.39 kB / 364.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.4651, allocations: 15.94 kB / 364.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006922/0.4658, allocations: 161.8 kB / 364.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006852/0.4665, allocations: 207.6 kB / 364.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005473/0.472, allocations: 3.895 MB / 368.6 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.4735, allocations: 75.95 kB / 368.6 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.487e-05/0.4736, allocations: 44 kB / 368.7 MB, free: 6.777 MB / 302.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0007188/0.4743, allocations: 301.6 kB / 369 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.4746, allocations: 126.5 kB / 369.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/0.4761, allocations: 0.696 MB / 369.8 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.4762, allocations: 8 kB / 369.8 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.4762, allocations: 4 kB / 369.8 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001436/0.4776, allocations: 0.9529 MB / 370.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.481, allocations: 1.798 MB / 372.6 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.481, allocations: 7.938 kB / 372.6 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/0.4815, allocations: 107.8 kB / 372.7 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004793/0.482, allocations: 134 kB / 372.8 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.4821, allocations: 16 kB / 372.8 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003897/0.486, allocations: 3.58 MB / 376.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.486, allocations: 7.969 kB / 376.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002188/0.4882, allocations: 1.053 MB / 377.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005914/0.4888, allocations: 255.6 kB / 377.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.489, allocations: 12 kB / 377.7 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006514/0.4896, allocations: 51.95 kB / 377.8 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.4898, allocations: 56.42 kB / 377.8 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.981e-05/0.4898, allocations: 16 kB / 377.9 MB, free: 13.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001355/0.4912, allocations: 0.7445 MB / 378.6 MB, free: 12.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4912, allocations: 0 / 378.6 MB, free: 12.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001423/0.4926, allocations: 312 kB / 378.9 MB, free: 11.99 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003786/0.493, allocations: 135.1 kB / 379 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002616/0.4957, allocations: 1.127 MB / 380.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.4957, allocations: 0 / 380.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.4968, allocations: 0.5457 MB / 380.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.4987, allocations: 328.4 kB / 381 MB, free: 9.781 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005167/0.5039, allocations: 2.699 MB / 383.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.505, allocations: 1.086 MB / 384.8 MB, free: 5.914 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008256/0.5059, allocations: 145.8 kB / 385 MB, free: 5.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/0.5061, allocations: 75.44 kB / 385 MB, free: 5.695 MB / 318.1 MB Notification: Performance of SimCode: time 1.392e-06/0.5061, allocations: 0 / 385 MB, free: 5.695 MB / 318.1 MB Notification: Performance of Templates: time 0.03411/0.5402, allocations: 17.84 MB / 402.9 MB, free: 3.82 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)