Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.573/1.573, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.643e-05/2.654e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2046, allocations: 38.77 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1173/0.322, allocations: 70.95 MB / 338.5 MB, free: 2.375 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.3222, allocations: 71.97 kB / 338.6 MB, free: 2.305 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06784/0.3901, allocations: 13.34 MB / 352 MB, free: 4.922 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.611e-06/0.3902, allocations: 4 kB / 352 MB, free: 4.918 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.313e-05/0.3902, allocations: 8 kB / 352 MB, free: 4.91 MB / 298.7 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.004671/0.3949, allocations: 1.118 MB / 353.1 MB, free: 3.742 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.395, allocations: 8.031 kB / 353.1 MB, free: 3.734 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003551/0.3954, allocations: 87.06 kB / 353.2 MB, free: 3.648 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.3967, allocations: 0.5731 MB / 353.7 MB, free: 3.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-05/0.3968, allocations: 32.73 kB / 353.8 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002154/0.397, allocations: 47.98 kB / 353.8 MB, free: 2.957 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003013/0.4001, allocations: 1.451 MB / 355.3 MB, free: 1.484 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.4001, allocations: 11.89 kB / 355.3 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001726/0.4003, allocations: 24 kB / 355.3 MB, free: 1.449 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.4003, allocations: 8 kB / 355.3 MB, free: 1.441 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2174/0.6177, allocations: 2.153 MB / 357.5 MB, free: 78.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.6338, allocations: 3.142 MB / 360.6 MB, free: 77.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004232/0.6381, allocations: 1.027 MB / 361.6 MB, free: 77.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003342/0.6415, allocations: 0.866 MB / 362.5 MB, free: 77.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001648/0.6418, allocations: 8.312 kB / 362.5 MB, free: 77.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004265/0.6461, allocations: 1.126 MB / 363.6 MB, free: 77.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 7.896e-06/0.6461, allocations: 3 kB / 363.6 MB, free: 77.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.01096/0.6571, allocations: 5.728 MB / 369.4 MB, free: 74.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.6572, allocations: 85.11 kB / 369.5 MB, free: 74.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001405/0.6586, allocations: 0.7924 MB / 370.2 MB, free: 73.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002009/0.6588, allocations: 52.33 kB / 370.3 MB, free: 73.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.659, allocations: 314.9 kB / 370.6 MB, free: 73.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002365/0.6592, allocations: 176.7 kB / 370.8 MB, free: 72.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.6594, allocations: 20 kB / 370.8 MB, free: 72.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.969e-05/0.6595, allocations: 337 kB / 371.1 MB, free: 72.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001653/0.6611, allocations: 1.039 MB / 372.2 MB, free: 71.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001718/0.6629, allocations: 1.142 MB / 373.3 MB, free: 70.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.6644, allocations: 0.9611 MB / 374.3 MB, free: 69.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.6644, allocations: 7.469 kB / 374.3 MB, free: 69.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006106/0.6705, allocations: 3.278 MB / 377.6 MB, free: 66.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.6706, allocations: 4 kB / 377.6 MB, free: 66.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.6706, allocations: 4 kB / 377.6 MB, free: 66.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0139/0.6845, allocations: 11.43 MB / 389 MB, free: 55.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007523/0.6853, allocations: 131.8 kB / 389.1 MB, free: 55.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01241/0.6977, allocations: 7.108 MB / 396.2 MB, free: 48.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003025/0.7008, allocations: 314.6 kB / 396.5 MB, free: 47.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003393/0.7012, allocations: 112 kB / 396.6 MB, free: 47.69 MB / 298.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 (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.0004735/0.7017, allocations: 151.3 kB / 396.8 MB, free: 47.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003991/0.7021, allocations: 79.23 kB / 396.9 MB, free: 47.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003659/0.7025, allocations: 102.3 kB / 397 MB, free: 47.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.7026, allocations: 8 kB / 397 MB, free: 47.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.458e-06/0.7026, allocations: 0 / 397 MB, free: 47.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.7026, allocations: 3.984 kB / 397 MB, free: 47.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008944/0.7116, allocations: 4.504 MB / 401.5 MB, free: 42.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.864e-06/0.7116, allocations: 0 / 401.5 MB, free: 42.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000633/0.7123, allocations: 95.94 kB / 401.6 MB, free: 42.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01377/0.726, allocations: 11.33 MB / 412.9 MB, free: 31.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001766/0.7263, allocations: 43.92 kB / 413 MB, free: 31.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009189/0.7355, allocations: 6.814 MB / 419.8 MB, free: 24.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.342e-06/0.7355, allocations: 0 / 419.8 MB, free: 24.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007481/0.743, allocations: 4.301 MB / 424.1 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009321/0.744, allocations: 408.1 kB / 424.5 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002483/0.7443, allocations: 32 kB / 424.5 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001764/0.746, allocations: 311.7 kB / 424.8 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002101/0.7482, allocations: 0.6627 MB / 425.5 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002018/0.7484, allocations: 91.97 kB / 425.6 MB, free: 18.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008926/0.7493, allocations: 0.628 MB / 426.2 MB, free: 17.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.3e-07/0.7493, allocations: 0 / 426.2 MB, free: 17.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00106/0.7504, allocations: 220.2 kB / 426.4 MB, free: 17.51 MB / 298.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: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * 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.0002993/0.7507, allocations: 157 kB / 426.6 MB, free: 17.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.753, allocations: 1.656 MB / 428.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.926e-06/0.753, allocations: 4.062 kB / 428.2 MB, free: 15.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.7542, allocations: 0.9137 MB / 429.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000593/0.7549, allocations: 64.42 kB / 429.2 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005012/0.7599, allocations: 2.044 MB / 431.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.7604, allocations: 0.9376 MB / 432.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.7606, allocations: 51.42 kB / 432.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of SimCode: time 1.734e-06/0.7606, allocations: 0 / 432.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of Templates: time 0.01981/0.7805, allocations: 13.41 MB / 445.6 MB, free: 14.18 MB / 314.7 MB