Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.009341/0.00934, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001599/0.001598, allocations: 193.3 kB / 16.67 MB, free: 5.953 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.584/1.584, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001135/0.001135, allocations: 50.08 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.1, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.0052/0.1053, allocations: 4.303 MB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.1078, allocations: 1.341 MB / 378.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000277/0.1081, allocations: 15.94 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003276/0.1085, allocations: 122.8 kB / 378.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004068/0.1089, allocations: 226 kB / 379.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.1099, allocations: 427.2 kB / 379.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009862/0.1109, allocations: 1.135 MB / 380.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000381/0.1113, allocations: 261.6 kB / 381 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005391/0.1119, allocations: 486.6 kB / 381.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005395/0.1124, allocations: 0.5215 MB / 382 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.1126, allocations: 92 kB / 382.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002662/0.1128, allocations: 147.9 kB / 382.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002289/0.1131, allocations: 223.3 kB / 382.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004102/0.1135, allocations: 449.9 kB / 382.9 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009587/0.1145, allocations: 1.059 MB / 383.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1145, allocations: 3.938 kB / 383.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1145, allocations: 0 / 383.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.1145, allocations: 4 kB / 383.9 MB, free: 6.477 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.003084/0.1176, allocations: 1.294 MB / 385.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.1177, allocations: 8.031 kB / 385.2 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002881/0.118, allocations: 84 kB / 385.3 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006283/0.1186, allocations: 449.6 kB / 385.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.759e-05/0.1187, allocations: 50.38 kB / 385.8 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.1188, allocations: 76.27 kB / 385.9 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.1204, allocations: 0.8077 MB / 386.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/0.1205, allocations: 4 kB / 386.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-05/0.1206, allocations: 28 kB / 386.7 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.1206, allocations: 19.94 kB / 386.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001987/0.1226, allocations: 0.8705 MB / 387.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004063/0.1267, allocations: 2.373 MB / 390 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.1282, allocations: 0.7112 MB / 390.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009283/0.1291, allocations: 476.3 kB / 391.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.37e-05/0.1292, allocations: 9 kB / 391.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.1303, allocations: 0.5478 MB / 391.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.414e-06/0.1303, allocations: 0 / 391.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01088/0.1412, allocations: 4.228 MB / 395.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.1413, allocations: 64.41 kB / 396 MB, free: 10.01 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000431/0.1417, allocations: 393.8 kB / 396.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.128e-05/0.1418, allocations: 57.69 kB / 396.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.1421, allocations: 272.9 kB / 396.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003778/0.1424, allocations: 363 kB / 397.1 MB, free: 8.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000304/0.1427, allocations: 182.8 kB / 397.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1429, allocations: 370.8 kB / 397.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009683/0.1439, allocations: 446.3 kB / 398 MB, free: 7.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.1449, allocations: 0.5306 MB / 398.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.1467, allocations: 0.7792 MB / 399.3 MB, free: 6.586 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1467, allocations: 0 / 399.3 MB, free: 6.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003133/0.1498, allocations: 1.354 MB / 400.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.1499, allocations: 4 kB / 400.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.1499, allocations: 4 kB / 400.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.151, allocations: 0.6465 MB / 401.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007849/0.1518, allocations: 195.7 kB / 401.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004492/0.1563, allocations: 3.45 MB / 405 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.1576, allocations: 179.9 kB / 405.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.468e-05/0.1577, allocations: 35.98 kB / 405.2 MB, free: 0.5039 MB / 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.0004207/0.1581, allocations: 225.5 kB / 405.4 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.1582, allocations: 71.16 kB / 405.5 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.1585, allocations: 103 kB / 405.6 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.1585, allocations: 12 kB / 405.6 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.1585, allocations: 0 / 405.6 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.1585, allocations: 7.984 kB / 405.6 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00461/0.1631, allocations: 2.502 MB / 408.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.1631, allocations: 0 / 408.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008088/0.164, allocations: 171.8 kB / 408.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.165, allocations: 0.6234 MB / 408.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.94e-05/0.1651, allocations: 35.97 kB / 408.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003534/0.1687, allocations: 3.218 MB / 412.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1687, allocations: 0 / 412.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003888/0.1726, allocations: 1.856 MB / 414 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003829/0.173, allocations: 232.2 kB / 414.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.1731, allocations: 28 kB / 414.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/0.1745, allocations: 203.7 kB / 414.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009045/0.1754, allocations: 380.4 kB / 414.8 MB, free: 6.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.966e-05/0.1755, allocations: 43.97 kB / 414.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002971/0.1758, allocations: 271.1 kB / 415.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.1758, allocations: 0 / 415.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007985/0.1766, allocations: 247.9 kB / 415.4 MB, free: 5.93 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.0003013/0.177, allocations: 164.8 kB / 415.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002579/0.1795, allocations: 1.192 MB / 416.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1796, allocations: 4 kB / 416.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.1812, allocations: 0.7819 MB / 417.5 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008722/0.1821, allocations: 137.7 kB / 417.7 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00383/0.1859, allocations: 1.944 MB / 419.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/0.1864, allocations: 0.9361 MB / 420.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003469/0.1868, allocations: 77.44 kB / 420.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.187, allocations: 63.42 kB / 420.7 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.187, allocations: 4 kB / 420.7 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of Templates: time 0.02659/0.2136, allocations: 17.73 MB / 438.4 MB, free: 14.75 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)