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.001101/0.001101, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009683/0.000968, allocations: 177.3 kB / 15.95 MB, free: 216 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.634/1.634, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0005006/0.0005007, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3004, allocations: 47.59 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009364/0.3099, allocations: 7.614 MB / 334.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006786/0.3167, allocations: 2.953 MB / 337 MB, free: 8.914 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00152/0.3182, allocations: 27.94 kB / 337.1 MB, free: 8.887 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001651/0.3199, allocations: 493.5 kB / 337.5 MB, free: 8.402 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002119/0.322, allocations: 0.631 MB / 338.2 MB, free: 7.77 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007304/0.3228, allocations: 227.7 kB / 338.4 MB, free: 7.547 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002427/0.3252, allocations: 1.253 MB / 339.6 MB, free: 6.293 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008162/0.3261, allocations: 0.4916 MB / 340.1 MB, free: 5.781 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008336/0.3269, allocations: 0.5098 MB / 340.6 MB, free: 5.27 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007561/0.3277, allocations: 0.595 MB / 341.2 MB, free: 4.672 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.3278, allocations: 76 kB / 341.3 MB, free: 4.598 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003505/0.3282, allocations: 112 kB / 341.4 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002105/0.3284, allocations: 235 kB / 341.6 MB, free: 4.258 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.3287, allocations: 313 kB / 342 MB, free: 3.945 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001377/0.3301, allocations: 1.433 MB / 343.4 MB, free: 2.508 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3301, allocations: 4 kB / 343.4 MB, free: 2.504 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3301, allocations: 0 / 343.4 MB, free: 2.504 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.342e-05/0.3302, allocations: 0 / 343.4 MB, free: 2.504 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.003144/0.3333, allocations: 1.547 MB / 344.9 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3334, allocations: 16.02 kB / 345 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005496/0.3339, allocations: 186.1 kB / 345.1 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/0.3354, allocations: 0.7542 MB / 345.9 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.3356, allocations: 119.8 kB / 346 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/0.3358, allocations: 107.9 kB / 346.1 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.3378, allocations: 1.127 MB / 347.2 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.485e-05/0.3378, allocations: 11.94 kB / 347.3 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-05/0.3379, allocations: 44 kB / 347.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.574e-05/0.338, allocations: 31.95 kB / 347.3 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.3395, allocations: 0.773 MB / 348.1 MB, free: 13.58 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.006035/0.3455, allocations: 3.875 MB / 352 MB, free: 9.508 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001553/0.3471, allocations: 0.6009 MB / 352.6 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.3472, allocations: 12.56 kB / 352.6 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006615/0.3478, allocations: 299.1 kB / 352.9 MB, free: 8.578 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 3.306e-06/0.3478, allocations: 0 / 352.9 MB, free: 8.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.004438/0.3523, allocations: 2.113 MB / 355 MB, free: 6.371 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002142/0.3525, allocations: 479.2 kB / 355.5 MB, free: 5.793 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001307/0.3538, allocations: 1.012 MB / 356.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.976e-05/0.3539, allocations: 37.7 kB / 356.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005062/0.3544, allocations: 0.6467 MB / 357.2 MB, free: 4.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.3546, allocations: 228.7 kB / 357.4 MB, free: 3.844 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.3547, allocations: 24 kB / 357.4 MB, free: 3.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.3549, allocations: 345.9 kB / 357.7 MB, free: 3.477 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005281/0.3554, allocations: 254.4 kB / 358 MB, free: 3.227 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.3564, allocations: 0.7092 MB / 358.7 MB, free: 2.312 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000729/0.3572, allocations: 410.3 kB / 359.1 MB, free: 1.898 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.3572, allocations: 4 kB / 359.1 MB, free: 1.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001938/0.3591, allocations: 1.134 MB / 360.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.531e-05/0.3592, allocations: 67.39 kB / 360.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.3592, allocations: 12 kB / 360.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005992/0.3598, allocations: 165.7 kB / 360.5 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006847/0.3605, allocations: 215.6 kB / 360.7 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004609/0.3652, allocations: 3.6 MB / 364.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.3663, allocations: 72.06 kB / 364.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/0.3663, allocations: 51.98 kB / 364.4 MB, free: 12.27 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.00059/0.3669, allocations: 293.6 kB / 364.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.3671, allocations: 122.5 kB / 364.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/0.3686, allocations: 0.7233 MB / 365.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3686, allocations: 7.984 kB / 365.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3686, allocations: 7.938 kB / 365.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001392/0.37, allocations: 0.9685 MB / 366.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/0.3729, allocations: 1.747 MB / 368.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3729, allocations: 0 / 368.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004734/0.3734, allocations: 120 kB / 368.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004096/0.3738, allocations: 117.6 kB / 368.5 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/0.3738, allocations: 19.98 kB / 368.5 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003267/0.3771, allocations: 3.326 MB / 371.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.3771, allocations: 7.953 kB / 371.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.379, allocations: 1.165 MB / 373 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005454/0.3796, allocations: 239.6 kB / 373.3 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.3797, allocations: 16 kB / 373.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005908/0.3803, allocations: 47.97 kB / 373.3 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.3805, allocations: 56.47 kB / 373.4 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.856e-05/0.3805, allocations: 20 kB / 373.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009667/0.3815, allocations: 0.6742 MB / 374.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3815, allocations: 0 / 374.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001201/0.3827, allocations: 300 kB / 374.4 MB, free: 1.727 MB / 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.0002716/0.383, allocations: 147.2 kB / 374.5 MB, free: 1.574 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.3853, allocations: 1.104 MB / 375.6 MB, free: 436 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.3853, allocations: 4.375 kB / 375.6 MB, free: 432 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.3864, allocations: 0.5566 MB / 376.2 MB, free: 15.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.3876, allocations: 300.9 kB / 376.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/0.3925, allocations: 2.703 MB / 379.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008412/0.3934, allocations: 1.105 MB / 380.3 MB, free: 11.65 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007092/0.3941, allocations: 137.2 kB / 380.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.3943, allocations: 71.44 kB / 380.5 MB, free: 11.45 MB / 318.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3943, allocations: 4 kB / 380.5 MB, free: 11.44 MB / 318.1 MB Notification: Performance of Templates: time 0.02864/0.4229, allocations: 15.28 MB / 395.8 MB, free: 12.14 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: