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/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.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.558/1.558, allocations: 171.3 MB / 179.2 MB, free: 8.184 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.422e-05/1.425e-05, allocations: 0 / 222.5 MB, free: 8.797 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06693/0.06696, allocations: 38.76 MB / 261.3 MB, free: 1.949 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2884/0.3554, allocations: 66.04 MB / 327.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.3557, allocations: 62.03 kB / 327.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02209/0.3778, allocations: 5.592 MB / 333 MB, free: 1.527 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.151e-06/0.3778, allocations: 192 / 333 MB, free: 1.527 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.599e-05/0.3779, allocations: 8 kB / 333 MB, free: 1.52 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.001014/0.3789, allocations: 0.5589 MB / 333.5 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3789, allocations: 8.031 kB / 333.5 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.486e-05/0.379, allocations: 31.62 kB / 333.6 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003614/0.3794, allocations: 259.4 kB / 333.8 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.3795, allocations: 15.95 kB / 333.8 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.729e-05/0.3795, allocations: 16 kB / 333.9 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005304/0.3801, allocations: 215.1 kB / 334.1 MB, free: 460 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004892/0.3806, allocations: 212.9 kB / 334.3 MB, free: 296 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.3806, allocations: 3.984 kB / 334.3 MB, free: 292 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.3807, allocations: 0 / 334.3 MB, free: 292 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.3807, allocations: 8 kB / 334.3 MB, free: 284 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.3823, allocations: 0.7403 MB / 335 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00061/0.383, allocations: 318.5 kB / 335.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003207/0.3833, allocations: 165.8 kB / 335.5 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.3833, allocations: 7.984 kB / 335.5 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.3834, allocations: 39.31 kB / 335.5 MB, free: 15.3 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.246e-06/0.3834, allocations: 4 kB / 335.5 MB, free: 15.3 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.003467/0.3869, allocations: 1.47 MB / 337 MB, free: 14.03 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.387, allocations: 63.91 kB / 337.1 MB, free: 13.96 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.3872, allocations: 154 kB / 337.2 MB, free: 13.81 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.3872, allocations: 25.7 kB / 337.3 MB, free: 13.78 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.3874, allocations: 208.2 kB / 337.5 MB, free: 13.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.3876, allocations: 205.2 kB / 337.7 MB, free: 13.41 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.3876, allocations: 3.938 kB / 337.7 MB, free: 13.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3878, allocations: 346.4 kB / 338 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/0.3881, allocations: 126.9 kB / 338.1 MB, free: 13 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/0.3884, allocations: 127.6 kB / 338.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.3888, allocations: 146.8 kB / 338.4 MB, free: 12.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.962e-06/0.3888, allocations: 4 kB / 338.4 MB, free: 12.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008291/0.3896, allocations: 389 kB / 338.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.3897, allocations: 4 kB / 338.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.391e-06/0.3897, allocations: 0 / 338.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.3897, allocations: 4 kB / 338.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.3904, allocations: 131.2 kB / 338.9 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3904, allocations: 4 kB / 338.9 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.3907, allocations: 15.98 kB / 338.9 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/0.3908, allocations: 15.5 kB / 338.9 MB, free: 12.39 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 () * 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.0001496/0.3909, allocations: 116.8 kB / 339.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.391, allocations: 31.62 kB / 339.1 MB, free: 12.24 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.3912, allocations: 40.08 kB / 339.1 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.005e-06/0.3912, allocations: 8 kB / 339.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.433e-06/0.3912, allocations: 0 / 339.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.3912, allocations: 3.984 kB / 339.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.3936, allocations: 1.16 MB / 340.3 MB, free: 11.19 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.3936, allocations: 8.031 kB / 340.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006835/0.3943, allocations: 123.1 kB / 340.4 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-05/0.3943, allocations: 8 kB / 340.4 MB, free: 11.06 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.5e-05/0.3944, allocations: 11.98 kB / 340.4 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-05/0.3944, allocations: 7.938 kB / 340.5 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.571e-06/0.3944, allocations: 8 kB / 340.5 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.3959, allocations: 0.9798 MB / 341.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.3961, allocations: 108.6 kB / 341.6 MB, free: 9.945 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.659e-05/0.3962, allocations: 15.97 kB / 341.6 MB, free: 9.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003603/0.3965, allocations: 23.98 kB / 341.6 MB, free: 9.906 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3967, allocations: 51.16 kB / 341.6 MB, free: 9.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.378e-05/0.3967, allocations: 19.06 kB / 341.7 MB, free: 9.848 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000143/0.3969, allocations: 130.4 kB / 341.8 MB, free: 9.734 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.272e-06/0.3969, allocations: 0 / 341.8 MB, free: 9.734 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005542/0.3975, allocations: 79.94 kB / 341.9 MB, free: 9.656 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 () * 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.0001868/0.3977, allocations: 110.5 kB / 342 MB, free: 9.539 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007611/0.3985, allocations: 358.6 kB / 342.3 MB, free: 9.297 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.538e-06/0.3985, allocations: 4 kB / 342.3 MB, free: 9.293 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004254/0.3989, allocations: 213.5 kB / 342.5 MB, free: 9.141 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005903/0.3995, allocations: 66.33 kB / 342.6 MB, free: 9.086 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.4013, allocations: 0.8284 MB / 343.4 MB, free: 8.254 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005302/0.4019, allocations: 0.8008 MB / 344.2 MB, free: 7.426 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.4021, allocations: 39.42 kB / 344.3 MB, free: 7.387 MB / 282.7 MB Notification: Performance of SimCode: time 1.988e-06/0.4021, allocations: 0 / 344.3 MB, free: 7.387 MB / 282.7 MB Notification: Performance of Templates: time 0.008813/0.4109, allocations: 4.322 MB / 348.6 MB, free: 3.117 MB / 282.7 MB