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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.119/1.119, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.613e-05/1.622e-05, allocations: 4 kB / 148.1 MB, free: 6.223 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04527/0.04531, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1693/0.2147, allocations: 33.15 MB / 206.4 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.2149, allocations: 59.56 kB / 206.5 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0195/0.2344, allocations: 5.239 MB / 211.7 MB, free: 6.031 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2345, allocations: 0 / 211.7 MB, free: 6.031 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.2345, allocations: 9.062 kB / 211.7 MB, free: 6.027 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.0007733/0.2353, allocations: 0.5267 MB / 212.3 MB, free: 5.617 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2353, allocations: 9.25 kB / 212.3 MB, free: 5.617 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.227e-05/0.2355, allocations: 31.06 kB / 212.3 MB, free: 5.602 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.2356, allocations: 199.2 kB / 212.5 MB, free: 5.383 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.2356, allocations: 8.031 kB / 212.5 MB, free: 5.383 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.485e-05/0.2357, allocations: 18.84 kB / 212.5 MB, free: 5.379 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004476/0.2362, allocations: 191.8 kB / 212.7 MB, free: 5.375 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004259/0.2366, allocations: 191 kB / 212.9 MB, free: 5.34 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.2367, allocations: 9.25 kB / 212.9 MB, free: 5.332 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.2367, allocations: 0 / 212.9 MB, free: 5.332 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.2367, allocations: 6.969 kB / 212.9 MB, free: 5.332 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.238, allocations: 0.6936 MB / 213.6 MB, free: 5.043 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005102/0.2386, allocations: 272.8 kB / 213.9 MB, free: 5.012 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002653/0.2389, allocations: 135.5 kB / 214 MB, free: 5 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.2389, allocations: 4.312 kB / 214 MB, free: 5 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.2389, allocations: 37.47 kB / 214.1 MB, free: 4.961 MB / 170.7 MB Notification: Performance of pre-optimization done (n=35): time 2.963e-06/0.239, allocations: 0 / 214.1 MB, free: 4.961 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.002934/0.2419, allocations: 1.375 MB / 215.4 MB, free: 4.402 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/0.242, allocations: 59.69 kB / 215.5 MB, free: 4.336 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.2421, allocations: 152.1 kB / 215.6 MB, free: 4.238 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.2422, allocations: 29.52 kB / 215.7 MB, free: 4.207 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.049e-05/0.2422, allocations: 207.3 kB / 215.9 MB, free: 4.027 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.2424, allocations: 185.8 kB / 216 MB, free: 3.906 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.2424, allocations: 3.938 kB / 216.1 MB, free: 3.902 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.591e-05/0.2425, allocations: 334.6 kB / 216.4 MB, free: 3.586 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/0.2427, allocations: 114.5 kB / 216.5 MB, free: 3.582 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.243, allocations: 123.8 kB / 216.6 MB, free: 3.578 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.2433, allocations: 130.7 kB / 216.7 MB, free: 3.566 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2433, allocations: 1.188 kB / 216.7 MB, free: 3.566 MB / 170.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007471/0.2441, allocations: 350.6 kB / 217.1 MB, free: 3.52 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.2441, allocations: 10.16 kB / 217.1 MB, free: 3.52 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.006e-06/0.2441, allocations: 0 / 217.1 MB, free: 3.52 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.2442, allocations: 7.734 kB / 217.1 MB, free: 3.516 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005821/0.2448, allocations: 116.7 kB / 217.2 MB, free: 3.508 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.087e-06/0.2448, allocations: 0 / 217.2 MB, free: 3.508 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.2451, allocations: 22.3 kB / 217.2 MB, free: 3.504 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.2451, allocations: 17.88 kB / 217.3 MB, free: 3.504 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 () * 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.000105/0.2453, allocations: 108.9 kB / 217.4 MB, free: 3.391 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.269e-05/0.2454, allocations: 30.97 kB / 217.4 MB, free: 3.375 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.2455, allocations: 36.02 kB / 217.4 MB, free: 3.371 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.968e-06/0.2455, allocations: 7.844 kB / 217.4 MB, free: 3.367 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.2455, allocations: 3.875 kB / 217.4 MB, free: 3.367 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.994e-06/0.2455, allocations: 3.047 kB / 217.4 MB, free: 3.367 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/0.2475, allocations: 1.09 MB / 218.5 MB, free: 2.883 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.894e-06/0.2475, allocations: 3.688 kB / 218.5 MB, free: 2.883 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006357/0.2481, allocations: 122.2 kB / 218.7 MB, free: 2.871 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.2482, allocations: 6.375 kB / 218.7 MB, free: 2.871 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.2482, allocations: 8.469 kB / 218.7 MB, free: 2.871 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.017e-06/0.2482, allocations: 6.438 kB / 218.7 MB, free: 2.871 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.992e-06/0.2483, allocations: 14.28 kB / 218.7 MB, free: 2.863 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.2494, allocations: 0.9214 MB / 219.6 MB, free: 2.23 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.856e-05/0.2495, allocations: 102.8 kB / 219.7 MB, free: 2.125 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.195e-05/0.2496, allocations: 8.828 kB / 219.7 MB, free: 2.125 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.2499, allocations: 21.02 kB / 219.7 MB, free: 2.125 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/0.2501, allocations: 51.97 kB / 219.8 MB, free: 2.113 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.2501, allocations: 22.62 kB / 219.8 MB, free: 2.109 MB / 170.7 MB Notification: Performance of sorting global known variables: time 9.655e-05/0.2502, allocations: 120.1 kB / 219.9 MB, free: 2.035 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.75e-07/0.2502, allocations: 0 / 219.9 MB, free: 2.035 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005481/0.2508, allocations: 64.91 kB / 220 MB, free: 2.035 MB / 170.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 (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.0001495/0.2509, allocations: 116.4 kB / 220.1 MB, free: 1.934 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0006369/0.2516, allocations: 318.7 kB / 220.4 MB, free: 1.914 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2516, allocations: 0 / 220.4 MB, free: 1.914 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.252, allocations: 193.7 kB / 220.6 MB, free: 1.895 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005858/0.2526, allocations: 67.64 kB / 220.7 MB, free: 1.879 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.254, allocations: 0.7756 MB / 221.4 MB, free: 1.363 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.2544, allocations: 0.7918 MB / 222.2 MB, free: 16.66 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.2546, allocations: 37.11 kB / 222.3 MB, free: 16.64 MB / 186.7 MB Notification: Performance of SimCode: time 1.737e-06/0.2546, allocations: 0 / 222.3 MB, free: 16.64 MB / 186.7 MB Notification: Performance of Templates: time 0.007146/0.2617, allocations: 3.979 MB / 226.3 MB, free: 15.01 MB / 186.7 MB