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.001319/0.001319, allocations: 97 kB / 16.3 MB, free: 5.531 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.001108/0.001108, allocations: 181.9 kB / 17.2 MB, free: 5.465 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.633/1.633, allocations: 205.4 MB / 223.4 MB, free: 13.18 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.0005087/0.0005088, allocations: 8 kB / 280.1 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1147, allocations: 47.58 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004937/0.1197, allocations: 3.493 MB / 331.2 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002814/0.1226, allocations: 1.311 MB / 332.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006106/0.1232, allocations: 11.94 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002559/0.1235, allocations: 75.44 kB / 332.6 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004414/0.1239, allocations: 247.3 kB / 332.8 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008986/0.1248, allocations: 339.3 kB / 333.2 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007528/0.1256, allocations: 0.7001 MB / 333.9 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000324/0.1259, allocations: 191.4 kB / 334 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005058/0.1265, allocations: 410.7 kB / 334.4 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005151/0.127, allocations: 458.3 kB / 334.9 MB, free: 12.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.984e-05/0.1271, allocations: 48 kB / 334.9 MB, free: 12.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.1273, allocations: 99.89 kB / 335 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.1275, allocations: 171.4 kB / 335.2 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.1277, allocations: 161.3 kB / 335.4 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007117/0.1284, allocations: 0.7361 MB / 336.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1284, allocations: 0 / 336.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1284, allocations: 0 / 336.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1284, allocations: 0 / 336.1 MB, free: 11.63 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.003039/0.1315, allocations: 1.224 MB / 337.3 MB, free: 10.36 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.1315, allocations: 12.03 kB / 337.3 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.1318, allocations: 86.97 kB / 337.4 MB, free: 10.26 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006244/0.1324, allocations: 424.6 kB / 337.8 MB, free: 9.809 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.1325, allocations: 61.94 kB / 337.9 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.1326, allocations: 71.91 kB / 338 MB, free: 9.676 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.1342, allocations: 0.8154 MB / 338.8 MB, free: 8.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.1343, allocations: 0 / 338.8 MB, free: 8.855 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.783e-05/0.1344, allocations: 28 kB / 338.8 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.1344, allocations: 20 kB / 338.8 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.1363, allocations: 0.8939 MB / 339.7 MB, free: 7.914 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00434/0.1407, allocations: 2.462 MB / 342.2 MB, free: 5.316 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.1422, allocations: 0.723 MB / 342.9 MB, free: 4.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.548e-05/0.1423, allocations: 16.98 kB / 342.9 MB, free: 4.574 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.1434, allocations: 0.5595 MB / 343.5 MB, free: 4.004 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.975e-06/0.1435, allocations: 0 / 343.5 MB, free: 4.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01177/0.1552, allocations: 4.465 MB / 347.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.1553, allocations: 64.41 kB / 348 MB, free: 15.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004557/0.1558, allocations: 393.8 kB / 348.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.548e-05/0.1559, allocations: 57.69 kB / 348.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.1561, allocations: 273 kB / 348.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003183/0.1564, allocations: 355 kB / 349.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.256e-05/0.1565, allocations: 20 kB / 349.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.1567, allocations: 370.8 kB / 349.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.1577, allocations: 454.4 kB / 349.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.1588, allocations: 0.5345 MB / 350.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009052/0.1598, allocations: 394.3 kB / 350.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1598, allocations: 0 / 350.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003254/0.163, allocations: 1.377 MB / 352.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.1631, allocations: 4 kB / 352.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.1631, allocations: 0 / 352.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/0.1644, allocations: 0.6504 MB / 352.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008373/0.1652, allocations: 215.7 kB / 353 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004393/0.1696, allocations: 3.299 MB / 356.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.1711, allocations: 243.7 kB / 356.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.1712, allocations: 35.98 kB / 356.6 MB, free: 6.453 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,$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.000559/0.1718, allocations: 233.5 kB / 356.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/0.172, allocations: 67.23 kB / 356.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002222/0.1722, allocations: 103 kB / 357 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.437e-06/0.1722, allocations: 12 kB / 357 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/0.1723, allocations: 0 / 357 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.1723, allocations: 3.984 kB / 357 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005071/0.1774, allocations: 2.562 MB / 359.6 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.1774, allocations: 4.031 kB / 359.6 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008037/0.1782, allocations: 179.8 kB / 359.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.1793, allocations: 0.6193 MB / 360.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.96e-05/0.1794, allocations: 31.97 kB / 360.4 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003815/0.1832, allocations: 3.151 MB / 363.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.1832, allocations: 4.031 kB / 363.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003938/0.1872, allocations: 1.966 MB / 365.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.1876, allocations: 244 kB / 365.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.1878, allocations: 28 kB / 365.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.1892, allocations: 279.7 kB / 366.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008789/0.1901, allocations: 424.1 kB / 366.5 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.1902, allocations: 39.97 kB / 366.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003207/0.1905, allocations: 267.1 kB / 366.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1906, allocations: 3.938 kB / 366.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008989/0.1915, allocations: 248 kB / 367 MB, free: 11.61 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 (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.000337/0.1918, allocations: 172.5 kB / 367.2 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003079/0.1949, allocations: 1.208 MB / 368.4 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.1949, allocations: 320 / 368.4 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.1968, allocations: 0.7895 MB / 369.2 MB, free: 9.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008062/0.1976, allocations: 112.8 kB / 369.3 MB, free: 9.297 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/0.2021, allocations: 2.369 MB / 371.7 MB, free: 6.883 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/0.2027, allocations: 0.9517 MB / 372.6 MB, free: 5.906 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004151/0.2031, allocations: 81.44 kB / 372.7 MB, free: 5.824 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.2033, allocations: 55.42 kB / 372.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2033, allocations: 0 / 372.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of Templates: time 0.2079/0.4112, allocations: 15.41 MB / 388.2 MB, free: 50.67 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: