Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7548/0.7548, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001738/0.001737, allocations: 142.7 kB / 151.8 MB, free: 5.004 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002497/0.0002497, allocations: 4 kB / 184.9 MB, free: 3.934 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1393, allocations: 25.15 MB / 210 MB, free: 29.76 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04554/0.1849, allocations: 37.49 MB / 247.5 MB, free: 12.34 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.1852, allocations: 67.95 kB / 247.6 MB, free: 12.28 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03809/0.2233, allocations: 12.82 MB / 260.4 MB, free: 15.46 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2234, allocations: 4.188 kB / 260.4 MB, free: 15.45 MB / 202.7 MB Notification: Performance of Transformations before backend: time 2.276e-05/0.2234, allocations: 8 kB / 260.4 MB, free: 15.45 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.002713/0.2261, allocations: 1.215 MB / 261.6 MB, free: 14.17 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.2262, allocations: 8.031 kB / 261.7 MB, free: 14.16 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/0.2264, allocations: 83.09 kB / 261.7 MB, free: 14.08 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.2275, allocations: 0.5768 MB / 262.3 MB, free: 13.46 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.77e-05/0.2276, allocations: 29.62 kB / 262.3 MB, free: 13.43 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.2277, allocations: 44 kB / 262.4 MB, free: 13.39 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/0.2301, allocations: 1.52 MB / 263.9 MB, free: 11.85 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.2301, allocations: 3.984 kB / 263.9 MB, free: 11.85 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.2303, allocations: 24 kB / 263.9 MB, free: 11.82 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.2303, allocations: 8 kB / 263.9 MB, free: 11.82 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003776/0.2341, allocations: 2.314 MB / 266.3 MB, free: 9.496 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006758/0.2408, allocations: 3.106 MB / 269.4 MB, free: 6.316 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00208/0.243, allocations: 1.131 MB / 270.5 MB, free: 5.168 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.835e-05/0.243, allocations: 4.516 kB / 270.5 MB, free: 5.164 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001949/0.245, allocations: 1.291 MB / 271.8 MB, free: 3.832 MB / 202.7 MB Notification: Performance of pre-optimization done (n=44): time 2.605e-06/0.245, allocations: 0 / 271.8 MB, free: 3.832 MB / 202.7 MB Notification: Performance of matching and sorting (n=46): time 0.01413/0.2591, allocations: 7.946 MB / 279.7 MB, free: 11.7 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/0.2593, allocations: 144.5 kB / 279.9 MB, free: 11.52 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.2604, allocations: 0.7922 MB / 280.7 MB, free: 10.72 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.2605, allocations: 57.69 kB / 280.7 MB, free: 10.66 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.2607, allocations: 292.3 kB / 281 MB, free: 10.37 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.2609, allocations: 165.9 kB / 281.2 MB, free: 10.21 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.395e-05/0.261, allocations: 20 kB / 281.2 MB, free: 10.19 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.2612, allocations: 381 kB / 281.6 MB, free: 9.809 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001666/0.2629, allocations: 1.118 MB / 282.7 MB, free: 8.691 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.2646, allocations: 1.213 MB / 283.9 MB, free: 7.445 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.2662, allocations: 1.091 MB / 285 MB, free: 6.344 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/0.2662, allocations: 4 kB / 285 MB, free: 6.34 MB / 218.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.005552/0.2718, allocations: 3.485 MB / 288.5 MB, free: 2.824 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.673e-05/0.2719, allocations: 59.41 kB / 288.5 MB, free: 2.754 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.2719, allocations: 7.984 kB / 288.5 MB, free: 2.746 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1089/0.3808, allocations: 11.48 MB / 300 MB, free: 64.47 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006571/0.3815, allocations: 122.8 kB / 300.1 MB, free: 64.45 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00767/0.3892, allocations: 7.128 MB / 307.3 MB, free: 60.39 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.3908, allocations: 304.6 kB / 307.6 MB, free: 60.29 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000207/0.391, allocations: 111.5 kB / 307.7 MB, free: 60.26 MB / 218.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006105/0.3916, allocations: 328.7 kB / 308 MB, free: 60.01 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002364/0.3919, allocations: 78.23 kB / 308.1 MB, free: 60.01 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001964/0.3921, allocations: 100.5 kB / 308.2 MB, free: 59.93 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.3921, allocations: 3.906 kB / 308.2 MB, free: 59.93 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.3921, allocations: 1 kB / 308.2 MB, free: 59.93 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3921, allocations: 3.875 kB / 308.2 MB, free: 59.93 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006877/0.399, allocations: 4.585 MB / 312.8 MB, free: 56.46 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.3991, allocations: 0 / 312.8 MB, free: 56.46 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004949/0.3996, allocations: 90 kB / 312.8 MB, free: 56.38 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01641/0.416, allocations: 11.38 MB / 324.2 MB, free: 44.97 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002573/0.4163, allocations: 40.72 kB / 324.3 MB, free: 44.93 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01029/0.4266, allocations: 6.845 MB / 331.1 MB, free: 37.86 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.4266, allocations: 9.375 kB / 331.1 MB, free: 37.86 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009442/0.4361, allocations: 4.511 MB / 335.6 MB, free: 33.29 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.4373, allocations: 400.2 kB / 336 MB, free: 32.88 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.4377, allocations: 28 kB / 336.1 MB, free: 32.85 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002102/0.4398, allocations: 325.9 kB / 336.4 MB, free: 32.54 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002023/0.4418, allocations: 0.6588 MB / 337 MB, free: 31.88 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002244/0.4421, allocations: 93.47 kB / 337.1 MB, free: 31.79 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001087/0.4432, allocations: 0.6318 MB / 337.8 MB, free: 31.15 MB / 218.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4432, allocations: 0 / 337.8 MB, free: 31.15 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001262/0.4444, allocations: 210.1 kB / 338 MB, free: 30.95 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 11 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,$whenCondition2,stop2.mode,stop2.startBackward,stop2.startForward,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003668/0.4448, allocations: 165.7 kB / 338.1 MB, free: 30.79 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.003627/0.4485, allocations: 1.904 MB / 340 MB, free: 28.85 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.4485, allocations: 0 / 340 MB, free: 28.85 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002043/0.4505, allocations: 1.136 MB / 341.2 MB, free: 27.66 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007551/0.4513, allocations: 61.41 kB / 341.2 MB, free: 27.6 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004577/0.4559, allocations: 2.245 MB / 343.5 MB, free: 25.35 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.4564, allocations: 0.9341 MB / 344.4 MB, free: 24.38 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0004181/0.4568, allocations: 67.27 kB / 344.5 MB, free: 24.32 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.457, allocations: 39.42 kB / 344.5 MB, free: 24.28 MB / 218.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4571, allocations: 0 / 344.5 MB, free: 24.28 MB / 218.7 MB Notification: Performance of Templates: time 0.02891/0.486, allocations: 14.59 MB / 359.1 MB, free: 9.719 MB / 218.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)