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.ElastoGap.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.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_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 1.785/1.785, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003586, allocations: 12 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08012/0.0805, allocations: 44.51 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3306/0.4112, allocations: 72.09 MB / 380.5 MB, free: 18.31 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.4114, allocations: 63.09 kB / 380.6 MB, free: 18.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02238/0.4338, allocations: 5.625 MB / 386.2 MB, free: 17.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.4339, allocations: 3.938 kB / 386.2 MB, free: 17.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4339, allocations: 5.25 kB / 386.2 MB, free: 17.6 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.0009257/0.4348, allocations: 0.5844 MB / 386.8 MB, free: 17.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.4349, allocations: 11.03 kB / 386.8 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.594e-05/0.435, allocations: 36.14 kB / 386.9 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.4353, allocations: 241.8 kB / 387.1 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.4353, allocations: 22.91 kB / 387.1 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.547e-05/0.4354, allocations: 29.41 kB / 387.1 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006865/0.4361, allocations: 285 kB / 387.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.4362, allocations: 3.906 kB / 387.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.4362, allocations: 9.688 kB / 387.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.4362, allocations: 7.344 kB / 387.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007618/0.437, allocations: 284.3 kB / 387.7 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.4386, allocations: 0.8093 MB / 388.5 MB, free: 16.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007665/0.4394, allocations: 363.1 kB / 388.9 MB, free: 16.49 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.234e-05/0.4394, allocations: 11.14 kB / 388.9 MB, free: 16.49 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.4395, allocations: 41.27 kB / 388.9 MB, free: 16.44 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 4.181e-06/0.4395, allocations: 0 / 388.9 MB, free: 16.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.005434/0.4449, allocations: 2.034 MB / 391 MB, free: 15.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.445, allocations: 58.06 kB / 391 MB, free: 15.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.4452, allocations: 173.9 kB / 391.2 MB, free: 15.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.4453, allocations: 36.92 kB / 391.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.159e-05/0.4454, allocations: 197.7 kB / 391.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.4455, allocations: 224.2 kB / 391.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.4455, allocations: 14.56 kB / 391.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.633e-05/0.4456, allocations: 337.1 kB / 392 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/0.4461, allocations: 171 kB / 392.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004264/0.4465, allocations: 169.9 kB / 392.3 MB, free: 15.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004882/0.447, allocations: 186.5 kB / 392.5 MB, free: 15.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.447, allocations: 0 / 392.5 MB, free: 15.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001163/0.4482, allocations: 483.8 kB / 393 MB, free: 14.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.4483, allocations: 6.344 kB / 393 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4483, allocations: 4 kB / 393 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.4483, allocations: 6.922 kB / 393 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006222/0.4489, allocations: 127.1 kB / 393.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.449, allocations: 7.938 kB / 393.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.4493, allocations: 30.77 kB / 393.2 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.062e-05/0.4494, allocations: 15.12 kB / 393.2 MB, free: 14.93 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.0002193/0.4496, allocations: 162.1 kB / 393.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.15e-05/0.4497, allocations: 34.5 kB / 393.4 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.4498, allocations: 50.88 kB / 393.4 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.223e-06/0.4498, allocations: 11.73 kB / 393.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.933e-06/0.4498, allocations: 0 / 393.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.092e-06/0.4499, allocations: 3.469 kB / 393.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002554/0.4524, allocations: 1.333 MB / 394.8 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.4525, allocations: 3.812 kB / 394.8 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007096/0.4532, allocations: 128.1 kB / 394.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.347e-05/0.4532, allocations: 11.81 kB / 394.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.4533, allocations: 18.38 kB / 394.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.134e-05/0.4533, allocations: 9.781 kB / 394.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.132e-06/0.4533, allocations: 7.812 kB / 394.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.4551, allocations: 1.114 MB / 396 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.4552, allocations: 104.1 kB / 396.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.812e-05/0.4553, allocations: 18.28 kB / 396.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.4557, allocations: 32.19 kB / 396.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.4559, allocations: 53.59 kB / 396.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.4559, allocations: 23.47 kB / 396.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001422/0.4561, allocations: 138.8 kB / 396.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.349e-06/0.4561, allocations: 0 / 396.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005852/0.4567, allocations: 103.6 kB / 396.5 MB, free: 13.39 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.0001567/0.4569, allocations: 125.8 kB / 396.6 MB, free: 13.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.4579, allocations: 449.3 kB / 397.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.679e-06/0.458, allocations: 0 / 397.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006054/0.4586, allocations: 263 kB / 397.3 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006912/0.4593, allocations: 68.59 kB / 397.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.4613, allocations: 1.234 MB / 398.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.4617, allocations: 0.8035 MB / 399.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.4619, allocations: 41.48 kB / 399.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of SimCode: time 1.806e-06/0.4619, allocations: 0 / 399.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of Templates: time 0.008092/0.47, allocations: 4.398 MB / 403.9 MB, free: 11.36 MB / 314.7 MB