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.01123/0.01123, allocations: 101 kB / 15.73 MB, free: 6.047 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.001698/0.001699, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.894/1.894, allocations: 205.1 MB / 222.5 MB, free: 4.398 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.001469/0.001469, allocations: 50.08 kB / 326.6 MB, free: 14.59 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1204, allocations: 46.63 MB / 373.2 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01046/0.1309, allocations: 9.538 MB / 382.7 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005/0.1359, allocations: 3.112 MB / 385.8 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008684/0.1368, allocations: 31.88 kB / 385.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001573/0.1384, allocations: 0.6056 MB / 386.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001553/0.14, allocations: 0.5932 MB / 387.1 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006634/0.1407, allocations: 319.5 kB / 387.4 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001872/0.1425, allocations: 1.763 MB / 389.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008364/0.1434, allocations: 0.6413 MB / 389.8 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008616/0.1443, allocations: 0.681 MB / 390.5 MB, free: 20 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009986/0.1453, allocations: 0.7389 MB / 391.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002394/0.1455, allocations: 160 kB / 391.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004545/0.146, allocations: 200 kB / 391.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003002/0.1463, allocations: 330.8 kB / 391.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008923/0.1472, allocations: 0.801 MB / 392.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00237/0.1496, allocations: 1.989 MB / 394.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1496, allocations: 4 kB / 394.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1496, allocations: 0 / 394.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.828e-05/0.1496, allocations: 0 / 394.7 MB, free: 11.8 MB / 334.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.003433/0.1531, allocations: 1.789 MB / 396.5 MB, free: 9.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.1531, allocations: 8.031 kB / 396.5 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000595/0.1537, allocations: 199 kB / 396.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.1552, allocations: 0.8366 MB / 397.5 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.1554, allocations: 112.4 kB / 397.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/0.1556, allocations: 112.1 kB / 397.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/0.1576, allocations: 1.146 MB / 398.9 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.511e-05/0.1576, allocations: 3.906 kB / 398.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.1577, allocations: 51.98 kB / 398.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.518e-05/0.1577, allocations: 31.98 kB / 399 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/0.1593, allocations: 0.7574 MB / 399.7 MB, free: 6.543 MB / 334.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.005887/0.1652, allocations: 3.922 MB / 403.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.1668, allocations: 0.5773 MB / 404.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005403/0.1674, allocations: 270.9 kB / 404.5 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.985e-05/0.1675, allocations: 16.55 kB / 404.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006663/0.1681, allocations: 291.4 kB / 404.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 3.596e-06/0.1681, allocations: 3.938 kB / 404.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.004996/0.1731, allocations: 2.08 MB / 406.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002267/0.1734, allocations: 475.2 kB / 407.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001536/0.1749, allocations: 1.105 MB / 408.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.913e-05/0.175, allocations: 37.7 kB / 408.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005164/0.1755, allocations: 0.6389 MB / 409.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.1757, allocations: 236.7 kB / 409.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002552/0.176, allocations: 198.8 kB / 409.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1761, allocations: 341.9 kB / 409.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005274/0.1767, allocations: 242.5 kB / 410.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008948/0.1776, allocations: 0.713 MB / 410.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.1789, allocations: 0.9414 MB / 411.8 MB, free: 9.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.1789, allocations: 7.938 kB / 411.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002127/0.1811, allocations: 1.142 MB / 412.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.674e-05/0.1812, allocations: 71.28 kB / 413 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.1812, allocations: 15.98 kB / 413 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006086/0.1818, allocations: 173.8 kB / 413.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006804/0.1825, allocations: 207.6 kB / 413.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00432/0.1868, allocations: 3.881 MB / 417.2 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009618/0.1878, allocations: 63.81 kB / 417.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-05/0.1879, allocations: 52.09 kB / 417.4 MB, free: 3.719 MB / 350.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.0005605/0.1885, allocations: 293.6 kB / 417.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.1886, allocations: 126.5 kB / 417.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.1902, allocations: 0.7038 MB / 418.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.1902, allocations: 8 kB / 418.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1902, allocations: 0 / 418.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00147/0.1917, allocations: 0.9646 MB / 419.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.1946, allocations: 1.782 MB / 421.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.1946, allocations: 4 kB / 421.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000475/0.1951, allocations: 103.9 kB / 421.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000428/0.1956, allocations: 137.8 kB / 421.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/0.1956, allocations: 12 kB / 421.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0035/0.1991, allocations: 3.592 MB / 425.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.1991, allocations: 8.016 kB / 425.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.2011, allocations: 1.046 MB / 426.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005075/0.2017, allocations: 251.6 kB / 426.4 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.2018, allocations: 20 kB / 426.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006349/0.2025, allocations: 39.95 kB / 426.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.2026, allocations: 56.38 kB / 426.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.036e-05/0.2027, allocations: 23.98 kB / 426.5 MB, free: 9.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001139/0.2038, allocations: 0.7406 MB / 427.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2038, allocations: 4 kB / 427.3 MB, free: 9.246 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001137/0.205, allocations: 316.1 kB / 427.6 MB, free: 8.938 MB / 366.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.000256/0.2052, allocations: 127.2 kB / 427.7 MB, free: 8.805 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.2074, allocations: 1.102 MB / 428.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.2074, allocations: 1.938 kB / 428.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009937/0.2084, allocations: 0.5515 MB / 429.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.2099, allocations: 324.4 kB / 429.7 MB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004254/0.2141, allocations: 2.223 MB / 431.9 MB, free: 4.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007803/0.2149, allocations: 1.082 MB / 433 MB, free: 3.363 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008087/0.2158, allocations: 149.8 kB / 433.1 MB, free: 3.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.2159, allocations: 75.44 kB / 433.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of SimCode: time 1.794e-06/0.2159, allocations: 0 / 433.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of Templates: time 0.03302/0.249, allocations: 18.18 MB / 451.4 MB, free: 0.9219 MB / 382.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)