Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001148/0.001148, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.001596/0.001596, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.574/1.574, allocations: 205.4 MB / 223.4 MB, free: 5.777 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.0004881/0.0004881, allocations: 12 kB / 280.1 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2709, allocations: 47.59 MB / 327.7 MB, free: 1.609 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00261/0.2735, allocations: 2.527 MB / 330.3 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.2756, allocations: 1.159 MB / 331.4 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002112/0.2759, allocations: 9.312 kB / 331.4 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003643/0.2762, allocations: 61.59 kB / 331.5 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.2764, allocations: 101.8 kB / 331.6 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008486/0.2773, allocations: 328.4 kB / 331.9 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007994/0.2781, allocations: 0.6858 MB / 332.6 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.2783, allocations: 73.52 kB / 332.7 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004956/0.2788, allocations: 315.8 kB / 333 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.2806, allocations: 1.43 MB / 334.4 MB, free: 12.99 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.827e-05/0.2807, allocations: 36 kB / 334.4 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.2809, allocations: 75.97 kB / 334.5 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002555/0.2812, allocations: 203.3 kB / 334.7 MB, free: 12.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.2813, allocations: 125.3 kB / 334.8 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006225/0.282, allocations: 0.5977 MB / 335.4 MB, free: 11.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.282, allocations: 8 kB / 335.4 MB, free: 11.95 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.282, allocations: 3.984 kB / 335.4 MB, free: 11.95 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.282, allocations: 0 / 335.4 MB, free: 11.95 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.003185/0.2852, allocations: 1.317 MB / 336.8 MB, free: 10.58 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.15e-05/0.2853, allocations: 8.031 kB / 336.8 MB, free: 10.57 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.2854, allocations: 71.16 kB / 336.8 MB, free: 10.5 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.286, allocations: 410.6 kB / 337.2 MB, free: 10.05 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.099e-05/0.2861, allocations: 25 kB / 337.3 MB, free: 10.03 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.937e-05/0.2862, allocations: 36 kB / 337.3 MB, free: 9.992 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.288, allocations: 1.165 MB / 338.5 MB, free: 8.816 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.288, allocations: 3.906 kB / 338.5 MB, free: 8.812 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/0.2881, allocations: 16 kB / 338.5 MB, free: 8.797 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.2881, allocations: 15.98 kB / 338.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002702/0.2908, allocations: 1.783 MB / 340.3 MB, free: 7 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00431/0.2952, allocations: 2.541 MB / 342.8 MB, free: 4.379 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.2968, allocations: 0.9459 MB / 343.8 MB, free: 3.414 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.2979, allocations: 0.728 MB / 344.5 MB, free: 2.68 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.222e-05/0.298, allocations: 7.984 kB / 344.5 MB, free: 2.672 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.2994, allocations: 0.9162 MB / 345.4 MB, free: 1.734 MB / 270.1 MB Notification: Performance of pre-optimization done (n=47): time 3.226e-06/0.2994, allocations: 0 / 345.4 MB, free: 1.734 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.01041/0.3099, allocations: 6.037 MB / 351.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.31, allocations: 85.11 kB / 351.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.3111, allocations: 0.9064 MB / 352.4 MB, free: 10.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.311e-05/0.3112, allocations: 45.7 kB / 352.5 MB, free: 10.47 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.3114, allocations: 304.2 kB / 352.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.3116, allocations: 161.9 kB / 352.9 MB, free: 10.01 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-05/0.3116, allocations: 15.94 kB / 353 MB, free: 9.992 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3118, allocations: 386.7 kB / 353.3 MB, free: 9.605 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.313, allocations: 0.8603 MB / 354.2 MB, free: 8.742 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.3144, allocations: 0.948 MB / 355.1 MB, free: 7.766 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.3155, allocations: 0.7809 MB / 355.9 MB, free: 6.984 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3155, allocations: 4 kB / 355.9 MB, free: 6.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003503/0.319, allocations: 2.487 MB / 358.4 MB, free: 4.477 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.3191, allocations: 10.91 kB / 358.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3191, allocations: 4 kB / 358.4 MB, free: 4.465 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002045/0.3211, allocations: 1.892 MB / 360.3 MB, free: 2.562 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004873/0.3216, allocations: 123.8 kB / 360.4 MB, free: 2.441 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007261/0.3289, allocations: 6.455 MB / 366.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.3302, allocations: 303.6 kB / 367.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.476e-05/0.3303, allocations: 27.98 kB / 367.2 MB, free: 11.36 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.0003801/0.3307, allocations: 251.9 kB / 367.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.3309, allocations: 67.16 kB / 367.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002345/0.3311, allocations: 110.1 kB / 367.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3311, allocations: 8 kB / 367.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3311, allocations: 0 / 367.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3311, allocations: 3.984 kB / 367.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003935/0.3351, allocations: 3.123 MB / 370.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.3351, allocations: 0 / 370.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004426/0.3355, allocations: 95.94 kB / 370.9 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/0.3374, allocations: 1.869 MB / 372.7 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.164e-05/0.3375, allocations: 19.97 kB / 372.8 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006685/0.3442, allocations: 6.156 MB / 378.9 MB, free: 15.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.3442, allocations: 7.984 kB / 378.9 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004715/0.3489, allocations: 3.271 MB / 382.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003277/0.3493, allocations: 208.2 kB / 382.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.3494, allocations: 20 kB / 382.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/0.351, allocations: 355.6 kB / 382.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0015/0.3525, allocations: 0.6354 MB / 383.4 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.3526, allocations: 31.95 kB / 383.4 MB, free: 10.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008791/0.3535, allocations: 0.6708 MB / 384.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3535, allocations: 3.938 kB / 384.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000898/0.3544, allocations: 192 kB / 384.3 MB, free: 9.852 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.0002822/0.3547, allocations: 151.2 kB / 384.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003021/0.3577, allocations: 1.952 MB / 386.4 MB, free: 7.711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3578, allocations: 0 / 386.4 MB, free: 7.711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001755/0.3595, allocations: 1.095 MB / 387.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006402/0.3602, allocations: 70.92 kB / 387.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004443/0.3646, allocations: 2.286 MB / 389.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005832/0.3652, allocations: 0.9296 MB / 390.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002547/0.3655, allocations: 39.28 kB / 390.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.3656, allocations: 35.42 kB / 390.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3656, allocations: 0 / 390.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of Templates: time 0.03004/0.3957, allocations: 20.98 MB / 411.8 MB, free: 14.17 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)