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.125/1.125, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002659, allocations: 4 kB / 158.4 MB, free: 15.1 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05987/0.06017, allocations: 25.17 MB / 183.6 MB, free: 5.895 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2558/0.3161, allocations: 33.91 MB / 217.5 MB, free: 6.762 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.3165, allocations: 56.5 kB / 217.6 MB, free: 6.754 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02233/0.3388, allocations: 5.28 MB / 222.8 MB, free: 4.746 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.3389, allocations: 0 / 222.8 MB, free: 4.746 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.3389, allocations: 11.62 kB / 222.8 MB, free: 4.742 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.001202/0.3401, allocations: 0.5588 MB / 223.4 MB, free: 4.266 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.3402, allocations: 7.688 kB / 223.4 MB, free: 4.266 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.741e-05/0.3403, allocations: 55.52 kB / 223.5 MB, free: 4.223 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.71e-05/0.3404, allocations: 34.38 kB / 223.5 MB, free: 4.207 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.3406, allocations: 209.5 kB / 223.7 MB, free: 3.977 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.3406, allocations: 18.91 kB / 223.7 MB, free: 3.973 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-05/0.3407, allocations: 31.98 kB / 223.8 MB, free: 3.969 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007732/0.3415, allocations: 253.5 kB / 224 MB, free: 3.883 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.808e-05/0.3416, allocations: 7.75 kB / 224 MB, free: 3.879 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.3416, allocations: 7.312 kB / 224 MB, free: 3.879 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3416, allocations: 11.72 kB / 224 MB, free: 3.875 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008648/0.3425, allocations: 253.5 kB / 224.3 MB, free: 3.824 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.3443, allocations: 0.7473 MB / 225 MB, free: 3.387 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007878/0.3452, allocations: 317.5 kB / 225.3 MB, free: 3.32 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.3452, allocations: 3.844 kB / 225.3 MB, free: 3.32 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3453, allocations: 37.47 kB / 225.4 MB, free: 3.281 MB / 170.7 MB Notification: Performance of pre-optimization done (n=35): time 3.126e-06/0.3453, allocations: 0 / 225.4 MB, free: 3.281 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.00865/0.3539, allocations: 1.906 MB / 227.3 MB, free: 2.512 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.3541, allocations: 63.19 kB / 227.3 MB, free: 2.445 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.3543, allocations: 173.7 kB / 227.5 MB, free: 2.328 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.367e-05/0.3544, allocations: 32.2 kB / 227.5 MB, free: 2.297 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.3545, allocations: 199.9 kB / 227.7 MB, free: 2.125 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002294/0.3548, allocations: 188.2 kB / 227.9 MB, free: 1.988 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-05/0.3548, allocations: 13.78 kB / 227.9 MB, free: 1.988 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 9.001e-05/0.3549, allocations: 329.3 kB / 228.3 MB, free: 1.668 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006995/0.3557, allocations: 159 kB / 228.4 MB, free: 1.645 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006611/0.3563, allocations: 156.9 kB / 228.6 MB, free: 1.617 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007218/0.3571, allocations: 174.5 kB / 228.7 MB, free: 1.602 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3571, allocations: 3.938 kB / 228.7 MB, free: 1.598 MB / 170.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001707/0.3588, allocations: 448.2 kB / 229.2 MB, free: 1.508 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.3589, allocations: 3.906 kB / 229.2 MB, free: 1.508 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.3589, allocations: 0 / 229.2 MB, free: 1.508 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/0.359, allocations: 3.812 kB / 229.2 MB, free: 1.508 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.3601, allocations: 111.2 kB / 229.3 MB, free: 1.488 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.3601, allocations: 0 / 229.3 MB, free: 1.488 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005443/0.3607, allocations: 34.58 kB / 229.3 MB, free: 1.477 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.614e-05/0.3608, allocations: 18.92 kB / 229.3 MB, free: 1.473 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.0003268/0.3611, allocations: 160.4 kB / 229.5 MB, free: 1.348 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.3613, allocations: 30.84 kB / 229.5 MB, free: 1.332 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001844/0.3615, allocations: 41.34 kB / 229.6 MB, free: 1.324 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.3615, allocations: 3.625 kB / 229.6 MB, free: 1.324 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.3616, allocations: 4 kB / 229.6 MB, free: 1.32 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.3616, allocations: 7.672 kB / 229.6 MB, free: 1.316 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004339/0.3659, allocations: 1.248 MB / 230.8 MB, free: 0.5195 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.366, allocations: 4 kB / 230.8 MB, free: 0.5156 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001193/0.3672, allocations: 115.6 kB / 231 MB, free: 416 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.17e-05/0.3673, allocations: 11.98 kB / 231 MB, free: 404 kB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.926e-05/0.3674, allocations: 18.61 kB / 231 MB, free: 392 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.464e-05/0.3674, allocations: 12 kB / 231 MB, free: 380 kB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/0.3674, allocations: 11.89 kB / 231 MB, free: 368 kB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002994/0.3704, allocations: 1.039 MB / 232 MB, free: 15.34 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.3707, allocations: 108 kB / 232.1 MB, free: 15.22 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.3708, allocations: 14.5 kB / 232.2 MB, free: 15.21 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006472/0.3715, allocations: 34.39 kB / 232.2 MB, free: 15.19 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.3717, allocations: 54.16 kB / 232.2 MB, free: 15.14 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.701e-05/0.3718, allocations: 27.44 kB / 232.3 MB, free: 15.12 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002439/0.372, allocations: 136.9 kB / 232.4 MB, free: 15 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.372, allocations: 0 / 232.4 MB, free: 15 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001007/0.3731, allocations: 89.83 kB / 232.5 MB, free: 14.93 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.004365/0.3774, allocations: 2.829 MB / 235.3 MB, free: 12.16 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001944/0.3795, allocations: 408.6 kB / 235.7 MB, free: 11.86 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.3795, allocations: 0 / 235.7 MB, free: 11.86 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.3806, allocations: 236.4 kB / 236 MB, free: 11.68 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.3818, allocations: 63.61 kB / 236 MB, free: 11.63 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008046/0.3898, allocations: 2.283 MB / 238.3 MB, free: 9.574 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006448/0.3906, allocations: 0.7882 MB / 239.1 MB, free: 8.762 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004842/0.3911, allocations: 112.2 kB / 239.2 MB, free: 8.715 MB / 186.7 MB Notification: Performance of SimCode: time 1.503e-06/0.3911, allocations: 0 / 239.2 MB, free: 8.715 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.748/3.139, allocations: 5.314 MB / 244.5 MB, free: 3.484 MB / 186.7 MB