Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 1.629/1.629, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003612, allocations: 8 kB / 233.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06781/0.0682, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002887/0.07113, allocations: 2.022 MB / 273.9 MB, free: 10.16 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007757/0.07195, allocations: 378.8 kB / 274.3 MB, free: 9.793 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.07213, allocations: 8 kB / 274.3 MB, free: 9.785 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.257e-05/0.07222, allocations: 35.69 kB / 274.4 MB, free: 9.75 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002882/0.07253, allocations: 119.6 kB / 274.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.07285, allocations: 67.91 kB / 274.5 MB, free: 9.566 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003779/0.07324, allocations: 259.3 kB / 274.8 MB, free: 9.312 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.07347, allocations: 93.59 kB / 274.9 MB, free: 9.215 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/0.07367, allocations: 111.6 kB / 275 MB, free: 9.105 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.0739, allocations: 143.4 kB / 275.1 MB, free: 8.965 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.276e-05/0.07396, allocations: 16 kB / 275.1 MB, free: 8.949 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.07404, allocations: 20 kB / 275.2 MB, free: 8.93 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.4e-05/0.07411, allocations: 51.81 kB / 275.2 MB, free: 8.879 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.07423, allocations: 85.52 kB / 275.3 MB, free: 8.789 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003604/0.0746, allocations: 259.5 kB / 275.6 MB, free: 8.535 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.071e-06/0.07462, allocations: 0 / 275.6 MB, free: 8.535 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.12e-06/0.07463, allocations: 0 / 275.6 MB, free: 8.535 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.07465, allocations: 0 / 275.6 MB, free: 8.535 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001185/0.07584, allocations: 0.6002 MB / 276.2 MB, free: 7.887 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.0759, allocations: 8.031 kB / 276.2 MB, free: 7.879 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.233e-05/0.07599, allocations: 31.62 kB / 276.2 MB, free: 7.848 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.07638, allocations: 254.5 kB / 276.4 MB, free: 7.559 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.69e-05/0.07645, allocations: 28.45 kB / 276.5 MB, free: 7.531 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.23e-05/0.07653, allocations: 31.94 kB / 276.5 MB, free: 7.5 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007286/0.07727, allocations: 280.8 kB / 276.8 MB, free: 7.219 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.07731, allocations: 0 / 276.8 MB, free: 7.219 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.931e-05/0.07736, allocations: 12 kB / 276.8 MB, free: 7.207 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.07739, allocations: 8 kB / 276.8 MB, free: 7.199 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008088/0.07821, allocations: 282.1 kB / 277.1 MB, free: 6.922 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.08, allocations: 0.799 MB / 277.9 MB, free: 6.074 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008621/0.08089, allocations: 363.3 kB / 278.2 MB, free: 5.703 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.394e-05/0.08096, allocations: 8 kB / 278.2 MB, free: 5.695 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.08101, allocations: 38.5 kB / 278.3 MB, free: 5.648 MB / 234.7 MB Notification: Performance of pre-optimization done (n=43): time 4.269e-06/0.08102, allocations: 0 / 278.3 MB, free: 5.648 MB / 234.7 MB Notification: Performance of matching and sorting (n=63): time 0.005785/0.08682, allocations: 2.032 MB / 280.3 MB, free: 3.527 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.08691, allocations: 59.91 kB / 280.4 MB, free: 3.457 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.08719, allocations: 206.8 kB / 280.6 MB, free: 3.246 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.769e-05/0.08726, allocations: 37.7 kB / 280.6 MB, free: 3.203 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.08741, allocations: 199.5 kB / 280.8 MB, free: 3.008 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.08765, allocations: 216.8 kB / 281 MB, free: 2.793 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.177e-05/0.08769, allocations: 8 kB / 281 MB, free: 2.785 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.08789, allocations: 342.8 kB / 281.3 MB, free: 2.441 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004823/0.08838, allocations: 165 kB / 281.5 MB, free: 2.277 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004779/0.08888, allocations: 181 kB / 281.7 MB, free: 2.102 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005067/0.0894, allocations: 182.2 kB / 281.9 MB, free: 1.926 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.89e-06/0.08942, allocations: 3.984 kB / 281.9 MB, free: 1.922 MB / 234.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001226/0.09066, allocations: 482.8 kB / 282.3 MB, free: 1.445 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.0907, allocations: 4 kB / 282.3 MB, free: 1.441 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.09072, allocations: 0 / 282.3 MB, free: 1.441 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.09075, allocations: 4 kB / 282.3 MB, free: 1.438 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000629/0.09138, allocations: 127.8 kB / 282.5 MB, free: 1.312 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.09142, allocations: 4 kB / 282.5 MB, free: 1.309 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.0917, allocations: 31.97 kB / 282.5 MB, free: 1.277 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.624e-05/0.09176, allocations: 19.95 kB / 282.5 MB, free: 1.258 MB / 234.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 (69): * Single equations (assignments): 69 * 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.000261/0.09203, allocations: 165.7 kB / 282.7 MB, free: 1.086 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.679e-05/0.09214, allocations: 31.62 kB / 282.7 MB, free: 1.055 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/0.09228, allocations: 51.33 kB / 282.8 MB, free: 1.004 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.09231, allocations: 8 kB / 282.8 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.678e-06/0.09233, allocations: 0 / 282.8 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.09235, allocations: 3.984 kB / 282.8 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.09529, allocations: 1.329 MB / 284.1 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.09534, allocations: 7.984 kB / 284.1 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006704/0.09603, allocations: 132.4 kB / 284.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.776e-05/0.09607, allocations: 12 kB / 284.3 MB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.09613, allocations: 16 kB / 284.3 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.486e-05/0.09615, allocations: 11.94 kB / 284.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/0.09617, allocations: 11.94 kB / 284.3 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.09809, allocations: 0.894 MB / 285.2 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.09826, allocations: 108.8 kB / 285.3 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.986e-05/0.09834, allocations: 19.94 kB / 285.3 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003662/0.09872, allocations: 35.98 kB / 285.4 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.09885, allocations: 51.83 kB / 285.4 MB, free: 14.16 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.433e-05/0.0989, allocations: 20 kB / 285.4 MB, free: 14.14 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001757/0.09909, allocations: 144.4 kB / 285.6 MB, free: 14 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.94e-07/0.09911, allocations: 0 / 285.6 MB, free: 14 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005636/0.09968, allocations: 104 kB / 285.7 MB, free: 13.9 MB / 250.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 (63): * Single equations (assignments): 63 * 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.0001754/0.09987, allocations: 119.1 kB / 285.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.101, allocations: 446.7 kB / 286.2 MB, free: 13.34 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.616e-06/0.1011, allocations: 0 / 286.2 MB, free: 13.34 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006332/0.1017, allocations: 272.3 kB / 286.5 MB, free: 13.07 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006267/0.1024, allocations: 69.98 kB / 286.6 MB, free: 13 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.1048, allocations: 1.234 MB / 287.8 MB, free: 11.68 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.1054, allocations: 0.8052 MB / 288.6 MB, free: 10.85 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.1056, allocations: 39.42 kB / 288.6 MB, free: 10.81 MB / 250.7 MB Notification: Performance of SimCode: time 1.545e-06/0.1056, allocations: 0 / 288.6 MB, free: 10.81 MB / 250.7 MB Notification: Performance of Templates: time 0.009592/0.1153, allocations: 4.41 MB / 293 MB, free: 6.406 MB / 250.7 MB