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.001251/0.001251, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001451/0.001451, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.705/1.705, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0004825/0.0004826, allocations: 8 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1011, allocations: 47.58 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004549/0.1057, allocations: 3.921 MB / 332.2 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.1085, allocations: 1.318 MB / 333.6 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004669/0.109, allocations: 15.94 kB / 333.6 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004138/0.1094, allocations: 83.31 kB / 333.6 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007105/0.1102, allocations: 194.4 kB / 333.8 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.1113, allocations: 383.4 kB / 334.2 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.1124, allocations: 1.084 MB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.1127, allocations: 219.1 kB / 335.5 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004744/0.1132, allocations: 426.4 kB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004825/0.1137, allocations: 474.1 kB / 336.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.508e-05/0.1138, allocations: 48 kB / 336.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002427/0.1141, allocations: 99.89 kB / 336.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.1143, allocations: 183.3 kB / 336.7 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003725/0.1147, allocations: 415.7 kB / 337.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009122/0.1156, allocations: 0.9769 MB / 338.1 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1156, allocations: 0 / 338.1 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1156, allocations: 0 / 338.1 MB, free: 9.906 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.1156, allocations: 0 / 338.1 MB, free: 9.906 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.00305/0.1187, allocations: 1.225 MB / 339.3 MB, free: 8.633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1187, allocations: 12.03 kB / 339.3 MB, free: 8.621 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.119, allocations: 87.91 kB / 339.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/0.1195, allocations: 445.6 kB / 339.9 MB, free: 8.059 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.671e-05/0.1196, allocations: 50.38 kB / 339.9 MB, free: 8.008 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.1197, allocations: 72.28 kB / 340 MB, free: 7.938 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.1213, allocations: 0.8233 MB / 340.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.1214, allocations: 0 / 340.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.119e-05/0.1215, allocations: 35.94 kB / 340.8 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.1215, allocations: 19.94 kB / 340.9 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001965/0.1235, allocations: 0.9017 MB / 341.8 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004535/0.128, allocations: 2.451 MB / 344.2 MB, free: 3.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.1295, allocations: 0.7347 MB / 344.9 MB, free: 2.828 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009431/0.1305, allocations: 488.3 kB / 345.4 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.788e-05/0.1305, allocations: 20.97 kB / 345.4 MB, free: 2.332 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/0.1317, allocations: 0.5672 MB / 346 MB, free: 1.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.975e-06/0.1318, allocations: 0 / 346 MB, free: 1.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01104/0.1428, allocations: 4.474 MB / 350.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.1429, allocations: 60.41 kB / 350.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004329/0.1433, allocations: 393.8 kB / 350.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.686e-05/0.1434, allocations: 57.69 kB / 351 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.1436, allocations: 269 kB / 351.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/0.1439, allocations: 362.9 kB / 351.6 MB, free: 12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.144, allocations: 85.67 kB / 351.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002193/0.1443, allocations: 382.7 kB / 352.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.1453, allocations: 454.4 kB / 352.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.1464, allocations: 0.5423 MB / 353 MB, free: 10.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.1481, allocations: 0.8143 MB / 353.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.1481, allocations: 0 / 353.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003224/0.1513, allocations: 1.381 MB / 355.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.1514, allocations: 10.66 kB / 355.2 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.1514, allocations: 0 / 355.2 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.1527, allocations: 0.6505 MB / 355.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007984/0.1535, allocations: 211.7 kB / 356.1 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004242/0.1577, allocations: 3.306 MB / 359.4 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.1591, allocations: 243.9 kB / 359.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.89e-05/0.1592, allocations: 36.11 kB / 359.7 MB, free: 3.641 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.0004337/0.1596, allocations: 225.5 kB / 359.9 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.1598, allocations: 79.09 kB / 360 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002582/0.16, allocations: 107 kB / 360.1 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.1601, allocations: 12 kB / 360.1 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1601, allocations: 3.938 kB / 360.1 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.1601, allocations: 3.984 kB / 360.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004461/0.1646, allocations: 2.569 MB / 362.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.1646, allocations: 0 / 362.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007472/0.1653, allocations: 184 kB / 362.9 MB, free: 360 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.1664, allocations: 0.6232 MB / 363.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.306e-05/0.1664, allocations: 35.97 kB / 363.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003357/0.1698, allocations: 3.131 MB / 366.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1698, allocations: 4.031 kB / 366.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003841/0.1737, allocations: 1.903 MB / 368.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003492/0.174, allocations: 228.1 kB / 368.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.1742, allocations: 35.98 kB / 368.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001378/0.1756, allocations: 275.7 kB / 369.1 MB, free: 9.863 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000823/0.1764, allocations: 368.4 kB / 369.4 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.543e-05/0.1765, allocations: 39.97 kB / 369.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002722/0.1768, allocations: 275.1 kB / 369.7 MB, free: 9.195 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1768, allocations: 0 / 369.7 MB, free: 9.195 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007305/0.1775, allocations: 244 kB / 370 MB, free: 8.957 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.0002768/0.1778, allocations: 164.8 kB / 370.1 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002456/0.1803, allocations: 1.208 MB / 371.3 MB, free: 7.566 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.1803, allocations: 4.312 kB / 371.4 MB, free: 7.562 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/0.1818, allocations: 0.7973 MB / 372.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009217/0.1828, allocations: 129.1 kB / 372.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004109/0.1869, allocations: 2.451 MB / 374.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004701/0.1874, allocations: 0.94 MB / 375.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003588/0.1877, allocations: 77.44 kB / 375.7 MB, free: 3.082 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.1879, allocations: 59.42 kB / 375.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1879, allocations: 0 / 375.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of Templates: time 0.2044/0.3924, allocations: 15.96 MB / 391.8 MB, free: 48.23 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)