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.615/1.615, allocations: 171.2 MB / 186.7 MB, free: 1.008 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.0003561, allocations: 8 kB / 233.2 MB, free: 3 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0712/0.07159, allocations: 38.77 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2838/0.3554, allocations: 71.04 MB / 343 MB, free: 2.84 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.3557, allocations: 72.7 kB / 343.1 MB, free: 2.801 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05614/0.4118, allocations: 13.35 MB / 356.5 MB, free: 6.949 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.323e-06/0.4119, allocations: 0 / 356.5 MB, free: 6.949 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.798e-05/0.4119, allocations: 12 kB / 356.5 MB, free: 6.938 MB / 282.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.003465/0.4154, allocations: 1.212 MB / 357.7 MB, free: 5.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4155, allocations: 8.031 kB / 357.7 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002933/0.4158, allocations: 83.06 kB / 357.8 MB, free: 5.625 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.417, allocations: 0.5822 MB / 358.4 MB, free: 5.066 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.278e-05/0.4171, allocations: 31 kB / 358.4 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002126/0.4173, allocations: 49.11 kB / 358.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003558/0.4209, allocations: 1.54 MB / 360 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.4209, allocations: 0 / 360 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001738/0.4211, allocations: 22.81 kB / 360 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.4212, allocations: 11.94 kB / 360 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005148/0.4263, allocations: 2.331 MB / 362.3 MB, free: 1.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008275/0.4346, allocations: 3.137 MB / 365.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002799/0.4375, allocations: 1.151 MB / 366.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.806e-05/0.4376, allocations: 4 kB / 366.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002919/0.4405, allocations: 1.204 MB / 367.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 3.727e-06/0.4405, allocations: 0 / 367.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.02084/0.4614, allocations: 7.874 MB / 375.7 MB, free: 6.219 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.173e-05/0.4615, allocations: 96.98 kB / 375.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/0.4631, allocations: 0.7959 MB / 376.6 MB, free: 5.484 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002517/0.4634, allocations: 54.25 kB / 376.7 MB, free: 5.438 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/0.4637, allocations: 319.8 kB / 377 MB, free: 5.215 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/0.464, allocations: 168.3 kB / 377.1 MB, free: 5.074 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.4641, allocations: 23.5 kB / 377.2 MB, free: 5.062 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.4643, allocations: 334.5 kB / 377.5 MB, free: 4.734 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002463/0.4668, allocations: 1.129 MB / 378.6 MB, free: 3.828 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002556/0.4694, allocations: 1.21 MB / 379.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002344/0.4717, allocations: 1.056 MB / 380.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.359e-06/0.4718, allocations: 0 / 380.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.008266/0.4801, allocations: 3.432 MB / 384.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.4801, allocations: 10.81 kB / 384.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.4801, allocations: 4 kB / 384.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01837/0.4985, allocations: 11.47 MB / 395.8 MB, free: 3.789 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007897/0.4994, allocations: 131.9 kB / 395.9 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01303/0.5124, allocations: 7.132 MB / 403.1 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.5144, allocations: 303.7 kB / 403.4 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002663/0.5147, allocations: 116.2 kB / 403.5 MB, free: 11.82 MB / 330.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 () * 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.0006757/0.5154, allocations: 252.1 kB / 403.7 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002647/0.5157, allocations: 83.09 kB / 403.8 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002426/0.516, allocations: 110.2 kB / 403.9 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.516, allocations: 4 kB / 403.9 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.108e-06/0.516, allocations: 7.891 kB / 403.9 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-06/0.516, allocations: 0 / 403.9 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01111/0.5271, allocations: 4.597 MB / 408.5 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.5272, allocations: 0 / 408.5 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006814/0.5279, allocations: 99.89 kB / 408.6 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01833/0.5462, allocations: 11.38 MB / 420 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001977/0.5465, allocations: 39.97 kB / 420 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01219/0.5587, allocations: 6.855 MB / 426.9 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.893e-06/0.5587, allocations: 0 / 426.9 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1905/0.7492, allocations: 4.537 MB / 431.4 MB, free: 116.6 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.7503, allocations: 404.8 kB / 431.8 MB, free: 116.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/0.7507, allocations: 31.39 kB / 431.9 MB, free: 116.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001944/0.7526, allocations: 311.6 kB / 432.2 MB, free: 116.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002191/0.7548, allocations: 0.6581 MB / 432.8 MB, free: 116.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002659/0.7551, allocations: 98.62 kB / 432.9 MB, free: 116.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001131/0.7563, allocations: 0.6399 MB / 433.6 MB, free: 116.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.58e-07/0.7563, allocations: 0 / 433.6 MB, free: 116.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001193/0.7575, allocations: 219.5 kB / 433.8 MB, free: 116.4 MB / 346.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) * 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.0003172/0.7578, allocations: 153.6 kB / 433.9 MB, free: 116.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003753/0.7616, allocations: 1.83 MB / 435.7 MB, free: 116.1 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.7616, allocations: 0 / 435.7 MB, free: 116.1 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002165/0.7638, allocations: 1.003 MB / 436.7 MB, free: 115.9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006927/0.7645, allocations: 67.52 kB / 436.8 MB, free: 115.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005412/0.77, allocations: 2.316 MB / 439.1 MB, free: 115.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005516/0.7706, allocations: 0.9336 MB / 440.1 MB, free: 114.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.7709, allocations: 48.72 kB / 440.1 MB, free: 114.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.793e-06/0.7709, allocations: 0 / 440.1 MB, free: 114.5 MB / 346.7 MB Notification: Performance of Templates: time 0.02121/0.7921, allocations: 13.4 MB / 453.5 MB, free: 110.8 MB / 346.7 MB