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.ElastoGap.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 1.643/1.643, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003532, allocations: 8 kB / 233.2 MB, free: 3.031 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06808/0.06846, allocations: 38.78 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2765/0.345, allocations: 66.78 MB / 338.8 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.3452, allocations: 67.7 kB / 338.9 MB, free: 7.043 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02253/0.3678, allocations: 5.645 MB / 344.5 MB, free: 2.309 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.35e-06/0.3678, allocations: 0 / 344.5 MB, free: 2.309 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.791e-05/0.3679, allocations: 4 kB / 344.5 MB, free: 2.305 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001045/0.3689, allocations: 0.5828 MB / 345.1 MB, free: 1.691 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.369, allocations: 8.031 kB / 345.1 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.3691, allocations: 39.61 kB / 345.1 MB, free: 1.645 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.3695, allocations: 258.9 kB / 345.4 MB, free: 1.371 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.826e-05/0.3695, allocations: 19.31 kB / 345.4 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.697e-05/0.3696, allocations: 27.56 kB / 345.4 MB, free: 1.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007013/0.3703, allocations: 278.3 kB / 345.7 MB, free: 1.141 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.3704, allocations: 4 kB / 345.7 MB, free: 1.137 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.3704, allocations: 6.438 kB / 345.7 MB, free: 1.137 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.3704, allocations: 8 kB / 345.7 MB, free: 1.129 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007841/0.3712, allocations: 281.9 kB / 346 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.3728, allocations: 0.7976 MB / 346.8 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008059/0.3737, allocations: 379 kB / 347.2 MB, free: 4 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.651e-05/0.3737, allocations: 4 kB / 347.2 MB, free: 0 / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3738, allocations: 41.48 kB / 347.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 2.583e-06/0.3738, allocations: 0 / 347.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.005656/0.3795, allocations: 2.03 MB / 349.2 MB, free: 14.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.3796, allocations: 63.92 kB / 349.3 MB, free: 14.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.3798, allocations: 178.3 kB / 349.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.963e-05/0.3799, allocations: 36.64 kB / 349.5 MB, free: 14.01 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.38, allocations: 204.6 kB / 349.7 MB, free: 13.83 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.3802, allocations: 214.6 kB / 349.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.3803, allocations: 11.12 kB / 349.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3805, allocations: 330.2 kB / 350.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/0.381, allocations: 168.4 kB / 350.4 MB, free: 13.21 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004658/0.3814, allocations: 176.6 kB / 350.6 MB, free: 13.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004821/0.3819, allocations: 186 kB / 350.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.382, allocations: 0 / 350.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001151/0.3831, allocations: 493.7 kB / 351.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.3832, allocations: 8 kB / 351.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.018e-06/0.3832, allocations: 7.938 kB / 351.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3832, allocations: 0 / 351.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006128/0.3838, allocations: 123 kB / 351.4 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.232e-06/0.3838, allocations: 0 / 351.4 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.3841, allocations: 37.98 kB / 351.4 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.3842, allocations: 15.69 kB / 351.4 MB, free: 12.45 MB / 282.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.0002395/0.3844, allocations: 163.8 kB / 351.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.949e-05/0.3846, allocations: 31.62 kB / 351.6 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.3847, allocations: 52.2 kB / 351.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-06/0.3847, allocations: 4 kB / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3847, allocations: 0 / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.992e-06/0.3847, allocations: 3.984 kB / 351.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.3875, allocations: 1.326 MB / 353 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.3875, allocations: 11.98 kB / 353 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006542/0.3882, allocations: 131.2 kB / 353.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.538e-05/0.3882, allocations: 8 kB / 353.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.311e-05/0.3883, allocations: 21.08 kB / 353.2 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-05/0.3883, allocations: 15.92 kB / 353.2 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.469e-06/0.3883, allocations: 4 kB / 353.2 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.3903, allocations: 1.11 MB / 354.3 MB, free: 9.859 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.3905, allocations: 112.2 kB / 354.4 MB, free: 9.734 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.039e-05/0.3906, allocations: 18.7 kB / 354.4 MB, free: 9.723 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003621/0.3909, allocations: 42.09 kB / 354.5 MB, free: 9.691 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.3911, allocations: 46.59 kB / 354.5 MB, free: 9.652 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.434e-05/0.3911, allocations: 23.31 kB / 354.6 MB, free: 9.633 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001675/0.3913, allocations: 140.2 kB / 354.7 MB, free: 9.512 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.35e-07/0.3913, allocations: 0 / 354.7 MB, free: 9.512 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005768/0.3919, allocations: 97.88 kB / 354.8 MB, free: 9.434 MB / 282.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.0001904/0.3921, allocations: 131.7 kB / 354.9 MB, free: 9.301 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.3932, allocations: 452.7 kB / 355.4 MB, free: 8.969 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.334e-06/0.3932, allocations: 0 / 355.4 MB, free: 8.969 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006043/0.3938, allocations: 256.4 kB / 355.6 MB, free: 8.777 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005944/0.3944, allocations: 74.16 kB / 355.7 MB, free: 8.727 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.3967, allocations: 1.236 MB / 356.9 MB, free: 7.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005406/0.3973, allocations: 0.7974 MB / 357.7 MB, free: 6.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.3975, allocations: 43.42 kB / 357.8 MB, free: 6.637 MB / 282.7 MB Notification: Performance of SimCode: time 3.69e-06/0.3975, allocations: 0 / 357.8 MB, free: 6.637 MB / 282.7 MB Notification: Performance of Templates: time 0.008555/0.4061, allocations: 4.387 MB / 362.1 MB, free: 2.305 MB / 282.7 MB