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.000937/0.0009371, allocations: 86.02 kB / 15.06 MB, free: 1.09 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.0009361/0.0009364, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.827/1.827, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005509/0.0005511, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3024, allocations: 47.59 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.00855/0.311, allocations: 8.443 MB / 334.9 MB, free: 10.78 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005755/0.3168, allocations: 2.87 MB / 337.8 MB, free: 8.172 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.3185, allocations: 27.88 kB / 337.8 MB, free: 8.145 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002156/0.3206, allocations: 485.2 kB / 338.3 MB, free: 7.668 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002736/0.3234, allocations: 480.5 kB / 338.8 MB, free: 7.195 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.3245, allocations: 219.7 kB / 339 MB, free: 6.98 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002486/0.327, allocations: 1.584 MB / 340.6 MB, free: 5.391 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.3283, allocations: 495.4 kB / 341.1 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.3293, allocations: 0.5563 MB / 341.6 MB, free: 4.328 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001157/0.3305, allocations: 0.6299 MB / 342.2 MB, free: 3.695 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003628/0.3309, allocations: 84 kB / 342.3 MB, free: 3.613 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007072/0.3316, allocations: 124 kB / 342.4 MB, free: 3.492 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003485/0.3319, allocations: 239 kB / 342.7 MB, free: 3.258 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007025/0.3326, allocations: 313 kB / 343 MB, free: 2.945 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00203/0.3347, allocations: 1.519 MB / 344.5 MB, free: 1.422 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3347, allocations: 0 / 344.5 MB, free: 1.422 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3347, allocations: 0 / 344.5 MB, free: 1.422 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.675e-05/0.3348, allocations: 0 / 344.5 MB, free: 1.422 MB / 270.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.003626/0.3385, allocations: 1.563 MB / 346.1 MB, free: 15.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.3385, allocations: 8.031 kB / 346.1 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008239/0.3393, allocations: 206 kB / 346.3 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001573/0.3409, allocations: 0.7776 MB / 347 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/0.3411, allocations: 119.8 kB / 347.2 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/0.3413, allocations: 111.9 kB / 347.3 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002095/0.3434, allocations: 1.139 MB / 348.4 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.066e-05/0.3435, allocations: 7.984 kB / 348.4 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.242e-05/0.3436, allocations: 52 kB / 348.5 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.357e-05/0.3436, allocations: 31.89 kB / 348.5 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.3453, allocations: 0.7652 MB / 349.3 MB, free: 12.44 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.006878/0.3522, allocations: 3.961 MB / 353.2 MB, free: 8.277 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.3538, allocations: 0.5965 MB / 353.8 MB, free: 7.668 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005107/0.3543, allocations: 278.9 kB / 354.1 MB, free: 7.395 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.706e-05/0.3544, allocations: 13.11 kB / 354.1 MB, free: 7.383 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006785/0.355, allocations: 307 kB / 354.4 MB, free: 7.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 3.406e-06/0.3551, allocations: 3.938 kB / 354.4 MB, free: 7.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.005006/0.3601, allocations: 2.124 MB / 356.5 MB, free: 4.848 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002759/0.3604, allocations: 479.2 kB / 357 MB, free: 4.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.3624, allocations: 1.094 MB / 358.1 MB, free: 3.164 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.199e-05/0.3625, allocations: 37.7 kB / 358.1 MB, free: 3.121 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007841/0.3633, allocations: 0.6428 MB / 358.8 MB, free: 2.469 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002449/0.3635, allocations: 232.7 kB / 359 MB, free: 2.238 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.744e-05/0.3636, allocations: 24 kB / 359 MB, free: 2.215 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3638, allocations: 345.9 kB / 359.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000568/0.3643, allocations: 250.5 kB / 359.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009292/0.3653, allocations: 0.7208 MB / 360.3 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007077/0.366, allocations: 410.4 kB / 360.7 MB, free: 288 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.366, allocations: 3.938 kB / 360.7 MB, free: 284 kB / 286.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002065/0.3681, allocations: 1.138 MB / 361.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.906e-05/0.3682, allocations: 63.41 kB / 361.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/0.3682, allocations: 12 kB / 361.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006439/0.3689, allocations: 169.8 kB / 362.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006766/0.3695, allocations: 207.7 kB / 362.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004198/0.3738, allocations: 3.553 MB / 365.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009954/0.3748, allocations: 79.95 kB / 365.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-05/0.3749, allocations: 47.94 kB / 366 MB, free: 10.71 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (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 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005697/0.3755, allocations: 293.7 kB / 366.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.3757, allocations: 122.5 kB / 366.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.3772, allocations: 0.7194 MB / 367.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.3772, allocations: 12 kB / 367.1 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3772, allocations: 0 / 367.1 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001339/0.3786, allocations: 0.9647 MB / 368.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.3817, allocations: 1.813 MB / 369.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.3817, allocations: 0 / 369.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004998/0.3822, allocations: 111.9 kB / 370 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004373/0.3827, allocations: 129.8 kB / 370.1 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.3828, allocations: 16 kB / 370.2 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003526/0.3863, allocations: 3.302 MB / 373.5 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.3863, allocations: 7.969 kB / 373.5 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.3882, allocations: 1.065 MB / 374.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007674/0.389, allocations: 255.5 kB / 374.8 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003892/0.3894, allocations: 16 kB / 374.8 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007713/0.3902, allocations: 51.95 kB / 374.9 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.3903, allocations: 56.42 kB / 374.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.455e-05/0.3904, allocations: 27.92 kB / 374.9 MB, free: 1.207 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001258/0.3916, allocations: 0.7328 MB / 375.7 MB, free: 480 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3917, allocations: 4 kB / 375.7 MB, free: 476 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001398/0.3931, allocations: 307.9 kB / 376 MB, free: 164 kB / 302.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 (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.0002596/0.3933, allocations: 131.2 kB / 376.1 MB, free: 24 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.3955, allocations: 1.116 MB / 377.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3955, allocations: 0 / 377.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.3966, allocations: 0.557 MB / 377.8 MB, free: 14.28 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/0.3987, allocations: 316.6 kB / 378.1 MB, free: 13.97 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004597/0.4033, allocations: 2.698 MB / 380.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007785/0.4041, allocations: 1.082 MB / 381.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007529/0.4048, allocations: 149.8 kB / 382 MB, free: 9.965 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002197/0.405, allocations: 79.44 kB / 382.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4051, allocations: 0 / 382.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of Templates: time 0.02972/0.4348, allocations: 16.26 MB / 398.3 MB, free: 9.594 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)