Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.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.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 112 kB / 17.07 MB, free: 5.945 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.001519/0.00152, allocations: 196 kB / 18.01 MB, free: 5.035 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.509/1.509, 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.001219/0.001219, allocations: 47.92 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1057, allocations: 46.62 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005992/0.1118, allocations: 4.318 MB / 378.8 MB, free: 236 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2443/0.3562, allocations: 1.327 MB / 380.1 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004163/0.3566, allocations: 14.88 kB / 380.1 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.357, allocations: 115.3 kB / 380.2 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004222/0.3574, allocations: 227.1 kB / 380.5 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.3586, allocations: 431.2 kB / 380.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001149/0.3598, allocations: 1.134 MB / 382 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004231/0.3602, allocations: 267.1 kB / 382.3 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007273/0.3609, allocations: 484.4 kB / 382.8 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005901/0.3615, allocations: 0.5168 MB / 383.3 MB, free: 9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001914/0.3617, allocations: 95.66 kB / 383.4 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003167/0.3621, allocations: 151.6 kB / 383.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002462/0.3623, allocations: 220.2 kB / 383.7 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00043/0.3627, allocations: 445.4 kB / 384.2 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001465/0.3642, allocations: 1.061 MB / 385.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3642, allocations: 0.8438 kB / 385.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3642, allocations: 1.438 kB / 385.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.3643, allocations: 0 / 385.2 MB, free: 8.219 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003831/0.3681, allocations: 1.287 MB / 386.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.081e-05/0.3682, allocations: 10.56 kB / 386.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004887/0.3687, allocations: 84.81 kB / 386.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009861/0.3697, allocations: 452.1 kB / 387 MB, free: 7.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.548e-05/0.3698, allocations: 49.66 kB / 387.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.3699, allocations: 74.03 kB / 387.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.372, allocations: 0.8142 MB / 388 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.859e-05/0.3721, allocations: 3.406 kB / 388 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.915e-05/0.3722, allocations: 31.02 kB / 388 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.3722, allocations: 18.95 kB / 388 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002223/0.3744, allocations: 0.8653 MB / 388.9 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00609/0.3805, allocations: 2.366 MB / 391.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.3824, allocations: 0.7196 MB / 392 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.3835, allocations: 472 kB / 392.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.433e-05/0.3836, allocations: 12.69 kB / 392.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00151/0.3851, allocations: 0.5491 MB / 393 MB, free: 4.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 4.248e-06/0.3851, allocations: 0 / 393 MB, free: 4.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01176/0.3969, allocations: 4.235 MB / 397.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.397, allocations: 63.34 kB / 397.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004577/0.3975, allocations: 393.9 kB / 397.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.917e-05/0.3976, allocations: 56.36 kB / 397.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.3977, allocations: 271.1 kB / 398 MB, free: 1.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.398, allocations: 357.2 kB / 398.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003199/0.3983, allocations: 183.3 kB / 398.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3984, allocations: 376.3 kB / 398.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009687/0.3994, allocations: 436.7 kB / 399.3 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.4004, allocations: 0.5276 MB / 399.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.4021, allocations: 0.7835 MB / 400.6 MB, free: 248 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.4021, allocations: 8.5 kB / 400.6 MB, free: 244 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003137/0.4052, allocations: 1.346 MB / 402 MB, free: 15.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.4053, allocations: 13.27 kB / 402 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.4053, allocations: 5.344 kB / 402 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.4066, allocations: 0.6554 MB / 402.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008492/0.4075, allocations: 202.3 kB / 402.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004247/0.4117, allocations: 3.426 MB / 406.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.4131, allocations: 185.1 kB / 406.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.032e-05/0.4132, allocations: 33.75 kB / 406.5 MB, free: 12.01 MB / 334.1 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,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004948/0.4138, allocations: 231.3 kB / 406.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.4139, allocations: 71.03 kB / 406.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.4142, allocations: 107.2 kB / 406.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.4142, allocations: 13.44 kB / 406.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-05/0.4142, allocations: 5.406 kB / 406.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.4142, allocations: 3.984 kB / 406.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00478/0.419, allocations: 2.494 MB / 409.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.419, allocations: 2.719 kB / 409.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008309/0.4199, allocations: 170.6 kB / 409.6 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.421, allocations: 0.6227 MB / 410.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.4211, allocations: 37.3 kB / 410.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00387/0.425, allocations: 3.217 MB / 413.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.425, allocations: 5.312 kB / 413.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00409/0.4291, allocations: 1.841 MB / 415.3 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005036/0.4297, allocations: 236.2 kB / 415.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.4298, allocations: 28 kB / 415.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.4312, allocations: 203.7 kB / 415.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008974/0.4321, allocations: 380.3 kB / 416.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.7e-05/0.4322, allocations: 47.95 kB / 416.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003512/0.4326, allocations: 267.2 kB / 416.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4326, allocations: 0 / 416.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001011/0.4336, allocations: 248 kB / 416.7 MB, free: 3.629 MB / 334.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003457/0.4339, allocations: 168.8 kB / 416.9 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002664/0.4366, allocations: 1.204 MB / 418.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.4366, allocations: 0 / 418.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.4383, allocations: 0.782 MB / 418.8 MB, free: 1.445 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009211/0.4392, allocations: 125.8 kB / 419 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.4432, allocations: 1.951 MB / 420.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005903/0.4439, allocations: 0.9322 MB / 421.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004596/0.4443, allocations: 81.45 kB / 421.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.4445, allocations: 67.41 kB / 422 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.512e-06/0.4445, allocations: 0 / 422 MB, free: 14.23 MB / 350.1 MB Notification: Performance of Templates: time 0.02839/0.4729, allocations: 17.74 MB / 439.7 MB, free: 12.48 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)