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/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.1_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.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.00104/0.00104, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009364/0.009364, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.792/1.792, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004562/0.0004559, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2724, allocations: 47.58 MB / 327 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003155/0.2756, allocations: 2.648 MB / 329.7 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.2776, allocations: 1.188 MB / 330.9 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.2777, allocations: 5.438 kB / 330.9 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000347/0.2781, allocations: 65.23 kB / 330.9 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002013/0.2783, allocations: 101.7 kB / 331 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008113/0.2791, allocations: 364.4 kB / 331.4 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008011/0.2799, allocations: 0.7554 MB / 332.1 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.2802, allocations: 81.19 kB / 332.2 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004595/0.2806, allocations: 326.5 kB / 332.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001601/0.2822, allocations: 1.335 MB / 333.9 MB, free: 12.51 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.2823, allocations: 36 kB / 333.9 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.2826, allocations: 79.95 kB / 334 MB, free: 12.4 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001996/0.2828, allocations: 200.2 kB / 334.2 MB, free: 12.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000317/0.2831, allocations: 335.8 kB / 334.5 MB, free: 11.87 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007307/0.2838, allocations: 0.8134 MB / 335.3 MB, free: 11.05 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2838, allocations: 0 / 335.3 MB, free: 11.05 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2839, allocations: 4 kB / 335.3 MB, free: 11.05 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.2839, allocations: 0 / 335.3 MB, free: 11.05 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.003569/0.2874, allocations: 1.305 MB / 336.6 MB, free: 9.691 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.2875, allocations: 8.031 kB / 336.6 MB, free: 9.684 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.2877, allocations: 80 kB / 336.7 MB, free: 9.605 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005556/0.2882, allocations: 415.5 kB / 337.1 MB, free: 9.156 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.12e-05/0.2883, allocations: 29.38 kB / 337.2 MB, free: 9.125 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.812e-05/0.2884, allocations: 44.27 kB / 337.2 MB, free: 9.082 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.2902, allocations: 1.173 MB / 338.4 MB, free: 7.898 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.2903, allocations: 7.938 kB / 338.4 MB, free: 7.891 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.792e-05/0.2903, allocations: 19.94 kB / 338.4 MB, free: 7.871 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2904, allocations: 8 kB / 338.4 MB, free: 7.863 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00268/0.293, allocations: 1.779 MB / 340.2 MB, free: 6.086 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004213/0.2973, allocations: 2.553 MB / 342.7 MB, free: 3.449 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.2989, allocations: 0.9343 MB / 343.7 MB, free: 2.496 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.3, allocations: 0.7357 MB / 344.4 MB, free: 1.754 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-05/0.3, allocations: 7.984 kB / 344.4 MB, free: 1.746 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001394/0.3014, allocations: 0.9162 MB / 345.3 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 2.204e-06/0.3015, allocations: 0 / 345.3 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01162/0.3131, allocations: 6.041 MB / 351.4 MB, free: 10.61 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.3132, allocations: 85.11 kB / 351.5 MB, free: 10.51 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.3148, allocations: 0.918 MB / 352.4 MB, free: 9.582 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001442/0.3149, allocations: 49.69 kB / 352.4 MB, free: 9.527 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003737/0.3153, allocations: 296.3 kB / 352.7 MB, free: 9.234 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002107/0.3155, allocations: 165.9 kB / 352.9 MB, free: 9.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.3156, allocations: 61.67 kB / 352.9 MB, free: 9.004 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002542/0.3159, allocations: 378.8 kB / 353.3 MB, free: 8.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.3173, allocations: 0.8603 MB / 354.2 MB, free: 7.762 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.3186, allocations: 0.9519 MB / 355.1 MB, free: 6.781 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/0.3208, allocations: 1.496 MB / 356.6 MB, free: 5.254 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3209, allocations: 0 / 356.6 MB, free: 5.254 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004087/0.325, allocations: 2.518 MB / 359.1 MB, free: 2.719 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.325, allocations: 14.91 kB / 359.1 MB, free: 2.707 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.325, allocations: 0 / 359.1 MB, free: 2.707 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002048/0.3271, allocations: 1.908 MB / 361 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005064/0.3276, allocations: 119.9 kB / 361.2 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0074/0.335, allocations: 6.454 MB / 367.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.3366, allocations: 299.7 kB / 367.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.914e-05/0.3367, allocations: 24 kB / 367.9 MB, free: 9.602 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,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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 (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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004665/0.3372, allocations: 248.2 kB / 368.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001831/0.3373, allocations: 71.23 kB / 368.2 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.3376, allocations: 114.1 kB / 368.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3376, allocations: 8 kB / 368.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.3376, allocations: 0 / 368.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3376, allocations: 3.938 kB / 368.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/0.3418, allocations: 3.135 MB / 371.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3418, allocations: 0 / 371.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004953/0.3423, allocations: 95.94 kB / 371.6 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.3441, allocations: 1.865 MB / 373.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.325e-05/0.3442, allocations: 19.97 kB / 373.5 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006546/0.3508, allocations: 6.164 MB / 379.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3508, allocations: 0 / 379.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004951/0.3557, allocations: 3.278 MB / 382.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003117/0.3561, allocations: 208.2 kB / 383.1 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.3562, allocations: 20 kB / 383.1 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/0.358, allocations: 355.6 kB / 383.5 MB, free: 9.594 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001365/0.3594, allocations: 0.5459 MB / 384 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.444e-05/0.3595, allocations: 31.95 kB / 384.1 MB, free: 9.016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007211/0.3603, allocations: 0.6748 MB / 384.7 MB, free: 8.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3603, allocations: 0 / 384.7 MB, free: 8.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008299/0.3611, allocations: 184 kB / 384.9 MB, free: 8.164 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 (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,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003002/0.3614, allocations: 155.1 kB / 385.1 MB, free: 8.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.3645, allocations: 1.945 MB / 387 MB, free: 6.027 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.3645, allocations: 3.938 kB / 387 MB, free: 6.023 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.3663, allocations: 1.099 MB / 388.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008008/0.3671, allocations: 74.89 kB / 388.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004651/0.3718, allocations: 2.356 MB / 390.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005813/0.3724, allocations: 0.927 MB / 391.5 MB, free: 1.488 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002761/0.3727, allocations: 39.28 kB / 391.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.3728, allocations: 39.41 kB / 391.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3728, allocations: 0 / 391.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of Templates: time 0.03636/0.4092, allocations: 21.71 MB / 413.3 MB, free: 11.66 MB / 350.1 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)