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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001332/0.001332, allocations: 194 kB / 16.14 MB, free: 6.715 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.572/1.572, allocations: 205.1 MB / 222 MB, free: 4.762 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.00117/0.00117, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2907, allocations: 46.63 MB / 324.7 MB, free: 1.91 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005497/0.2962, allocations: 4.319 MB / 329 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003002/0.2993, allocations: 1.347 MB / 330.3 MB, free: 13.38 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004242/0.2997, allocations: 13.03 kB / 330.4 MB, free: 13.38 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003744/0.3002, allocations: 84.94 kB / 330.4 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004483/0.3006, allocations: 194.7 kB / 330.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.3017, allocations: 368.6 kB / 331 MB, free: 12.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.3028, allocations: 1.074 MB / 332.1 MB, free: 12.22 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003914/0.3032, allocations: 228.7 kB / 332.3 MB, free: 12.08 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006365/0.3038, allocations: 434.7 kB / 332.7 MB, free: 11.85 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005727/0.3044, allocations: 0.4923 MB / 333.2 MB, free: 11.52 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.3046, allocations: 58.97 kB / 333.3 MB, free: 11.51 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002864/0.3049, allocations: 115.3 kB / 333.4 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.3051, allocations: 183.3 kB / 333.6 MB, free: 11.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000412/0.3055, allocations: 410 kB / 334 MB, free: 10.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009652/0.3065, allocations: 1.004 MB / 335 MB, free: 9.816 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3065, allocations: 0 / 335 MB, free: 9.816 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3065, allocations: 0 / 335 MB, free: 9.816 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.3065, allocations: 0 / 335 MB, free: 9.816 MB / 270.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.003218/0.3097, allocations: 1.291 MB / 336.3 MB, free: 8.477 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3098, allocations: 12.03 kB / 336.3 MB, free: 8.465 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.3101, allocations: 87.91 kB / 336.3 MB, free: 8.379 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006027/0.3107, allocations: 433.7 kB / 336.8 MB, free: 7.914 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.612e-05/0.3107, allocations: 50.38 kB / 336.8 MB, free: 7.863 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.3109, allocations: 72.28 kB / 336.9 MB, free: 7.793 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.3126, allocations: 0.8155 MB / 337.7 MB, free: 6.973 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.3126, allocations: 3.906 kB / 337.7 MB, free: 6.969 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.023e-05/0.3127, allocations: 35.98 kB / 337.7 MB, free: 6.934 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.3127, allocations: 16 kB / 337.8 MB, free: 6.918 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001963/0.3147, allocations: 0.8744 MB / 338.6 MB, free: 6.043 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004224/0.3189, allocations: 2.384 MB / 341 MB, free: 3.527 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.3205, allocations: 0.7113 MB / 341.7 MB, free: 2.809 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009736/0.3214, allocations: 468.3 kB / 342.2 MB, free: 2.352 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.185e-05/0.3215, allocations: 17 kB / 342.2 MB, free: 2.336 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001213/0.3228, allocations: 0.5439 MB / 342.7 MB, free: 1.777 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 3.376e-06/0.3228, allocations: 4 kB / 342.8 MB, free: 1.773 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01091/0.3337, allocations: 4.217 MB / 347 MB, free: 13.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.3338, allocations: 68.28 kB / 347 MB, free: 13.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/0.3343, allocations: 393.9 kB / 347.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.3344, allocations: 49.7 kB / 347.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.3346, allocations: 276.8 kB / 347.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003079/0.3349, allocations: 363 kB / 348.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003131/0.3352, allocations: 190.8 kB / 348.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.3355, allocations: 370.8 kB / 348.6 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009802/0.3364, allocations: 442.4 kB / 349.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.3375, allocations: 0.5267 MB / 349.6 MB, free: 10.72 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.3393, allocations: 0.7831 MB / 350.4 MB, free: 9.922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3393, allocations: 0 / 350.4 MB, free: 9.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003292/0.3426, allocations: 1.346 MB / 351.7 MB, free: 8.559 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.3426, allocations: 11.98 kB / 351.7 MB, free: 8.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3426, allocations: 4 kB / 351.7 MB, free: 8.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.3439, allocations: 0.6504 MB / 352.4 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008153/0.3448, allocations: 199.8 kB / 352.6 MB, free: 7.688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004976/0.3498, allocations: 3.267 MB / 355.9 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.3511, allocations: 175.9 kB / 356 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.413e-05/0.3512, allocations: 39.98 kB / 356.1 MB, free: 4.02 MB / 286.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.0004687/0.3517, allocations: 225.6 kB / 356.3 MB, free: 3.793 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.3518, allocations: 75.09 kB / 356.4 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002124/0.352, allocations: 103 kB / 356.5 MB, free: 3.617 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.3521, allocations: 12 kB / 356.5 MB, free: 3.605 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.3521, allocations: 128 / 356.5 MB, free: 3.605 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.3521, allocations: 7.969 kB / 356.5 MB, free: 3.598 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004865/0.357, allocations: 2.538 MB / 359 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.357, allocations: 4 kB / 359 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007723/0.3578, allocations: 171.8 kB / 359.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.3589, allocations: 0.6233 MB / 359.8 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.632e-05/0.359, allocations: 35.95 kB / 359.9 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003643/0.3627, allocations: 3.096 MB / 362.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3627, allocations: 3.938 kB / 363 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003891/0.3666, allocations: 1.852 MB / 364.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004215/0.367, allocations: 228.2 kB / 365 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.3672, allocations: 28 kB / 365.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.3684, allocations: 215.6 kB / 365.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008969/0.3693, allocations: 372.3 kB / 365.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.449e-05/0.3694, allocations: 43.95 kB / 365.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003155/0.3697, allocations: 271.1 kB / 365.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3697, allocations: 0 / 365.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008505/0.3706, allocations: 244 kB / 366.2 MB, free: 9.535 MB / 302.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.0003089/0.3709, allocations: 164.8 kB / 366.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.3733, allocations: 1.184 MB / 367.5 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3734, allocations: 4.312 kB / 367.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.3749, allocations: 0.7739 MB / 368.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008253/0.3758, allocations: 121.6 kB / 368.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003975/0.3798, allocations: 2.267 MB / 370.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007082/0.3805, allocations: 0.9283 MB / 371.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003928/0.3809, allocations: 85.44 kB / 371.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.3811, allocations: 55.42 kB / 371.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3811, allocations: 0 / 371.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of Templates: time 0.02637/0.4075, allocations: 16.1 MB / 387.8 MB, free: 3.715 MB / 318.1 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)