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.001518/0.001518, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002197/0.002196, allocations: 191.1 kB / 16.14 MB, free: 6.707 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.564/1.564, allocations: 205.1 MB / 222 MB, free: 4.977 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.001296/0.001296, allocations: 56.34 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2798, allocations: 46.62 MB / 324.7 MB, free: 2.168 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003897/0.2837, allocations: 3.01 MB / 327.7 MB, free: 15.78 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.2858, allocations: 1.207 MB / 328.9 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.2859, allocations: 4.375 kB / 328.9 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003894/0.2864, allocations: 66.2 kB / 329 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.2865, allocations: 105.6 kB / 329.1 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007031/0.2873, allocations: 355.5 kB / 329.4 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006783/0.2879, allocations: 0.7666 MB / 330.2 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.2881, allocations: 86.66 kB / 330.3 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000392/0.2885, allocations: 327.9 kB / 330.6 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.29, allocations: 1.331 MB / 331.9 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.2901, allocations: 38.03 kB / 331.9 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000212/0.2904, allocations: 88 kB / 332 MB, free: 13.06 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.2906, allocations: 200.2 kB / 332.2 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003052/0.2909, allocations: 322.1 kB / 332.5 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007375/0.2916, allocations: 0.8214 MB / 333.4 MB, free: 11.73 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2916, allocations: 0 / 333.4 MB, free: 11.73 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2916, allocations: 0 / 333.4 MB, free: 11.73 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.2917, allocations: 3.938 kB / 333.4 MB, free: 11.72 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.003434/0.2951, allocations: 1.324 MB / 334.7 MB, free: 10.35 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2951, allocations: 12.03 kB / 334.7 MB, free: 10.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.2953, allocations: 79.94 kB / 334.8 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004928/0.2958, allocations: 419.5 kB / 335.2 MB, free: 9.805 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.2959, allocations: 33.38 kB / 335.2 MB, free: 9.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.682e-05/0.296, allocations: 36.36 kB / 335.3 MB, free: 9.734 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/0.2978, allocations: 1.158 MB / 336.4 MB, free: 8.566 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.2978, allocations: 0 / 336.4 MB, free: 8.566 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.068e-05/0.2979, allocations: 16 kB / 336.4 MB, free: 8.551 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.2979, allocations: 8 kB / 336.4 MB, free: 8.543 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002713/0.3007, allocations: 1.752 MB / 338.2 MB, free: 6.793 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004917/0.3056, allocations: 2.478 MB / 340.7 MB, free: 4.23 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.3074, allocations: 0.9108 MB / 341.6 MB, free: 3.301 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/0.3086, allocations: 0.7162 MB / 342.3 MB, free: 2.578 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.3088, allocations: 11.98 kB / 342.3 MB, free: 2.566 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002017/0.3108, allocations: 0.9005 MB / 343.2 MB, free: 1.648 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 3.998e-06/0.3108, allocations: 0 / 343.2 MB, free: 1.648 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01244/0.3233, allocations: 5.794 MB / 349 MB, free: 11.7 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.3234, allocations: 85.05 kB / 349.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.3247, allocations: 0.9141 MB / 350 MB, free: 10.67 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.3248, allocations: 49.69 kB / 350.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000349/0.3252, allocations: 296.3 kB / 350.3 MB, free: 10.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.3253, allocations: 161.9 kB / 350.5 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003521/0.3257, allocations: 122.2 kB / 350.6 MB, free: 10.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.3259, allocations: 378.8 kB / 351 MB, free: 9.656 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.3272, allocations: 0.8486 MB / 351.8 MB, free: 8.809 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.3286, allocations: 0.9363 MB / 352.8 MB, free: 7.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00231/0.3309, allocations: 1.457 MB / 354.2 MB, free: 6.352 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3309, allocations: 0 / 354.2 MB, free: 6.352 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004225/0.3351, allocations: 2.486 MB / 356.7 MB, free: 3.848 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/0.3352, allocations: 12.03 kB / 356.7 MB, free: 3.836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.3352, allocations: 0 / 356.7 MB, free: 3.836 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.3373, allocations: 1.904 MB / 358.6 MB, free: 1.922 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005002/0.3378, allocations: 111.9 kB / 358.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007691/0.3455, allocations: 6.369 MB / 365.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.3469, allocations: 223.8 kB / 365.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.347, allocations: 23.98 kB / 365.4 MB, free: 10.9 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.0005248/0.3476, allocations: 252 kB / 365.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.3478, allocations: 71.09 kB / 365.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001917/0.348, allocations: 114.1 kB / 365.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.348, allocations: 7.984 kB / 365.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.348, allocations: 0 / 365.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.348, allocations: 0 / 365.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004234/0.3522, allocations: 3.088 MB / 368.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.3522, allocations: 0 / 368.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004815/0.3527, allocations: 92.05 kB / 369 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001985/0.3547, allocations: 1.877 MB / 370.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.179e-05/0.3548, allocations: 19.97 kB / 370.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006881/0.3617, allocations: 6.082 MB / 376.9 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3617, allocations: 12.03 kB / 377 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004876/0.3666, allocations: 3.22 MB / 380.2 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004212/0.3671, allocations: 212.2 kB / 380.4 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.3672, allocations: 20 kB / 380.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001639/0.3689, allocations: 271.6 kB / 380.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001422/0.3703, allocations: 0.5537 MB / 381.2 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.3704, allocations: 23.97 kB / 381.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007857/0.3712, allocations: 0.6787 MB / 381.9 MB, free: 9.891 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3712, allocations: 0 / 381.9 MB, free: 9.891 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009291/0.3722, allocations: 188 kB / 382.1 MB, free: 9.707 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.0003655/0.3725, allocations: 159.1 kB / 382.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003158/0.3757, allocations: 1.913 MB / 384.2 MB, free: 7.598 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.3757, allocations: 0 / 384.2 MB, free: 7.598 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.3775, allocations: 1.083 MB / 385.3 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007326/0.3783, allocations: 66.97 kB / 385.3 MB, free: 6.426 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004474/0.3828, allocations: 2.175 MB / 387.5 MB, free: 4.215 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005789/0.3834, allocations: 0.927 MB / 388.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002586/0.3836, allocations: 43.22 kB / 388.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.3838, allocations: 35.41 kB / 388.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3838, allocations: 0 / 388.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of Templates: time 0.03681/0.4206, allocations: 21.99 MB / 410.5 MB, free: 13.17 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)