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.006969/0.006969, allocations: 101.2 kB / 15.73 MB, free: 6.039 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.001189/0.00119, allocations: 197.8 kB / 16.68 MB, free: 5.965 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.597/1.597, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001108/0.001108, allocations: 53.64 kB / 326.5 MB, free: 14.53 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 46.62 MB / 373.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00578/0.1071, allocations: 4.299 MB / 377.5 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002662/0.1098, allocations: 1.349 MB / 378.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002892/0.1101, allocations: 15.94 kB / 378.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003579/0.1105, allocations: 114.8 kB / 378.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003916/0.1109, allocations: 222 kB / 379.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1119, allocations: 435.2 kB / 379.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001041/0.113, allocations: 1.131 MB / 380.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003586/0.1134, allocations: 269.6 kB / 381 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005279/0.1139, allocations: 486.5 kB / 381.4 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005325/0.1144, allocations: 0.5137 MB / 382 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001257/0.1146, allocations: 92 kB / 382.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000261/0.1148, allocations: 151.9 kB / 382.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002058/0.1151, allocations: 227.3 kB / 382.4 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003961/0.1155, allocations: 438 kB / 382.9 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.1165, allocations: 1.067 MB / 383.9 MB, free: 6.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1165, allocations: 0 / 383.9 MB, free: 6.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1165, allocations: 7.938 kB / 383.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.1166, allocations: 0 / 383.9 MB, free: 6.598 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.00322/0.1198, allocations: 1.287 MB / 385.2 MB, free: 5.258 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.1198, allocations: 12.03 kB / 385.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.1201, allocations: 84 kB / 385.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007617/0.1209, allocations: 441.6 kB / 385.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.918e-05/0.1209, allocations: 54.38 kB / 385.8 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.1211, allocations: 80.22 kB / 385.9 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.1227, allocations: 0.8077 MB / 386.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/0.1227, allocations: 0 / 386.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.747e-05/0.1228, allocations: 35.98 kB / 386.7 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.1228, allocations: 16 kB / 386.7 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/0.1248, allocations: 0.8666 MB / 387.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004361/0.1292, allocations: 2.373 MB / 390 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/0.1307, allocations: 0.7111 MB / 390.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009643/0.1316, allocations: 468.3 kB / 391.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.237e-05/0.1317, allocations: 13 kB / 391.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.1329, allocations: 0.5478 MB / 391.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.186e-06/0.1329, allocations: 0 / 391.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01072/0.1436, allocations: 4.224 MB / 395.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.1437, allocations: 68.41 kB / 396 MB, free: 10.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004113/0.1441, allocations: 397.7 kB / 396.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.287e-05/0.1442, allocations: 57.7 kB / 396.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.1444, allocations: 272.9 kB / 396.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/0.1447, allocations: 355 kB / 397 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003221/0.145, allocations: 186.8 kB / 397.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1452, allocations: 374.8 kB / 397.6 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009685/0.1462, allocations: 438.4 kB / 398 MB, free: 8.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.1472, allocations: 0.5267 MB / 398.5 MB, free: 7.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.1488, allocations: 0.787 MB / 399.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1489, allocations: 0 / 399.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002995/0.1519, allocations: 1.354 MB / 400.7 MB, free: 5.348 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.1519, allocations: 8 kB / 400.7 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.1519, allocations: 3.984 kB / 400.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/0.1531, allocations: 0.6504 MB / 401.4 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000792/0.1539, allocations: 195.8 kB / 401.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004256/0.1581, allocations: 3.446 MB / 405 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.1593, allocations: 175.9 kB / 405.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-05/0.1594, allocations: 35.98 kB / 405.2 MB, free: 0.6367 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.0003679/0.1597, allocations: 233.5 kB / 405.4 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.1599, allocations: 71.16 kB / 405.5 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001902/0.1601, allocations: 103 kB / 405.6 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.1601, allocations: 8 kB / 405.6 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.1601, allocations: 0 / 405.6 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.1601, allocations: 7.984 kB / 405.6 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004412/0.1645, allocations: 2.498 MB / 408.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.1646, allocations: 4 kB / 408.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007366/0.1653, allocations: 180 kB / 408.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00101/0.1663, allocations: 0.623 MB / 408.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.212e-05/0.1664, allocations: 31.97 kB / 408.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003487/0.1699, allocations: 3.219 MB / 412.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.1699, allocations: 7.969 kB / 412.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0037/0.1736, allocations: 1.849 MB / 414 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.174, allocations: 228.4 kB / 414.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.1741, allocations: 36 kB / 414.3 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/0.1754, allocations: 203.7 kB / 414.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008883/0.1763, allocations: 388.3 kB / 414.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-05/0.1764, allocations: 39.95 kB / 414.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003151/0.1767, allocations: 267.2 kB / 415.2 MB, free: 6.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1768, allocations: 0 / 415.2 MB, free: 6.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008778/0.1776, allocations: 248 kB / 415.4 MB, free: 6.051 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.000357/0.178, allocations: 168.8 kB / 415.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.1805, allocations: 1.188 MB / 416.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.1805, allocations: 320 / 416.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.1821, allocations: 0.7894 MB / 417.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008751/0.183, allocations: 129.3 kB / 417.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003733/0.1867, allocations: 1.952 MB / 419.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.1872, allocations: 0.9283 MB / 420.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003343/0.1876, allocations: 85.44 kB / 420.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.1878, allocations: 63.42 kB / 420.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1878, allocations: 0 / 420.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of Templates: time 0.02629/0.2141, allocations: 18.39 MB / 439.1 MB, free: 14.21 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)