Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 90.83 kB / 15.06 MB, free: 1.094 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.001567/0.001567, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.73/1.73, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0005057/0.0005059, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2956, allocations: 47.58 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002572/0.2982, allocations: 2.534 MB / 329 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.3002, allocations: 1.154 MB / 330.2 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.3004, allocations: 4.656 kB / 330.2 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003466/0.3007, allocations: 58.09 kB / 330.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.3009, allocations: 102.7 kB / 330.3 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008103/0.3017, allocations: 323.5 kB / 330.6 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007736/0.3025, allocations: 0.6908 MB / 331.3 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.3027, allocations: 76.72 kB / 331.4 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004807/0.3032, allocations: 315.5 kB / 331.7 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001778/0.305, allocations: 1.436 MB / 333.1 MB, free: 12.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.031e-05/0.3051, allocations: 32 kB / 333.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001949/0.3053, allocations: 75.95 kB / 333.3 MB, free: 12.7 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002144/0.3056, allocations: 199.4 kB / 333.4 MB, free: 12.5 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.3057, allocations: 125.3 kB / 333.6 MB, free: 12.37 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005633/0.3062, allocations: 0.6053 MB / 334.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3063, allocations: 0 / 334.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3063, allocations: 4 kB / 334.2 MB, free: 11.76 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.3063, allocations: 0 / 334.2 MB, free: 11.76 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003165/0.3095, allocations: 1.313 MB / 335.5 MB, free: 10.4 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3095, allocations: 8.031 kB / 335.5 MB, free: 10.39 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.3097, allocations: 79.14 kB / 335.6 MB, free: 10.31 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/0.3102, allocations: 398.7 kB / 336 MB, free: 9.879 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.342e-05/0.3103, allocations: 29 kB / 336 MB, free: 9.848 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-05/0.3104, allocations: 36 kB / 336 MB, free: 9.812 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001769/0.3121, allocations: 1.169 MB / 337.2 MB, free: 8.633 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/0.3122, allocations: 11.89 kB / 337.2 MB, free: 8.621 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.493e-05/0.3123, allocations: 19.94 kB / 337.2 MB, free: 8.602 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.3123, allocations: 8 kB / 337.2 MB, free: 8.594 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002665/0.3149, allocations: 1.772 MB / 339 MB, free: 6.824 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004279/0.3192, allocations: 2.557 MB / 341.6 MB, free: 4.188 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.3209, allocations: 0.9343 MB / 342.5 MB, free: 3.234 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.322, allocations: 0.7318 MB / 343.2 MB, free: 2.496 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.982e-05/0.3221, allocations: 11.98 kB / 343.2 MB, free: 2.484 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001455/0.3235, allocations: 0.9123 MB / 344.2 MB, free: 1.551 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 2.194e-06/0.3235, allocations: 0 / 344.2 MB, free: 1.551 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01107/0.3346, allocations: 6.033 MB / 350.2 MB, free: 11.36 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.3347, allocations: 89.11 kB / 350.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.3359, allocations: 0.9141 MB / 351.2 MB, free: 10.33 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.73e-05/0.336, allocations: 49.69 kB / 351.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.3363, allocations: 296.3 kB / 351.5 MB, free: 9.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.3364, allocations: 165.9 kB / 351.7 MB, free: 9.816 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-05/0.3365, allocations: 12 kB / 351.7 MB, free: 9.805 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002592/0.3368, allocations: 386.7 kB / 352.1 MB, free: 9.418 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.338, allocations: 0.8603 MB / 352.9 MB, free: 8.555 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.3393, allocations: 0.9519 MB / 353.9 MB, free: 7.574 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.3404, allocations: 0.7731 MB / 354.7 MB, free: 6.801 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3405, allocations: 3.984 kB / 354.7 MB, free: 6.797 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004208/0.3447, allocations: 2.483 MB / 357.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3447, allocations: 10.81 kB / 357.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.3448, allocations: 4.031 kB / 357.2 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002249/0.347, allocations: 1.9 MB / 359.1 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005178/0.3475, allocations: 123.8 kB / 359.2 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008516/0.3561, allocations: 6.443 MB / 365.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.3575, allocations: 303.7 kB / 365.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001854/0.3577, allocations: 23.98 kB / 365.9 MB, free: 11.19 MB / 302.1 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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * 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.0005925/0.3583, allocations: 260 kB / 366.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.3585, allocations: 71.16 kB / 366.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.3587, allocations: 102.1 kB / 366.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.3588, allocations: 7.984 kB / 366.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.3588, allocations: 4 kB / 366.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3588, allocations: 4 kB / 366.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004329/0.3631, allocations: 3.127 MB / 369.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.3632, allocations: 4 kB / 369.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004721/0.3636, allocations: 99.92 kB / 369.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002419/0.3661, allocations: 1.869 MB / 371.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-05/0.3662, allocations: 23.97 kB / 371.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008021/0.3742, allocations: 6.149 MB / 377.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.3742, allocations: 4.016 kB / 377.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005004/0.3792, allocations: 3.275 MB / 380.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003704/0.3796, allocations: 208.2 kB / 381.1 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.3798, allocations: 20 kB / 381.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.3812, allocations: 347.6 kB / 381.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001415/0.3827, allocations: 0.6471 MB / 382.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.079e-05/0.3828, allocations: 23.97 kB / 382.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007687/0.3835, allocations: 0.6786 MB / 382.8 MB, free: 9.852 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3835, allocations: 4 kB / 382.9 MB, free: 9.848 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008785/0.3844, allocations: 188 kB / 383 MB, free: 9.664 MB / 318.1 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: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0003379/0.3848, allocations: 139.2 kB / 383.2 MB, free: 9.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00315/0.3879, allocations: 1.956 MB / 385.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.388, allocations: 7.938 kB / 385.1 MB, free: 7.523 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.3897, allocations: 1.087 MB / 386.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000708/0.3905, allocations: 78.89 kB / 386.3 MB, free: 6.336 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/0.395, allocations: 2.293 MB / 388.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006494/0.3957, allocations: 0.9258 MB / 389.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002608/0.3959, allocations: 39.28 kB / 389.6 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.3961, allocations: 31.42 kB / 389.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3961, allocations: 0 / 389.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of Templates: time 0.03362/0.4297, allocations: 20.97 MB / 410.6 MB, free: 13.99 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)