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.001291/0.001291, allocations: 111.6 kB / 16.63 MB, free: 6.953 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.0009947/0.0009948, allocations: 193.9 kB / 17.55 MB, free: 6.043 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.472/1.472, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001246/0.001246, allocations: 47.91 kB / 279.5 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1215, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006307/0.1278, allocations: 4.322 MB / 330.5 MB, free: 440 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003221/0.1311, allocations: 1.33 MB / 331.8 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007369/0.1319, allocations: 11.94 kB / 331.8 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005237/0.1324, allocations: 83.33 kB / 331.9 MB, free: 15 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006737/0.1331, allocations: 198.4 kB / 332.1 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.1344, allocations: 375.4 kB / 332.4 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.1354, allocations: 1.143 MB / 333.6 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004035/0.1359, allocations: 265.9 kB / 333.8 MB, free: 13.02 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005959/0.1365, allocations: 482.4 kB / 334.3 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005462/0.137, allocations: 0.5138 MB / 334.8 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001316/0.1372, allocations: 92 kB / 334.9 MB, free: 11.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002816/0.1375, allocations: 143.9 kB / 335.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.1377, allocations: 227.3 kB / 335.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003904/0.1381, allocations: 446 kB / 335.7 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.1392, allocations: 1.047 MB / 336.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.1392, allocations: 4 kB / 336.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1392, allocations: 4 kB / 336.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.1392, allocations: 0 / 336.8 MB, free: 10.09 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.003143/0.1424, allocations: 1.283 MB / 338.1 MB, free: 8.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.1424, allocations: 19.97 kB / 338.1 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002552/0.1427, allocations: 87.91 kB / 338.2 MB, free: 8.648 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005598/0.1433, allocations: 441.6 kB / 338.6 MB, free: 8.176 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.078e-05/0.1433, allocations: 54.38 kB / 338.6 MB, free: 8.121 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.1435, allocations: 64.38 kB / 338.7 MB, free: 8.059 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.1451, allocations: 0.8155 MB / 339.5 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/0.1451, allocations: 7.906 kB / 339.5 MB, free: 7.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.718e-05/0.1452, allocations: 28 kB / 339.6 MB, free: 7.203 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.1452, allocations: 16 kB / 339.6 MB, free: 7.188 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.1471, allocations: 0.8705 MB / 340.4 MB, free: 6.316 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004183/0.1513, allocations: 2.384 MB / 342.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.1529, allocations: 0.7112 MB / 343.5 MB, free: 3.082 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00094/0.1538, allocations: 480.3 kB / 344 MB, free: 2.613 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.929e-05/0.1539, allocations: 9 kB / 344 MB, free: 2.605 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001252/0.1552, allocations: 0.5517 MB / 344.6 MB, free: 2.039 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 3.877e-06/0.1552, allocations: 0 / 344.6 MB, free: 2.039 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01062/0.1658, allocations: 4.22 MB / 348.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.1659, allocations: 68.34 kB / 348.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004818/0.1664, allocations: 389.9 kB / 349.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.402e-05/0.1665, allocations: 57.69 kB / 349.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.1667, allocations: 268.9 kB / 349.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003036/0.167, allocations: 367 kB / 349.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003255/0.1673, allocations: 186.8 kB / 350.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1675, allocations: 366.8 kB / 350.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009374/0.1684, allocations: 446.4 kB / 350.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009768/0.1694, allocations: 0.5267 MB / 351.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/0.1711, allocations: 0.7792 MB / 352.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1711, allocations: 0 / 352.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002983/0.1741, allocations: 1.346 MB / 353.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.1741, allocations: 8 kB / 353.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.1741, allocations: 4 kB / 353.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.1753, allocations: 0.6543 MB / 354.2 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008073/0.1761, allocations: 203.6 kB / 354.4 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004262/0.1804, allocations: 3.43 MB / 357.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.1815, allocations: 179.9 kB / 358 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.12e-05/0.1816, allocations: 35.98 kB / 358 MB, free: 4.117 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.0004455/0.1821, allocations: 233.5 kB / 358.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.1822, allocations: 75.09 kB / 358.3 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002281/0.1825, allocations: 103 kB / 358.4 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.1825, allocations: 12 kB / 358.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.1825, allocations: 3.984 kB / 358.5 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.1825, allocations: 3.984 kB / 358.5 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004549/0.1871, allocations: 2.526 MB / 361 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.1871, allocations: 0 / 361 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007704/0.1879, allocations: 176 kB / 361.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.1889, allocations: 0.627 MB / 361.8 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.288e-05/0.189, allocations: 35.95 kB / 361.8 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003509/0.1926, allocations: 3.223 MB / 365 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.1926, allocations: 7.969 kB / 365.1 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003783/0.1964, allocations: 1.836 MB / 366.9 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.1967, allocations: 232.1 kB / 367.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.1969, allocations: 35.98 kB / 367.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.1981, allocations: 207.7 kB / 367.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008872/0.199, allocations: 384.3 kB / 367.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.867e-05/0.1991, allocations: 39.95 kB / 367.8 MB, free: 10 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002894/0.1994, allocations: 267.2 kB / 368 MB, free: 9.738 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1994, allocations: 0 / 368 MB, free: 9.738 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007976/0.2002, allocations: 252 kB / 368.3 MB, free: 9.492 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.0002936/0.2005, allocations: 156.9 kB / 368.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002868/0.2034, allocations: 1.224 MB / 369.7 MB, free: 8.094 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2034, allocations: 4.062 kB / 369.7 MB, free: 8.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.205, allocations: 0.7856 MB / 370.4 MB, free: 7.289 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008415/0.2058, allocations: 128.9 kB / 370.6 MB, free: 7.168 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003773/0.2096, allocations: 2.272 MB / 372.8 MB, free: 4.844 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.2101, allocations: 0.9322 MB / 373.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000343/0.2104, allocations: 81.45 kB / 373.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.2106, allocations: 67.41 kB / 373.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2106, allocations: 0 / 373.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of Templates: time 0.1978/0.4084, allocations: 17.05 MB / 391 MB, free: 49.54 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)