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.001068/0.001068, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.009087/0.009088, allocations: 172 kB / 16.26 MB, free: 6.613 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.989/1.989, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.0005494/0.0005496, allocations: 12.28 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3075, allocations: 47.59 MB / 327 MB, free: 1.531 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01109/0.3186, allocations: 8.977 MB / 336 MB, free: 10.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007579/0.3263, allocations: 3.006 MB / 339 MB, free: 7.449 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001836/0.3282, allocations: 31.88 kB / 339.1 MB, free: 7.418 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001858/0.33, allocations: 0.5167 MB / 339.6 MB, free: 6.898 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002371/0.3324, allocations: 496.4 kB / 340.1 MB, free: 6.41 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.3335, allocations: 275.7 kB / 340.3 MB, free: 6.141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00306/0.3366, allocations: 1.669 MB / 342 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001079/0.3377, allocations: 0.5454 MB / 342.5 MB, free: 3.895 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009791/0.3387, allocations: 0.5756 MB / 343.1 MB, free: 3.316 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007687/0.3394, allocations: 0.653 MB / 343.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001345/0.3396, allocations: 84 kB / 343.9 MB, free: 2.578 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003106/0.3399, allocations: 127.9 kB / 344 MB, free: 2.453 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.3401, allocations: 246.8 kB / 344.2 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007122/0.3409, allocations: 0.7439 MB / 345 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001839/0.3427, allocations: 1.86 MB / 346.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.3427, allocations: 3.938 kB / 346.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3427, allocations: 0 / 346.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.3428, allocations: 4 kB / 346.8 MB, free: 15.58 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.0028/0.3456, allocations: 1.548 MB / 348.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.3456, allocations: 8.031 kB / 348.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000578/0.3462, allocations: 207 kB / 348.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.3475, allocations: 0.821 MB / 349.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.3477, allocations: 112.4 kB / 349.5 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/0.3478, allocations: 116 kB / 349.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/0.3498, allocations: 1.154 MB / 350.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.3498, allocations: 4 kB / 350.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.451e-05/0.3499, allocations: 44 kB / 350.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.306e-05/0.35, allocations: 24 kB / 350.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.3515, allocations: 0.7847 MB / 351.6 MB, free: 10.56 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.00586/0.3574, allocations: 3.965 MB / 355.6 MB, free: 6.391 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.3591, allocations: 0.601 MB / 356.2 MB, free: 5.781 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005146/0.3596, allocations: 278.9 kB / 356.5 MB, free: 5.508 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.004e-05/0.3597, allocations: 16.48 kB / 356.5 MB, free: 5.492 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006845/0.3604, allocations: 303.1 kB / 356.8 MB, free: 5.18 MB / 286.1 MB Notification: Performance of pre-optimization done (n=62): time 3.617e-06/0.3604, allocations: 0 / 356.8 MB, free: 5.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=65): time 0.005045/0.3654, allocations: 2.131 MB / 358.9 MB, free: 2.953 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003059/0.3657, allocations: 483.2 kB / 359.4 MB, free: 2.371 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.3675, allocations: 1.101 MB / 360.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002184/0.3677, allocations: 37.7 kB / 360.5 MB, free: 1.215 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006571/0.3684, allocations: 0.6467 MB / 361.2 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.3686, allocations: 232.7 kB / 361.4 MB, free: 336 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.3688, allocations: 81.67 kB / 361.5 MB, free: 248 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.369, allocations: 345.9 kB / 361.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005982/0.3696, allocations: 254.5 kB / 362.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.371, allocations: 0.7208 MB / 362.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.3726, allocations: 0.9609 MB / 363.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.3727, allocations: 11.88 kB / 363.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002523/0.3752, allocations: 1.165 MB / 364.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.917e-05/0.3753, allocations: 67.66 kB / 365 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/0.3753, allocations: 12 kB / 365 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000656/0.376, allocations: 165.5 kB / 365.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006888/0.3767, allocations: 215.6 kB / 365.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005069/0.3818, allocations: 3.552 MB / 368.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.3832, allocations: 80.02 kB / 369 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-05/0.3833, allocations: 47.98 kB / 369.1 MB, free: 7.977 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.0006284/0.384, allocations: 297.7 kB / 369.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.3841, allocations: 134.4 kB / 369.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001543/0.3857, allocations: 0.7194 MB / 370.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3857, allocations: 8 kB / 370.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3857, allocations: 0 / 370.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001411/0.3871, allocations: 0.9802 MB / 371.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/0.3902, allocations: 1.81 MB / 373 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3903, allocations: 3.938 kB / 373 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004819/0.3908, allocations: 115.8 kB / 373.1 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004315/0.3912, allocations: 129.8 kB / 373.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/0.3912, allocations: 12 kB / 373.3 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003402/0.3947, allocations: 3.286 MB / 376.5 MB, free: 0 / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.608e-05/0.3947, allocations: 4.078 kB / 376.5 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.3969, allocations: 1.081 MB / 377.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005877/0.3975, allocations: 255.6 kB / 377.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.3977, allocations: 19.98 kB / 377.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006517/0.3983, allocations: 47.97 kB / 377.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001961/0.3985, allocations: 60.42 kB / 378 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.674e-05/0.3986, allocations: 16 kB / 378 MB, free: 14.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001184/0.3998, allocations: 0.7484 MB / 378.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3998, allocations: 0 / 378.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001144/0.4009, allocations: 304 kB / 379.1 MB, free: 13.41 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.0002749/0.4012, allocations: 139.2 kB / 379.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.4034, allocations: 1.108 MB / 380.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.4034, allocations: 4 kB / 380.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.4044, allocations: 0.5606 MB / 380.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.4063, allocations: 316.8 kB / 381.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004544/0.4109, allocations: 2.826 MB / 384 MB, free: 8.336 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008791/0.4118, allocations: 1.089 MB / 385.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000871/0.4127, allocations: 149.8 kB / 385.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.4129, allocations: 75.44 kB / 385.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of SimCode: time 2.505e-06/0.4129, allocations: 0 / 385.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of Templates: time 0.03317/0.446, allocations: 16.84 MB / 402.2 MB, free: 6.109 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)