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.001052/0.001052, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.00148/0.00148, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004507/0.0004507, allocations: 8 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2545, allocations: 47.6 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004341/0.2589, allocations: 3.713 MB / 330.2 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002908/0.2619, allocations: 1.288 MB / 331.5 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003783/0.2623, allocations: 9.031 kB / 331.5 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002868/0.2626, allocations: 88.27 kB / 331.6 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003938/0.263, allocations: 198.9 kB / 331.8 MB, free: 13.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009207/0.2639, allocations: 323.8 kB / 332.1 MB, free: 12.91 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.265, allocations: 1.001 MB / 333.1 MB, free: 12.29 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003389/0.2654, allocations: 201.8 kB / 333.3 MB, free: 12.15 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005446/0.2659, allocations: 415.2 kB / 333.7 MB, free: 11.94 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005725/0.2665, allocations: 464.9 kB / 334.1 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.2666, allocations: 46.53 kB / 334.2 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002665/0.2669, allocations: 99.39 kB / 334.3 MB, free: 11.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.2671, allocations: 164.8 kB / 334.4 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.2673, allocations: 159.9 kB / 334.6 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006879/0.268, allocations: 0.744 MB / 335.3 MB, free: 10.58 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.268, allocations: 0 / 335.3 MB, free: 10.58 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.268, allocations: 0 / 335.3 MB, free: 10.58 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.268, allocations: 3.938 kB / 335.4 MB, free: 10.57 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.002759/0.2708, allocations: 1.221 MB / 336.6 MB, free: 9.305 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.2708, allocations: 16.02 kB / 336.6 MB, free: 9.289 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.2711, allocations: 86.97 kB / 336.7 MB, free: 9.203 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005849/0.2717, allocations: 428.6 kB / 337.1 MB, free: 8.746 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.211e-05/0.2717, allocations: 50 kB / 337.1 MB, free: 8.695 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.2719, allocations: 75.89 kB / 337.2 MB, free: 8.621 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.2735, allocations: 0.8154 MB / 338 MB, free: 7.801 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.2735, allocations: 0 / 338 MB, free: 7.801 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.077e-05/0.2736, allocations: 32 kB / 338.1 MB, free: 7.77 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.629e-05/0.2736, allocations: 16 kB / 338.1 MB, free: 7.754 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001878/0.2755, allocations: 0.8939 MB / 339 MB, free: 6.859 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004097/0.2796, allocations: 2.462 MB / 341.4 MB, free: 4.266 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.2811, allocations: 0.727 MB / 342.2 MB, free: 3.535 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008946/0.282, allocations: 480.3 kB / 342.6 MB, free: 3.066 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.339e-05/0.2821, allocations: 13 kB / 342.6 MB, free: 3.051 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.2833, allocations: 0.5634 MB / 343.2 MB, free: 2.477 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 2.485e-06/0.2833, allocations: 0 / 343.2 MB, free: 2.477 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01039/0.2937, allocations: 4.474 MB / 347.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.2937, allocations: 68.41 kB / 347.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004437/0.2942, allocations: 389.8 kB / 348.1 MB, free: 13.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-05/0.2943, allocations: 53.7 kB / 348.2 MB, free: 13.35 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.2945, allocations: 269 kB / 348.4 MB, free: 13.08 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/0.2948, allocations: 366.9 kB / 348.8 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.441e-05/0.2949, allocations: 27.92 kB / 348.8 MB, free: 12.69 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.2951, allocations: 370.8 kB / 349.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009201/0.296, allocations: 446.4 kB / 349.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.297, allocations: 0.5423 MB / 350.2 MB, free: 11.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008301/0.2979, allocations: 406.3 kB / 350.6 MB, free: 10.92 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2979, allocations: 0 / 350.6 MB, free: 10.92 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002802/0.3007, allocations: 1.362 MB / 351.9 MB, free: 9.543 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.3007, allocations: 7.984 kB / 351.9 MB, free: 9.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3007, allocations: 8 kB / 351.9 MB, free: 9.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.3019, allocations: 0.6543 MB / 352.6 MB, free: 8.863 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000752/0.3026, allocations: 203.7 kB / 352.8 MB, free: 8.664 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004028/0.3067, allocations: 3.298 MB / 356.1 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.3078, allocations: 235.9 kB / 356.3 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.164e-05/0.3079, allocations: 35.98 kB / 356.4 MB, free: 4.914 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.0004129/0.3083, allocations: 233.6 kB / 356.6 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.3085, allocations: 71.16 kB / 356.7 MB, free: 4.609 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002331/0.3087, allocations: 99.02 kB / 356.8 MB, free: 4.508 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.3087, allocations: 8 kB / 356.8 MB, free: 4.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.3087, allocations: 4 kB / 356.8 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.3088, allocations: 7.969 kB / 356.8 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004604/0.3134, allocations: 2.558 MB / 359.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3134, allocations: 0 / 359.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007346/0.3141, allocations: 188 kB / 359.5 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.3152, allocations: 0.6153 MB / 360.1 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.989e-05/0.3153, allocations: 43.95 kB / 360.2 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003677/0.3189, allocations: 3.124 MB / 363.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.319, allocations: 7.969 kB / 363.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003697/0.3227, allocations: 1.88 MB / 365.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004252/0.3231, allocations: 236.1 kB / 365.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.3233, allocations: 31.95 kB / 365.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.3244, allocations: 271.7 kB / 365.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008957/0.3253, allocations: 432.3 kB / 366.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.073e-05/0.3254, allocations: 47.97 kB / 366.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003014/0.3257, allocations: 267.1 kB / 366.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3257, allocations: 3.938 kB / 366.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008379/0.3266, allocations: 248 kB / 366.7 MB, free: 10.2 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.0003173/0.3269, allocations: 168.7 kB / 366.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.3296, allocations: 1.216 MB / 368.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.299e-06/0.3296, allocations: 0 / 368.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002408/0.3321, allocations: 0.7898 MB / 368.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.3333, allocations: 117.4 kB / 369 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005812/0.3391, allocations: 2.38 MB / 371.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000872/0.34, allocations: 0.9283 MB / 372.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005659/0.3406, allocations: 81.44 kB / 372.4 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002573/0.3409, allocations: 63.41 kB / 372.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3409, allocations: 0 / 372.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of Templates: time 0.03505/0.3759, allocations: 15.44 MB / 387.9 MB, free: 4.895 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)