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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 106.5 kB / 16.92 MB, free: 5.77 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.001182/0.001182, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.53/1.53, allocations: 205.1 MB / 223.7 MB, free: 12.34 MB / 190.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.001335/0.001335, allocations: 47.94 kB / 280 MB, free: 3.203 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1098, allocations: 46.63 MB / 326.6 MB, free: 4.496 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006558/0.1164, allocations: 4.307 MB / 330.9 MB, free: 152 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.1195, allocations: 1.329 MB / 332.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000354/0.1199, allocations: 19.94 kB / 332.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003898/0.1204, allocations: 114.8 kB / 332.4 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005729/0.1209, allocations: 226 kB / 332.6 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1221, allocations: 431.1 kB / 333 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.1234, allocations: 1.131 MB / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.1238, allocations: 257.9 kB / 334.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005655/0.1244, allocations: 478.6 kB / 334.9 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005586/0.1249, allocations: 0.5099 MB / 335.4 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.1251, allocations: 92 kB / 335.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003717/0.1255, allocations: 147.9 kB / 335.6 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000229/0.1257, allocations: 223.3 kB / 335.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004496/0.1262, allocations: 450 kB / 336.3 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.1272, allocations: 1.047 MB / 337.3 MB, free: 9.711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1273, allocations: 4 kB / 337.3 MB, free: 9.707 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1273, allocations: 4 kB / 337.3 MB, free: 9.703 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1273, allocations: 0 / 337.3 MB, free: 9.703 MB / 286.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.003269/0.1306, allocations: 1.279 MB / 338.6 MB, free: 8.375 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.1306, allocations: 12.03 kB / 338.6 MB, free: 8.363 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002401/0.1309, allocations: 91.91 kB / 338.7 MB, free: 8.273 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006506/0.1315, allocations: 445.5 kB / 339.1 MB, free: 7.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.075e-05/0.1316, allocations: 54.38 kB / 339.2 MB, free: 7.742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.1317, allocations: 68.38 kB / 339.3 MB, free: 7.676 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.1335, allocations: 0.8155 MB / 340.1 MB, free: 6.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.1335, allocations: 3.906 kB / 340.1 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-05/0.1336, allocations: 28 kB / 340.1 MB, free: 6.824 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.1337, allocations: 16 kB / 340.1 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002089/0.1358, allocations: 0.8666 MB / 341 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004293/0.1401, allocations: 2.396 MB / 343.4 MB, free: 3.414 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.1416, allocations: 0.7149 MB / 344.1 MB, free: 2.691 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009557/0.1426, allocations: 480.3 kB / 344.6 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.545e-05/0.1427, allocations: 9 kB / 344.6 MB, free: 2.211 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001237/0.1439, allocations: 0.5478 MB / 345.1 MB, free: 1.648 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.786e-06/0.1439, allocations: 0 / 345.1 MB, free: 1.648 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01112/0.155, allocations: 4.22 MB / 349.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.1551, allocations: 64.34 kB / 349.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005219/0.1557, allocations: 393.9 kB / 349.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.559e-05/0.1558, allocations: 53.7 kB / 349.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.156, allocations: 272.9 kB / 350.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.1564, allocations: 359 kB / 350.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003426/0.1567, allocations: 186.8 kB / 350.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000208/0.1569, allocations: 370.8 kB / 351 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.1579, allocations: 442.4 kB / 351.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.159, allocations: 0.5228 MB / 352 MB, free: 10.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001758/0.1608, allocations: 0.7792 MB / 352.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.1608, allocations: 4 kB / 352.8 MB, free: 9.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003063/0.1639, allocations: 1.35 MB / 354.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.1639, allocations: 11.98 kB / 354.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.1639, allocations: 4 kB / 354.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/0.1652, allocations: 0.6465 MB / 354.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008078/0.166, allocations: 207.6 kB / 355 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004202/0.1702, allocations: 3.434 MB / 358.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.1715, allocations: 179.9 kB / 358.6 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.518e-05/0.1716, allocations: 32 kB / 358.6 MB, free: 3.738 MB / 302.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.000435/0.172, allocations: 237.5 kB / 358.8 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.1722, allocations: 79.12 kB / 358.9 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.1724, allocations: 103 kB / 359 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.1724, allocations: 12 kB / 359 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1724, allocations: 0 / 359 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.1724, allocations: 3.984 kB / 359 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00457/0.177, allocations: 2.534 MB / 361.6 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.1771, allocations: 0 / 361.6 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007819/0.1778, allocations: 180 kB / 361.7 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.179, allocations: 0.6153 MB / 362.4 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.97e-05/0.1791, allocations: 35.95 kB / 362.4 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004896/0.184, allocations: 3.222 MB / 365.6 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.896e-06/0.1841, allocations: 7.938 kB / 365.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004127/0.1882, allocations: 1.837 MB / 367.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005041/0.1887, allocations: 232.1 kB / 367.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.1889, allocations: 35.98 kB / 367.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001363/0.1902, allocations: 207.7 kB / 367.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008508/0.1911, allocations: 380.3 kB / 368.3 MB, free: 9.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.808e-05/0.1912, allocations: 43.95 kB / 368.3 MB, free: 9.617 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003026/0.1915, allocations: 267.2 kB / 368.6 MB, free: 9.355 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1915, allocations: 0 / 368.6 MB, free: 9.355 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000827/0.1923, allocations: 244 kB / 368.8 MB, free: 9.117 MB / 318.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.0003544/0.1927, allocations: 172.8 kB / 369 MB, free: 8.938 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003079/0.1958, allocations: 1.219 MB / 370.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.1958, allocations: 320 / 370.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.1975, allocations: 0.7817 MB / 371 MB, free: 6.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008841/0.1984, allocations: 130.8 kB / 371.1 MB, free: 6.785 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004055/0.2024, allocations: 1.956 MB / 373.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005062/0.2029, allocations: 0.9322 MB / 374 MB, free: 3.816 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003752/0.2033, allocations: 77.45 kB / 374.1 MB, free: 3.738 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.2035, allocations: 71.41 kB / 374.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2035, allocations: 0 / 374.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of Templates: time 0.1768/0.3804, allocations: 17.54 MB / 391.7 MB, free: 48.64 MB / 318.1 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)