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.001239/0.001239, allocations: 107.4 kB / 16.51 MB, free: 6.707 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.001263/0.001263, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.752/1.752, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001203/0.001203, allocations: 47.94 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1056, allocations: 46.62 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01179/0.1174, allocations: 9.487 MB / 335.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006649/0.1241, allocations: 3.105 MB / 338.6 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001915/0.1261, allocations: 23.94 kB / 338.6 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002091/0.1283, allocations: 0.5128 MB / 339.1 MB, free: 7.676 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002331/0.1306, allocations: 492.4 kB / 339.6 MB, free: 7.191 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009072/0.1315, allocations: 287.7 kB / 339.9 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002453/0.134, allocations: 1.669 MB / 341.5 MB, free: 5.234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009371/0.1349, allocations: 0.5532 MB / 342.1 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.136, allocations: 0.6185 MB / 342.7 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009129/0.1369, allocations: 0.7038 MB / 343.4 MB, free: 3.328 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001846/0.1371, allocations: 108 kB / 343.5 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004727/0.1376, allocations: 147.9 kB / 343.6 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003034/0.1379, allocations: 286.8 kB / 343.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007947/0.1387, allocations: 0.754 MB / 344.7 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001867/0.1406, allocations: 1.911 MB / 346.6 MB, free: 124 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.1406, allocations: 8 kB / 346.6 MB, free: 116 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1406, allocations: 0 / 346.6 MB, free: 116 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.954e-05/0.1407, allocations: 0 / 346.6 MB, free: 116 kB / 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.003847/0.1445, allocations: 1.793 MB / 348.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.1446, allocations: 16.02 kB / 348.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006744/0.1453, allocations: 191 kB / 348.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.147, allocations: 0.8133 MB / 349.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.1472, allocations: 120.4 kB / 349.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.1474, allocations: 116 kB / 349.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/0.1496, allocations: 1.139 MB / 350.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.006e-05/0.1497, allocations: 8 kB / 350.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.972e-05/0.1498, allocations: 47.98 kB / 350.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.702e-05/0.1498, allocations: 24 kB / 350.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.1515, allocations: 0.7535 MB / 351.6 MB, free: 10.89 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.006991/0.1585, allocations: 3.945 MB / 355.6 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.1601, allocations: 0.5891 MB / 356.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005316/0.1607, allocations: 266.9 kB / 356.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.515e-05/0.1607, allocations: 16.53 kB / 356.4 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007606/0.1615, allocations: 295.1 kB / 356.7 MB, free: 5.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.625e-06/0.1615, allocations: 3.938 kB / 356.7 MB, free: 5.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005492/0.167, allocations: 2.077 MB / 358.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003529/0.1674, allocations: 479.2 kB / 359.3 MB, free: 2.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/0.1693, allocations: 1.105 MB / 360.4 MB, free: 1.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.9e-05/0.1694, allocations: 45.64 kB / 360.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007471/0.1701, allocations: 0.6389 MB / 361 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/0.1704, allocations: 236.7 kB / 361.3 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003499/0.1708, allocations: 202.7 kB / 361.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002987/0.1711, allocations: 341.9 kB / 361.8 MB, free: 224 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005949/0.1717, allocations: 246.5 kB / 362 MB, free: 15.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009949/0.1727, allocations: 0.7131 MB / 362.8 MB, free: 15.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.1742, allocations: 0.9414 MB / 363.7 MB, free: 13.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.709e-06/0.1742, allocations: 7.938 kB / 363.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002461/0.1767, allocations: 1.137 MB / 364.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.309e-05/0.1768, allocations: 67.94 kB / 364.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.1768, allocations: 12 kB / 364.9 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006618/0.1775, allocations: 166.7 kB / 365.1 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/0.1782, allocations: 203.6 kB / 365.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004587/0.1828, allocations: 3.563 MB / 368.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.1842, allocations: 72.02 kB / 368.9 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.359e-05/0.1843, allocations: 48 kB / 369 MB, free: 8.375 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.0007708/0.1851, allocations: 293.6 kB / 369.3 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003127/0.1854, allocations: 130.4 kB / 369.4 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.1873, allocations: 0.7038 MB / 370.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.1873, allocations: 8 kB / 370.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.1874, allocations: 0 / 370.1 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001823/0.1892, allocations: 0.9529 MB / 371 MB, free: 6.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004645/0.1939, allocations: 1.802 MB / 372.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.1939, allocations: 3.938 kB / 372.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/0.1944, allocations: 99.88 kB / 372.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005552/0.195, allocations: 137.6 kB / 373.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.297e-05/0.1951, allocations: 12 kB / 373.1 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004156/0.1992, allocations: 3.278 MB / 376.4 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/0.1993, allocations: 7.969 kB / 376.4 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2585/0.4577, allocations: 1.038 MB / 377.4 MB, free: 51.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007014/0.4585, allocations: 257.1 kB / 377.7 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/0.4587, allocations: 16.31 kB / 377.7 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006838/0.4594, allocations: 40.66 kB / 377.7 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002519/0.4596, allocations: 63.97 kB / 377.8 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.492e-05/0.4597, allocations: 25.92 kB / 377.8 MB, free: 51.87 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001511/0.4612, allocations: 0.7429 MB / 378.6 MB, free: 51.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4612, allocations: 0 / 378.6 MB, free: 51.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001514/0.4627, allocations: 315.6 kB / 378.9 MB, free: 51.76 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.000271/0.463, allocations: 123.9 kB / 379 MB, free: 51.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.4654, allocations: 1.092 MB / 380.1 MB, free: 51.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.4655, allocations: 5.125 kB / 380.1 MB, free: 51.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.4665, allocations: 0.5375 MB / 380.6 MB, free: 51.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/0.4681, allocations: 311.9 kB / 380.9 MB, free: 51.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.4728, allocations: 2.692 MB / 383.6 MB, free: 49.47 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007697/0.4736, allocations: 1.086 MB / 384.7 MB, free: 48.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007165/0.4743, allocations: 146.5 kB / 384.8 MB, free: 48.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000208/0.4745, allocations: 76.53 kB / 384.9 MB, free: 48.71 MB / 318.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4745, allocations: 4 kB / 384.9 MB, free: 48.71 MB / 318.1 MB Notification: Performance of Templates: time 0.03367/0.5082, allocations: 16.97 MB / 401.9 MB, free: 39.5 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)