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.0008316/0.0008316, allocations: 89.58 kB / 16.32 MB, free: 5.621 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.000961/0.0009611, allocations: 181.1 kB / 17.21 MB, free: 5.539 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.541/1.541, allocations: 205.4 MB / 223.4 MB, free: 5.547 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.000507/0.0005073, allocations: 8 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2931, allocations: 47.59 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004893/0.2981, allocations: 3.725 MB / 331.5 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.3007, allocations: 1.277 MB / 332.7 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.301, allocations: 12.59 kB / 332.7 MB, free: 13.42 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002738/0.3013, allocations: 84.5 kB / 332.8 MB, free: 13.35 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003461/0.3017, allocations: 198.6 kB / 333 MB, free: 13.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008798/0.3026, allocations: 331.7 kB / 333.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.3036, allocations: 0.9971 MB / 334.3 MB, free: 12.31 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003502/0.3039, allocations: 201.8 kB / 334.5 MB, free: 12.17 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005756/0.3045, allocations: 418.2 kB / 334.9 MB, free: 11.95 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000566/0.3051, allocations: 461.2 kB / 335.4 MB, free: 11.66 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.3052, allocations: 52.03 kB / 335.4 MB, free: 11.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002881/0.3055, allocations: 93.77 kB / 335.5 MB, free: 11.63 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.3058, allocations: 175.2 kB / 335.7 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.3059, allocations: 157.3 kB / 335.9 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007043/0.3066, allocations: 0.7363 MB / 336.6 MB, free: 10.59 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3066, allocations: 0 / 336.6 MB, free: 10.59 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3067, allocations: 0 / 336.6 MB, free: 10.59 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.3067, allocations: 0 / 336.6 MB, free: 10.59 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.002773/0.3094, allocations: 1.224 MB / 337.8 MB, free: 9.312 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3095, allocations: 16.03 kB / 337.8 MB, free: 9.297 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.3098, allocations: 86.97 kB / 337.9 MB, free: 9.211 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005714/0.3103, allocations: 432.6 kB / 338.3 MB, free: 8.75 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.719e-05/0.3104, allocations: 54 kB / 338.4 MB, free: 8.695 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.3105, allocations: 71.91 kB / 338.5 MB, free: 8.625 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.3121, allocations: 0.8115 MB / 339.3 MB, free: 7.809 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.3122, allocations: 8 kB / 339.3 MB, free: 7.801 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.618e-05/0.3123, allocations: 27.98 kB / 339.3 MB, free: 7.773 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.3123, allocations: 16 kB / 339.3 MB, free: 7.758 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001933/0.3142, allocations: 0.8978 MB / 340.2 MB, free: 6.859 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004075/0.3183, allocations: 2.459 MB / 342.7 MB, free: 4.27 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.3198, allocations: 0.727 MB / 343.4 MB, free: 3.539 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000947/0.3208, allocations: 488.2 kB / 343.9 MB, free: 3.062 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.214e-05/0.3209, allocations: 9 kB / 343.9 MB, free: 3.051 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.3221, allocations: 0.5634 MB / 344.5 MB, free: 2.477 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 1.883e-06/0.3221, allocations: 0 / 344.5 MB, free: 2.477 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01049/0.3326, allocations: 4.47 MB / 348.9 MB, free: 13.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.3326, allocations: 64.41 kB / 349 MB, free: 13.8 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004295/0.3331, allocations: 385.9 kB / 349.4 MB, free: 13.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/0.3332, allocations: 57.69 kB / 349.4 MB, free: 13.36 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002023/0.3334, allocations: 269 kB / 349.7 MB, free: 13.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/0.3337, allocations: 358.9 kB / 350 MB, free: 12.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.3338, allocations: 20 kB / 350.1 MB, free: 12.71 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.334, allocations: 374.8 kB / 350.4 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009191/0.3349, allocations: 450.4 kB / 350.9 MB, free: 11.89 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000987/0.3359, allocations: 0.5461 MB / 351.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008368/0.3368, allocations: 398.3 kB / 351.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3368, allocations: 0 / 351.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002906/0.3397, allocations: 1.373 MB / 353.2 MB, free: 9.551 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.3397, allocations: 4 kB / 353.2 MB, free: 9.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3397, allocations: 8 kB / 353.2 MB, free: 9.539 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/0.3409, allocations: 0.6465 MB / 353.8 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007931/0.3417, allocations: 215.6 kB / 354 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/0.3459, allocations: 3.302 MB / 357.3 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/0.347, allocations: 243.9 kB / 357.6 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.177e-05/0.3471, allocations: 35.98 kB / 357.6 MB, free: 4.91 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,$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 () * 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 (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.0003701/0.3475, allocations: 229.6 kB / 357.8 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.3476, allocations: 71.16 kB / 357.9 MB, free: 4.609 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002401/0.3478, allocations: 103 kB / 358 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3478, allocations: 8 kB / 358 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3478, allocations: 0 / 358 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.3479, allocations: 7.984 kB / 358 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004378/0.3522, allocations: 2.55 MB / 360.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.3523, allocations: 0 / 360.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007492/0.353, allocations: 191.6 kB / 360.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001061/0.3541, allocations: 0.6194 MB / 361.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.616e-05/0.3542, allocations: 35.97 kB / 361.4 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003437/0.3576, allocations: 3.124 MB / 364.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3576, allocations: 4.031 kB / 364.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003783/0.3614, allocations: 1.884 MB / 366.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004139/0.3619, allocations: 236.1 kB / 366.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.362, allocations: 39.89 kB / 366.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.3633, allocations: 267.7 kB / 367 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000926/0.3643, allocations: 428.1 kB / 367.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.3643, allocations: 43.97 kB / 367.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003196/0.3647, allocations: 267.1 kB / 367.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3647, allocations: 0 / 367.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009321/0.3656, allocations: 248 kB / 367.9 MB, free: 10.22 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 (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.0003886/0.366, allocations: 164.8 kB / 368.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.3685, allocations: 1.216 MB / 369.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3685, allocations: 0 / 369.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.3701, allocations: 0.7898 MB / 370.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008125/0.3709, allocations: 125.8 kB / 370.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004088/0.375, allocations: 2.376 MB / 372.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005069/0.3755, allocations: 0.9322 MB / 373.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003747/0.3759, allocations: 81.44 kB / 373.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.3761, allocations: 63.3 kB / 373.7 MB, free: 4.367 MB / 302.1 MB Notification: Performance of SimCode: time 1.363e-06/0.3761, allocations: 0 / 373.7 MB, free: 4.367 MB / 302.1 MB Notification: Performance of Templates: time 0.02548/0.4016, allocations: 15.45 MB / 389.1 MB, free: 4.898 MB / 318.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)