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.001531/0.001531, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002105/0.002105, allocations: 191 kB / 16.14 MB, free: 6.707 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.62/1.62, allocations: 205.1 MB / 222 MB, free: 4.758 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.00132/0.00132, allocations: 51.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3393, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01262/0.3519, allocations: 9.493 MB / 334.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007915/0.3599, allocations: 3.103 MB / 337.3 MB, free: 7.512 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.3623, allocations: 27.88 kB / 337.3 MB, free: 7.484 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001759/0.3641, allocations: 0.5128 MB / 337.8 MB, free: 6.969 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0017/0.3658, allocations: 492.5 kB / 338.3 MB, free: 6.484 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007472/0.3666, allocations: 287.6 kB / 338.6 MB, free: 6.203 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0018/0.3684, allocations: 1.665 MB / 340.2 MB, free: 4.531 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007837/0.3692, allocations: 0.5454 MB / 340.8 MB, free: 3.961 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008521/0.37, allocations: 0.6223 MB / 341.4 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007304/0.3708, allocations: 0.7077 MB / 342.1 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001619/0.3709, allocations: 108 kB / 342.2 MB, free: 2.52 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000369/0.3713, allocations: 144 kB / 342.4 MB, free: 2.379 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002395/0.3716, allocations: 282.8 kB / 342.6 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000762/0.3723, allocations: 0.754 MB / 343.4 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00175/0.3741, allocations: 1.919 MB / 345.3 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.3741, allocations: 4 kB / 345.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3741, allocations: 0 / 345.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.191e-05/0.3742, allocations: 0 / 345.3 MB, free: 15.41 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.003324/0.3775, allocations: 1.797 MB / 347.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.3775, allocations: 12.03 kB / 347.1 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006243/0.3782, allocations: 195 kB / 347.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.3795, allocations: 0.8133 MB / 348.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.3796, allocations: 116.4 kB / 348.2 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.3798, allocations: 116 kB / 348.4 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.3817, allocations: 1.142 MB / 349.5 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.341e-05/0.3818, allocations: 3.984 kB / 349.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.772e-05/0.3819, allocations: 48 kB / 349.6 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.3819, allocations: 24 kB / 349.6 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.3834, allocations: 0.7574 MB / 350.3 MB, free: 10.19 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.00575/0.3892, allocations: 3.941 MB / 354.3 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.3907, allocations: 0.5893 MB / 354.9 MB, free: 5.449 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004685/0.3912, allocations: 266.9 kB / 355.1 MB, free: 5.188 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.3912, allocations: 12.55 kB / 355.1 MB, free: 5.176 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006114/0.3918, allocations: 295 kB / 355.4 MB, free: 4.871 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 2.815e-06/0.3919, allocations: 4 kB / 355.4 MB, free: 4.867 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.004709/0.3966, allocations: 2.08 MB / 357.5 MB, free: 2.691 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002287/0.3968, allocations: 479.2 kB / 358 MB, free: 2.113 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001553/0.3984, allocations: 1.101 MB / 359.1 MB, free: 1 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.952e-05/0.3984, allocations: 45.7 kB / 359.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005194/0.399, allocations: 0.6388 MB / 359.8 MB, free: 308 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.3992, allocations: 236.7 kB / 360 MB, free: 68 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/0.3994, allocations: 198.7 kB / 360.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3996, allocations: 341.9 kB / 360.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005195/0.4001, allocations: 246.5 kB / 360.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008638/0.401, allocations: 0.7169 MB / 361.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.4023, allocations: 0.9453 MB / 362.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.4023, allocations: 7.938 kB / 362.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002033/0.4044, allocations: 1.145 MB / 363.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.602e-05/0.4044, allocations: 59.41 kB / 363.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.4045, allocations: 12 kB / 363.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006241/0.4051, allocations: 173.7 kB / 363.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006507/0.4058, allocations: 203.7 kB / 364 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004276/0.41, allocations: 3.549 MB / 367.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.4112, allocations: 67.86 kB / 367.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.071e-05/0.4113, allocations: 56.08 kB / 367.7 MB, free: 7.672 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.000598/0.4119, allocations: 293.6 kB / 368 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.4121, allocations: 130.4 kB / 368.1 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001655/0.4137, allocations: 0.7038 MB / 368.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.4138, allocations: 8 kB / 368.8 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4138, allocations: 0 / 368.8 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001333/0.4151, allocations: 0.9607 MB / 369.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.4183, allocations: 1.782 MB / 371.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.4183, allocations: 8.062 kB / 371.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000493/0.4188, allocations: 108 kB / 371.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004995/0.4193, allocations: 133.8 kB / 371.8 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.602e-05/0.4193, allocations: 12 kB / 371.8 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003782/0.4231, allocations: 3.282 MB / 375.1 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4232, allocations: 4.031 kB / 375.1 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.425, allocations: 1.045 MB / 376.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000535/0.4255, allocations: 251.6 kB / 376.4 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001437/0.4257, allocations: 23.92 kB / 376.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006347/0.4263, allocations: 47.97 kB / 376.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.4265, allocations: 56.42 kB / 376.5 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.184e-05/0.4266, allocations: 16.12 kB / 376.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.4277, allocations: 0.7484 MB / 377.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4277, allocations: 3.938 kB / 377.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001211/0.4289, allocations: 308.1 kB / 377.6 MB, free: 13.21 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.0003127/0.4293, allocations: 143 kB / 377.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002085/0.4314, allocations: 1.087 MB / 378.8 MB, free: 11.92 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4314, allocations: 5.812 kB / 378.8 MB, free: 11.92 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008776/0.4323, allocations: 0.5526 MB / 379.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.4337, allocations: 311.4 kB / 379.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003973/0.4377, allocations: 2.675 MB / 382.3 MB, free: 8.316 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006338/0.4384, allocations: 1.086 MB / 383.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005708/0.4389, allocations: 141.8 kB / 383.6 MB, free: 7.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.4391, allocations: 75.44 kB / 383.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4391, allocations: 8 kB / 383.7 MB, free: 6.977 MB / 318.1 MB Notification: Performance of Templates: time 0.03034/0.4695, allocations: 16.97 MB / 400.6 MB, free: 5.977 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)