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.0116/0.0116, allocations: 100.5 kB / 15.73 MB, free: 6.477 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.002461/0.002461, allocations: 189 kB / 16.67 MB, free: 6.391 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.715/1.715, allocations: 205.1 MB / 222.5 MB, free: 4.574 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.001288/0.001288, allocations: 50.03 kB / 326.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1439, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01293/0.1569, allocations: 9.534 MB / 382.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00795/0.1649, allocations: 3.124 MB / 385.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002256/0.1673, allocations: 27.94 kB / 385.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002452/0.1698, allocations: 0.6095 MB / 386.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00262/0.1724, allocations: 0.5932 MB / 387.1 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.1736, allocations: 315.5 kB / 387.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003176/0.1768, allocations: 1.767 MB / 389.2 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.1782, allocations: 0.6413 MB / 389.8 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002155/0.1804, allocations: 0.6695 MB / 390.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001776/0.1822, allocations: 0.7428 MB / 391.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002846/0.1825, allocations: 163.9 kB / 391.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006557/0.1832, allocations: 200 kB / 391.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003162/0.1835, allocations: 330.8 kB / 391.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009908/0.1845, allocations: 0.8087 MB / 392.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002444/0.187, allocations: 1.985 MB / 394.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.187, allocations: 0 / 394.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.187, allocations: 0 / 394.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.553e-05/0.187, allocations: 0 / 394.7 MB, free: 11.7 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.003633/0.1907, allocations: 1.789 MB / 396.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.42e-05/0.1908, allocations: 8.031 kB / 396.5 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007787/0.1916, allocations: 199 kB / 396.7 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.1934, allocations: 0.8327 MB / 397.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.1935, allocations: 120.4 kB / 397.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.1937, allocations: 112.1 kB / 397.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/0.1959, allocations: 1.142 MB / 398.9 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.196, allocations: 11.89 kB / 398.9 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.1961, allocations: 44 kB / 398.9 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.858e-05/0.1962, allocations: 24 kB / 399 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.198, allocations: 0.7613 MB / 399.7 MB, free: 6.453 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.007192/0.2052, allocations: 3.918 MB / 403.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.2068, allocations: 0.5848 MB / 404.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005246/0.2074, allocations: 270.9 kB / 404.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.916e-05/0.2074, allocations: 13.11 kB / 404.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006665/0.2081, allocations: 295 kB / 404.8 MB, free: 1.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 5.069e-06/0.2081, allocations: 4 kB / 404.8 MB, free: 1.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.005265/0.2134, allocations: 2.073 MB / 406.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002926/0.2137, allocations: 475.2 kB / 407.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/0.2159, allocations: 1.105 MB / 408.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.95e-05/0.216, allocations: 37.7 kB / 408.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007102/0.2167, allocations: 0.6466 MB / 409.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002559/0.217, allocations: 236.7 kB / 409.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003746/0.2174, allocations: 198.8 kB / 409.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.2176, allocations: 341.9 kB / 409.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005752/0.2181, allocations: 242.5 kB / 410.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009546/0.2191, allocations: 0.7169 MB / 410.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.2206, allocations: 0.9336 MB / 411.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.698e-05/0.2207, allocations: 7.938 kB / 411.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002533/0.2232, allocations: 1.142 MB / 412.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.2234, allocations: 67.39 kB / 413 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-05/0.2234, allocations: 15.94 kB / 413 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000768/0.2242, allocations: 181.7 kB / 413.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007154/0.2249, allocations: 207.6 kB / 413.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005093/0.23, allocations: 3.873 MB / 417.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.2315, allocations: 71.94 kB / 417.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.2317, allocations: 44 kB / 417.4 MB, free: 3.633 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.0008157/0.2325, allocations: 293.6 kB / 417.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003527/0.2328, allocations: 126.5 kB / 417.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.2347, allocations: 0.7077 MB / 418.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.2347, allocations: 4 kB / 418.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2347, allocations: 4 kB / 418.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00157/0.2363, allocations: 0.9646 MB / 419.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003898/0.2402, allocations: 1.778 MB / 421.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.2402, allocations: 4 kB / 421.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000518/0.2407, allocations: 108 kB / 421.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005364/0.2413, allocations: 129.6 kB / 421.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.766e-05/0.2414, allocations: 16 kB / 421.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004597/0.246, allocations: 3.595 MB / 425.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.246, allocations: 4.031 kB / 425.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.2484, allocations: 1.054 MB / 426.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008622/0.2493, allocations: 251.6 kB / 426.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003503/0.2497, allocations: 19.98 kB / 426.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000789/0.2505, allocations: 35.97 kB / 426.4 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.2507, allocations: 56.44 kB / 426.5 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.2507, allocations: 19.98 kB / 426.5 MB, free: 9.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001776/0.2525, allocations: 0.7445 MB / 427.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2525, allocations: 0 / 427.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002166/0.2547, allocations: 315.9 kB / 427.6 MB, free: 8.852 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.0004374/0.2551, allocations: 135.1 kB / 427.7 MB, free: 8.711 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003189/0.2583, allocations: 1.1 MB / 428.8 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/0.2584, allocations: 0 / 428.8 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.2596, allocations: 0.5481 MB / 429.3 MB, free: 6.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.2621, allocations: 328.4 kB / 429.7 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006923/0.269, allocations: 2.223 MB / 431.9 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001658/0.2707, allocations: 1.086 MB / 433 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009824/0.2717, allocations: 153.8 kB / 433.1 MB, free: 3.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002857/0.272, allocations: 75.44 kB / 433.2 MB, free: 3.047 MB / 366.1 MB Notification: Performance of SimCode: time 2.245e-06/0.272, allocations: 0 / 433.2 MB, free: 3.047 MB / 366.1 MB Notification: Performance of Templates: time 0.045/0.3171, allocations: 18.18 MB / 451.4 MB, free: 0.8281 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)