Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_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.001047/0.001048, allocations: 108.4 kB / 18.4 MB, free: 4.68 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.001014/0.001014, allocations: 190.1 kB / 19.34 MB, free: 3.754 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.239/1.239, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001168/0.001168, allocations: 52.2 kB / 329.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07189/0.07307, allocations: 46.62 MB / 375.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004888/0.07799, allocations: 4.306 MB / 380.1 MB, free: 272 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1464/0.2244, allocations: 1.33 MB / 381.5 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003061/0.2247, allocations: 12.5 kB / 381.5 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002877/0.225, allocations: 114.2 kB / 381.6 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003518/0.2254, allocations: 231.2 kB / 381.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008324/0.2262, allocations: 431.2 kB / 382.2 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008246/0.2271, allocations: 1.137 MB / 383.4 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003788/0.2275, allocations: 263.5 kB / 383.6 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000543/0.228, allocations: 492.5 kB / 384.1 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004974/0.2285, allocations: 0.5139 MB / 384.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.2287, allocations: 91.38 kB / 384.7 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002835/0.229, allocations: 156.1 kB / 384.9 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.2292, allocations: 221 kB / 385.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00036/0.2295, allocations: 446.2 kB / 385.5 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009599/0.2305, allocations: 1.054 MB / 386.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2305, allocations: 1.156 kB / 386.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2305, allocations: 3.938 kB / 386.6 MB, free: 8.258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.2305, allocations: 0 / 386.6 MB, free: 8.258 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.003032/0.2336, allocations: 1.287 MB / 387.9 MB, free: 7.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.2336, allocations: 8.531 kB / 387.9 MB, free: 7.516 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.2338, allocations: 89.42 kB / 388 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005729/0.2344, allocations: 449.4 kB / 388.4 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.906e-05/0.2345, allocations: 54.78 kB / 388.4 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.2346, allocations: 78.02 kB / 388.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.2362, allocations: 0.8091 MB / 389.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.2362, allocations: 4.094 kB / 389.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.897e-05/0.2363, allocations: 27.05 kB / 389.4 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.2363, allocations: 16.03 kB / 389.4 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00195/0.2383, allocations: 0.8694 MB / 390.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/0.2423, allocations: 2.374 MB / 392.6 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001417/0.2437, allocations: 0.717 MB / 393.3 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009337/0.2447, allocations: 463.5 kB / 393.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.041e-05/0.2448, allocations: 17.31 kB / 393.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.2459, allocations: 0.5447 MB / 394.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=86): time 2.574e-06/0.2459, allocations: 4 kB / 394.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01047/0.2564, allocations: 4.234 MB / 398.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.269e-05/0.2565, allocations: 63 kB / 398.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003621/0.2568, allocations: 393 kB / 399 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.311e-05/0.2569, allocations: 53.94 kB / 399.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.257, allocations: 270.9 kB / 399.4 MB, free: 1.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.2572, allocations: 361.1 kB / 399.7 MB, free: 1.672 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/0.2575, allocations: 186.9 kB / 399.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.237e-05/0.2576, allocations: 372.9 kB / 400.3 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009462/0.2586, allocations: 441.3 kB / 400.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009986/0.2596, allocations: 0.5322 MB / 401.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/0.2612, allocations: 0.775 MB / 402 MB, free: 296 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2612, allocations: 5 kB / 402 MB, free: 292 kB / 318.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003058/0.2643, allocations: 1.352 MB / 403.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.2643, allocations: 4.781 kB / 403.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.2643, allocations: 5.625 kB / 403.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/0.2655, allocations: 0.6579 MB / 404 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000819/0.2663, allocations: 196.8 kB / 404.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004011/0.2704, allocations: 3.43 MB / 407.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.2715, allocations: 181.3 kB / 407.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-05/0.2716, allocations: 43.92 kB / 407.9 MB, free: 12.04 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.0003303/0.2719, allocations: 225.2 kB / 408.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.2721, allocations: 70.44 kB / 408.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002305/0.2723, allocations: 106.8 kB / 408.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.2723, allocations: 3.984 kB / 408.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2723, allocations: 0 / 408.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.2727, allocations: 225.5 kB / 408.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.2728, allocations: 33.75 kB / 408.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.2741, allocations: 212 kB / 408.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003542/0.2744, allocations: 166.5 kB / 408.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003667/0.2781, allocations: 1.325 MB / 410.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003195/0.2813, allocations: 1.621 MB / 411.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009706/0.2823, allocations: 482.9 kB / 412.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002638/0.2826, allocations: 264.8 kB / 412.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of Backend: time 4.61e-07/0.2826, allocations: 1.375 kB / 412.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002156/0.2848, allocations: 0.9173 MB / 413.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of SimCode: time 0.002527/0.2873, allocations: 2.113 MB / 415.6 MB, free: 6.367 MB / 334.1 MB Notification: Performance of Templates: time 0.0248/0.3121, allocations: 17.32 MB / 432.9 MB, free: 5.039 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)