Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001131/0.001131, allocations: 169.4 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.245/1.245, allocations: 170.6 MB / 183.8 MB, free: 11.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001654/0.001654, allocations: 103 kB / 223.2 MB, free: 4.055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.525e-05/3.529e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.08903, allocations: 38.76 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2961/0.3852, allocations: 73.65 MB / 381.3 MB, free: 2.695 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.3855, allocations: 66.78 kB / 381.3 MB, free: 2.664 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04257/0.4281, allocations: 14.67 MB / 396 MB, free: 5.953 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4281, allocations: 0 / 396 MB, free: 5.953 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.808e-05/0.4282, allocations: 16 kB / 396 MB, free: 5.938 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002452/0.4306, allocations: 1.075 MB / 397.1 MB, free: 4.867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.4307, allocations: 8.031 kB / 397.1 MB, free: 4.859 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002219/0.4309, allocations: 99.2 kB / 397.2 MB, free: 4.762 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005631/0.4315, allocations: 417.3 kB / 397.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.988e-05/0.4316, allocations: 52.38 kB / 397.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001621/0.4317, allocations: 78.97 kB / 397.7 MB, free: 4.277 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.433, allocations: 0.7361 MB / 398.5 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.433, allocations: 11.86 kB / 398.5 MB, free: 3.766 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.099e-05/0.4331, allocations: 23.38 kB / 398.5 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.4331, allocations: 20 kB / 398.5 MB, free: 3.742 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.4344, allocations: 0.7509 MB / 399.3 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004312/0.4387, allocations: 2.456 MB / 401.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.4398, allocations: 0.6504 MB / 402.4 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005942/0.4404, allocations: 414.8 kB / 402.8 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.446e-05/0.4405, allocations: 16.77 kB / 402.8 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007899/0.4413, allocations: 497 kB / 403.3 MB, free: 128 kB / 282.7 MB Notification: Performance of pre-optimization done (n=86): time 2.825e-06/0.4413, allocations: 0 / 403.3 MB, free: 128 kB / 282.7 MB Notification: Performance of matching and sorting (n=106): time 0.005969/0.4473, allocations: 3.094 MB / 406.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.4473, allocations: 64.39 kB / 406.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003813/0.4477, allocations: 333.1 kB / 406.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.658e-05/0.4478, allocations: 57.25 kB / 406.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.448, allocations: 267.2 kB / 407.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002716/0.4483, allocations: 365 kB / 407.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.401e-05/0.4483, allocations: 20.12 kB / 407.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.4485, allocations: 374.1 kB / 407.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005875/0.4491, allocations: 377.8 kB / 408.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006965/0.4498, allocations: 471.5 kB / 408.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005358/0.4503, allocations: 327.8 kB / 409 MB, free: 11.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4503, allocations: 4 kB / 409 MB, free: 11.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002521/0.4529, allocations: 1.342 MB / 410.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.4529, allocations: 7.438 kB / 410.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.4529, allocations: 0 / 410.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.4541, allocations: 0.6712 MB / 411 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008/0.4549, allocations: 214.2 kB / 411.2 MB, free: 9.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003778/0.4587, allocations: 3.272 MB / 414.5 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.4599, allocations: 241.5 kB / 414.7 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.466e-05/0.46, allocations: 42.86 kB / 414.8 MB, free: 6.461 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002419/0.4603, allocations: 170.6 kB / 414.9 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.4604, allocations: 71.2 kB / 415 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002519/0.4607, allocations: 111.6 kB / 415.1 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.4607, allocations: 15.95 kB / 415.1 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.4607, allocations: 0 / 415.1 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.4607, allocations: 3.984 kB / 415.1 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004098/0.4648, allocations: 2.501 MB / 417.6 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.4648, allocations: 4.062 kB / 417.6 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007856/0.4656, allocations: 191.7 kB / 417.8 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009994/0.4666, allocations: 0.6308 MB / 418.5 MB, free: 2.758 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.401e-05/0.4667, allocations: 39.95 kB / 418.5 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003196/0.4699, allocations: 3.112 MB / 421.6 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.47, allocations: 7.922 kB / 421.6 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/0.4729, allocations: 1.856 MB / 423.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003877/0.4733, allocations: 232.1 kB / 423.7 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000126/0.4735, allocations: 36 kB / 423.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.4748, allocations: 247.8 kB / 424 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009051/0.4757, allocations: 436 kB / 424.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-05/0.4758, allocations: 47.95 kB / 424.5 MB, free: 12.47 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002754/0.4761, allocations: 257.2 kB / 424.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4761, allocations: 0 / 424.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008037/0.4769, allocations: 247.9 kB / 424.9 MB, free: 11.98 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002934/0.4772, allocations: 177.3 kB / 425.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.4789, allocations: 1.052 MB / 426.2 MB, free: 10.74 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4789, allocations: 0 / 426.2 MB, free: 10.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.4802, allocations: 0.7117 MB / 426.9 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006141/0.4808, allocations: 114.5 kB / 427 MB, free: 9.902 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/0.4846, allocations: 1.762 MB / 428.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000484/0.4851, allocations: 0.9592 MB / 429.7 MB, free: 7.102 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003547/0.4854, allocations: 81.3 kB / 429.8 MB, free: 7.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.4856, allocations: 55.42 kB / 429.8 MB, free: 6.965 MB / 314.7 MB Notification: Performance of SimCode: time 1.323e-06/0.4856, allocations: 0 / 429.8 MB, free: 6.965 MB / 314.7 MB Notification: Performance of Templates: time 0.02299/0.5086, allocations: 14.62 MB / 444.5 MB, free: 8.336 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)