Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.805/1.805, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003518, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08192/0.0823, allocations: 44.51 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3532/0.4356, allocations: 76.35 MB / 384.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.4359, allocations: 69.73 kB / 384.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05293/0.4888, allocations: 13.58 MB / 398.4 MB, free: 17.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.557e-06/0.4889, allocations: 0 / 398.4 MB, free: 17.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.124e-05/0.4889, allocations: 15.22 kB / 398.5 MB, free: 17.58 MB / 314.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.003084/0.492, allocations: 1.176 MB / 399.6 MB, free: 16.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4921, allocations: 14.41 kB / 399.7 MB, free: 16.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002947/0.4924, allocations: 79.8 kB / 399.7 MB, free: 16.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008762/0.4933, allocations: 496.9 kB / 400.2 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.411e-05/0.4933, allocations: 33.5 kB / 400.2 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.4935, allocations: 34.44 kB / 400.3 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/0.4961, allocations: 0.9606 MB / 401.2 MB, free: 16.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/0.4962, allocations: 3.906 kB / 401.2 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.4963, allocations: 14.88 kB / 401.3 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.4963, allocations: 7.844 kB / 401.3 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003429/0.4998, allocations: 1.208 MB / 402.5 MB, free: 16.42 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006489/0.5063, allocations: 2.411 MB / 404.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.5083, allocations: 0.7577 MB / 405.6 MB, free: 15.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.513e-05/0.5085, allocations: 11.48 kB / 405.7 MB, free: 15.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002098/0.5106, allocations: 0.8238 MB / 406.5 MB, free: 14.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.998e-06/0.5106, allocations: 0 / 406.5 MB, free: 14.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.01611/0.5267, allocations: 5.129 MB / 411.6 MB, free: 13.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.5268, allocations: 80.8 kB / 411.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007686/0.5276, allocations: 0.5389 MB / 412.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002278/0.5278, allocations: 44.2 kB / 412.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.528, allocations: 312.9 kB / 412.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.5283, allocations: 173.6 kB / 412.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.5284, allocations: 14.5 kB / 412.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.825e-05/0.5285, allocations: 333 kB / 413.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001707/0.5302, allocations: 0.5965 MB / 413.7 MB, free: 12.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001735/0.5319, allocations: 0.6797 MB / 414.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.5334, allocations: 0.5081 MB / 414.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.362e-06/0.5334, allocations: 0 / 414.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005244/0.5387, allocations: 1.816 MB / 416.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.5388, allocations: 8.938 kB / 416.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.535e-05/0.5388, allocations: 11.72 kB / 416.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006061/0.5449, allocations: 4.191 MB / 420.9 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/0.5456, allocations: 114.6 kB / 421 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008698/0.5543, allocations: 5.421 MB / 426.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.5564, allocations: 300.2 kB / 426.7 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002131/0.5566, allocations: 106.9 kB / 426.8 MB, free: 5.828 MB / 314.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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.000625/0.5573, allocations: 254.5 kB / 427.1 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.5575, allocations: 67.16 kB / 427.1 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004471/0.562, allocations: 1.569 MB / 428.7 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.562, allocations: 7.828 kB / 428.7 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.591e-06/0.562, allocations: 11.92 kB / 428.7 MB, free: 5.234 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.5621, allocations: 7.859 kB / 428.7 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006633/0.5687, allocations: 2.601 MB / 431.3 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.5688, allocations: 3.938 kB / 431.3 MB, free: 4.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006742/0.5695, allocations: 103 kB / 431.4 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006035/0.5755, allocations: 4.208 MB / 435.6 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001687/0.5757, allocations: 31.59 kB / 435.7 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008875/0.5846, allocations: 5.144 MB / 440.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.066e-06/0.5847, allocations: 7.953 kB / 440.8 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007523/0.5922, allocations: 2.501 MB / 443.3 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008412/0.5931, allocations: 308.2 kB / 443.6 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002131/0.5933, allocations: 23.75 kB / 443.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001842/0.5952, allocations: 303.4 kB / 444 MB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002126/0.5973, allocations: 0.6642 MB / 444.6 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002632/0.5976, allocations: 91.03 kB / 444.7 MB, free: 9.234 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009441/0.5986, allocations: 0.5181 MB / 445.2 MB, free: 8.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.024e-06/0.5986, allocations: 0 / 445.2 MB, free: 8.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001341/0.5999, allocations: 244 kB / 445.5 MB, free: 8.621 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 32 * 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.0004067/0.6004, allocations: 153.2 kB / 445.6 MB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00436/0.6047, allocations: 1.526 MB / 447.1 MB, free: 7.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.6048, allocations: 0 / 447.1 MB, free: 7.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002486/0.6073, allocations: 0.888 MB / 448 MB, free: 6.176 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007123/0.608, allocations: 54.91 kB / 448.1 MB, free: 6.121 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006059/0.6141, allocations: 2.262 MB / 450.3 MB, free: 3.812 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007837/0.6149, allocations: 0.9261 MB / 451.3 MB, free: 2.859 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/0.6152, allocations: 43.41 kB / 451.3 MB, free: 2.816 MB / 330.7 MB Notification: Performance of SimCode: time 1.645e-06/0.6152, allocations: 0 / 451.3 MB, free: 2.816 MB / 330.7 MB Notification: Performance of Templates: time 0.02876/0.644, allocations: 14.97 MB / 466.3 MB, free: 3.809 MB / 346.7 MB