Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001617/0.001617, allocations: 190.2 kB / 8.137 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.179/1.179, allocations: 194.2 MB / 202.8 MB, free: 8.758 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001758/0.001758, allocations: 126.3 kB / 247.8 MB, free: 6.234 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.621e-06/5.651e-06, allocations: 0 / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07157/0.0716, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2006/0.2722, allocations: 78.22 MB / 420.3 MB, free: 16.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000174/0.2724, allocations: 68.03 kB / 420.3 MB, free: 16.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.04233/0.3148, allocations: 14.58 MB / 434.9 MB, free: 4.609 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.144e-05/0.3148, allocations: 16 kB / 434.9 MB, free: 4.594 MB / 314.7 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.002639/0.3175, allocations: 1.116 MB / 436 MB, free: 3.477 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3175, allocations: 12.03 kB / 436.1 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003244/0.3179, allocations: 86.97 kB / 436.1 MB, free: 3.379 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006003/0.3185, allocations: 414.3 kB / 436.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.311e-05/0.3185, allocations: 25.31 kB / 436.6 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.3187, allocations: 40 kB / 436.6 MB, free: 2.926 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001241/0.3199, allocations: 0.6819 MB / 437.3 MB, free: 2.477 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.321, allocations: 0.6282 MB / 437.9 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.726e-05/0.3211, allocations: 9.719 kB / 437.9 MB, free: 2.012 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.628e-05/0.3212, allocations: 7.75 kB / 437.9 MB, free: 2.008 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.3212, allocations: 16 kB / 438 MB, free: 1.992 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.3259, allocations: 2.351 MB / 440.3 MB, free: 4 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.327, allocations: 442.1 kB / 440.7 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006971/0.3277, allocations: 390.9 kB / 441.1 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.57e-05/0.3278, allocations: 12.69 kB / 441.1 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008112/0.3286, allocations: 472.8 kB / 441.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of pre-optimization done (n=89): time 6.052e-06/0.3287, allocations: 3.984 kB / 441.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=109): time 0.006123/0.3348, allocations: 2.589 MB / 444.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3349, allocations: 64.41 kB / 444.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.3352, allocations: 286 kB / 444.5 MB, free: 12.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.3353, allocations: 37.56 kB / 444.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.3355, allocations: 219.6 kB / 444.8 MB, free: 12.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002986/0.3358, allocations: 357.2 kB / 445.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.825e-05/0.3359, allocations: 1.594 kB / 445.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.336, allocations: 373.9 kB / 445.5 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006419/0.3367, allocations: 334.2 kB / 445.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007589/0.3374, allocations: 433 kB / 446.2 MB, free: 11.36 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007086/0.3382, allocations: 294.3 kB / 446.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.3382, allocations: 0 / 446.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002544/0.3407, allocations: 1.102 MB / 447.6 MB, free: 10.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3408, allocations: 5.094 kB / 447.6 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/0.3408, allocations: 4 kB / 447.6 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001071/0.3419, allocations: 0.5296 MB / 448.2 MB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009705/0.3429, allocations: 219 kB / 448.4 MB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00318/0.346, allocations: 2.899 MB / 451.3 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.3475, allocations: 243.9 kB / 451.5 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.3476, allocations: 49.33 kB / 451.6 MB, free: 6.699 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0003158/0.3479, allocations: 138.8 kB / 451.7 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.3481, allocations: 71.25 kB / 451.8 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002434/0.3505, allocations: 1.119 MB / 452.9 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3506, allocations: 8 kB / 452.9 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3506, allocations: 0 / 452.9 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.3506, allocations: 7.984 kB / 452.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/0.3548, allocations: 2.182 MB / 455.1 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.3548, allocations: 4 kB / 455.1 MB, free: 3.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009691/0.3558, allocations: 198.3 kB / 455.3 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00095/0.3568, allocations: 0.5 MB / 455.8 MB, free: 3.336 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.3569, allocations: 27.52 kB / 455.8 MB, free: 3.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002956/0.3599, allocations: 2.827 MB / 458.6 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3599, allocations: 5.031 kB / 458.6 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003171/0.3631, allocations: 1.665 MB / 460.3 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004114/0.3635, allocations: 223.2 kB / 460.5 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001822/0.3637, allocations: 19.17 kB / 460.5 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/0.3652, allocations: 263.8 kB / 460.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004004/0.3656, allocations: 202.5 kB / 461 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.3657, allocations: 47.78 kB / 461.1 MB, free: 14.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002644/0.366, allocations: 214.3 kB / 461.3 MB, free: 14.44 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008244/0.3669, allocations: 211.9 kB / 461.5 MB, free: 14.23 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * 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.0003242/0.3672, allocations: 165.3 kB / 461.6 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001816/0.369, allocations: 1.016 MB / 462.6 MB, free: 13.33 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.369, allocations: 0.6562 kB / 462.6 MB, free: 13.33 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.3704, allocations: 0.6448 MB / 463.3 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007013/0.3711, allocations: 92.95 kB / 463.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004002/0.3751, allocations: 1.555 MB / 464.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007779/0.3759, allocations: 1.009 MB / 465.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3759, allocations: 7.938 kB / 466 MB, free: 10.04 MB / 346.7 MB Notification: Performance of Templates: time 0.02453/0.4004, allocations: 14.97 MB / 480.9 MB, free: 11.11 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)