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.0009365/0.0009365, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006632/0.006633, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.654/1.654, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.000442/0.000442, allocations: 11.23 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2803, allocations: 47.59 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005988/0.2863, allocations: 3.925 MB / 331 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003908/0.2903, allocations: 1.314 MB / 332.3 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005752/0.2909, allocations: 13.06 kB / 332.3 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003951/0.2913, allocations: 84.03 kB / 332.4 MB, free: 13.14 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008495/0.2922, allocations: 194.6 kB / 332.6 MB, free: 12.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00161/0.2938, allocations: 376.5 kB / 332.9 MB, free: 12.67 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001899/0.2957, allocations: 1.075 MB / 334 MB, free: 12.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005769/0.2963, allocations: 223.3 kB / 334.2 MB, free: 11.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009564/0.2973, allocations: 430.5 kB / 334.6 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006199/0.2979, allocations: 473.6 kB / 335.1 MB, free: 11.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.866e-05/0.298, allocations: 44 kB / 335.1 MB, free: 11.23 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002704/0.2983, allocations: 107.9 kB / 335.2 MB, free: 11.12 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.2985, allocations: 179.3 kB / 335.4 MB, free: 10.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003882/0.2989, allocations: 411.7 kB / 335.8 MB, free: 10.54 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009683/0.2999, allocations: 0.9885 MB / 336.8 MB, free: 9.547 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2999, allocations: 3.938 kB / 336.8 MB, free: 9.543 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2999, allocations: 0 / 336.8 MB, free: 9.543 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.2999, allocations: 0 / 336.8 MB, free: 9.543 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.003208/0.3032, allocations: 1.217 MB / 338 MB, free: 8.277 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.3032, allocations: 12.03 kB / 338 MB, free: 8.266 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002789/0.3035, allocations: 91.89 kB / 338.1 MB, free: 8.176 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006973/0.3042, allocations: 441.6 kB / 338.6 MB, free: 7.703 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.66e-05/0.3043, allocations: 50.38 kB / 338.6 MB, free: 7.652 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.3045, allocations: 68.38 kB / 338.7 MB, free: 7.586 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.3062, allocations: 0.8272 MB / 339.5 MB, free: 6.754 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.914e-05/0.3063, allocations: 15.89 kB / 339.5 MB, free: 6.738 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.022e-05/0.3064, allocations: 32 kB / 339.6 MB, free: 6.707 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.3064, allocations: 16 kB / 339.6 MB, free: 6.691 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001992/0.3084, allocations: 0.8978 MB / 340.5 MB, free: 5.793 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004441/0.3129, allocations: 2.451 MB / 342.9 MB, free: 3.211 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.3144, allocations: 0.7347 MB / 343.7 MB, free: 2.469 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009686/0.3153, allocations: 480.3 kB / 344.1 MB, free: 2 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.451e-05/0.3154, allocations: 20.98 kB / 344.1 MB, free: 1.98 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001234/0.3167, allocations: 0.5634 MB / 344.7 MB, free: 1.402 MB / 270.1 MB Notification: Performance of pre-optimization done (n=86): time 2.826e-06/0.3167, allocations: 0 / 344.7 MB, free: 1.402 MB / 270.1 MB Notification: Performance of matching and sorting (n=106): time 0.01156/0.3283, allocations: 4.49 MB / 349.2 MB, free: 12.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.3284, allocations: 64.34 kB / 349.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005457/0.3289, allocations: 390 kB / 349.6 MB, free: 12.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.621e-05/0.329, allocations: 49.7 kB / 349.7 MB, free: 12.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.3293, allocations: 280.9 kB / 350 MB, free: 11.99 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003132/0.3296, allocations: 358.9 kB / 350.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.3297, allocations: 93.66 kB / 350.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3299, allocations: 370.8 kB / 350.8 MB, free: 11.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000962/0.3309, allocations: 454.3 kB / 351.2 MB, free: 10.72 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.3319, allocations: 0.5501 MB / 351.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.3336, allocations: 0.8104 MB / 352.6 MB, free: 9.324 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3336, allocations: 4 kB / 352.6 MB, free: 9.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003042/0.3367, allocations: 1.377 MB / 354 MB, free: 7.926 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.3367, allocations: 8 kB / 354 MB, free: 7.918 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3367, allocations: 0 / 354 MB, free: 7.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.3379, allocations: 0.6504 MB / 354.6 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008137/0.3388, allocations: 211.8 kB / 354.8 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.3429, allocations: 3.318 MB / 358.1 MB, free: 3.539 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.3442, allocations: 235.8 kB / 358.4 MB, free: 3.309 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-05/0.3443, allocations: 35.98 kB / 358.4 MB, free: 3.273 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.0003979/0.3447, allocations: 225.7 kB / 358.6 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.3449, allocations: 75.09 kB / 358.7 MB, free: 2.973 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002631/0.3451, allocations: 103 kB / 358.8 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.3452, allocations: 12 kB / 358.8 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.3452, allocations: 0 / 358.8 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.3452, allocations: 7.969 kB / 358.8 MB, free: 2.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004589/0.3498, allocations: 2.566 MB / 361.4 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.3498, allocations: 11.95 kB / 361.4 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007867/0.3506, allocations: 183.8 kB / 361.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001067/0.3517, allocations: 0.6153 MB / 362.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-05/0.3518, allocations: 35.95 kB / 362.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003377/0.3552, allocations: 3.128 MB / 365.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3552, allocations: 0 / 365.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003847/0.359, allocations: 1.903 MB / 367.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.3594, allocations: 224.2 kB / 367.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.3596, allocations: 32 kB / 367.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.361, allocations: 275.7 kB / 367.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009036/0.3619, allocations: 372.3 kB / 368.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.448e-05/0.362, allocations: 39.97 kB / 368.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002984/0.3623, allocations: 271.1 kB / 368.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3623, allocations: 4 kB / 368.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000772/0.3631, allocations: 244 kB / 368.7 MB, free: 8.609 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.0003238/0.3634, allocations: 172.8 kB / 368.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002485/0.3659, allocations: 1.223 MB / 370.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3659, allocations: 0 / 370.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.3675, allocations: 0.7898 MB / 370.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000956/0.3685, allocations: 128.7 kB / 371 MB, free: 6.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004582/0.373, allocations: 2.459 MB / 373.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006656/0.3737, allocations: 0.9322 MB / 374.4 MB, free: 2.801 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004517/0.3742, allocations: 77.44 kB / 374.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.3744, allocations: 63.42 kB / 374.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of SimCode: time 1.844e-06/0.3744, allocations: 0 / 374.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of Templates: time 0.03058/0.405, allocations: 15.95 MB / 390.5 MB, free: 2.68 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)