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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.627/1.627, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.55e-05/2.561e-05, allocations: 4 kB / 222.5 MB, free: 8.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08159/0.08165, allocations: 38.77 MB / 261.3 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3161/0.3978, allocations: 70.3 MB / 331.6 MB, free: 2.082 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003676/0.3982, allocations: 68.72 kB / 331.6 MB, free: 2.051 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06084/0.4591, allocations: 13.25 MB / 344.9 MB, free: 6.418 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.7e-06/0.4591, allocations: 0 / 344.9 MB, free: 6.418 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.279e-05/0.4592, allocations: 15.75 kB / 344.9 MB, free: 6.406 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.003633/0.4628, allocations: 1.111 MB / 346 MB, free: 5.289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.4629, allocations: 8.031 kB / 346 MB, free: 5.281 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004236/0.4633, allocations: 91.05 kB / 346.1 MB, free: 5.191 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.4647, allocations: 0.5751 MB / 346.7 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.087e-05/0.4648, allocations: 23.89 kB / 346.7 MB, free: 4.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002197/0.465, allocations: 28 kB / 346.7 MB, free: 4.59 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004259/0.4693, allocations: 2.132 MB / 348.9 MB, free: 2.875 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004104/0.4734, allocations: 1.395 MB / 350.3 MB, free: 1.723 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.168e-05/0.4735, allocations: 7.438 kB / 350.3 MB, free: 1.719 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001659/0.4737, allocations: 8 kB / 350.3 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.4737, allocations: 12 kB / 350.3 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008611/0.4823, allocations: 3.068 MB / 353.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/0.4845, allocations: 1.002 MB / 354.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.4861, allocations: 0.8432 MB / 355.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.171e-05/0.4862, allocations: 12.48 kB / 355.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002191/0.4884, allocations: 1.101 MB / 356.3 MB, free: 12.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 3.866e-06/0.4884, allocations: 3.938 kB / 356.3 MB, free: 12.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.01268/0.5011, allocations: 5.617 MB / 361.9 MB, free: 6.836 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.5012, allocations: 81.11 kB / 362 MB, free: 6.738 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/0.5029, allocations: 0.7571 MB / 362.8 MB, free: 5.973 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002913/0.5032, allocations: 53.69 kB / 362.8 MB, free: 5.914 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002857/0.5035, allocations: 306.8 kB / 363.1 MB, free: 5.609 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002957/0.5039, allocations: 165.9 kB / 363.3 MB, free: 5.445 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.504, allocations: 8 kB / 363.3 MB, free: 5.438 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.5042, allocations: 334.8 kB / 363.6 MB, free: 5.102 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001956/0.5062, allocations: 1.024 MB / 364.7 MB, free: 4.078 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002094/0.5083, allocations: 1.119 MB / 365.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001904/0.5102, allocations: 0.9368 MB / 366.7 MB, free: 1.988 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.147e-06/0.5102, allocations: 4 kB / 366.7 MB, free: 1.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.007259/0.5175, allocations: 3.205 MB / 369.9 MB, free: 14.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.5176, allocations: 4 kB / 369.9 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.5176, allocations: 7.984 kB / 369.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01907/0.5367, allocations: 11.41 MB / 381.3 MB, free: 3.309 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007994/0.5375, allocations: 135.8 kB / 381.5 MB, free: 3.176 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/0.5511, allocations: 7.363 MB / 388.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/0.5531, allocations: 303.7 kB / 389.1 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/0.5535, allocations: 108 kB / 389.2 MB, free: 11.15 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.0004437/0.5539, allocations: 139.5 kB / 389.4 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002734/0.5542, allocations: 83.16 kB / 389.5 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002779/0.5545, allocations: 98.61 kB / 389.6 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.5545, allocations: 8 kB / 389.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.813e-06/0.5545, allocations: 0 / 389.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5546, allocations: 3.984 kB / 389.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.5646, allocations: 4.407 MB / 394 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.5646, allocations: 3.984 kB / 394 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006729/0.5653, allocations: 91.94 kB / 394.1 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01895/0.5843, allocations: 11.32 MB / 405.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002155/0.5846, allocations: 39.89 kB / 405.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/0.5969, allocations: 7.035 MB / 412.5 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.411e-06/0.5969, allocations: 4.062 kB / 412.5 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1871/0.784, allocations: 4.231 MB / 416.7 MB, free: 119.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.7852, allocations: 404.8 kB / 417.1 MB, free: 119.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003174/0.7855, allocations: 22.03 kB / 417.1 MB, free: 119.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002024/0.7876, allocations: 306.4 kB / 417.4 MB, free: 119.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002337/0.7899, allocations: 0.6627 MB / 418.1 MB, free: 119.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003474/0.7903, allocations: 100.1 kB / 418.2 MB, free: 119.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001016/0.7914, allocations: 0.5938 MB / 418.8 MB, free: 119.1 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.94e-07/0.7914, allocations: 0 / 418.8 MB, free: 119.1 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001224/0.7926, allocations: 196.2 kB / 419 MB, free: 119.1 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) * 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.0003387/0.793, allocations: 147.8 kB / 419.1 MB, free: 119 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002568/0.7956, allocations: 1.619 MB / 420.7 MB, free: 118.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.243e-06/0.7956, allocations: 0 / 420.7 MB, free: 118.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00152/0.7971, allocations: 0.8937 MB / 421.6 MB, free: 118.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006583/0.7978, allocations: 56.64 kB / 421.7 MB, free: 118.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005573/0.8034, allocations: 2.022 MB / 423.7 MB, free: 118.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005733/0.804, allocations: 0.9328 MB / 424.6 MB, free: 117.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003155/0.8044, allocations: 49.25 kB / 424.7 MB, free: 117.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.713e-06/0.8044, allocations: 5.25 kB / 424.7 MB, free: 117.5 MB / 346.7 MB Notification: Performance of Templates: time 0.02219/0.8266, allocations: 13.38 MB / 438.1 MB, free: 114.3 MB / 346.7 MB