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.00126/0.001266, 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.001445/0.001445, allocations: 193.6 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.606/1.606, allocations: 205.1 MB / 222.4 MB, free: 4.543 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.001455/0.001455, allocations: 51.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2936, allocations: 46.63 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005655/0.2994, allocations: 4.299 MB / 329.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002765/0.3021, allocations: 1.338 MB / 330.9 MB, free: 13.31 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.3025, allocations: 13.56 kB / 331 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003368/0.3028, allocations: 120.3 kB / 331.1 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004042/0.3032, allocations: 222 kB / 331.3 MB, free: 13.01 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001034/0.3043, allocations: 424.6 kB / 331.7 MB, free: 12.66 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.3054, allocations: 1.131 MB / 332.8 MB, free: 11.99 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004022/0.3058, allocations: 265 kB / 333.1 MB, free: 11.83 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006034/0.3064, allocations: 471.5 kB / 333.6 MB, free: 11.57 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005906/0.307, allocations: 0.5189 MB / 334.1 MB, free: 11.11 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001555/0.3072, allocations: 92 kB / 334.2 MB, free: 11.02 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002997/0.3075, allocations: 144 kB / 334.3 MB, free: 10.88 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002396/0.3077, allocations: 227.2 kB / 334.5 MB, free: 10.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004287/0.3082, allocations: 450 kB / 335 MB, free: 10.22 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.3092, allocations: 1.051 MB / 336 MB, free: 9.164 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3092, allocations: 0 / 336 MB, free: 9.164 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3092, allocations: 0 / 336 MB, free: 9.164 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.3092, allocations: 0 / 336 MB, free: 9.164 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.003204/0.3125, allocations: 1.291 MB / 337.3 MB, free: 7.824 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3125, allocations: 12.02 kB / 337.3 MB, free: 7.812 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.3127, allocations: 87.91 kB / 337.4 MB, free: 7.727 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005519/0.3133, allocations: 433.7 kB / 337.8 MB, free: 7.262 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.141e-05/0.3134, allocations: 50.38 kB / 337.9 MB, free: 7.211 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.3135, allocations: 76.27 kB / 338 MB, free: 7.137 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.3151, allocations: 0.8155 MB / 338.8 MB, free: 6.316 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.3151, allocations: 3.906 kB / 338.8 MB, free: 6.312 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.139e-05/0.3152, allocations: 32 kB / 338.8 MB, free: 6.281 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.3152, allocations: 16 kB / 338.8 MB, free: 6.266 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.3172, allocations: 0.8704 MB / 339.7 MB, free: 5.395 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004073/0.3213, allocations: 2.392 MB / 342.1 MB, free: 2.871 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001466/0.3228, allocations: 0.7189 MB / 342.8 MB, free: 2.145 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009478/0.3237, allocations: 468.2 kB / 343.3 MB, free: 1.684 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-05/0.3238, allocations: 17 kB / 343.3 MB, free: 1.668 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.325, allocations: 0.5477 MB / 343.8 MB, free: 1.105 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 2.645e-06/0.325, allocations: 4 kB / 343.8 MB, free: 1.102 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.0111/0.3361, allocations: 4.216 MB / 348 MB, free: 12.76 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.3362, allocations: 64.39 kB / 348.1 MB, free: 12.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.3366, allocations: 393.9 kB / 348.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.737e-05/0.3367, allocations: 57.69 kB / 348.5 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.337, allocations: 264.9 kB / 348.8 MB, free: 11.96 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003233/0.3373, allocations: 370.9 kB / 349.2 MB, free: 11.6 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003008/0.3376, allocations: 178.9 kB / 349.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3378, allocations: 374.8 kB / 349.7 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009509/0.3387, allocations: 442.3 kB / 350.1 MB, free: 10.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.3398, allocations: 0.5306 MB / 350.7 MB, free: 10.06 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.3414, allocations: 0.7753 MB / 351.4 MB, free: 9.273 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3414, allocations: 0 / 351.4 MB, free: 9.273 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003061/0.3445, allocations: 1.354 MB / 352.8 MB, free: 7.902 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3446, allocations: 4 kB / 352.8 MB, free: 7.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.3446, allocations: 4 kB / 352.8 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.3457, allocations: 0.6543 MB / 353.5 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007763/0.3465, allocations: 203.7 kB / 353.7 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004501/0.351, allocations: 3.434 MB / 357.1 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.3522, allocations: 175.9 kB / 357.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.42e-05/0.3523, allocations: 35.98 kB / 357.3 MB, free: 3.191 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.0004143/0.3528, allocations: 225.6 kB / 357.5 MB, free: 2.961 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.3529, allocations: 71.14 kB / 357.6 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002156/0.3531, allocations: 103 kB / 357.7 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3531, allocations: 12 kB / 357.7 MB, free: 2.777 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.3532, allocations: 0 / 357.7 MB, free: 2.777 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.3532, allocations: 11.95 kB / 357.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004445/0.3576, allocations: 2.53 MB / 360.2 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.3576, allocations: 0 / 360.2 MB, free: 128 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007548/0.3584, allocations: 176 kB / 360.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.3594, allocations: 0.6309 MB / 361.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.495e-05/0.3595, allocations: 31.97 kB / 361.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00378/0.3633, allocations: 3.222 MB / 364.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3633, allocations: 0 / 364.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003733/0.3671, allocations: 1.844 MB / 366.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003976/0.3675, allocations: 236.1 kB / 366.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.3676, allocations: 32 kB / 366.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.369, allocations: 199.7 kB / 366.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008269/0.3698, allocations: 380.4 kB / 367 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.007e-05/0.3699, allocations: 43.97 kB / 367 MB, free: 9.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002806/0.3702, allocations: 267.1 kB / 367.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3702, allocations: 11.94 kB / 367.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007995/0.371, allocations: 244 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.0002854/0.3713, allocations: 168.7 kB / 367.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.3744, allocations: 1.227 MB / 368.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3744, allocations: 0 / 368.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001612/0.376, allocations: 0.782 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.0008219/0.3768, allocations: 136.9 kB / 369.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003853/0.3807, allocations: 1.961 MB / 371.8 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.3813, allocations: 0.9322 MB / 372.7 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003353/0.3816, allocations: 81.44 kB / 372.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/0.3818, allocations: 67.42 kB / 372.9 MB, free: 3.113 MB / 302.1 MB Notification: Performance of SimCode: time 1.974e-06/0.3818, allocations: 0 / 372.9 MB, free: 3.113 MB / 302.1 MB Notification: Performance of Templates: time 0.02627/0.4081, allocations: 17.54 MB / 390.4 MB, free: 1.547 MB / 318.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)