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.002287/0.002287, allocations: 112 kB / 17.06 MB, free: 5.984 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.002433/0.002433, allocations: 194.9 kB / 18 MB, free: 5.074 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.855/1.855, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001329/0.001329, allocations: 55.92 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1366, allocations: 46.62 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.3019/0.4385, allocations: 9.538 MB / 384 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008508/0.4471, allocations: 3.135 MB / 387.2 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002167/0.4493, allocations: 25.75 kB / 387.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002071/0.4515, allocations: 0.5819 MB / 387.8 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002301/0.4538, allocations: 0.5513 MB / 388.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.4548, allocations: 321.6 kB / 388.7 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002295/0.4571, allocations: 1.756 MB / 390.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009432/0.4581, allocations: 0.632 MB / 391 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.4593, allocations: 0.6675 MB / 391.7 MB, free: 4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.4604, allocations: 0.7432 MB / 392.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002509/0.4606, allocations: 159.1 kB / 392.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000497/0.4611, allocations: 200.1 kB / 392.8 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002514/0.4614, allocations: 332.9 kB / 393.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007263/0.4621, allocations: 0.8091 MB / 393.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002465/0.4646, allocations: 1.99 MB / 395.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4646, allocations: 1.312 kB / 395.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4646, allocations: 1.188 kB / 395.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.886e-05/0.4647, allocations: 0 / 395.9 MB, free: 2.086 MB / 318.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.003165/0.4678, allocations: 1.832 MB / 397.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.4679, allocations: 9.156 kB / 397.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005917/0.4685, allocations: 210.2 kB / 398 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.47, allocations: 0.8411 MB / 398.8 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.4701, allocations: 118.4 kB / 398.9 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.4703, allocations: 117 kB / 399 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.4723, allocations: 1.142 MB / 400.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.053e-05/0.4724, allocations: 6.891 kB / 400.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-05/0.4725, allocations: 52.06 kB / 400.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.946e-05/0.4725, allocations: 31.02 kB / 400.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/0.4741, allocations: 0.7551 MB / 401 MB, free: 15.15 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.005976/0.4801, allocations: 3.927 MB / 405 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.4816, allocations: 0.5848 MB / 405.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004969/0.4822, allocations: 271.4 kB / 405.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.871e-05/0.4822, allocations: 11.55 kB / 405.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005942/0.4828, allocations: 303.5 kB / 406.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 3.166e-06/0.4828, allocations: 0 / 406.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.004759/0.4876, allocations: 2.093 MB / 408.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002353/0.4879, allocations: 480.7 kB / 408.7 MB, free: 9.664 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/0.4894, allocations: 1.115 MB / 409.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.111e-05/0.4895, allocations: 43.95 kB / 409.8 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005336/0.49, allocations: 0.6502 MB / 410.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.4902, allocations: 240.8 kB / 410.7 MB, free: 8.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002839/0.4905, allocations: 199 kB / 410.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4907, allocations: 347.2 kB / 411.3 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005326/0.4912, allocations: 244.9 kB / 411.5 MB, free: 7.637 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008606/0.4921, allocations: 0.7133 MB / 412.2 MB, free: 6.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.4934, allocations: 0.9373 MB / 413.1 MB, free: 6.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.4934, allocations: 7.625 kB / 413.2 MB, free: 6.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001948/0.4954, allocations: 1.145 MB / 414.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.707e-05/0.4955, allocations: 67.75 kB / 414.4 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.4955, allocations: 16.56 kB / 414.4 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005752/0.4961, allocations: 165.4 kB / 414.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006449/0.4967, allocations: 203.7 kB / 414.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003975/0.5007, allocations: 3.887 MB / 418.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.5018, allocations: 72.53 kB / 418.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-05/0.5018, allocations: 49.66 kB / 418.7 MB, free: 1.617 MB / 334.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.0004608/0.5023, allocations: 292.9 kB / 419 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.5025, allocations: 128.4 kB / 419.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.5039, allocations: 0.709 MB / 419.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.5039, allocations: 10.19 kB / 419.9 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.504, allocations: 1.438 kB / 419.9 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001381/0.5053, allocations: 0.9526 MB / 420.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.5084, allocations: 1.793 MB / 422.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.5084, allocations: 224 / 422.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004749/0.5089, allocations: 115.8 kB / 422.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004264/0.5093, allocations: 121.6 kB / 422.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/0.5094, allocations: 19.98 kB / 422.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003609/0.513, allocations: 3.59 MB / 426.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.5131, allocations: 0 / 426.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.5153, allocations: 1.062 MB / 427.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006032/0.5159, allocations: 264.2 kB / 427.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.5161, allocations: 16 kB / 427.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006214/0.5167, allocations: 40.09 kB / 427.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.5169, allocations: 68.36 kB / 427.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-05/0.5169, allocations: 16 kB / 427.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.5181, allocations: 0.7445 MB / 428.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5182, allocations: 4 kB / 428.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001555/0.5197, allocations: 307.9 kB / 429 MB, free: 7.293 MB / 350.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.000356/0.5201, allocations: 139.1 kB / 429.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002231/0.5223, allocations: 1.088 MB / 430.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.5223, allocations: 4 kB / 430.2 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008738/0.5232, allocations: 0.5512 MB / 430.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.5246, allocations: 339 kB / 431.1 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.5282, allocations: 2.251 MB / 433.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006379/0.5289, allocations: 1.086 MB / 434.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005507/0.5295, allocations: 149.8 kB / 434.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.5296, allocations: 79.38 kB / 434.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5297, allocations: 0 / 434.6 MB, free: 1.453 MB / 350.1 MB Notification: Performance of Templates: time 0.03116/0.5608, allocations: 18.17 MB / 452.8 MB, free: 15.24 MB / 382.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)