Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.007487/0.007487, allocations: 101.4 kB / 15.73 MB, free: 6.453 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.001881/0.001881, allocations: 195.1 kB / 16.67 MB, free: 6.352 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.614/1.614, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001516/0.001517, allocations: 48.83 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1129, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006194/0.1191, allocations: 4.296 MB / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003284/0.1225, allocations: 1.341 MB / 378.8 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006389/0.1231, allocations: 11.94 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005511/0.1237, allocations: 118.8 kB / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007286/0.1245, allocations: 229.9 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.1257, allocations: 431.2 kB / 379.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.127, allocations: 1.131 MB / 380.7 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004092/0.1274, allocations: 265.6 kB / 381 MB, free: 9.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006712/0.1281, allocations: 486.5 kB / 381.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005837/0.1287, allocations: 0.5137 MB / 382 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001542/0.1289, allocations: 92 kB / 382 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003004/0.1292, allocations: 151.9 kB / 382.2 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.1294, allocations: 223.3 kB / 382.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004285/0.1299, allocations: 442 kB / 382.8 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001132/0.131, allocations: 1.066 MB / 383.9 MB, free: 6.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.373e-06/0.131, allocations: 0 / 383.9 MB, free: 6.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.131, allocations: 11.88 kB / 383.9 MB, free: 6.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.131, allocations: 0 / 383.9 MB, free: 6.496 MB / 318.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.003299/0.1344, allocations: 1.305 MB / 385.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.1344, allocations: 8.031 kB / 385.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.1346, allocations: 92.42 kB / 385.3 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006459/0.1353, allocations: 450 kB / 385.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.1355, allocations: 54.38 kB / 385.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.1356, allocations: 76.27 kB / 385.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001989/0.1376, allocations: 0.8116 MB / 386.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.1376, allocations: 7.938 kB / 386.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.023e-05/0.1377, allocations: 28 kB / 386.7 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.1377, allocations: 16 kB / 386.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002088/0.1398, allocations: 0.8666 MB / 387.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004453/0.1443, allocations: 2.373 MB / 390 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.1459, allocations: 0.715 MB / 390.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009861/0.1469, allocations: 464.3 kB / 391.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.166e-05/0.147, allocations: 17 kB / 391.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00117/0.1481, allocations: 0.5478 MB / 391.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.126e-06/0.1482, allocations: 4 kB / 391.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01094/0.1591, allocations: 4.245 MB / 396 MB, free: 10.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.1592, allocations: 64.41 kB / 396 MB, free: 9.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004221/0.1596, allocations: 386 kB / 396.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.909e-05/0.1597, allocations: 61.69 kB / 396.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.1599, allocations: 273.5 kB / 396.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002676/0.1602, allocations: 384.8 kB / 397.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003057/0.1605, allocations: 186.9 kB / 397.3 MB, free: 8.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1606, allocations: 374.8 kB / 397.7 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009621/0.1616, allocations: 438.4 kB / 398.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.1627, allocations: 0.5345 MB / 398.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.1644, allocations: 0.7753 MB / 399.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1644, allocations: 0 / 399.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003243/0.1676, allocations: 1.35 MB / 400.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.1677, allocations: 8 kB / 400.8 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1677, allocations: 7.984 kB / 400.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.1689, allocations: 0.6465 MB / 401.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008089/0.1698, allocations: 199.8 kB / 401.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004305/0.1741, allocations: 3.454 MB / 405.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/0.1753, allocations: 171.9 kB / 405.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.239e-05/0.1754, allocations: 39.98 kB / 405.3 MB, free: 468 kB / 334.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.0004326/0.1759, allocations: 225.6 kB / 405.5 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.176, allocations: 71.58 kB / 405.6 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002441/0.1763, allocations: 103 kB / 405.7 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.1763, allocations: 8 kB / 405.7 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.1763, allocations: 0 / 405.7 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.1763, allocations: 7.984 kB / 405.7 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004621/0.1809, allocations: 2.51 MB / 408.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.181, allocations: 4 kB / 408.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/0.1818, allocations: 175.8 kB / 408.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.1829, allocations: 0.6271 MB / 409 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.545e-05/0.183, allocations: 31.97 kB / 409 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003569/0.1866, allocations: 3.215 MB / 412.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.1866, allocations: 11.97 kB / 412.3 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004091/0.1907, allocations: 1.849 MB / 414.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003909/0.1911, allocations: 232.5 kB / 414.3 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/0.1913, allocations: 32 kB / 414.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.1926, allocations: 203.7 kB / 414.6 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009125/0.1935, allocations: 384.3 kB / 414.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.614e-05/0.1936, allocations: 39.95 kB / 415 MB, free: 6.375 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003259/0.1939, allocations: 271.1 kB / 415.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1939, allocations: 4 kB / 415.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008707/0.1948, allocations: 244 kB / 415.5 MB, free: 5.867 MB / 350.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.0003059/0.1951, allocations: 164.7 kB / 415.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002663/0.1978, allocations: 1.196 MB / 416.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.1978, allocations: 0 / 416.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001684/0.1995, allocations: 0.7858 MB / 417.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008331/0.2003, allocations: 141.8 kB / 417.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00409/0.2044, allocations: 1.962 MB / 419.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.205, allocations: 0.9322 MB / 420.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003541/0.2054, allocations: 81.44 kB / 420.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.2056, allocations: 67.42 kB / 420.8 MB, free: 440 kB / 350.1 MB Notification: Performance of SimCode: time 6.02e-07/0.2056, allocations: 0 / 420.8 MB, free: 440 kB / 350.1 MB Notification: Performance of Templates: time 0.02658/0.2322, allocations: 17.73 MB / 438.5 MB, free: 14.67 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)