Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001618/0.001618, allocations: 88.95 kB / 16.65 MB, free: 6.535 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.002613/0.002613, allocations: 177.6 kB / 17.56 MB, free: 6.18 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.8/1.8, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0005319/0.000532, allocations: 8 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.111, allocations: 47.6 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01016/0.1212, allocations: 8.977 MB / 337.3 MB, free: 10.72 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005889/0.1272, allocations: 3.008 MB / 340.3 MB, free: 7.703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.1286, allocations: 23.94 kB / 340.3 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00173/0.1304, allocations: 0.5128 MB / 340.9 MB, free: 7.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001927/0.1323, allocations: 496.4 kB / 341.3 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00074/0.1331, allocations: 283.7 kB / 341.6 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001952/0.1351, allocations: 1.673 MB / 343.3 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007887/0.1358, allocations: 0.5453 MB / 343.8 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007594/0.1366, allocations: 0.5756 MB / 344.4 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007248/0.1374, allocations: 0.6491 MB / 345.1 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.1375, allocations: 84 kB / 345.1 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003098/0.1378, allocations: 128 kB / 345.3 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000223/0.138, allocations: 250.8 kB / 345.5 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006979/0.1388, allocations: 0.744 MB / 346.3 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001659/0.1404, allocations: 1.86 MB / 348.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1404, allocations: 0 / 348.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1405, allocations: 0 / 348.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.545e-05/0.1405, allocations: 4 kB / 348.1 MB, free: 15.84 MB / 302.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.003137/0.1436, allocations: 1.555 MB / 349.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.1437, allocations: 15.97 kB / 349.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006781/0.1444, allocations: 195 kB / 349.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.1457, allocations: 0.8133 MB / 350.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001656/0.1458, allocations: 120.4 kB / 350.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.146, allocations: 116 kB / 350.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002011/0.148, allocations: 1.158 MB / 352.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.1481, allocations: 3.984 kB / 352.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.443e-05/0.1482, allocations: 48 kB / 352.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-05/0.1482, allocations: 28 kB / 352.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.1498, allocations: 0.773 MB / 352.9 MB, free: 10.81 MB / 302.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.006027/0.1558, allocations: 3.965 MB / 356.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.1574, allocations: 0.6048 MB / 357.5 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005019/0.1579, allocations: 274.9 kB / 357.8 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.716e-05/0.1579, allocations: 12.55 kB / 357.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006437/0.1586, allocations: 307.1 kB / 358.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.216e-06/0.1586, allocations: 0 / 358.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004746/0.1633, allocations: 2.131 MB / 360.2 MB, free: 3.207 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002465/0.1636, allocations: 479.2 kB / 360.7 MB, free: 2.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.1652, allocations: 1.101 MB / 361.8 MB, free: 1.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.236e-05/0.1652, allocations: 49.7 kB / 361.8 MB, free: 1.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005008/0.1658, allocations: 0.6388 MB / 362.5 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.166, allocations: 232.7 kB / 362.7 MB, free: 0.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.1661, allocations: 85.66 kB / 362.8 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1662, allocations: 341.9 kB / 363.1 MB, free: 156 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005575/0.1668, allocations: 258.5 kB / 363.4 MB, free: 15.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009032/0.1677, allocations: 0.7169 MB / 364.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.1691, allocations: 0.9726 MB / 365.1 MB, free: 13.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.1691, allocations: 7.938 kB / 365.1 MB, free: 13.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002058/0.1712, allocations: 1.153 MB / 366.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.771e-05/0.1713, allocations: 63.41 kB / 366.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.985e-05/0.1713, allocations: 12 kB / 366.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005822/0.1719, allocations: 169.7 kB / 366.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006554/0.1725, allocations: 215.7 kB / 366.7 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004097/0.1766, allocations: 3.546 MB / 370.2 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.1777, allocations: 83.95 kB / 370.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.999e-05/0.1778, allocations: 48 kB / 370.3 MB, free: 8.234 MB / 318.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.0006296/0.1785, allocations: 293.6 kB / 370.6 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.1786, allocations: 134.4 kB / 370.8 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.1803, allocations: 0.7233 MB / 371.5 MB, free: 7.059 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1803, allocations: 8 kB / 371.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1803, allocations: 0 / 371.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001365/0.1817, allocations: 0.9763 MB / 372.5 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002907/0.1846, allocations: 1.813 MB / 374.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.1846, allocations: 3.938 kB / 374.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004719/0.1851, allocations: 116.1 kB / 374.4 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004297/0.1855, allocations: 121.6 kB / 374.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.792e-05/0.1856, allocations: 16 kB / 374.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.1889, allocations: 3.294 MB / 377.8 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.1889, allocations: 7.969 kB / 377.8 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2239/0.4128, allocations: 1.073 MB / 378.9 MB, free: 51.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009946/0.4138, allocations: 253.3 kB / 379.2 MB, free: 50.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.4141, allocations: 18.36 kB / 379.2 MB, free: 50.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.4151, allocations: 50.7 kB / 379.2 MB, free: 50.92 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/0.4154, allocations: 59.17 kB / 379.3 MB, free: 50.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.874e-05/0.4155, allocations: 18.69 kB / 379.3 MB, free: 50.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002089/0.4176, allocations: 0.7443 MB / 380 MB, free: 50.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.904e-06/0.4176, allocations: 0 / 380 MB, free: 50.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002189/0.4198, allocations: 311.2 kB / 380.3 MB, free: 50.81 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.0004094/0.4202, allocations: 134.5 kB / 380.5 MB, free: 50.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003465/0.4237, allocations: 1.105 MB / 381.6 MB, free: 50.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.4237, allocations: 2.125 kB / 381.6 MB, free: 50.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.4252, allocations: 0.5575 MB / 382.1 MB, free: 50.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00288/0.4281, allocations: 316.7 kB / 382.5 MB, free: 50.1 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006501/0.4346, allocations: 2.831 MB / 385.3 MB, free: 48.58 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/0.4358, allocations: 1.09 MB / 386.4 MB, free: 47.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001235/0.437, allocations: 149.1 kB / 386.5 MB, free: 47.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.4373, allocations: 76.5 kB / 386.6 MB, free: 47.81 MB / 318.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4373, allocations: 0 / 386.6 MB, free: 47.81 MB / 318.1 MB Notification: Performance of Templates: time 0.04877/0.4861, allocations: 16.83 MB / 403.4 MB, free: 38.31 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1)