Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003537, allocations: 11.98 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07952/0.0799, allocations: 44.51 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002947/0.08289, allocations: 2.018 MB / 310.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007966/0.08373, allocations: 382.9 kB / 310.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.08391, allocations: 7.938 kB / 310.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.794e-05/0.084, allocations: 31.75 kB / 310.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002865/0.0843, allocations: 115.7 kB / 310.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.08463, allocations: 75.8 kB / 311 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003709/0.08501, allocations: 243.5 kB / 311.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.08523, allocations: 81.67 kB / 311.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.08542, allocations: 119.6 kB / 311.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.08565, allocations: 143.4 kB / 311.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.08571, allocations: 16 kB / 311.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.908e-05/0.08579, allocations: 16 kB / 311.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.739e-05/0.08587, allocations: 55.75 kB / 311.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.69e-05/0.08598, allocations: 81.52 kB / 311.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.08634, allocations: 259.5 kB / 312 MB, free: 13.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.03e-06/0.08636, allocations: 0 / 312 MB, free: 13.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.356e-06/0.08637, allocations: 0 / 312 MB, free: 13.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.201e-06/0.08639, allocations: 4 kB / 312 MB, free: 13.39 MB / 266.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.001197/0.0876, allocations: 0.5885 MB / 312.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.08765, allocations: 12.03 kB / 312.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.936e-05/0.08776, allocations: 35.61 kB / 312.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003861/0.08816, allocations: 262.4 kB / 312.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.855e-05/0.08821, allocations: 20.56 kB / 312.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.931e-05/0.08829, allocations: 24 kB / 312.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007355/0.08904, allocations: 288.8 kB / 313.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/0.08908, allocations: 3.906 kB / 313.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.907e-05/0.08913, allocations: 12 kB / 313.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.08916, allocations: 4 kB / 313.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008252/0.08999, allocations: 286.1 kB / 313.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.09176, allocations: 0.799 MB / 314.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000872/0.09265, allocations: 368.4 kB / 314.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.09272, allocations: 7.938 kB / 314.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.09277, allocations: 42.56 kB / 314.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 3.797e-06/0.09278, allocations: 0 / 314.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.005835/0.09863, allocations: 2.041 MB / 316.7 MB, free: 8.359 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.09872, allocations: 59.91 kB / 316.8 MB, free: 8.289 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.09899, allocations: 191 kB / 317 MB, free: 8.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.107e-05/0.09906, allocations: 37.7 kB / 317 MB, free: 8.047 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.09921, allocations: 199.4 kB / 317.2 MB, free: 7.848 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.09945, allocations: 224.8 kB / 317.4 MB, free: 7.625 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.09949, allocations: 8 kB / 317.4 MB, free: 7.617 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.09969, allocations: 330.8 kB / 317.8 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004963/0.1002, allocations: 165 kB / 317.9 MB, free: 7.125 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004996/0.1007, allocations: 184.9 kB / 318.1 MB, free: 6.941 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005154/0.1012, allocations: 182.2 kB / 318.3 MB, free: 6.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.948e-06/0.1013, allocations: 4 kB / 318.3 MB, free: 6.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001222/0.1025, allocations: 482.9 kB / 318.8 MB, free: 6.285 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.1025, allocations: 7.938 kB / 318.8 MB, free: 6.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.923e-06/0.1026, allocations: 0 / 318.8 MB, free: 6.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.1026, allocations: 7.953 kB / 318.8 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006329/0.1032, allocations: 127.8 kB / 318.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.1033, allocations: 4 kB / 318.9 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.1036, allocations: 31.97 kB / 318.9 MB, free: 6.109 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.1036, allocations: 16 kB / 318.9 MB, free: 6.094 MB / 266.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.0002553/0.1039, allocations: 165.7 kB / 319.1 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.104, allocations: 35.53 kB / 319.1 MB, free: 5.887 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.1041, allocations: 47.33 kB / 319.2 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.1041, allocations: 8 kB / 319.2 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.1042, allocations: 7.953 kB / 319.2 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.1042, allocations: 3.984 kB / 319.2 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00289/0.1071, allocations: 1.329 MB / 320.5 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.1071, allocations: 8.516 kB / 320.5 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006734/0.1078, allocations: 131.8 kB / 320.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-05/0.1079, allocations: 4 kB / 320.7 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.1079, allocations: 16 kB / 320.7 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.926e-05/0.1079, allocations: 15.92 kB / 320.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.198e-06/0.108, allocations: 4 kB / 320.7 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.1099, allocations: 0.9057 MB / 321.6 MB, free: 3.227 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.1101, allocations: 112.7 kB / 321.7 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.679e-05/0.1102, allocations: 16 kB / 321.7 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003562/0.1105, allocations: 31.98 kB / 321.8 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.1106, allocations: 55.83 kB / 321.8 MB, free: 2.996 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.1107, allocations: 20 kB / 321.9 MB, free: 2.977 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001711/0.1109, allocations: 136.6 kB / 322 MB, free: 2.844 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.23e-07/0.1109, allocations: 0 / 322 MB, free: 2.844 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005583/0.1115, allocations: 96 kB / 322.1 MB, free: 2.75 MB / 266.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.0001774/0.1117, allocations: 127 kB / 322.2 MB, free: 2.617 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.1128, allocations: 450.7 kB / 322.6 MB, free: 2.176 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.1129, allocations: 0 / 322.6 MB, free: 2.176 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000627/0.1135, allocations: 259.6 kB / 322.9 MB, free: 1.922 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000595/0.1141, allocations: 65.08 kB / 323 MB, free: 1.859 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.1165, allocations: 1.243 MB / 324.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005665/0.1171, allocations: 0.7974 MB / 325 MB, free: 15.7 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.1173, allocations: 43.42 kB / 325 MB, free: 15.66 MB / 282.7 MB Notification: Performance of SimCode: time 1.699e-06/0.1174, allocations: 0 / 325 MB, free: 15.66 MB / 282.7 MB Notification: Performance of Templates: time 0.009034/0.1264, allocations: 4.416 MB / 329.5 MB, free: 11.25 MB / 282.7 MB