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.001321/0.001322, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001381/0.001381, allocations: 190.7 kB / 16.25 MB, free: 6.629 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.501/1.501, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.001288/0.001288, allocations: 55.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2598, allocations: 46.62 MB / 324.8 MB, free: 2.031 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005751/0.2656, allocations: 4.323 MB / 329.2 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003141/0.2688, allocations: 1.334 MB / 330.5 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005005/0.2693, allocations: 13.62 kB / 330.5 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003708/0.2697, allocations: 87.81 kB / 330.6 MB, free: 13.43 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004167/0.2702, allocations: 195.8 kB / 330.8 MB, free: 13.26 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.2713, allocations: 378.9 kB / 331.2 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.2727, allocations: 1.126 MB / 332.3 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004799/0.2731, allocations: 265.6 kB / 332.5 MB, free: 12.14 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000777/0.2739, allocations: 482.8 kB / 333 MB, free: 11.87 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006552/0.2746, allocations: 0.5162 MB / 333.5 MB, free: 11.49 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.2748, allocations: 88 kB / 333.6 MB, free: 11.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002932/0.2751, allocations: 151.9 kB / 333.8 MB, free: 11.26 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002504/0.2753, allocations: 227.2 kB / 334 MB, free: 11.04 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004454/0.2758, allocations: 442 kB / 334.4 MB, free: 10.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.277, allocations: 1.059 MB / 335.5 MB, free: 9.539 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.277, allocations: 0 / 335.5 MB, free: 9.539 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.277, allocations: 0 / 335.5 MB, free: 9.539 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.2771, allocations: 4 kB / 335.5 MB, free: 9.535 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.003298/0.2804, allocations: 1.279 MB / 336.8 MB, free: 8.207 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.2804, allocations: 8.031 kB / 336.8 MB, free: 8.199 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002647/0.2807, allocations: 87.91 kB / 336.9 MB, free: 8.113 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005478/0.2812, allocations: 445.7 kB / 337.3 MB, free: 7.637 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.566e-05/0.2813, allocations: 54.38 kB / 337.3 MB, free: 7.582 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.2815, allocations: 72.28 kB / 337.4 MB, free: 7.512 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.2831, allocations: 0.8077 MB / 338.2 MB, free: 6.699 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/0.2832, allocations: 7.906 kB / 338.2 MB, free: 6.691 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.209e-05/0.2832, allocations: 27.98 kB / 338.3 MB, free: 6.664 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.2833, allocations: 16 kB / 338.3 MB, free: 6.648 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/0.2851, allocations: 0.8666 MB / 339.1 MB, free: 5.781 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004066/0.2892, allocations: 2.4 MB / 341.5 MB, free: 3.25 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.2906, allocations: 0.6996 MB / 342.2 MB, free: 2.543 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008916/0.2915, allocations: 476.3 kB / 342.7 MB, free: 2.078 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.992e-05/0.2916, allocations: 12.98 kB / 342.7 MB, free: 2.066 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001189/0.2928, allocations: 0.5478 MB / 343.3 MB, free: 1.504 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 2.845e-06/0.2928, allocations: 0 / 343.3 MB, free: 1.504 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.0103/0.3031, allocations: 4.224 MB / 347.5 MB, free: 13.15 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.3032, allocations: 64.41 kB / 347.6 MB, free: 13.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000431/0.3037, allocations: 393.9 kB / 347.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.264e-05/0.3038, allocations: 53.7 kB / 348 MB, free: 12.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.304, allocations: 272.9 kB / 348.3 MB, free: 12.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002581/0.3042, allocations: 358.9 kB / 348.6 MB, free: 12 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/0.3045, allocations: 186.8 kB / 348.8 MB, free: 11.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3047, allocations: 382.7 kB / 349.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009083/0.3056, allocations: 438.4 kB / 349.6 MB, free: 11 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000953/0.3066, allocations: 0.5228 MB / 350.1 MB, free: 10.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.3081, allocations: 0.7869 MB / 350.9 MB, free: 9.652 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3081, allocations: 0 / 350.9 MB, free: 9.652 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002859/0.311, allocations: 1.342 MB / 352.2 MB, free: 8.293 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.311, allocations: 8 kB / 352.3 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3111, allocations: 3.984 kB / 352.3 MB, free: 8.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/0.3122, allocations: 0.6504 MB / 352.9 MB, free: 7.621 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007558/0.313, allocations: 207.7 kB / 353.1 MB, free: 7.418 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003827/0.3168, allocations: 3.445 MB / 356.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.3179, allocations: 179.9 kB / 356.7 MB, free: 3.602 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.318, allocations: 35.98 kB / 356.8 MB, free: 3.566 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.0003859/0.3184, allocations: 217.7 kB / 357 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.3185, allocations: 71.16 kB / 357 MB, free: 3.277 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002017/0.3187, allocations: 106.9 kB / 357.2 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.3188, allocations: 12 kB / 357.2 MB, free: 3.16 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.3188, allocations: 7.938 kB / 357.2 MB, free: 3.152 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.3188, allocations: 3.984 kB / 357.2 MB, free: 3.148 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004443/0.3232, allocations: 2.523 MB / 359.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.3233, allocations: 4 kB / 359.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007498/0.324, allocations: 175.8 kB / 359.9 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.325, allocations: 0.6234 MB / 360.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.738e-05/0.3251, allocations: 39.95 kB / 360.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0035/0.3286, allocations: 3.222 MB / 363.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3287, allocations: 0 / 363.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003654/0.3323, allocations: 1.848 MB / 365.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003996/0.3327, allocations: 236.1 kB / 365.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.3329, allocations: 32 kB / 365.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.3341, allocations: 199.7 kB / 366.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009246/0.335, allocations: 384.3 kB / 366.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.024e-05/0.3351, allocations: 43.95 kB / 366.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003345/0.3355, allocations: 271.1 kB / 366.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3355, allocations: 0 / 366.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008414/0.3363, allocations: 251.9 kB / 367 MB, free: 8.949 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.000331/0.3367, allocations: 168.9 kB / 367.2 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002957/0.3396, allocations: 1.227 MB / 368.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.3396, allocations: 0 / 368.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.3413, allocations: 0.7855 MB / 369.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008749/0.3422, allocations: 122.2 kB / 369.3 MB, free: 6.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003991/0.3462, allocations: 2.265 MB / 371.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000522/0.3467, allocations: 0.9322 MB / 372.5 MB, free: 3.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003693/0.3471, allocations: 77.44 kB / 372.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/0.3473, allocations: 71.36 kB / 372.6 MB, free: 3.191 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3473, allocations: 7.938 kB / 372.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of Templates: time 0.02412/0.3715, allocations: 17.04 MB / 389.7 MB, free: 2.117 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)