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.001298/0.001298, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 197 kB / 16.53 MB, free: 6.664 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.718/1.718, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.002005/0.002005, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3555, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01164/0.3672, allocations: 9.551 MB / 334.9 MB, free: 10.24 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00697/0.3742, allocations: 3.112 MB / 338 MB, free: 7.215 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002232/0.3765, allocations: 31.88 kB / 338 MB, free: 7.184 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001993/0.3785, allocations: 0.5783 MB / 338.6 MB, free: 6.602 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002379/0.3809, allocations: 0.5503 MB / 339.1 MB, free: 6.047 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.382, allocations: 331.5 kB / 339.5 MB, free: 5.723 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00294/0.3849, allocations: 1.744 MB / 341.2 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009663/0.3859, allocations: 0.6375 MB / 341.8 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.3869, allocations: 0.6615 MB / 342.5 MB, free: 2.648 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008377/0.3878, allocations: 0.7428 MB / 343.2 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002082/0.388, allocations: 160 kB / 343.4 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004035/0.3884, allocations: 204 kB / 343.6 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002621/0.3887, allocations: 334.8 kB / 343.9 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007917/0.3895, allocations: 0.8048 MB / 344.7 MB, free: 420 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002126/0.3916, allocations: 1.958 MB / 346.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3916, allocations: 0 / 346.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3916, allocations: 0 / 346.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.3917, allocations: 0 / 346.7 MB, free: 14.44 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.003325/0.395, allocations: 1.792 MB / 348.5 MB, free: 12.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.3951, allocations: 8.031 kB / 348.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006396/0.3957, allocations: 203 kB / 348.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.397, allocations: 0.8288 MB / 349.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.3972, allocations: 108.4 kB / 349.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.3973, allocations: 116 kB / 349.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001918/0.3993, allocations: 1.142 MB / 350.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.518e-05/0.3993, allocations: 4 kB / 350.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.3994, allocations: 48 kB / 350.9 MB, free: 9.988 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.3994, allocations: 27.98 kB / 351 MB, free: 9.961 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.401, allocations: 0.7574 MB / 351.7 MB, free: 9.203 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.005826/0.4068, allocations: 3.949 MB / 355.7 MB, free: 5.051 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.4083, allocations: 0.5777 MB / 356.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000499/0.4089, allocations: 274.8 kB / 356.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.944e-05/0.4089, allocations: 12.55 kB / 356.5 MB, free: 4.184 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007062/0.4096, allocations: 299 kB / 356.8 MB, free: 3.879 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 3.347e-06/0.4096, allocations: 0 / 356.8 MB, free: 3.879 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.004782/0.4144, allocations: 2.077 MB / 358.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002285/0.4147, allocations: 475.2 kB / 359.4 MB, free: 1.133 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.4162, allocations: 1.109 MB / 360.5 MB, free: 12 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.015e-05/0.4163, allocations: 37.7 kB / 360.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005398/0.4168, allocations: 0.6466 MB / 361.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.417, allocations: 236.7 kB / 361.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.4173, allocations: 198.7 kB / 361.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4174, allocations: 341.9 kB / 361.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005397/0.418, allocations: 246.5 kB / 362.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008615/0.4188, allocations: 0.7091 MB / 362.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.4202, allocations: 0.9414 MB / 363.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-06/0.4202, allocations: 7.938 kB / 363.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002131/0.4223, allocations: 1.141 MB / 364.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.745e-05/0.4224, allocations: 67.39 kB / 365 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.4224, allocations: 15.98 kB / 365 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005859/0.423, allocations: 173.8 kB / 365.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/0.4237, allocations: 207.6 kB / 365.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004301/0.428, allocations: 3.877 MB / 369.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.4293, allocations: 67.97 kB / 369.3 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.415e-05/0.4294, allocations: 47.98 kB / 369.4 MB, free: 6.352 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.0007133/0.4302, allocations: 293.6 kB / 369.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.4304, allocations: 126.5 kB / 369.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001532/0.4319, allocations: 0.6999 MB / 370.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.4319, allocations: 4 kB / 370.5 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.432, allocations: 11.92 kB / 370.5 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001364/0.4333, allocations: 0.9529 MB / 371.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003159/0.4365, allocations: 1.802 MB / 373.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.4365, allocations: 4 kB / 373.3 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004952/0.437, allocations: 107.8 kB / 373.4 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004511/0.4375, allocations: 129.8 kB / 373.5 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.99e-05/0.4375, allocations: 12 kB / 373.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003611/0.4412, allocations: 3.595 MB / 377.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4412, allocations: 4.031 kB / 377.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.4433, allocations: 1.049 MB / 378.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005428/0.4438, allocations: 247.6 kB / 378.4 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.444, allocations: 23.98 kB / 378.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006161/0.4446, allocations: 35.97 kB / 378.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.4448, allocations: 60.42 kB / 378.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.4448, allocations: 20 kB / 378.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001168/0.446, allocations: 0.7406 MB / 379.3 MB, free: 11.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.446, allocations: 3.938 kB / 379.3 MB, free: 11.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001195/0.4472, allocations: 312 kB / 379.6 MB, free: 11.56 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.000291/0.4475, allocations: 135.1 kB / 379.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002497/0.45, allocations: 1.123 MB / 380.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.45, allocations: 0 / 380.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009796/0.451, allocations: 0.5447 MB / 381.4 MB, free: 9.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.4525, allocations: 340.2 kB / 381.7 MB, free: 9.352 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004641/0.4572, allocations: 2.246 MB / 384 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009095/0.4581, allocations: 1.086 MB / 385.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007/0.4588, allocations: 153.8 kB / 385.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.459, allocations: 79.44 kB / 385.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of SimCode: time 7.91e-07/0.459, allocations: 3.938 kB / 385.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of Templates: time 0.03395/0.493, allocations: 17.91 MB / 403.2 MB, free: 3.754 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)