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.7627/0.7627, allocations: 110.8 MB / 123.3 MB, free: 10.76 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001835/0.001835, allocations: 151.4 kB / 149.1 MB, free: 0.9727 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.867e-05/1.884e-05, allocations: 0 / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04865/0.04868, allocations: 25.17 MB / 205.4 MB, free: 8.445 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05346/0.1022, allocations: 37.39 MB / 242.8 MB, free: 2.988 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.1025, allocations: 63.97 kB / 242.8 MB, free: 2.926 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1484/0.2508, allocations: 12.81 MB / 255.7 MB, free: 39.96 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2509, allocations: 0 / 255.7 MB, free: 39.96 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.462e-05/0.2509, allocations: 9.594 kB / 255.7 MB, free: 39.96 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.002436/0.2534, allocations: 1.132 MB / 256.8 MB, free: 38.94 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.2534, allocations: 12.03 kB / 256.8 MB, free: 38.93 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.2536, allocations: 87 kB / 256.9 MB, free: 38.84 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009339/0.2545, allocations: 0.5654 MB / 257.5 MB, free: 38.25 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.685e-05/0.2546, allocations: 28.78 kB / 257.5 MB, free: 38.22 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.2547, allocations: 43.91 kB / 257.5 MB, free: 38.18 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.2564, allocations: 1.447 MB / 259 MB, free: 36.71 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.2564, allocations: 0 / 259 MB, free: 36.71 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.2565, allocations: 24 kB / 259 MB, free: 36.69 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.2565, allocations: 8 kB / 259 MB, free: 36.68 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002246/0.2588, allocations: 2.151 MB / 261.2 MB, free: 34.53 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005158/0.264, allocations: 3.105 MB / 264.3 MB, free: 31.36 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.2652, allocations: 1.01 MB / 265.3 MB, free: 30.33 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008467/0.2661, allocations: 0.8533 MB / 266.1 MB, free: 29.47 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.965e-05/0.2661, allocations: 7.359 kB / 266.1 MB, free: 29.47 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/0.2673, allocations: 1.21 MB / 267.3 MB, free: 28.21 MB / 186.7 MB Notification: Performance of pre-optimization done (n=44): time 3.166e-06/0.2673, allocations: 0 / 267.3 MB, free: 28.21 MB / 186.7 MB Notification: Performance of matching and sorting (n=46): time 0.006989/0.2743, allocations: 5.812 MB / 273.2 MB, free: 22.27 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.2744, allocations: 144.4 kB / 273.3 MB, free: 22.1 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/0.2755, allocations: 0.7922 MB / 274.1 MB, free: 21.3 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001505/0.2756, allocations: 53.69 kB / 274.1 MB, free: 21.24 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.2758, allocations: 297.8 kB / 274.4 MB, free: 20.95 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.2759, allocations: 160.9 kB / 274.6 MB, free: 20.79 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.916e-05/0.276, allocations: 16 kB / 274.6 MB, free: 20.77 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 9.104e-05/0.2761, allocations: 378.8 kB / 275 MB, free: 20.39 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.2772, allocations: 1.04 MB / 276 MB, free: 19.36 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.2783, allocations: 1.125 MB / 277.1 MB, free: 18.2 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.2793, allocations: 1.014 MB / 278.1 MB, free: 17.18 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.2794, allocations: 4 kB / 278.2 MB, free: 17.17 MB / 186.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.004087/0.2834, allocations: 3.332 MB / 281.5 MB, free: 13.81 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.039e-05/0.2835, allocations: 55.41 kB / 281.5 MB, free: 13.74 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.2835, allocations: 4 kB / 281.5 MB, free: 13.74 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009613/0.2932, allocations: 11.43 MB / 293 MB, free: 2.277 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006147/0.2938, allocations: 119.9 kB / 293.1 MB, free: 2.16 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008991/0.3028, allocations: 7.102 MB / 300.2 MB, free: 10.76 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.3048, allocations: 311.6 kB / 300.5 MB, free: 10.46 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.305, allocations: 112 kB / 300.6 MB, free: 10.35 MB / 202.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 () * 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.0003356/0.3053, allocations: 210.8 kB / 300.8 MB, free: 10.12 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.3055, allocations: 79.23 kB / 300.9 MB, free: 10.05 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.3058, allocations: 98.3 kB / 301 MB, free: 9.941 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.3058, allocations: 8.25 kB / 301 MB, free: 9.934 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.3058, allocations: 4 kB / 301 MB, free: 9.93 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3059, allocations: 4 kB / 301 MB, free: 9.926 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007398/0.3133, allocations: 4.49 MB / 305.5 MB, free: 5.359 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3133, allocations: 0 / 305.5 MB, free: 5.359 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004777/0.3138, allocations: 87.94 kB / 305.6 MB, free: 5.273 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01255/0.3263, allocations: 11.33 MB / 316.9 MB, free: 9.918 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001826/0.3266, allocations: 47.95 kB / 317 MB, free: 9.871 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008149/0.3347, allocations: 6.804 MB / 323.8 MB, free: 2.777 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3348, allocations: 0 / 323.8 MB, free: 2.777 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00606/0.3408, allocations: 4.268 MB / 328 MB, free: 14.44 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.3419, allocations: 408 kB / 328.4 MB, free: 14.02 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.3421, allocations: 39.95 kB / 328.5 MB, free: 13.98 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.3436, allocations: 319.6 kB / 328.8 MB, free: 13.67 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001499/0.3451, allocations: 0.6549 MB / 329.4 MB, free: 13.02 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/0.3453, allocations: 95.97 kB / 329.5 MB, free: 12.92 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008089/0.3461, allocations: 0.6241 MB / 330.1 MB, free: 12.3 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3461, allocations: 7.938 kB / 330.2 MB, free: 12.3 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0008197/0.3469, allocations: 212 kB / 330.4 MB, free: 12.09 MB / 234.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.0002738/0.3472, allocations: 159.3 kB / 330.5 MB, free: 11.93 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.3493, allocations: 1.742 MB / 332.3 MB, free: 10.13 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3493, allocations: 4 kB / 332.3 MB, free: 10.13 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.3505, allocations: 1.048 MB / 333.3 MB, free: 9.031 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.351, allocations: 54.97 kB / 333.4 MB, free: 8.977 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/0.3556, allocations: 1.986 MB / 335.4 MB, free: 6.957 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005573/0.3562, allocations: 0.9263 MB / 336.3 MB, free: 6 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0003065/0.3565, allocations: 71.28 kB / 336.3 MB, free: 5.93 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.3566, allocations: 39.42 kB / 336.4 MB, free: 5.895 MB / 234.7 MB Notification: Performance of SimCode: time 8.52e-07/0.3567, allocations: 0 / 336.4 MB, free: 5.895 MB / 234.7 MB Notification: Performance of Templates: time 0.1255/0.4822, allocations: 14.6 MB / 351 MB, free: 81.77 MB / 234.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)