Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.315/1.315, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.34e-05/2.35e-05, allocations: 0 / 154.4 MB, free: 13.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1814, allocations: 25.16 MB / 179.5 MB, free: 0.8125 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06315/0.2446, allocations: 33.81 MB / 213.3 MB, free: 15.3 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.2449, allocations: 63.97 kB / 213.4 MB, free: 15.23 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02493/0.2699, allocations: 5.28 MB / 218.7 MB, free: 9.93 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2699, allocations: 4 kB / 218.7 MB, free: 9.926 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.2699, allocations: 4 kB / 218.7 MB, free: 9.922 MB / 186.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.001254/0.2712, allocations: 0.5413 MB / 219.2 MB, free: 9.336 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.2713, allocations: 8.031 kB / 219.2 MB, free: 9.328 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.2714, allocations: 62.53 kB / 219.3 MB, free: 9.258 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.589e-05/0.2715, allocations: 27.72 kB / 219.3 MB, free: 9.23 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.2717, allocations: 210.5 kB / 219.5 MB, free: 8.984 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.2718, allocations: 20.56 kB / 219.5 MB, free: 8.965 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.209e-05/0.2719, allocations: 27.95 kB / 219.6 MB, free: 8.938 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006421/0.2725, allocations: 228.9 kB / 219.8 MB, free: 8.707 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.2726, allocations: 0 / 219.8 MB, free: 8.707 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.2726, allocations: 12 kB / 219.8 MB, free: 8.695 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.2726, allocations: 8 kB / 219.8 MB, free: 8.688 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000593/0.2733, allocations: 198.2 kB / 220 MB, free: 8.492 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.2752, allocations: 0.7484 MB / 220.8 MB, free: 7.695 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000723/0.276, allocations: 285.4 kB / 221 MB, free: 7.41 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003845/0.2764, allocations: 149.2 kB / 221.2 MB, free: 7.258 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.041e-05/0.2765, allocations: 7.984 kB / 221.2 MB, free: 7.25 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.2765, allocations: 38.56 kB / 221.2 MB, free: 7.203 MB / 186.7 MB Notification: Performance of pre-optimization done (n=35): time 3.116e-06/0.2765, allocations: 0 / 221.2 MB, free: 7.203 MB / 186.7 MB Notification: Performance of matching and sorting (n=55): time 0.006578/0.2831, allocations: 1.653 MB / 222.9 MB, free: 5.453 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.634e-05/0.2832, allocations: 55.97 kB / 222.9 MB, free: 5.387 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003849/0.2836, allocations: 173.9 kB / 223.1 MB, free: 5.215 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.811e-05/0.2837, allocations: 37.69 kB / 223.1 MB, free: 5.172 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.284, allocations: 207.4 kB / 223.3 MB, free: 4.965 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003173/0.2843, allocations: 181.3 kB / 223.5 MB, free: 4.785 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/0.2844, allocations: 12 kB / 223.5 MB, free: 4.773 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.2846, allocations: 330.8 kB / 223.9 MB, free: 4.441 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006193/0.2852, allocations: 125.1 kB / 224 MB, free: 4.32 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006385/0.2859, allocations: 137.1 kB / 224.1 MB, free: 4.188 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006573/0.2866, allocations: 143.3 kB / 224.3 MB, free: 4.051 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2866, allocations: 0 / 224.3 MB, free: 4.051 MB / 186.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001401/0.288, allocations: 390.8 kB / 224.6 MB, free: 3.66 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.2881, allocations: 9.562 kB / 224.6 MB, free: 3.652 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.2881, allocations: 0 / 224.6 MB, free: 3.652 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.2881, allocations: 0 / 224.6 MB, free: 3.652 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.2894, allocations: 111.9 kB / 224.8 MB, free: 3.543 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.82e-05/0.2895, allocations: 8 kB / 224.8 MB, free: 3.535 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/0.29, allocations: 27.98 kB / 224.8 MB, free: 3.508 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.2901, allocations: 12 kB / 224.8 MB, free: 3.496 MB / 186.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.0002046/0.2903, allocations: 136.8 kB / 224.9 MB, free: 3.355 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.2904, allocations: 31.66 kB / 225 MB, free: 3.324 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/0.2907, allocations: 51.02 kB / 225 MB, free: 3.277 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.2907, allocations: 4 kB / 225 MB, free: 3.273 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.2907, allocations: 0 / 225 MB, free: 3.273 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.2907, allocations: 3.984 kB / 225 MB, free: 3.27 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003719/0.2945, allocations: 1.197 MB / 226.2 MB, free: 1.957 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.2945, allocations: 4 kB / 226.2 MB, free: 1.953 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009496/0.2955, allocations: 116.4 kB / 226.3 MB, free: 1.84 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.688e-05/0.2955, allocations: 8 kB / 226.3 MB, free: 1.832 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.774e-05/0.2955, allocations: 16 kB / 226.4 MB, free: 1.816 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.481e-05/0.2956, allocations: 7.938 kB / 226.4 MB, free: 1.809 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/0.2956, allocations: 11.95 kB / 226.4 MB, free: 1.797 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.2973, allocations: 0.9584 MB / 227.3 MB, free: 0.6562 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.2974, allocations: 104.9 kB / 227.4 MB, free: 0.5352 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.216e-05/0.2975, allocations: 16 kB / 227.5 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000451/0.298, allocations: 43.94 kB / 227.5 MB, free: 488 kB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.2981, allocations: 43.62 kB / 227.5 MB, free: 444 kB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.62e-05/0.2982, allocations: 20 kB / 227.6 MB, free: 424 kB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001689/0.2983, allocations: 135 kB / 227.7 MB, free: 288 kB / 186.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.2984, allocations: 4 kB / 227.7 MB, free: 284 kB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005421/0.2989, allocations: 95.94 kB / 227.8 MB, free: 188 kB / 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 () * 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.002521/0.3014, allocations: 2.743 MB / 230.5 MB, free: 13.29 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0009432/0.3024, allocations: 342.9 kB / 230.9 MB, free: 12.95 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3024, allocations: 4 kB / 230.9 MB, free: 12.95 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/0.303, allocations: 213.5 kB / 231.1 MB, free: 12.74 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/0.3037, allocations: 69.86 kB / 231.2 MB, free: 12.68 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.3063, allocations: 0.8871 MB / 232 MB, free: 11.69 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.3068, allocations: 0.7883 MB / 232.8 MB, free: 10.88 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003078/0.3071, allocations: 111.4 kB / 232.9 MB, free: 10.77 MB / 202.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3071, allocations: 0 / 232.9 MB, free: 10.77 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.433/2.74, allocations: 5.393 MB / 238.3 MB, free: 5.387 MB / 202.7 MB