Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001465/0.001465, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.492/1.492, allocations: 194.3 MB / 203.1 MB, free: 9.25 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001696/0.001696, allocations: 120.7 kB / 248.1 MB, free: 6.363 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.774e-05/1.778e-05, allocations: 3.984 kB / 298.1 MB, free: 8.23 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0862/0.08624, allocations: 44.49 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2882/0.3745, allocations: 82.26 MB / 424.8 MB, free: 13.65 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.3747, allocations: 67.16 kB / 424.9 MB, free: 13.62 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05887/0.4336, allocations: 22.76 MB / 447.7 MB, free: 10.64 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4337, allocations: 0 / 447.7 MB, free: 10.64 MB / 331.1 MB Notification: Performance of Transformations before backend: time 4.645e-05/0.4337, allocations: 20 kB / 447.7 MB, free: 10.62 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.002886/0.4366, allocations: 1.269 MB / 448.9 MB, free: 9.375 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.4367, allocations: 12.03 kB / 449 MB, free: 9.363 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004894/0.4372, allocations: 134.6 kB / 449.1 MB, free: 9.23 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008193/0.438, allocations: 0.5398 MB / 449.6 MB, free: 8.734 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003053/0.4383, allocations: 162.7 kB / 449.8 MB, free: 8.559 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.4385, allocations: 63.47 kB / 449.8 MB, free: 8.5 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001745/0.4402, allocations: 1.094 MB / 450.9 MB, free: 7.746 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.442, allocations: 1.019 MB / 452 MB, free: 6.992 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.452e-05/0.4421, allocations: 11.16 kB / 452 MB, free: 6.984 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.644e-05/0.4422, allocations: 0 / 452 MB, free: 6.984 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/0.4422, allocations: 27.95 kB / 452 MB, free: 6.957 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006646/0.4488, allocations: 3.535 MB / 455.5 MB, free: 4.039 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.4503, allocations: 0.8932 MB / 456.4 MB, free: 3.473 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007472/0.4511, allocations: 0.5531 MB / 457 MB, free: 3.141 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.4512, allocations: 23.92 kB / 457 MB, free: 3.121 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.4512, allocations: 50.17 kB / 457.1 MB, free: 3.07 MB / 331.1 MB Notification: Performance of pre-optimization done (n=135): time 3.226e-06/0.4512, allocations: 0 / 457.1 MB, free: 3.07 MB / 331.1 MB Notification: Performance of matching and sorting (n=147): time 0.007329/0.4586, allocations: 3.526 MB / 460.6 MB, free: 288 kB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/0.4587, allocations: 94.42 kB / 460.7 MB, free: 176 kB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004978/0.4592, allocations: 411.8 kB / 461.1 MB, free: 15.84 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001113/0.4593, allocations: 45 kB / 461.1 MB, free: 15.8 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.4595, allocations: 318 kB / 461.4 MB, free: 15.56 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003821/0.4599, allocations: 485.3 kB / 461.9 MB, free: 15.15 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.049e-05/0.46, allocations: 0 / 461.9 MB, free: 15.15 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.4602, allocations: 393.9 kB / 462.3 MB, free: 14.79 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007799/0.461, allocations: 495.3 kB / 462.8 MB, free: 14.5 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008303/0.4618, allocations: 0.6172 MB / 463.4 MB, free: 14.09 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000957/0.4628, allocations: 458.9 kB / 463.8 MB, free: 13.79 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.4628, allocations: 0 / 463.8 MB, free: 13.79 MB / 347.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002913/0.4657, allocations: 1.558 MB / 465.4 MB, free: 12.31 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.4658, allocations: 4 kB / 465.4 MB, free: 12.31 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.83e-05/0.4658, allocations: 8 kB / 465.4 MB, free: 12.3 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001608/0.4674, allocations: 0.7708 MB / 466.2 MB, free: 11.52 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.4686, allocations: 259.6 kB / 466.4 MB, free: 11.27 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.4715, allocations: 2.01 MB / 468.4 MB, free: 9.211 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.473, allocations: 179.9 kB / 468.6 MB, free: 9.035 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.4732, allocations: 59.97 kB / 468.7 MB, free: 8.977 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004871/0.4737, allocations: 145.2 kB / 468.8 MB, free: 8.828 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002347/0.4739, allocations: 99.05 kB / 468.9 MB, free: 8.73 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003216/0.4771, allocations: 1.664 MB / 470.6 MB, free: 7.039 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.4772, allocations: 16 kB / 470.6 MB, free: 7.023 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.4772, allocations: 3.953 kB / 470.6 MB, free: 7.02 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.4772, allocations: 3.984 kB / 470.6 MB, free: 7.016 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005526/0.4827, allocations: 2.823 MB / 473.4 MB, free: 4.117 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4828, allocations: 0 / 473.4 MB, free: 4.117 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.484, allocations: 263.6 kB / 473.7 MB, free: 3.859 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001504/0.4855, allocations: 0.7314 MB / 474.4 MB, free: 3.121 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/0.4857, allocations: 35.89 kB / 474.4 MB, free: 3.086 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.4881, allocations: 1.905 MB / 476.4 MB, free: 1.125 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.4881, allocations: 12.08 kB / 476.4 MB, free: 1.113 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0041/0.4922, allocations: 2.162 MB / 478.5 MB, free: 14.89 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007051/0.493, allocations: 291.9 kB / 478.8 MB, free: 14.59 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002825/0.4933, allocations: 16 kB / 478.8 MB, free: 14.57 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.4946, allocations: 199.8 kB / 479 MB, free: 14.38 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004687/0.4951, allocations: 228.8 kB / 479.2 MB, free: 14.15 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001647/0.4953, allocations: 63.94 kB / 479.3 MB, free: 14.09 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0004637/0.4957, allocations: 322.9 kB / 479.6 MB, free: 13.77 MB / 363.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4957, allocations: 0 / 479.6 MB, free: 13.77 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001193/0.4969, allocations: 268 kB / 479.9 MB, free: 13.51 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.000435/0.4974, allocations: 173.8 kB / 480.1 MB, free: 13.34 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002615/0.5, allocations: 1.349 MB / 481.4 MB, free: 11.96 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5, allocations: 0.8594 kB / 481.4 MB, free: 11.96 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.5015, allocations: 0.7341 MB / 482.1 MB, free: 11.23 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.5026, allocations: 120.2 kB / 482.3 MB, free: 11.11 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008123/0.5108, allocations: 2.859 MB / 485.1 MB, free: 8.207 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009786/0.5118, allocations: 1.051 MB / 486.2 MB, free: 7.133 MB / 363.1 MB Notification: Performance of simCode: alias equations: time 0.0008415/0.5126, allocations: 135.1 kB / 486.3 MB, free: 6.996 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/0.513, allocations: 79.39 kB / 486.4 MB, free: 6.918 MB / 363.1 MB Notification: Performance of SimCode: time 5.71e-07/0.513, allocations: 4 kB / 486.4 MB, free: 6.914 MB / 363.1 MB Notification: Performance of Templates: time 0.03358/0.5466, allocations: 18.43 MB / 0.493 GB, free: 4.508 MB / 379.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)