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.718/0.718, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001658/0.001658, allocations: 159.3 kB / 144 MB, free: 4.793 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.912e-05/1.863e-05, allocations: 0 / 173.8 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.046/0.04603, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05087/0.09696, allocations: 36.73 MB / 235.8 MB, free: 8.91 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.09724, allocations: 59.97 kB / 235.8 MB, free: 8.852 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1456/0.2428, allocations: 12.73 MB / 248.5 MB, free: 41.91 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.2429, allocations: 0.5625 kB / 248.5 MB, free: 41.91 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.963e-05/0.2429, allocations: 14.19 kB / 248.6 MB, free: 41.91 MB / 186.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.002936/0.2459, allocations: 1.118 MB / 249.7 MB, free: 41.32 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.246, allocations: 8.969 kB / 249.7 MB, free: 41.32 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003081/0.2463, allocations: 87.41 kB / 249.8 MB, free: 41.29 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.2473, allocations: 0.5706 MB / 250.3 MB, free: 41.04 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.023e-05/0.2473, allocations: 12.38 kB / 250.4 MB, free: 41.04 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.2475, allocations: 27.59 kB / 250.4 MB, free: 41.04 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003282/0.2508, allocations: 2.124 MB / 252.5 MB, free: 40.96 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.2527, allocations: 1.386 MB / 253.9 MB, free: 40.63 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.2528, allocations: 3.906 kB / 253.9 MB, free: 40.63 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.2529, allocations: 11.38 kB / 253.9 MB, free: 40.63 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.2529, allocations: 7.625 kB / 253.9 MB, free: 40.63 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006507/0.2595, allocations: 3.031 MB / 256.9 MB, free: 39.34 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.2609, allocations: 0.9869 MB / 257.9 MB, free: 38.95 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008746/0.2618, allocations: 0.8431 MB / 258.8 MB, free: 38.24 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.595e-05/0.2618, allocations: 6.266 kB / 258.8 MB, free: 38.24 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.263, allocations: 1.181 MB / 260 MB, free: 37.02 MB / 186.7 MB Notification: Performance of pre-optimization done (n=44): time 3.446e-06/0.263, allocations: 0 / 260 MB, free: 37.02 MB / 186.7 MB Notification: Performance of matching and sorting (n=46): time 0.007445/0.2705, allocations: 5.599 MB / 265.6 MB, free: 31.32 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.2706, allocations: 132.5 kB / 265.7 MB, free: 31.16 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.2717, allocations: 0.7532 MB / 266.4 MB, free: 30.41 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.2719, allocations: 48.22 kB / 266.5 MB, free: 30.36 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.2721, allocations: 292.3 kB / 266.8 MB, free: 30.06 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.2723, allocations: 151.6 kB / 266.9 MB, free: 29.91 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.926e-05/0.2724, allocations: 8 kB / 266.9 MB, free: 29.91 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2725, allocations: 378.8 kB / 267.3 MB, free: 29.53 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.2735, allocations: 1.024 MB / 268.3 MB, free: 28.5 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.2746, allocations: 1.107 MB / 269.4 MB, free: 27.37 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.2756, allocations: 0.939 MB / 270.4 MB, free: 26.43 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2756, allocations: 0 / 270.4 MB, free: 26.43 MB / 186.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.004035/0.2796, allocations: 3.2 MB / 273.6 MB, free: 23.21 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.29e-05/0.2797, allocations: 60.97 kB / 273.6 MB, free: 23.14 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.2797, allocations: 4 kB / 273.6 MB, free: 23.14 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0107/0.2904, allocations: 11.42 MB / 285 MB, free: 11.73 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008183/0.2913, allocations: 127.9 kB / 285.2 MB, free: 11.6 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008036/0.2994, allocations: 7.375 MB / 292.5 MB, free: 3.973 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.3012, allocations: 295.7 kB / 292.8 MB, free: 3.684 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002189/0.3014, allocations: 108 kB / 292.9 MB, free: 3.578 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 () * 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.000427/0.3018, allocations: 197.2 kB / 293.1 MB, free: 3.371 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.3021, allocations: 83.11 kB / 293.2 MB, free: 3.289 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003006/0.3024, allocations: 98.45 kB / 293.3 MB, free: 3.191 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.3024, allocations: 4 kB / 293.3 MB, free: 3.188 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.3024, allocations: 0 / 293.3 MB, free: 3.188 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3024, allocations: 8 kB / 293.3 MB, free: 3.18 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006562/0.309, allocations: 4.358 MB / 297.7 MB, free: 14.77 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.309, allocations: 0 / 297.7 MB, free: 14.77 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005467/0.3096, allocations: 88.19 kB / 297.8 MB, free: 14.69 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01442/0.324, allocations: 11.32 MB / 309.1 MB, free: 3.34 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002637/0.3243, allocations: 43.95 kB / 309.1 MB, free: 3.297 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009749/0.3341, allocations: 7.027 MB / 316.2 MB, free: 12.02 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-05/0.3342, allocations: 7.984 kB / 316.2 MB, free: 12.01 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007666/0.3419, allocations: 4.158 MB / 320.3 MB, free: 7.801 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.343, allocations: 404.1 kB / 320.7 MB, free: 7.387 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000356/0.3434, allocations: 24 kB / 320.7 MB, free: 7.363 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/0.3452, allocations: 307.7 kB / 321 MB, free: 7.062 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001542/0.3467, allocations: 0.6588 MB / 321.7 MB, free: 6.402 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002146/0.347, allocations: 95.95 kB / 321.8 MB, free: 6.309 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001128/0.3481, allocations: 0.5889 MB / 322.4 MB, free: 5.723 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3481, allocations: 0 / 322.4 MB, free: 5.723 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001297/0.3494, allocations: 195.9 kB / 322.6 MB, free: 5.531 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) * 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.0004141/0.3498, allocations: 148.2 kB / 322.7 MB, free: 5.379 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002342/0.3522, allocations: 1.702 MB / 324.4 MB, free: 3.633 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.3522, allocations: 0 / 324.4 MB, free: 3.633 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.3536, allocations: 1.033 MB / 325.5 MB, free: 2.559 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007706/0.3544, allocations: 51.22 kB / 325.5 MB, free: 2.512 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005008/0.3595, allocations: 1.973 MB / 327.5 MB, free: 0.5 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1076/0.4671, allocations: 0.9202 MB / 328.4 MB, free: 68.79 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.000428/0.4675, allocations: 65.41 kB / 328.5 MB, free: 68.79 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.4677, allocations: 41.22 kB / 328.5 MB, free: 68.78 MB / 218.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4677, allocations: 0 / 328.5 MB, free: 68.78 MB / 218.7 MB Notification: Performance of Templates: time 0.02388/0.4916, allocations: 13.79 MB / 342.3 MB, free: 65.17 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)