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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.044/1.044, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.814e-05/2.824e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06125/0.06132, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.2714, allocations: 33.15 MB / 206.5 MB, free: 4.68 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.2717, allocations: 62.81 kB / 206.6 MB, free: 4.68 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02344/0.2952, allocations: 5.243 MB / 211.8 MB, free: 3.984 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2952, allocations: 0 / 211.8 MB, free: 3.984 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.2952, allocations: 5.062 kB / 211.8 MB, free: 3.984 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.001198/0.2965, allocations: 0.5293 MB / 212.4 MB, free: 3.574 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.2965, allocations: 9.156 kB / 212.4 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.2966, allocations: 32.19 kB / 212.4 MB, free: 3.559 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.2969, allocations: 195.5 kB / 212.6 MB, free: 3.34 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.2969, allocations: 8 kB / 212.6 MB, free: 3.34 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.302e-05/0.297, allocations: 21 kB / 212.6 MB, free: 3.336 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00055/0.2976, allocations: 192.2 kB / 212.8 MB, free: 3.328 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005412/0.2981, allocations: 194.1 kB / 213 MB, free: 3.289 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.2982, allocations: 1.312 kB / 213 MB, free: 3.289 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.2982, allocations: 1.312 kB / 213 MB, free: 3.289 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.2982, allocations: 5.281 kB / 213 MB, free: 3.289 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.3, allocations: 0.6964 MB / 213.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005939/0.3007, allocations: 270 kB / 214 MB, free: 2.973 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003106/0.301, allocations: 136.8 kB / 214.1 MB, free: 2.961 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.752e-05/0.3011, allocations: 5.391 kB / 214.1 MB, free: 2.961 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.3011, allocations: 36.38 kB / 214.2 MB, free: 2.922 MB / 170.7 MB Notification: Performance of pre-optimization done (n=35): time 2.936e-06/0.3011, allocations: 0 / 214.2 MB, free: 2.922 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.003576/0.3047, allocations: 1.387 MB / 215.5 MB, free: 2.352 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.3048, allocations: 59.75 kB / 215.6 MB, free: 2.289 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.305, allocations: 151.2 kB / 215.7 MB, free: 2.191 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/0.305, allocations: 25.7 kB / 215.8 MB, free: 2.16 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.003e-05/0.3051, allocations: 207.3 kB / 216 MB, free: 1.984 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.3053, allocations: 180.9 kB / 216.1 MB, free: 1.863 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-05/0.3053, allocations: 0 / 216.1 MB, free: 1.863 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.347e-05/0.3054, allocations: 337.9 kB / 216.5 MB, free: 1.543 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.3057, allocations: 115.9 kB / 216.6 MB, free: 1.539 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.306, allocations: 118.8 kB / 216.7 MB, free: 1.539 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.3063, allocations: 131.7 kB / 216.8 MB, free: 1.531 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3063, allocations: 0 / 216.8 MB, free: 1.531 MB / 170.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007576/0.3071, allocations: 350.7 kB / 217.2 MB, free: 1.484 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.3071, allocations: 3.75 kB / 217.2 MB, free: 1.484 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3072, allocations: 3.938 kB / 217.2 MB, free: 1.48 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.3072, allocations: 3.656 kB / 217.2 MB, free: 1.48 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008304/0.308, allocations: 116 kB / 217.3 MB, free: 1.469 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.3081, allocations: 3.188 kB / 217.3 MB, free: 1.469 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003914/0.3085, allocations: 17.88 kB / 217.3 MB, free: 1.469 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.3085, allocations: 19.02 kB / 217.3 MB, free: 1.469 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.0001336/0.3087, allocations: 120.6 kB / 217.5 MB, free: 1.348 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007465/0.3094, allocations: 340.7 kB / 217.8 MB, free: 1.281 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.572e-05/0.3095, allocations: 29.62 kB / 217.8 MB, free: 1.27 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.3097, allocations: 33.78 kB / 217.9 MB, free: 1.266 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.3097, allocations: 5.469 kB / 217.9 MB, free: 1.266 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.3097, allocations: 0 / 217.9 MB, free: 1.266 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.3097, allocations: 6.125 kB / 217.9 MB, free: 1.266 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.3119, allocations: 1.1 MB / 219 MB, free: 0.7734 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/0.312, allocations: 7.75 kB / 219 MB, free: 0.7734 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008781/0.3129, allocations: 108.5 kB / 219.1 MB, free: 0.7695 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.604e-05/0.3129, allocations: 9.969 kB / 219.1 MB, free: 0.7695 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.3129, allocations: 13.03 kB / 219.1 MB, free: 0.7695 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.106e-05/0.313, allocations: 7.562 kB / 219.1 MB, free: 0.7656 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/0.313, allocations: 11.36 kB / 219.1 MB, free: 0.7617 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.3143, allocations: 0.9162 MB / 220 MB, free: 136 kB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.3144, allocations: 113.2 kB / 220.1 MB, free: 24 kB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.807e-05/0.3145, allocations: 10.19 kB / 220.2 MB, free: 20 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004471/0.315, allocations: 23.73 kB / 220.2 MB, free: 20 kB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.3151, allocations: 47.72 kB / 220.2 MB, free: 8 kB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.003e-05/0.3151, allocations: 23.73 kB / 220.2 MB, free: 4 kB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001586/0.3153, allocations: 121.3 kB / 220.4 MB, free: 15.93 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3153, allocations: 0 / 220.4 MB, free: 15.93 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005831/0.3159, allocations: 72.73 kB / 220.4 MB, free: 15.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 () * 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.002197/0.3181, allocations: 2.697 MB / 223.1 MB, free: 13.56 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007515/0.3189, allocations: 320 kB / 223.4 MB, free: 13.55 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.319, allocations: 0 / 223.4 MB, free: 13.55 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000425/0.3194, allocations: 200.6 kB / 223.6 MB, free: 13.52 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008248/0.3202, allocations: 47.53 kB / 223.7 MB, free: 13.52 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/0.3227, allocations: 0.8506 MB / 224.5 MB, free: 12.95 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.3231, allocations: 0.7945 MB / 225.3 MB, free: 12.2 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.3234, allocations: 105.5 kB / 225.4 MB, free: 12.18 MB / 186.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3235, allocations: 3.969 kB / 225.4 MB, free: 12.18 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.645/2.969, allocations: 5.329 MB / 230.8 MB, free: 9.527 MB / 186.7 MB