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.001235/0.001235, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 193 kB / 16.53 MB, free: 6.391 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.472/1.472, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.001438/0.001438, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2416, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005365/0.247, allocations: 4.307 MB / 329.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002934/0.25, allocations: 1.334 MB / 330.9 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005818/0.2506, allocations: 9.562 kB / 331 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004194/0.2511, allocations: 115.9 kB / 331.1 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006943/0.2518, allocations: 231 kB / 331.3 MB, free: 13.02 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.2529, allocations: 428 kB / 331.7 MB, free: 12.66 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.2542, allocations: 1.131 MB / 332.8 MB, free: 12 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004405/0.2547, allocations: 264.9 kB / 333.1 MB, free: 11.84 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008717/0.2556, allocations: 479.4 kB / 333.6 MB, free: 11.57 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007943/0.2564, allocations: 0.5116 MB / 334.1 MB, free: 11.11 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002171/0.2566, allocations: 92 kB / 334.2 MB, free: 11.02 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004013/0.257, allocations: 147.9 kB / 334.3 MB, free: 10.87 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002601/0.2573, allocations: 227.2 kB / 334.5 MB, free: 10.65 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005691/0.2578, allocations: 438 kB / 335 MB, free: 10.22 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.2589, allocations: 1.059 MB / 336 MB, free: 9.156 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2589, allocations: 0 / 336 MB, free: 9.156 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.259, allocations: 0 / 336 MB, free: 9.156 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.018e-05/0.259, allocations: 0 / 336 MB, free: 9.156 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.00355/0.2625, allocations: 1.291 MB / 337.3 MB, free: 7.816 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.2626, allocations: 8.031 kB / 337.3 MB, free: 7.809 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.2629, allocations: 87.91 kB / 337.4 MB, free: 7.723 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006584/0.2635, allocations: 441.7 kB / 337.8 MB, free: 7.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.2636, allocations: 54.38 kB / 337.9 MB, free: 7.195 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.2638, allocations: 72.28 kB / 338 MB, free: 7.125 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.2655, allocations: 0.8038 MB / 338.8 MB, free: 6.316 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.24e-05/0.2656, allocations: 11.91 kB / 338.8 MB, free: 6.305 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.975e-05/0.2657, allocations: 31.98 kB / 338.8 MB, free: 6.273 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.2657, allocations: 16 kB / 338.8 MB, free: 6.258 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.2677, allocations: 0.8627 MB / 339.7 MB, free: 5.395 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004185/0.2719, allocations: 2.396 MB / 342.1 MB, free: 2.867 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.2734, allocations: 0.715 MB / 342.8 MB, free: 2.145 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009772/0.2744, allocations: 468.3 kB / 343.3 MB, free: 1.684 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.127e-05/0.2745, allocations: 12.98 kB / 343.3 MB, free: 1.672 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/0.2758, allocations: 0.5517 MB / 343.8 MB, free: 1.105 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 3.156e-06/0.2758, allocations: 0 / 343.8 MB, free: 1.105 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01147/0.2873, allocations: 4.216 MB / 348 MB, free: 12.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.2874, allocations: 64.41 kB / 348.1 MB, free: 12.69 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004645/0.2878, allocations: 393.9 kB / 348.5 MB, free: 12.3 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.84e-05/0.2879, allocations: 53.7 kB / 348.5 MB, free: 12.24 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.2881, allocations: 272.9 kB / 348.8 MB, free: 11.96 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003031/0.2884, allocations: 362.9 kB / 349.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003175/0.2888, allocations: 182.8 kB / 349.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.2889, allocations: 374.8 kB / 349.7 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009943/0.2899, allocations: 438.4 kB / 350.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.291, allocations: 0.5305 MB / 350.7 MB, free: 10.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.2928, allocations: 0.7869 MB / 351.4 MB, free: 9.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2928, allocations: 0 / 351.4 MB, free: 9.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003132/0.2959, allocations: 1.35 MB / 352.8 MB, free: 7.902 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.296, allocations: 4 kB / 352.8 MB, free: 7.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.296, allocations: 4 kB / 352.8 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.2972, allocations: 0.6543 MB / 353.5 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008286/0.298, allocations: 203.7 kB / 353.7 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004137/0.3021, allocations: 3.434 MB / 357.1 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.3034, allocations: 183.9 kB / 357.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.472e-05/0.3036, allocations: 35.94 kB / 357.3 MB, free: 3.184 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.0004121/0.304, allocations: 221.8 kB / 357.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/0.3042, allocations: 71.16 kB / 357.6 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002248/0.3044, allocations: 107 kB / 357.7 MB, free: 2.781 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.3044, allocations: 12 kB / 357.7 MB, free: 2.77 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3044, allocations: 3.938 kB / 357.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.3044, allocations: 11.92 kB / 357.7 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004997/0.3094, allocations: 2.526 MB / 360.3 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.3095, allocations: 0 / 360.3 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007872/0.3103, allocations: 171.8 kB / 360.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.3113, allocations: 0.6194 MB / 361 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-05/0.3114, allocations: 39.95 kB / 361.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003881/0.3153, allocations: 3.226 MB / 364.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3154, allocations: 0 / 364.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003979/0.3193, allocations: 1.84 MB / 366.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004565/0.3198, allocations: 236.1 kB / 366.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.32, allocations: 28 kB / 366.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.3214, allocations: 203.7 kB / 366.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008515/0.3222, allocations: 384.3 kB / 367 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.3223, allocations: 47.95 kB / 367 MB, free: 9.078 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002979/0.3227, allocations: 263.2 kB / 367.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3227, allocations: 3.938 kB / 367.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000869/0.3235, allocations: 248 kB / 367.5 MB, free: 8.574 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.0003127/0.3239, allocations: 160.8 kB / 367.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003216/0.3271, allocations: 1.235 MB / 368.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3271, allocations: 3.938 kB / 368.9 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001689/0.3288, allocations: 0.7781 MB / 369.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000849/0.3297, allocations: 133 kB / 369.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004231/0.3339, allocations: 1.961 MB / 371.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.3345, allocations: 0.9361 MB / 372.7 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003695/0.3349, allocations: 81.39 kB / 372.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.335, allocations: 67.41 kB / 372.9 MB, free: 3.113 MB / 302.1 MB Notification: Performance of SimCode: time 4.017e-06/0.3351, allocations: 0 / 372.9 MB, free: 3.113 MB / 302.1 MB Notification: Performance of Templates: time 0.02963/0.3647, allocations: 17.55 MB / 390.4 MB, free: 1.535 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)