Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.339/2.339, allocations: 194.9 MB / 211.7 MB, free: 2.871 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003781/0.0003784, allocations: 15.98 kB / 264.5 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0986/0.09901, allocations: 44.5 MB / 309 MB, free: 352 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.474/0.5731, allocations: 76.35 MB / 385.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003082/0.5735, allocations: 80.44 kB / 385.5 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0962/0.6697, allocations: 13.58 MB / 399.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.6698, allocations: 3.875 kB / 399.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001031/0.6699, allocations: 7.938 kB / 399.1 MB, free: 13.95 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.007057/0.677, allocations: 1.188 MB / 400.3 MB, free: 13.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.677, allocations: 11.59 kB / 400.3 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006663/0.6777, allocations: 78.42 kB / 400.3 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001837/0.6796, allocations: 498.3 kB / 400.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.6797, allocations: 33.47 kB / 400.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004075/0.6802, allocations: 33.38 kB / 400.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005203/0.6854, allocations: 0.9603 MB / 401.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.441e-05/0.6855, allocations: 3.906 kB / 401.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003979/0.686, allocations: 19.44 kB / 401.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.686, allocations: 11.84 kB / 401.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00693/0.6929, allocations: 1.205 MB / 403.1 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01368/0.7067, allocations: 2.402 MB / 405.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00411/0.7109, allocations: 0.7607 MB / 406.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002179/0.7112, allocations: 15.42 kB / 406.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003974/0.7152, allocations: 0.8282 MB / 407.1 MB, free: 10.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 5.932e-06/0.7153, allocations: 0 / 407.1 MB, free: 10.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.0323/0.7476, allocations: 5.125 MB / 412.2 MB, free: 8.871 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.7477, allocations: 81.02 kB / 412.3 MB, free: 8.777 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.7491, allocations: 0.6121 MB / 412.9 MB, free: 8.551 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005056/0.7496, allocations: 44.27 kB / 413 MB, free: 8.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003481/0.75, allocations: 294.7 kB / 413.2 MB, free: 8.371 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004384/0.7505, allocations: 165.8 kB / 413.4 MB, free: 8.258 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.7507, allocations: 15.03 kB / 413.4 MB, free: 8.258 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.7509, allocations: 375.7 kB / 413.8 MB, free: 7.926 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00318/0.7541, allocations: 0.5948 MB / 414.4 MB, free: 7.828 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003309/0.7574, allocations: 0.6846 MB / 415.1 MB, free: 7.633 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.7595, allocations: 0.5089 MB / 415.6 MB, free: 7.551 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.7595, allocations: 3.938 kB / 415.6 MB, free: 7.551 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006669/0.7662, allocations: 1.858 MB / 417.4 MB, free: 7.156 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/0.7663, allocations: 7.844 kB / 417.4 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-05/0.7664, allocations: 7.75 kB / 417.5 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007783/0.7741, allocations: 4.184 MB / 421.6 MB, free: 5.414 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.7752, allocations: 122 kB / 421.8 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01372/0.789, allocations: 5.414 MB / 427.2 MB, free: 1.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002868/0.7919, allocations: 297 kB / 427.5 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004277/0.7924, allocations: 104.7 kB / 427.6 MB, free: 1.629 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.0008689/0.7933, allocations: 259.9 kB / 427.8 MB, free: 1.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.7936, allocations: 66.56 kB / 427.9 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005551/0.7991, allocations: 1.58 MB / 429.5 MB, free: 1.043 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.7992, allocations: 7.75 kB / 429.5 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.7992, allocations: 3.984 kB / 429.5 MB, free: 1.035 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.7993, allocations: 0 / 429.5 MB, free: 1.035 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008464/0.8077, allocations: 2.619 MB / 432.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.8078, allocations: 0 / 432.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.8088, allocations: 92.03 kB / 432.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009098/0.8179, allocations: 4.204 MB / 436.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002734/0.8183, allocations: 31.59 kB / 436.4 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01178/0.8301, allocations: 5.157 MB / 441.6 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/0.8301, allocations: 7.984 kB / 441.6 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/0.8406, allocations: 2.452 MB / 444 MB, free: 5.246 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.8419, allocations: 306.7 kB / 444.3 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004072/0.8424, allocations: 26.33 kB / 444.4 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003156/0.8455, allocations: 302.6 kB / 444.7 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003002/0.8486, allocations: 0.6574 MB / 445.3 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004282/0.8491, allocations: 99.95 kB / 445.4 MB, free: 3.941 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001217/0.8503, allocations: 0.5146 MB / 445.9 MB, free: 3.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.02e-07/0.8504, allocations: 0 / 445.9 MB, free: 3.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0017/0.8521, allocations: 235.9 kB / 446.2 MB, free: 3.199 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.0005433/0.8526, allocations: 155.9 kB / 446.3 MB, free: 3.035 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00706/0.8597, allocations: 1.528 MB / 447.8 MB, free: 1.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/0.8598, allocations: 0 / 447.8 MB, free: 1.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003633/0.8634, allocations: 0.9349 MB / 448.8 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00098/0.8645, allocations: 55.45 kB / 448.8 MB, free: 480 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008498/0.873, allocations: 2.217 MB / 451 MB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008307/0.8739, allocations: 0.9339 MB / 452 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004604/0.8744, allocations: 39.28 kB / 452 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002208/0.8746, allocations: 35.42 kB / 452 MB, free: 13.18 MB / 346.7 MB Notification: Performance of SimCode: time 1.343e-06/0.8746, allocations: 0 / 452 MB, free: 13.18 MB / 346.7 MB Notification: Performance of Templates: time 0.05497/0.9296, allocations: 20.67 MB / 472.7 MB, free: 8.402 MB / 362.7 MB