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.868/1.868, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003673, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08012/0.08052, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003566/0.08413, allocations: 2.38 MB / 310.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.08665, allocations: 1.147 MB / 311.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002953/0.08699, allocations: 4 kB / 311.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.08733, allocations: 55.61 kB / 311.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.08771, allocations: 147.6 kB / 312.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.08888, allocations: 323.4 kB / 312.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007569/0.08966, allocations: 464.2 kB / 312.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002085/0.08988, allocations: 73.47 kB / 312.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005271/0.09043, allocations: 319.1 kB / 313.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001894/0.09234, allocations: 1.412 MB / 314.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001525/0.09252, allocations: 32 kB / 314.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002704/0.09281, allocations: 79.94 kB / 314.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002554/0.09308, allocations: 195.4 kB / 315 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.09327, allocations: 129.3 kB / 315.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008741/0.09416, allocations: 0.5965 MB / 315.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.219e-06/0.09418, allocations: 0 / 315.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.197e-06/0.0942, allocations: 4 kB / 315.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.09422, allocations: 0 / 315.7 MB, free: 9.668 MB / 266.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.00397/0.0982, allocations: 1.309 MB / 317 MB, free: 8.309 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.09826, allocations: 11.97 kB / 317 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002488/0.09852, allocations: 83 kB / 317.1 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00073/0.09926, allocations: 398.8 kB / 317.5 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.152e-05/0.09934, allocations: 29 kB / 317.5 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.09948, allocations: 36 kB / 317.5 MB, free: 7.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002514/0.102, allocations: 1.165 MB / 318.7 MB, free: 6.547 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.285e-05/0.1021, allocations: 7.844 kB / 318.7 MB, free: 6.539 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-05/0.1022, allocations: 19.98 kB / 318.7 MB, free: 6.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.1022, allocations: 12 kB / 318.7 MB, free: 6.508 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003799/0.106, allocations: 1.772 MB / 320.5 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005945/0.112, allocations: 2.549 MB / 323.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002286/0.1143, allocations: 0.942 MB / 324 MB, free: 1.148 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.953e-05/0.1145, allocations: 4 kB / 324 MB, free: 1.145 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002052/0.1165, allocations: 0.92 MB / 324.9 MB, free: 208 kB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 3.963e-06/0.1166, allocations: 0 / 324.9 MB, free: 208 kB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.01477/0.1314, allocations: 6.015 MB / 330.9 MB, free: 10.03 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.417e-05/0.1315, allocations: 96.98 kB / 331 MB, free: 9.914 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001671/0.1332, allocations: 0.9063 MB / 331.9 MB, free: 8.996 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000195/0.1334, allocations: 53.69 kB / 332 MB, free: 8.938 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.1337, allocations: 310.8 kB / 332.3 MB, free: 8.633 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000252/0.134, allocations: 165.9 kB / 332.5 MB, free: 8.469 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.575e-05/0.134, allocations: 16 kB / 332.5 MB, free: 8.453 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.1342, allocations: 338.8 kB / 332.8 MB, free: 8.113 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/0.1361, allocations: 0.8642 MB / 333.7 MB, free: 7.246 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001871/0.138, allocations: 0.948 MB / 334.6 MB, free: 6.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.1396, allocations: 0.7809 MB / 335.4 MB, free: 5.488 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.1397, allocations: 0 / 335.4 MB, free: 5.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005331/0.145, allocations: 2.448 MB / 337.8 MB, free: 3.023 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.1451, allocations: 7.953 kB / 337.9 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.1451, allocations: 4 kB / 337.9 MB, free: 3.012 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003052/0.1482, allocations: 1.892 MB / 339.7 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007142/0.1489, allocations: 123.8 kB / 339.9 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/0.1598, allocations: 6.477 MB / 346.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/0.1616, allocations: 299.7 kB / 346.6 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.1618, allocations: 23.98 kB / 346.7 MB, free: 9.895 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 () * 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.0005612/0.1623, allocations: 252 kB / 346.9 MB, free: 9.637 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.1625, allocations: 79.05 kB / 347 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002327/0.1628, allocations: 98.17 kB / 347.1 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/0.1628, allocations: 12 kB / 347.1 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.1628, allocations: 3.984 kB / 347.1 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.238e-06/0.1629, allocations: 192 / 347.1 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00593/0.1688, allocations: 3.138 MB / 350.2 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.1689, allocations: 0 / 350.2 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006596/0.1695, allocations: 99.92 kB / 350.3 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002914/0.1725, allocations: 1.865 MB / 352.2 MB, free: 4.258 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.1726, allocations: 27.95 kB / 352.2 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009911/0.1825, allocations: 6.18 MB / 358.4 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.413e-06/0.1826, allocations: 3.984 kB / 358.4 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006865/0.1895, allocations: 3.271 MB / 361.7 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005332/0.1901, allocations: 212.1 kB / 361.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.1902, allocations: 20 kB / 361.9 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001976/0.1922, allocations: 355.6 kB / 362.3 MB, free: 9.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002043/0.1943, allocations: 0.6354 MB / 362.9 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/0.1945, allocations: 31.91 kB / 362.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001005/0.1955, allocations: 0.6709 MB / 363.6 MB, free: 8.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.1955, allocations: 4 kB / 363.6 MB, free: 8.516 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001118/0.1966, allocations: 184 kB / 363.8 MB, free: 8.336 MB / 314.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.0003713/0.197, allocations: 163.1 kB / 363.9 MB, free: 8.168 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004186/0.2012, allocations: 1.939 MB / 365.9 MB, free: 6.207 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.017e-06/0.2013, allocations: 0 / 365.9 MB, free: 6.207 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00248/0.2038, allocations: 1.064 MB / 366.9 MB, free: 5.117 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000674/0.2045, allocations: 62.92 kB / 367 MB, free: 5.059 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005806/0.2103, allocations: 2.326 MB / 369.3 MB, free: 2.691 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007736/0.2112, allocations: 0.9377 MB / 370.3 MB, free: 1.727 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002385/0.2114, allocations: 35.42 kB / 370.3 MB, free: 1.691 MB / 314.7 MB Notification: Performance of SimCode: time 1.784e-06/0.2114, allocations: 0 / 370.3 MB, free: 1.691 MB / 314.7 MB Notification: Performance of Templates: time 0.222/0.4335, allocations: 13.02 MB / 383.3 MB, free: 60.78 MB / 314.7 MB