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.589/1.589, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.721e-05/3.738e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3139, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.4241, allocations: 66.69 MB / 334.3 MB, free: 6.656 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.4243, allocations: 59.97 kB / 334.3 MB, free: 6.598 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02311/0.4475, allocations: 5.652 MB / 340 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4475, allocations: 0 / 340 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.322e-05/0.4476, allocations: 8 kB / 340 MB, free: 0.9062 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001029/0.4486, allocations: 0.5541 MB / 340.6 MB, free: 316 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.4487, allocations: 12.03 kB / 340.6 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.203e-05/0.4488, allocations: 31.62 kB / 340.6 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.4492, allocations: 258.3 kB / 340.9 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.4492, allocations: 20.52 kB / 340.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.417e-05/0.4493, allocations: 28 kB / 340.9 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005938/0.4499, allocations: 248.9 kB / 341.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.4499, allocations: 0 / 341.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.277e-05/0.45, allocations: 15.98 kB / 341.2 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.45, allocations: 12 kB / 341.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005623/0.4506, allocations: 222.2 kB / 341.4 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.4524, allocations: 0.7991 MB / 342.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007227/0.4531, allocations: 336.1 kB / 342.5 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003773/0.4535, allocations: 184.8 kB / 342.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.4536, allocations: 4 kB / 342.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.4536, allocations: 38.56 kB / 342.7 MB, free: 14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.176e-06/0.4536, allocations: 0 / 342.7 MB, free: 14 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.004908/0.4586, allocations: 1.754 MB / 344.5 MB, free: 12.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.4586, allocations: 63.91 kB / 344.6 MB, free: 12.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.4589, allocations: 177.9 kB / 344.7 MB, free: 11.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.167e-05/0.459, allocations: 33.7 kB / 344.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.4591, allocations: 215.3 kB / 345 MB, free: 11.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.4594, allocations: 216.8 kB / 345.2 MB, free: 11.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/0.4594, allocations: 12 kB / 345.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.4596, allocations: 330.8 kB / 345.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.46, allocations: 141.1 kB / 345.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003494/0.4603, allocations: 145 kB / 345.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000384/0.4607, allocations: 155.3 kB / 345.9 MB, free: 10.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.832e-06/0.4607, allocations: 0 / 345.9 MB, free: 10.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000954/0.4617, allocations: 426.8 kB / 346.4 MB, free: 10.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.4618, allocations: 8 kB / 346.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.117e-06/0.4618, allocations: 0 / 346.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.4618, allocations: 7.984 kB / 346.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006739/0.4625, allocations: 123.8 kB / 346.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.4625, allocations: 4 kB / 346.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.4628, allocations: 31.98 kB / 346.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.504e-05/0.4629, allocations: 23.95 kB / 346.6 MB, free: 10.05 MB / 298.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.0001606/0.4631, allocations: 132.8 kB / 346.7 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.695e-05/0.4632, allocations: 31.62 kB / 346.7 MB, free: 9.879 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.4633, allocations: 47.33 kB / 346.8 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.4633, allocations: 8 kB / 346.8 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.9e-06/0.4634, allocations: 0 / 346.8 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.4634, allocations: 3.984 kB / 346.8 MB, free: 9.812 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.466, allocations: 1.282 MB / 348.1 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.4661, allocations: 4 kB / 348.1 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007198/0.4668, allocations: 131.8 kB / 348.2 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.889e-05/0.4669, allocations: 8 kB / 348.2 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.117e-05/0.4669, allocations: 16.44 kB / 348.2 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.126e-05/0.467, allocations: 19.94 kB / 348.2 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.904e-06/0.467, allocations: 7.938 kB / 348.2 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.4687, allocations: 1.018 MB / 349.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.4689, allocations: 112.7 kB / 349.4 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.668e-05/0.469, allocations: 19.95 kB / 349.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.4694, allocations: 31.97 kB / 349.4 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.4695, allocations: 55.84 kB / 349.5 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-05/0.4696, allocations: 20 kB / 349.5 MB, free: 6.777 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001758/0.4698, allocations: 140.4 kB / 349.6 MB, free: 6.641 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.4e-07/0.4698, allocations: 0 / 349.6 MB, free: 6.641 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005775/0.4704, allocations: 96 kB / 349.7 MB, free: 6.547 MB / 298.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.0001965/0.4706, allocations: 123.1 kB / 349.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008858/0.4715, allocations: 398.8 kB / 350.2 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.4715, allocations: 0 / 350.2 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004952/0.472, allocations: 227.6 kB / 350.5 MB, free: 5.809 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006171/0.4726, allocations: 74.47 kB / 350.5 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.4745, allocations: 0.8609 MB / 351.4 MB, free: 4.793 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005552/0.4751, allocations: 0.8011 MB / 352.2 MB, free: 3.965 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.4753, allocations: 43.42 kB / 352.2 MB, free: 3.922 MB / 298.7 MB Notification: Performance of SimCode: time 1.738e-06/0.4753, allocations: 0 / 352.2 MB, free: 3.922 MB / 298.7 MB Notification: Performance of Templates: time 0.2414/0.7167, allocations: 4.385 MB / 356.6 MB, free: 79 MB / 298.7 MB