Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001375/0.001375, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.01324/0.01324, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.957/1.957, allocations: 205.4 MB / 222.4 MB, free: 5.801 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.0006275/0.0006276, allocations: 8 kB / 279.5 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3568, allocations: 47.59 MB / 327 MB, free: 1.219 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01124/0.3681, allocations: 8.985 MB / 336 MB, free: 10.07 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006842/0.375, allocations: 3.007 MB / 339 MB, free: 7.25 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001758/0.3768, allocations: 27.94 kB / 339.1 MB, free: 7.223 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001991/0.3788, allocations: 0.5089 MB / 339.6 MB, free: 6.711 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002294/0.3811, allocations: 0.4886 MB / 340.1 MB, free: 6.219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008381/0.382, allocations: 279.7 kB / 340.3 MB, free: 5.945 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003009/0.385, allocations: 1.669 MB / 342 MB, free: 4.27 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.3861, allocations: 0.5415 MB / 342.5 MB, free: 3.703 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001131/0.3872, allocations: 0.5639 MB / 343.1 MB, free: 3.137 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008943/0.3882, allocations: 0.6608 MB / 343.8 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.3883, allocations: 84 kB / 343.8 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003345/0.3887, allocations: 119.9 kB / 344 MB, free: 2.273 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.3889, allocations: 258.8 kB / 344.2 MB, free: 2.02 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000841/0.3898, allocations: 0.7402 MB / 345 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001981/0.3917, allocations: 1.864 MB / 346.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3918, allocations: 0 / 346.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.14e-06/0.3918, allocations: 0 / 346.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.301e-05/0.3918, allocations: 3.938 kB / 346.8 MB, free: 15.39 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.002964/0.3948, allocations: 1.548 MB / 348.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3948, allocations: 8.031 kB / 348.4 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005812/0.3954, allocations: 199 kB / 348.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.3968, allocations: 0.821 MB / 349.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/0.3969, allocations: 116.4 kB / 349.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000162/0.3971, allocations: 124 kB / 349.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/0.3992, allocations: 1.146 MB / 350.8 MB, free: 11.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.714e-05/0.3993, allocations: 8 kB / 350.8 MB, free: 11.22 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-05/0.3994, allocations: 44 kB / 350.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.3994, allocations: 24 kB / 350.9 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.401, allocations: 0.7808 MB / 351.6 MB, free: 10.38 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.006566/0.4076, allocations: 3.973 MB / 355.6 MB, free: 6.199 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.4092, allocations: 0.601 MB / 356.2 MB, free: 5.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005665/0.4098, allocations: 282.9 kB / 356.5 MB, free: 5.312 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.946e-05/0.4099, allocations: 12.55 kB / 356.5 MB, free: 5.301 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007151/0.4106, allocations: 303.1 kB / 356.8 MB, free: 4.988 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 3.637e-06/0.4106, allocations: 0 / 356.8 MB, free: 4.988 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.005035/0.4156, allocations: 2.131 MB / 358.9 MB, free: 2.762 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002501/0.4159, allocations: 475.2 kB / 359.4 MB, free: 2.188 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.4175, allocations: 1.105 MB / 360.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.132e-05/0.4176, allocations: 37.7 kB / 360.5 MB, free: 1.027 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005465/0.4182, allocations: 0.6545 MB / 361.2 MB, free: 372 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.4183, allocations: 232.7 kB / 361.4 MB, free: 136 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.4185, allocations: 85.67 kB / 361.5 MB, free: 44 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.4187, allocations: 341.9 kB / 361.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005519/0.4193, allocations: 254.5 kB / 362.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009133/0.4202, allocations: 0.7247 MB / 362.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.4217, allocations: 0.957 MB / 363.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.4217, allocations: 11.94 kB / 363.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002294/0.424, allocations: 1.161 MB / 364.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.682e-05/0.4241, allocations: 67.39 kB / 365 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.4241, allocations: 12 kB / 365 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006707/0.4248, allocations: 169.7 kB / 365.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007228/0.4255, allocations: 215.6 kB / 365.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004419/0.43, allocations: 3.549 MB / 368.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.4313, allocations: 75.91 kB / 369 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.648e-05/0.4313, allocations: 55.98 kB / 369.1 MB, free: 7.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.0006972/0.4321, allocations: 289.6 kB / 369.3 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002109/0.4323, allocations: 126.4 kB / 369.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.4339, allocations: 0.7311 MB / 370.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.4339, allocations: 7.984 kB / 370.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.4339, allocations: 4 kB / 370.2 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001384/0.4353, allocations: 0.9686 MB / 371.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.4385, allocations: 1.806 MB / 373 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.4385, allocations: 7.938 kB / 373 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004915/0.439, allocations: 116 kB / 373.1 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004459/0.4395, allocations: 125.6 kB / 373.2 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.4395, allocations: 12 kB / 373.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003855/0.4434, allocations: 3.306 MB / 376.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4434, allocations: 0 / 376.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002283/0.4457, allocations: 1.077 MB / 377.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004695/0.4462, allocations: 255.5 kB / 377.9 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.4463, allocations: 16 kB / 377.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006215/0.4469, allocations: 51.97 kB / 377.9 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.4471, allocations: 56.42 kB / 378 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.409e-05/0.4471, allocations: 20 kB / 378 MB, free: 14.26 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.4482, allocations: 0.7484 MB / 378.8 MB, free: 13.51 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4482, allocations: 0 / 378.8 MB, free: 13.51 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001399/0.4496, allocations: 312.1 kB / 379.1 MB, free: 13.2 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.0003627/0.45, allocations: 127.1 kB / 379.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.4522, allocations: 1.115 MB / 380.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.4522, allocations: 4 kB / 380.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009836/0.4532, allocations: 0.5613 MB / 380.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.4552, allocations: 308.7 kB / 381.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004784/0.46, allocations: 2.837 MB / 384 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000766/0.4608, allocations: 1.082 MB / 385.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007435/0.4615, allocations: 149.8 kB / 385.2 MB, free: 6.867 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.4617, allocations: 75.44 kB / 385.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4617, allocations: 0 / 385.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of Templates: time 0.03641/0.4981, allocations: 16.84 MB / 402.2 MB, free: 5.918 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)