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.ElastoGap.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.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 2.25/2.25, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003621/0.000362, allocations: 12 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.09949, allocations: 44.5 MB / 309 MB, free: 372 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5181/0.6177, allocations: 72.09 MB / 381.1 MB, free: 15.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000336/0.6181, allocations: 66.55 kB / 381.2 MB, free: 15.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03084/0.6489, allocations: 5.628 MB / 386.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.649, allocations: 4 kB / 386.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.496e-05/0.649, allocations: 6.25 kB / 386.8 MB, free: 14.71 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001795/0.6509, allocations: 0.5777 MB / 387.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.6509, allocations: 10.61 kB / 387.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002124/0.6512, allocations: 37.36 kB / 387.5 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.6517, allocations: 247.7 kB / 387.7 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.6518, allocations: 19.28 kB / 387.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.652, allocations: 37.81 kB / 387.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.6532, allocations: 278.6 kB / 388 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.6532, allocations: 5.219 kB / 388 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.791e-05/0.6533, allocations: 9.906 kB / 388 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.6534, allocations: 7.812 kB / 388.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.6547, allocations: 284.7 kB / 388.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.6574, allocations: 0.8085 MB / 389.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.6587, allocations: 369.2 kB / 389.5 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.946e-05/0.6589, allocations: 12.59 kB / 389.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.6589, allocations: 49.67 kB / 389.6 MB, free: 13.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 4.057e-06/0.6589, allocations: 0 / 389.6 MB, free: 13.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.009501/0.6684, allocations: 2.024 MB / 391.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.6686, allocations: 59.75 kB / 391.6 MB, free: 12.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.6689, allocations: 195.6 kB / 391.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.548e-05/0.669, allocations: 32.58 kB / 391.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.6691, allocations: 145.6 kB / 392 MB, free: 12.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002516/0.6694, allocations: 221 kB / 392.2 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.738e-05/0.6694, allocations: 8.938 kB / 392.2 MB, free: 12.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.6696, allocations: 343.3 kB / 392.6 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007482/0.6703, allocations: 170.8 kB / 392.7 MB, free: 12.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000726/0.6711, allocations: 180.3 kB / 392.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008175/0.6719, allocations: 185.6 kB / 393.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.6719, allocations: 0 / 393.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001904/0.6739, allocations: 494.2 kB / 393.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.76e-05/0.6739, allocations: 4.5 kB / 393.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.674, allocations: 3.953 kB / 393.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.674, allocations: 7.875 kB / 393.6 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.6752, allocations: 128.7 kB / 393.7 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/0.6753, allocations: 3.844 kB / 393.7 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005903/0.6759, allocations: 25.5 kB / 393.7 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.454e-05/0.6759, allocations: 21.72 kB / 393.8 MB, free: 12.09 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003352/0.6763, allocations: 160.2 kB / 393.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.6765, allocations: 35.11 kB / 394 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.6767, allocations: 54.11 kB / 394 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.6767, allocations: 7.828 kB / 394 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.6767, allocations: 0 / 394 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.6768, allocations: 3.469 kB / 394 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.6809, allocations: 1.334 MB / 395.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.681, allocations: 8.406 kB / 395.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/0.6823, allocations: 127.1 kB / 395.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-05/0.6823, allocations: 7.5 kB / 395.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.149e-05/0.6824, allocations: 17.59 kB / 395.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.561e-05/0.6824, allocations: 7.812 kB / 395.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/0.6825, allocations: 10.77 kB / 395.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00281/0.6853, allocations: 0.9075 MB / 396.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.6856, allocations: 111.2 kB / 396.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.6857, allocations: 20.17 kB / 396.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006489/0.6864, allocations: 31.97 kB / 396.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.6866, allocations: 54.36 kB / 396.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.114e-05/0.6866, allocations: 21.7 kB / 396.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002117/0.6869, allocations: 135.8 kB / 396.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6869, allocations: 0 / 396.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009845/0.6879, allocations: 102.2 kB / 396.9 MB, free: 10.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002291/0.6881, allocations: 125.6 kB / 397 MB, free: 10.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.6899, allocations: 449.3 kB / 397.5 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/0.6899, allocations: 3.938 kB / 397.5 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009407/0.6909, allocations: 265.3 kB / 397.7 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00098/0.6919, allocations: 66.25 kB / 397.8 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002493/0.6944, allocations: 1.205 MB / 399 MB, free: 9.922 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.6948, allocations: 0.803 MB / 399.8 MB, free: 9.211 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003904/0.6952, allocations: 47.25 kB / 399.8 MB, free: 9.195 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.6953, allocations: 36.25 kB / 399.9 MB, free: 9.191 MB / 314.7 MB Notification: Performance of SimCode: time 1.193e-06/0.6953, allocations: 4 kB / 399.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of Templates: time 0.01191/0.7073, allocations: 3.649 MB / 403.5 MB, free: 8.926 MB / 314.7 MB