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.006615/0.006615, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.001386/0.001386, allocations: 186.6 kB / 16.67 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.636/1.636, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.00211/0.00211, allocations: 54.98 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1413, allocations: 46.61 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007764/0.1491, allocations: 4.315 MB / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.153, allocations: 1.337 MB / 378.8 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006687/0.1537, allocations: 11.94 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000513/0.1543, allocations: 126.8 kB / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006952/0.155, allocations: 222 kB / 379.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.1568, allocations: 431.1 kB / 379.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.1587, allocations: 1.131 MB / 380.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005318/0.1592, allocations: 265.6 kB / 381 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009329/0.1602, allocations: 482.5 kB / 381.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000742/0.1609, allocations: 0.5137 MB / 382 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.1611, allocations: 92 kB / 382 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003546/0.1615, allocations: 147.9 kB / 382.2 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002845/0.1618, allocations: 227.3 kB / 382.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005275/0.1623, allocations: 441.9 kB / 382.8 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001634/0.164, allocations: 1.067 MB / 383.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.164, allocations: 0 / 383.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.164, allocations: 0 / 383.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.164, allocations: 8 kB / 383.9 MB, free: 6.508 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.00428/0.1683, allocations: 1.283 MB / 385.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.1684, allocations: 8.031 kB / 385.2 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003416/0.1687, allocations: 87.94 kB / 385.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.1698, allocations: 453.6 kB / 385.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.205e-05/0.1699, allocations: 54.38 kB / 385.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.1701, allocations: 72.28 kB / 385.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002229/0.1723, allocations: 0.8077 MB / 386.7 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.206e-05/0.1724, allocations: 7.984 kB / 386.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.1725, allocations: 28 kB / 386.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/0.1726, allocations: 16 kB / 386.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002806/0.1754, allocations: 0.8666 MB / 387.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005653/0.181, allocations: 2.377 MB / 390 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002245/0.1833, allocations: 0.715 MB / 390.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.1849, allocations: 468.3 kB / 391.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.392e-05/0.185, allocations: 9 kB / 391.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001747/0.1867, allocations: 0.5517 MB / 391.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 5.159e-06/0.1868, allocations: 0 / 391.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01645/0.2032, allocations: 4.228 MB / 395.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.2033, allocations: 60.41 kB / 396 MB, free: 10.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006805/0.204, allocations: 397.8 kB / 396.4 MB, free: 9.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001513/0.2042, allocations: 57.7 kB / 396.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002711/0.2045, allocations: 272.9 kB / 396.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004068/0.2049, allocations: 359 kB / 397 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004771/0.2054, allocations: 186.8 kB / 397.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.2056, allocations: 374.8 kB / 397.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/0.2071, allocations: 438.4 kB / 398 MB, free: 7.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001619/0.2087, allocations: 0.5267 MB / 398.5 MB, free: 7.426 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/0.2112, allocations: 0.7869 MB / 399.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.2113, allocations: 0 / 399.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004604/0.2159, allocations: 1.35 MB / 400.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.2159, allocations: 9.094 kB / 400.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.216, allocations: 0 / 400.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001723/0.2177, allocations: 0.6543 MB / 401.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.2189, allocations: 199.7 kB / 401.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00662/0.2256, allocations: 3.438 MB / 405 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00184/0.2275, allocations: 179.8 kB / 405.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.2276, allocations: 35.98 kB / 405.2 MB, free: 0.543 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.0006444/0.2283, allocations: 225.6 kB / 405.4 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.2285, allocations: 71.16 kB / 405.5 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003029/0.2288, allocations: 103 kB / 405.6 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.2289, allocations: 11.94 kB / 405.6 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.2289, allocations: 0 / 405.6 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.2289, allocations: 7.984 kB / 405.6 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006517/0.2354, allocations: 2.498 MB / 408.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.2355, allocations: 4 kB / 408.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.2366, allocations: 175.9 kB / 408.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/0.2381, allocations: 0.6271 MB / 408.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.2383, allocations: 31.97 kB / 408.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004709/0.243, allocations: 3.219 MB / 412.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.243, allocations: 4.031 kB / 412.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004051/0.2471, allocations: 1.849 MB / 414 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003691/0.2475, allocations: 228.2 kB / 414.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.2476, allocations: 32 kB / 414.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/0.249, allocations: 203.7 kB / 414.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008657/0.2499, allocations: 380.3 kB / 414.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.311e-05/0.25, allocations: 43.95 kB / 414.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003128/0.2503, allocations: 271.2 kB / 415.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2503, allocations: 0 / 415.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008813/0.2512, allocations: 248 kB / 415.4 MB, free: 5.969 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.0003199/0.2515, allocations: 172.8 kB / 415.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0026/0.2541, allocations: 1.196 MB / 416.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.2541, allocations: 0 / 416.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.2557, allocations: 0.7858 MB / 417.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008481/0.2566, allocations: 129.6 kB / 417.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003897/0.2605, allocations: 1.948 MB / 419.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.261, allocations: 0.94 MB / 420.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00034/0.2614, allocations: 81.44 kB / 420.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.2616, allocations: 59.42 kB / 420.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2616, allocations: 0 / 420.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of Templates: time 0.02666/0.2882, allocations: 17.73 MB / 438.4 MB, free: 14.79 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)