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.009376/0.009376, allocations: 103.5 kB / 15.74 MB, free: 6.484 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.001618/0.001618, allocations: 196.3 kB / 16.68 MB, free: 6.375 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.833/1.833, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001217/0.001217, allocations: 50.7 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.114, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0118/0.1258, allocations: 9.546 MB / 382.7 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006196/0.1321, allocations: 3.116 MB / 385.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.1332, allocations: 27.88 kB / 385.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.1348, allocations: 0.5822 MB / 386.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001533/0.1364, allocations: 0.5619 MB / 387 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007223/0.1371, allocations: 319.5 kB / 387.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001911/0.139, allocations: 1.755 MB / 389.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008174/0.1399, allocations: 0.6413 MB / 389.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007547/0.1406, allocations: 0.6655 MB / 390.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007743/0.1414, allocations: 0.7467 MB / 391.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001871/0.1416, allocations: 160 kB / 391.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003311/0.142, allocations: 192 kB / 391.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002764/0.1422, allocations: 342.8 kB / 391.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007253/0.143, allocations: 0.801 MB / 392.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001823/0.1448, allocations: 1.989 MB / 394.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1448, allocations: 3.938 kB / 394.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1448, allocations: 0 / 394.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.908e-05/0.1449, allocations: 3.938 kB / 394.6 MB, free: 11.75 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.00309/0.148, allocations: 1.785 MB / 396.4 MB, free: 9.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.148, allocations: 8.031 kB / 396.4 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005809/0.1486, allocations: 199 kB / 396.6 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/0.15, allocations: 0.8327 MB / 397.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.1501, allocations: 112.4 kB / 397.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.1503, allocations: 120.1 kB / 397.7 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001848/0.1522, allocations: 1.142 MB / 398.8 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.67e-05/0.1522, allocations: 3.906 kB / 398.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.1523, allocations: 48 kB / 398.9 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.1524, allocations: 28 kB / 398.9 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.1539, allocations: 0.7613 MB / 399.7 MB, free: 6.5 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.005442/0.1593, allocations: 3.91 MB / 403.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.1609, allocations: 0.5928 MB / 404.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005089/0.1614, allocations: 266.9 kB / 404.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.1614, allocations: 12.55 kB / 404.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006125/0.1621, allocations: 295.4 kB / 404.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 5.25e-06/0.1621, allocations: 0 / 404.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.005026/0.1671, allocations: 2.076 MB / 406.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002421/0.1674, allocations: 483.2 kB / 407.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/0.169, allocations: 1.097 MB / 408.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.419e-05/0.1691, allocations: 45.69 kB / 408.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000544/0.1696, allocations: 0.6428 MB / 409 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.1698, allocations: 228.7 kB / 409.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000268/0.1701, allocations: 198.8 kB / 409.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1702, allocations: 341.9 kB / 409.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005466/0.1708, allocations: 246.5 kB / 410 MB, free: 11.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008358/0.1716, allocations: 0.7169 MB / 410.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.173, allocations: 0.9297 MB / 411.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.1731, allocations: 11.94 kB / 411.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002168/0.1752, allocations: 1.145 MB / 412.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.771e-05/0.1753, allocations: 63.41 kB / 412.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.1753, allocations: 15.94 kB / 412.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006175/0.176, allocations: 177.9 kB / 413.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006902/0.1767, allocations: 203.7 kB / 413.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00514/0.1818, allocations: 3.881 MB / 417.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.1833, allocations: 71.95 kB / 417.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.339e-05/0.1834, allocations: 48 kB / 417.3 MB, free: 3.68 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.0005763/0.184, allocations: 293.5 kB / 417.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.1842, allocations: 126.5 kB / 417.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/0.1857, allocations: 0.7076 MB / 418.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.1857, allocations: 8 kB / 418.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1857, allocations: 0 / 418.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001534/0.1873, allocations: 0.9568 MB / 419.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003117/0.1904, allocations: 1.786 MB / 421.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.1904, allocations: 4 kB / 421.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004803/0.1909, allocations: 104.1 kB / 421.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004564/0.1914, allocations: 133.6 kB / 421.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.1914, allocations: 19.92 kB / 421.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003537/0.195, allocations: 3.584 MB / 425 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.195, allocations: 4.031 kB / 425 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/0.1969, allocations: 1.05 MB / 426.1 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004344/0.1973, allocations: 255.5 kB / 426.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.1974, allocations: 16 kB / 426.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006114/0.1981, allocations: 39.97 kB / 426.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.1982, allocations: 60.36 kB / 426.4 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.1983, allocations: 24 kB / 426.4 MB, free: 9.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001133/0.1994, allocations: 0.7445 MB / 427.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1994, allocations: 0 / 427.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001346/0.2008, allocations: 311.9 kB / 427.5 MB, free: 8.902 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.0003193/0.2011, allocations: 127.2 kB / 427.6 MB, free: 8.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002299/0.2034, allocations: 1.099 MB / 428.7 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.2034, allocations: 0.8125 kB / 428.7 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009287/0.2044, allocations: 0.5514 MB / 429.3 MB, free: 7.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.206, allocations: 336.5 kB / 429.6 MB, free: 6.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003833/0.2099, allocations: 2.227 MB / 431.8 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007983/0.2107, allocations: 1.082 MB / 432.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000579/0.2113, allocations: 149.8 kB / 433 MB, free: 3.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001707/0.2114, allocations: 79.42 kB / 433.1 MB, free: 3.094 MB / 366.1 MB Notification: Performance of SimCode: time 1.663e-06/0.2114, allocations: 0 / 433.1 MB, free: 3.094 MB / 366.1 MB Notification: Performance of Templates: time 0.03427/0.2457, allocations: 18.17 MB / 451.3 MB, free: 0.8867 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)