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.094/1.094, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002861, allocations: 12 kB / 158.3 MB, free: 15.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05618/0.05651, allocations: 25.17 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002964/0.05953, allocations: 1.736 MB / 185.2 MB, free: 4.184 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009768/0.06056, allocations: 335 kB / 185.6 MB, free: 3.855 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.06071, allocations: 4 kB / 185.6 MB, free: 3.852 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 8.239e-05/0.06081, allocations: 27.77 kB / 185.6 MB, free: 3.824 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002929/0.06111, allocations: 91.72 kB / 185.7 MB, free: 3.734 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003844/0.06151, allocations: 71.86 kB / 185.8 MB, free: 3.664 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.06192, allocations: 231.4 kB / 186 MB, free: 3.438 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.06218, allocations: 78.03 kB / 186.1 MB, free: 3.359 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.0624, allocations: 107.6 kB / 186.2 MB, free: 3.254 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002509/0.06266, allocations: 131.5 kB / 186.3 MB, free: 3.125 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.236e-05/0.06273, allocations: 12 kB / 186.3 MB, free: 3.113 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.412e-05/0.06281, allocations: 16 kB / 186.3 MB, free: 3.098 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.758e-05/0.06289, allocations: 47.77 kB / 186.4 MB, free: 3.051 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 9.973e-05/0.063, allocations: 81.56 kB / 186.5 MB, free: 2.965 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.06338, allocations: 231.3 kB / 186.7 MB, free: 2.738 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.0634, allocations: 0 / 186.7 MB, free: 2.738 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.06341, allocations: 0 / 186.7 MB, free: 2.738 MB / 154.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.06343, allocations: 0 / 186.7 MB, free: 2.738 MB / 154.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.001557/0.06499, allocations: 0.573 MB / 187.3 MB, free: 2.117 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.06506, allocations: 8.031 kB / 187.3 MB, free: 2.109 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/0.06517, allocations: 58.55 kB / 187.3 MB, free: 2.043 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.933e-05/0.06527, allocations: 31.62 kB / 187.3 MB, free: 2.012 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.06565, allocations: 238.6 kB / 187.6 MB, free: 1.738 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.306e-05/0.0657, allocations: 24.5 kB / 187.6 MB, free: 1.715 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.002e-05/0.06579, allocations: 31.91 kB / 187.6 MB, free: 1.684 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008428/0.06665, allocations: 264.8 kB / 187.9 MB, free: 1.414 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.06669, allocations: 0 / 187.9 MB, free: 1.414 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.06674, allocations: 15.95 kB / 187.9 MB, free: 1.398 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.06676, allocations: 4 kB / 187.9 MB, free: 1.395 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009589/0.06773, allocations: 254.1 kB / 188.2 MB, free: 1.148 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.0697, allocations: 0.7602 MB / 188.9 MB, free: 344 kB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009285/0.07067, allocations: 306.5 kB / 189.2 MB, free: 28 kB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.07074, allocations: 8 kB / 189.2 MB, free: 20 kB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.167e-05/0.0708, allocations: 38.56 kB / 189.3 MB, free: 15.97 MB / 170.7 MB Notification: Performance of pre-optimization done (n=35): time 3.337e-06/0.07082, allocations: 0 / 189.3 MB, free: 15.97 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.00747/0.0783, allocations: 1.904 MB / 191.2 MB, free: 13.98 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/0.0784, allocations: 59.97 kB / 191.2 MB, free: 13.91 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.0787, allocations: 189.3 kB / 191.4 MB, free: 13.71 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/0.07877, allocations: 33.7 kB / 191.4 MB, free: 13.68 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.07892, allocations: 207.4 kB / 191.6 MB, free: 13.47 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.07917, allocations: 189.3 kB / 191.8 MB, free: 13.29 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.07922, allocations: 12 kB / 191.8 MB, free: 13.27 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.0794, allocations: 330.8 kB / 192.2 MB, free: 12.94 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006001/0.08001, allocations: 149 kB / 192.3 MB, free: 12.79 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005694/0.08059, allocations: 169 kB / 192.5 MB, free: 12.63 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005955/0.08121, allocations: 166.1 kB / 192.6 MB, free: 12.46 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.08122, allocations: 0 / 192.6 MB, free: 12.46 MB / 170.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001394/0.08263, allocations: 450.8 kB / 193.1 MB, free: 12.02 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.08268, allocations: 6.969 kB / 193.1 MB, free: 12.02 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.0827, allocations: 0 / 193.1 MB, free: 12.02 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.08274, allocations: 11.94 kB / 193.1 MB, free: 12.01 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008479/0.08359, allocations: 111.9 kB / 193.2 MB, free: 11.9 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/0.08363, allocations: 4 kB / 193.2 MB, free: 11.89 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004088/0.08404, allocations: 27.97 kB / 193.2 MB, free: 11.87 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/0.08411, allocations: 16 kB / 193.3 MB, free: 11.85 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.0002622/0.08438, allocations: 161.7 kB / 193.4 MB, free: 11.68 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.1e-05/0.08448, allocations: 23.72 kB / 193.4 MB, free: 11.66 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001495/0.08464, allocations: 55.28 kB / 193.5 MB, free: 11.6 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.08466, allocations: 4 kB / 193.5 MB, free: 11.6 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.08468, allocations: 0 / 193.5 MB, free: 11.6 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-06/0.0847, allocations: 3.984 kB / 193.5 MB, free: 11.59 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/0.08785, allocations: 1.243 MB / 194.7 MB, free: 10.23 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.08791, allocations: 4.562 kB / 194.7 MB, free: 10.23 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008923/0.08881, allocations: 119.8 kB / 194.9 MB, free: 10.11 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.691e-05/0.08885, allocations: 8 kB / 194.9 MB, free: 10.1 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.03e-05/0.08891, allocations: 16 kB / 194.9 MB, free: 10.09 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-05/0.08893, allocations: 7.938 kB / 194.9 MB, free: 10.08 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.08895, allocations: 4 kB / 194.9 MB, free: 10.07 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/0.09113, allocations: 0.8411 MB / 195.7 MB, free: 9.16 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.09134, allocations: 112.7 kB / 195.9 MB, free: 9.031 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.695e-05/0.09144, allocations: 16.05 kB / 195.9 MB, free: 9.016 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.09191, allocations: 31.97 kB / 195.9 MB, free: 8.984 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.09206, allocations: 51.59 kB / 195.9 MB, free: 8.934 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-05/0.09212, allocations: 20 kB / 196 MB, free: 8.914 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002022/0.09233, allocations: 136.5 kB / 196.1 MB, free: 8.781 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.09235, allocations: 0 / 196.1 MB, free: 8.781 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005669/0.09292, allocations: 88 kB / 196.2 MB, free: 8.695 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 () * 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.002558/0.09549, allocations: 1.385 MB / 197.6 MB, free: 7.23 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.09693, allocations: 410.8 kB / 198 MB, free: 6.828 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.09697, allocations: 0 / 198 MB, free: 6.828 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007491/0.09773, allocations: 232.7 kB / 198.2 MB, free: 6.602 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000775/0.09853, allocations: 68.31 kB / 198.3 MB, free: 6.531 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007161/0.1057, allocations: 2.268 MB / 200.5 MB, free: 4.148 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006168/0.1064, allocations: 0.7882 MB / 201.3 MB, free: 3.336 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.1068, allocations: 115.4 kB / 201.4 MB, free: 3.223 MB / 170.7 MB Notification: Performance of SimCode: time 1.352e-06/0.1069, allocations: 0 / 201.4 MB, free: 3.223 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.899/3.006, allocations: 5.31 MB / 206.7 MB, free: 22.03 MB / 170.7 MB