Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 1.001/1.001, allocations: 111.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004682/0.0004683, allocations: 4 kB / 158.3 MB, free: 15.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.059/0.0595, allocations: 25.17 MB / 183.5 MB, free: 5.957 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1781/0.2377, allocations: 33.91 MB / 217.4 MB, free: 6.637 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001674/0.2379, allocations: 60.75 kB / 217.5 MB, free: 6.629 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01944/0.2573, allocations: 5.28 MB / 222.7 MB, free: 4.617 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.592e-06/0.2574, allocations: 0 / 222.7 MB, free: 4.617 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.2574, allocations: 3.719 kB / 222.8 MB, free: 4.617 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0007949/0.2582, allocations: 0.5541 MB / 223.3 MB, free: 4.145 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2583, allocations: 7.531 kB / 223.3 MB, free: 4.145 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.215e-05/0.2583, allocations: 34.97 kB / 223.3 MB, free: 4.125 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.2585, allocations: 209.2 kB / 223.6 MB, free: 3.898 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.2585, allocations: 17.88 kB / 223.6 MB, free: 3.898 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.722e-05/0.2586, allocations: 28.34 kB / 223.6 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006181/0.2592, allocations: 261 kB / 223.9 MB, free: 3.805 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.2593, allocations: 3.906 kB / 223.9 MB, free: 3.801 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.457e-05/0.2593, allocations: 14.28 kB / 223.9 MB, free: 3.801 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.2593, allocations: 3.844 kB / 223.9 MB, free: 3.801 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006485/0.26, allocations: 253.3 kB / 224.1 MB, free: 3.75 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.2614, allocations: 0.7496 MB / 224.9 MB, free: 3.309 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006655/0.2621, allocations: 315.6 kB / 225.2 MB, free: 3.246 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.2621, allocations: 7.844 kB / 225.2 MB, free: 3.242 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.2622, allocations: 37.41 kB / 225.2 MB, free: 3.203 MB / 170.7 MB Notification: Performance of pre-optimization done (n=35): time 2.645e-06/0.2622, allocations: 0 / 225.2 MB, free: 3.203 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.005234/0.2674, allocations: 1.907 MB / 227.1 MB, free: 2.434 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.2675, allocations: 55.81 kB / 227.2 MB, free: 2.371 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.2677, allocations: 175.5 kB / 227.4 MB, free: 2.254 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/0.2677, allocations: 40.77 kB / 227.4 MB, free: 2.219 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.686e-05/0.2678, allocations: 201.2 kB / 227.6 MB, free: 2.047 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.2679, allocations: 188 kB / 227.8 MB, free: 1.91 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-05/0.268, allocations: 7.188 kB / 227.8 MB, free: 1.91 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.247e-05/0.268, allocations: 330 kB / 228.1 MB, free: 1.59 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.2685, allocations: 159.6 kB / 228.3 MB, free: 1.566 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.2689, allocations: 159.5 kB / 228.4 MB, free: 1.539 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004482/0.2693, allocations: 170.8 kB / 228.6 MB, free: 1.523 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.804e-06/0.2694, allocations: 0 / 228.6 MB, free: 1.523 MB / 170.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009968/0.2704, allocations: 447.3 kB / 229 MB, free: 1.434 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.2704, allocations: 7.844 kB / 229 MB, free: 1.43 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.715e-06/0.2704, allocations: 0 / 229 MB, free: 1.43 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.2704, allocations: 3.844 kB / 229 MB, free: 1.43 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005676/0.271, allocations: 112.3 kB / 229.1 MB, free: 1.41 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.259e-06/0.271, allocations: 0 / 229.1 MB, free: 1.41 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/0.2714, allocations: 30.36 kB / 229.2 MB, free: 1.402 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.2714, allocations: 18.98 kB / 229.2 MB, free: 1.398 MB / 170.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 (61): * Single equations (assignments): 61 * 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.000196/0.2716, allocations: 163.8 kB / 229.4 MB, free: 1.27 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-05/0.2717, allocations: 30.97 kB / 229.4 MB, free: 1.254 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.2718, allocations: 39.59 kB / 229.4 MB, free: 1.246 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.489e-06/0.2718, allocations: 3.844 kB / 229.4 MB, free: 1.246 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.868e-06/0.2719, allocations: 3.844 kB / 229.4 MB, free: 1.246 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.487e-06/0.2719, allocations: 3.984 kB / 229.4 MB, free: 1.242 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.2743, allocations: 1.248 MB / 230.7 MB, free: 0.5508 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/0.2743, allocations: 5.312 kB / 230.7 MB, free: 0.5508 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006679/0.275, allocations: 111.8 kB / 230.8 MB, free: 0.4922 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.404e-05/0.275, allocations: 15.92 kB / 230.8 MB, free: 488 kB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.224e-05/0.2751, allocations: 18.86 kB / 230.8 MB, free: 476 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.597e-06/0.2751, allocations: 11.94 kB / 230.8 MB, free: 464 kB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.2751, allocations: 4 kB / 230.8 MB, free: 460 kB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.2769, allocations: 1.049 MB / 231.9 MB, free: 15.43 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.2771, allocations: 108.7 kB / 232 MB, free: 15.3 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.366e-05/0.2772, allocations: 21.31 kB / 232 MB, free: 15.29 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.2776, allocations: 34.08 kB / 232.1 MB, free: 15.26 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.2777, allocations: 55.28 kB / 232.1 MB, free: 15.21 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.199e-05/0.2778, allocations: 23.06 kB / 232.1 MB, free: 15.2 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001651/0.2779, allocations: 135.9 kB / 232.3 MB, free: 15.08 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.76e-07/0.278, allocations: 0 / 232.3 MB, free: 15.08 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005665/0.2785, allocations: 87 kB / 232.3 MB, free: 15.01 MB / 186.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 (55): * Single equations (assignments): 55 * 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.0001852/0.2787, allocations: 122.5 kB / 232.5 MB, free: 14.89 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.2798, allocations: 405.6 kB / 232.9 MB, free: 14.59 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.904e-06/0.2798, allocations: 0 / 232.9 MB, free: 14.59 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005636/0.2804, allocations: 237.5 kB / 233.1 MB, free: 14.41 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006096/0.281, allocations: 65.5 kB / 233.2 MB, free: 14.36 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.2833, allocations: 1.154 MB / 234.3 MB, free: 13.2 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005369/0.2839, allocations: 0.7959 MB / 235.1 MB, free: 12.38 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.2841, allocations: 35.42 kB / 235.1 MB, free: 12.34 MB / 186.7 MB Notification: Performance of SimCode: time 1.696e-06/0.2841, allocations: 0 / 235.1 MB, free: 12.34 MB / 186.7 MB Notification: Performance of Templates: time 0.008271/0.2923, allocations: 4.026 MB / 239.2 MB, free: 8.363 MB / 186.7 MB