Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.006964/0.006964, allocations: 105.4 kB / 15.74 MB, free: 6.012 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.00139/0.001391, allocations: 199.2 kB / 16.68 MB, free: 5.93 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.535/1.535, allocations: 205.1 MB / 222.5 MB, free: 12.21 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.002072/0.002073, allocations: 47.92 kB / 326.5 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1212, allocations: 46.63 MB / 373.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005656/0.1269, allocations: 4.291 MB / 377.5 MB, free: 224 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2085/0.3354, allocations: 1.336 MB / 378.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004245/0.3359, allocations: 10.97 kB / 378.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.3363, allocations: 120.3 kB / 378.9 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004272/0.3367, allocations: 226.9 kB / 379.1 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.3381, allocations: 429 kB / 379.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001278/0.3394, allocations: 1.147 MB / 380.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004573/0.3398, allocations: 262.1 kB / 381 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007623/0.3406, allocations: 486.7 kB / 381.4 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005993/0.3412, allocations: 0.5106 MB / 382 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001603/0.3414, allocations: 91.72 kB / 382 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003148/0.3417, allocations: 154.5 kB / 382.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002442/0.3419, allocations: 219.5 kB / 382.4 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004197/0.3424, allocations: 450.7 kB / 382.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.3437, allocations: 1.064 MB / 383.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3438, allocations: 1.094 kB / 383.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3438, allocations: 0 / 383.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.856e-05/0.3438, allocations: 0.6094 kB / 383.9 MB, free: 8.207 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.004161/0.348, allocations: 1.291 MB / 385.2 MB, free: 7.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/0.348, allocations: 10.33 kB / 385.2 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.3484, allocations: 85.59 kB / 385.3 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008077/0.3493, allocations: 447 kB / 385.7 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.822e-05/0.3493, allocations: 54.22 kB / 385.8 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.3495, allocations: 73.17 kB / 385.9 MB, free: 7.035 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001912/0.3514, allocations: 0.8069 MB / 386.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.048e-05/0.3515, allocations: 10.34 kB / 386.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.3516, allocations: 25.88 kB / 386.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.215e-05/0.3516, allocations: 15.38 kB / 386.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002463/0.3541, allocations: 0.8746 MB / 387.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004815/0.3589, allocations: 2.367 MB / 390 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.3605, allocations: 0.7117 MB / 390.7 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.3616, allocations: 481 kB / 391.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.407e-05/0.3617, allocations: 12.45 kB / 391.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001224/0.3629, allocations: 0.5497 MB / 391.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 3.155e-06/0.3629, allocations: 0 / 391.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01122/0.3742, allocations: 4.224 MB / 395.9 MB, free: 2.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.3742, allocations: 64.2 kB / 396 MB, free: 2.426 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005156/0.3748, allocations: 396.1 kB / 396.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.506e-05/0.3749, allocations: 57.75 kB / 396.4 MB, free: 2.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.3751, allocations: 272.5 kB / 396.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.3753, allocations: 357.8 kB / 397 MB, free: 1.613 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004227/0.3757, allocations: 182.8 kB / 397.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3759, allocations: 377.5 kB / 397.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.377, allocations: 436.4 kB / 398 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.3781, allocations: 0.5317 MB / 398.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002048/0.3802, allocations: 0.7839 MB / 399.3 MB, free: 232 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.3802, allocations: 0 / 399.3 MB, free: 232 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003636/0.3839, allocations: 1.359 MB / 400.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.3839, allocations: 5.031 kB / 400.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.3839, allocations: 5.469 kB / 400.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/0.3853, allocations: 0.649 MB / 401.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008296/0.3861, allocations: 202.3 kB / 401.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004749/0.3909, allocations: 3.437 MB / 405 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.3923, allocations: 177.2 kB / 405.2 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.3924, allocations: 36.55 kB / 405.2 MB, free: 11.99 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.0006562/0.3931, allocations: 223.7 kB / 405.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.3934, allocations: 75.45 kB / 405.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002818/0.3937, allocations: 107.2 kB / 405.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.3937, allocations: 9.25 kB / 405.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-05/0.3937, allocations: 5.406 kB / 405.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.3938, allocations: 3.984 kB / 405.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005516/0.3993, allocations: 2.494 MB / 408.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.3993, allocations: 5.734 kB / 408.1 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008143/0.4001, allocations: 179 kB / 408.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.4015, allocations: 0.6121 MB / 408.9 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.4017, allocations: 37.59 kB / 408.9 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004717/0.4064, allocations: 3.22 MB / 412.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4064, allocations: 1.406 kB / 412.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004697/0.4111, allocations: 1.86 MB / 414 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006466/0.4118, allocations: 228.2 kB / 414.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002036/0.412, allocations: 32 kB / 414.3 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/0.4134, allocations: 199.7 kB / 414.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001021/0.4144, allocations: 384.4 kB / 414.8 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/0.4146, allocations: 39.97 kB / 414.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000485/0.4151, allocations: 267.1 kB / 415.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4151, allocations: 0 / 415.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001491/0.4166, allocations: 248 kB / 415.4 MB, free: 3.602 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.0004997/0.4172, allocations: 168.7 kB / 415.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003888/0.4211, allocations: 1.192 MB / 416.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.4211, allocations: 7.938 kB / 416.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002506/0.4236, allocations: 0.7781 MB / 417.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001577/0.4252, allocations: 132.2 kB / 417.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005871/0.4311, allocations: 1.952 MB / 419.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007261/0.4318, allocations: 0.9361 MB / 420.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005591/0.4324, allocations: 77.44 kB / 420.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.4327, allocations: 63.36 kB / 420.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4327, allocations: 4 kB / 420.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of Templates: time 0.04259/0.4753, allocations: 17.73 MB / 438.4 MB, free: 12.46 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)