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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.061/1.061, allocations: 111.2 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000255/0.0002554, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04431/0.04459, allocations: 25.17 MB / 183.4 MB, free: 6.016 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002528/0.04716, allocations: 1.732 MB / 185.1 MB, free: 4.285 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006885/0.04788, allocations: 327.4 kB / 185.5 MB, free: 3.965 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.048, allocations: 4 kB / 185.5 MB, free: 3.961 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 6.769e-05/0.04808, allocations: 31.77 kB / 185.5 MB, free: 3.93 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.04834, allocations: 95.72 kB / 185.6 MB, free: 3.836 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.04864, allocations: 67.86 kB / 185.7 MB, free: 3.77 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003216/0.04897, allocations: 227.5 kB / 185.9 MB, free: 3.547 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.04919, allocations: 89.95 kB / 186 MB, free: 3.457 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.04937, allocations: 107.6 kB / 186.1 MB, free: 3.352 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.04959, allocations: 127.4 kB / 186.2 MB, free: 3.227 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.496e-05/0.04964, allocations: 16 kB / 186.2 MB, free: 3.211 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.836e-05/0.04971, allocations: 16 kB / 186.2 MB, free: 3.195 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 5.996e-05/0.04978, allocations: 47.83 kB / 186.3 MB, free: 3.148 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 8.63e-05/0.04988, allocations: 73.52 kB / 186.4 MB, free: 3.07 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000316/0.05021, allocations: 243.3 kB / 186.6 MB, free: 2.832 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.569e-06/0.05023, allocations: 0 / 186.6 MB, free: 2.832 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.06e-06/0.05024, allocations: 0 / 186.6 MB, free: 2.832 MB / 154.7 MB Notification: Performance of Transformations before backend: time 6.59e-06/0.05025, allocations: 0 / 186.6 MB, free: 2.832 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.001093/0.05136, allocations: 0.5691 MB / 187.2 MB, free: 2.215 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.05141, allocations: 12.03 kB / 187.2 MB, free: 2.203 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.367e-05/0.05151, allocations: 31.62 kB / 187.2 MB, free: 2.172 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.05185, allocations: 242.6 kB / 187.4 MB, free: 1.895 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.846e-05/0.05191, allocations: 20.56 kB / 187.5 MB, free: 1.875 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.58e-05/0.05198, allocations: 24 kB / 187.5 MB, free: 1.852 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006759/0.05267, allocations: 256.8 kB / 187.7 MB, free: 1.59 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.05272, allocations: 11.83 kB / 187.7 MB, free: 1.578 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/0.05276, allocations: 15.89 kB / 187.8 MB, free: 1.562 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.625e-06/0.05279, allocations: 12 kB / 187.8 MB, free: 1.551 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007729/0.05357, allocations: 246.1 kB / 188 MB, free: 1.312 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.05515, allocations: 0.7485 MB / 188.8 MB, free: 0.5117 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000769/0.05594, allocations: 315.4 kB / 189.1 MB, free: 204 kB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.956e-05/0.056, allocations: 7.984 kB / 189.1 MB, free: 196 kB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.05604, allocations: 38.5 kB / 189.1 MB, free: 148 kB / 154.7 MB Notification: Performance of pre-optimization done (n=35): time 3.466e-06/0.05606, allocations: 4 kB / 189.1 MB, free: 144 kB / 154.7 MB Notification: Performance of matching and sorting (n=55): time 0.005463/0.06153, allocations: 1.9 MB / 191 MB, free: 14.15 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.06162, allocations: 59.97 kB / 191.1 MB, free: 14.08 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.06187, allocations: 197.2 kB / 191.3 MB, free: 13.88 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.963e-05/0.06194, allocations: 37.7 kB / 191.3 MB, free: 13.84 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.06208, allocations: 199.4 kB / 191.5 MB, free: 13.64 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.06229, allocations: 189.2 kB / 191.7 MB, free: 13.45 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.259e-05/0.06233, allocations: 8 kB / 191.7 MB, free: 13.45 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.06253, allocations: 330.8 kB / 192 MB, free: 13.11 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000456/0.063, allocations: 157 kB / 192.2 MB, free: 12.96 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004514/0.06346, allocations: 161 kB / 192.3 MB, free: 12.8 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004894/0.06398, allocations: 174.2 kB / 192.5 MB, free: 12.63 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.449e-06/0.064, allocations: 3.953 kB / 192.5 MB, free: 12.62 MB / 170.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001142/0.06515, allocations: 450.8 kB / 192.9 MB, free: 12.18 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.06518, allocations: 4 kB / 192.9 MB, free: 12.18 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.274e-06/0.0652, allocations: 4 kB / 192.9 MB, free: 12.18 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.06523, allocations: 4 kB / 193 MB, free: 12.17 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005727/0.06581, allocations: 115.8 kB / 193.1 MB, free: 12.06 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.06584, allocations: 0 / 193.1 MB, free: 12.06 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.0661, allocations: 27.98 kB / 193.1 MB, free: 12.03 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.06615, allocations: 16 kB / 193.1 MB, free: 12.02 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.0002296/0.0664, allocations: 153.8 kB / 193.3 MB, free: 11.86 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.226e-05/0.0665, allocations: 31.67 kB / 193.3 MB, free: 11.82 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.06662, allocations: 39.31 kB / 193.3 MB, free: 11.78 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.06665, allocations: 8 kB / 193.3 MB, free: 11.77 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.484e-06/0.06666, allocations: 0 / 193.3 MB, free: 11.77 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.977e-06/0.06668, allocations: 7.984 kB / 193.3 MB, free: 11.77 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002706/0.0694, allocations: 1.243 MB / 194.6 MB, free: 10.4 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.06944, allocations: 4 kB / 194.6 MB, free: 10.4 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006072/0.07006, allocations: 115.8 kB / 194.7 MB, free: 10.29 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/0.07009, allocations: 8 kB / 194.7 MB, free: 10.28 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.844e-05/0.07015, allocations: 19.98 kB / 194.7 MB, free: 10.26 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.842e-05/0.07018, allocations: 8.344 kB / 194.7 MB, free: 10.25 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.0702, allocations: 15.92 kB / 194.8 MB, free: 10.23 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.07198, allocations: 0.8255 MB / 195.6 MB, free: 9.336 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.07213, allocations: 112.8 kB / 195.7 MB, free: 9.207 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.069e-05/0.07221, allocations: 16 kB / 195.7 MB, free: 9.191 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003365/0.07256, allocations: 35.92 kB / 195.7 MB, free: 9.156 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.07268, allocations: 51.59 kB / 195.8 MB, free: 9.105 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.07274, allocations: 23.98 kB / 195.8 MB, free: 9.082 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001558/0.07291, allocations: 136.5 kB / 195.9 MB, free: 8.949 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.07293, allocations: 0 / 195.9 MB, free: 8.949 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005366/0.07347, allocations: 88 kB / 196 MB, free: 8.863 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.0001636/0.07365, allocations: 127 kB / 196.2 MB, free: 8.73 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.07471, allocations: 399 kB / 196.5 MB, free: 8.34 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.522e-06/0.07474, allocations: 0 / 196.5 MB, free: 8.34 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006091/0.07535, allocations: 240.5 kB / 196.8 MB, free: 8.105 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005876/0.07596, allocations: 64.11 kB / 196.8 MB, free: 8.039 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.07815, allocations: 1.168 MB / 198 MB, free: 6.785 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/0.07869, allocations: 0.7881 MB / 198.8 MB, free: 5.969 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.07887, allocations: 39.42 kB / 198.8 MB, free: 5.93 MB / 170.7 MB Notification: Performance of SimCode: time 1.499e-06/0.07889, allocations: 0 / 198.8 MB, free: 5.93 MB / 170.7 MB Notification: Performance of Templates: time 0.008194/0.08709, allocations: 4.037 MB / 202.9 MB, free: 1.891 MB / 170.7 MB