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.01011/0.01011, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001698, allocations: 194.3 kB / 16.67 MB, free: 5.938 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.905/1.905, allocations: 205.1 MB / 222.6 MB, free: 4.484 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.001388/0.001388, allocations: 54.2 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1245, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01137/0.1359, allocations: 9.538 MB / 382.7 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006338/0.1423, allocations: 3.116 MB / 385.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.1436, allocations: 23.94 kB / 385.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.1454, allocations: 0.5899 MB / 386.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001689/0.1471, allocations: 0.558 MB / 387 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007638/0.1479, allocations: 323.5 kB / 387.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002088/0.15, allocations: 1.755 MB / 389.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008764/0.1509, allocations: 0.6412 MB / 389.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008971/0.1518, allocations: 0.6732 MB / 390.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000864/0.1526, allocations: 0.7389 MB / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000195/0.1529, allocations: 156 kB / 391.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004024/0.1533, allocations: 212 kB / 391.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002929/0.1536, allocations: 330.8 kB / 391.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007884/0.1544, allocations: 0.801 MB / 392.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002397/0.1568, allocations: 1.988 MB / 394.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1568, allocations: 0 / 394.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1568, allocations: 0 / 394.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.315e-05/0.1569, allocations: 0 / 394.6 MB, free: 11.76 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.003393/0.1603, allocations: 1.838 MB / 396.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1603, allocations: 8.031 kB / 396.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005629/0.1609, allocations: 211.9 kB / 396.7 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/0.1624, allocations: 0.8336 MB / 397.5 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.1625, allocations: 116.4 kB / 397.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.1627, allocations: 116.1 kB / 397.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.1646, allocations: 1.146 MB / 398.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.508e-05/0.1647, allocations: 3.984 kB / 398.9 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.918e-05/0.1647, allocations: 51.98 kB / 398.9 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.1648, allocations: 28 kB / 399 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.1663, allocations: 0.7613 MB / 399.7 MB, free: 6.441 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.006306/0.1726, allocations: 3.931 MB / 403.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.1742, allocations: 0.5813 MB / 404.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000502/0.1748, allocations: 270.9 kB / 404.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.088e-05/0.1748, allocations: 8.562 kB / 404.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006261/0.1755, allocations: 299.1 kB / 404.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.805e-06/0.1755, allocations: 0 / 404.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.004964/0.1804, allocations: 2.095 MB / 406.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002634/0.1807, allocations: 475.2 kB / 407.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.1824, allocations: 1.109 MB / 408.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.725e-05/0.1825, allocations: 41.7 kB / 408.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005821/0.1831, allocations: 0.6598 MB / 409.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002026/0.1833, allocations: 242 kB / 409.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.1836, allocations: 198.8 kB / 409.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1837, allocations: 341.9 kB / 409.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005078/0.1842, allocations: 242.5 kB / 410.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008492/0.1851, allocations: 0.7131 MB / 410.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.1865, allocations: 0.9453 MB / 411.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.1865, allocations: 7.938 kB / 411.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002197/0.1888, allocations: 1.146 MB / 413 MB, free: 8.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.133e-05/0.1888, allocations: 71.33 kB / 413 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.1889, allocations: 12.44 kB / 413.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006211/0.1895, allocations: 173.6 kB / 413.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007093/0.1902, allocations: 207.6 kB / 413.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004513/0.1947, allocations: 3.885 MB / 417.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.1958, allocations: 68.02 kB / 417.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-05/0.1959, allocations: 44 kB / 417.4 MB, free: 3.562 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.0005406/0.1964, allocations: 297.6 kB / 417.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/0.1966, allocations: 131.2 kB / 417.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001588/0.1982, allocations: 0.7038 MB / 418.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.1982, allocations: 4 kB / 418.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1983, allocations: 4 kB / 418.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001479/0.1997, allocations: 0.9607 MB / 419.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003399/0.2032, allocations: 1.793 MB / 421.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.2032, allocations: 4.219 kB / 421.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000458/0.2036, allocations: 107.9 kB / 421.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004533/0.2041, allocations: 125.6 kB / 421.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.2042, allocations: 20 kB / 421.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004177/0.2083, allocations: 3.596 MB / 425.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.2084, allocations: 4.031 kB / 425.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/0.2104, allocations: 1.059 MB / 426.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005778/0.211, allocations: 252.3 kB / 426.5 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.2112, allocations: 20 kB / 426.5 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.2118, allocations: 39.95 kB / 426.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.212, allocations: 60.38 kB / 426.6 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.212, allocations: 19.98 kB / 426.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001095/0.2131, allocations: 0.7445 MB / 427.3 MB, free: 9.062 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2131, allocations: 0 / 427.3 MB, free: 9.062 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001217/0.2143, allocations: 308 kB / 427.6 MB, free: 8.762 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.0002934/0.2146, allocations: 135.1 kB / 427.8 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002181/0.2168, allocations: 1.1 MB / 428.9 MB, free: 7.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.2169, allocations: 0 / 428.9 MB, free: 7.473 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.2182, allocations: 0.5512 MB / 429.4 MB, free: 6.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.2198, allocations: 324.8 kB / 429.7 MB, free: 6.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.2236, allocations: 2.271 MB / 432 MB, free: 4.242 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007763/0.2244, allocations: 1.082 MB / 433.1 MB, free: 3.133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004988/0.2249, allocations: 145.8 kB / 433.2 MB, free: 2.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.2251, allocations: 75.44 kB / 433.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2251, allocations: 0 / 433.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of Templates: time 0.03498/0.2601, allocations: 18.18 MB / 451.5 MB, free: 0.7031 MB / 382.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)