Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004826/0.0004828, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1041, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.4517, allocations: 66.78 MB / 339.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.452, allocations: 73.61 kB / 339.5 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02509/0.4771, allocations: 5.646 MB / 345.1 MB, free: 1.773 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4772, allocations: 0 / 345.1 MB, free: 1.773 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.676e-05/0.4772, allocations: 8 kB / 345.1 MB, free: 1.766 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.001362/0.4786, allocations: 0.5714 MB / 345.7 MB, free: 1.164 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.4787, allocations: 12.03 kB / 345.7 MB, free: 1.152 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.4788, allocations: 35.56 kB / 345.7 MB, free: 1.117 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.4792, allocations: 260 kB / 346 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.427e-05/0.4793, allocations: 26.75 kB / 346 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-05/0.4794, allocations: 34.12 kB / 346 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008529/0.4802, allocations: 274.5 kB / 346.3 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.4803, allocations: 0 / 346.3 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/0.4803, allocations: 10.12 kB / 346.3 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.4803, allocations: 12 kB / 346.3 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009845/0.4813, allocations: 278.3 kB / 346.6 MB, free: 392 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.4834, allocations: 0.8062 MB / 347.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009978/0.4844, allocations: 377.8 kB / 347.8 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.7e-05/0.4845, allocations: 12 kB / 347.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.4845, allocations: 33.69 kB / 347.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 2.615e-06/0.4845, allocations: 0 / 347.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.007505/0.492, allocations: 2.036 MB / 349.9 MB, free: 13.74 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.4921, allocations: 59.92 kB / 349.9 MB, free: 13.67 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003285/0.4925, allocations: 203.9 kB / 350.1 MB, free: 13.49 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.413e-05/0.4925, allocations: 36.89 kB / 350.2 MB, free: 13.45 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.4927, allocations: 138.2 kB / 350.3 MB, free: 13.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/0.4929, allocations: 217.9 kB / 350.5 MB, free: 13.14 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.352e-05/0.493, allocations: 10.75 kB / 350.5 MB, free: 13.14 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.4932, allocations: 340.8 kB / 350.9 MB, free: 12.82 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006118/0.4938, allocations: 170.1 kB / 351 MB, free: 12.7 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005737/0.4944, allocations: 172 kB / 351.2 MB, free: 12.59 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006206/0.495, allocations: 193.8 kB / 351.4 MB, free: 12.47 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.495, allocations: 0 / 351.4 MB, free: 12.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001465/0.4965, allocations: 491.2 kB / 351.9 MB, free: 12.12 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.4966, allocations: 12.62 kB / 351.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4966, allocations: 0 / 351.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.4966, allocations: 0 / 351.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000928/0.4976, allocations: 127.4 kB / 352 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.4976, allocations: 0 / 352 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004286/0.498, allocations: 38 kB / 352 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.4981, allocations: 15.5 kB / 352 MB, free: 11.95 MB / 282.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.0002904/0.4984, allocations: 160.2 kB / 352.2 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.4985, allocations: 35.53 kB / 352.2 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001454/0.4987, allocations: 52.58 kB / 352.3 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.4987, allocations: 4 kB / 352.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.4987, allocations: 0 / 352.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.4987, allocations: 3.984 kB / 352.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/0.5021, allocations: 1.337 MB / 353.6 MB, free: 10.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/0.5021, allocations: 7.938 kB / 353.6 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009869/0.5032, allocations: 130.4 kB / 353.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-05/0.5032, allocations: 8 kB / 353.8 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.994e-05/0.5033, allocations: 26.94 kB / 353.8 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.722e-05/0.5033, allocations: 11.94 kB / 353.8 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.5033, allocations: 4 kB / 353.8 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.5056, allocations: 0.9001 MB / 354.7 MB, free: 9.656 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001976/0.5059, allocations: 112.3 kB / 354.8 MB, free: 9.531 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.506, allocations: 15.25 kB / 354.8 MB, free: 9.523 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/0.5065, allocations: 35.19 kB / 354.9 MB, free: 9.496 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.5066, allocations: 51.19 kB / 354.9 MB, free: 9.453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.131e-05/0.5067, allocations: 23.58 kB / 354.9 MB, free: 9.434 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001964/0.5069, allocations: 146.6 kB / 355.1 MB, free: 9.309 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5069, allocations: 0 / 355.1 MB, free: 9.309 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006173/0.5075, allocations: 98.44 kB / 355.2 MB, free: 9.23 MB / 282.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.0002198/0.5078, allocations: 130.4 kB / 355.3 MB, free: 9.102 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.5092, allocations: 455.4 kB / 355.8 MB, free: 8.766 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.5093, allocations: 3.5 kB / 355.8 MB, free: 8.766 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008249/0.5101, allocations: 253.7 kB / 356 MB, free: 8.574 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008094/0.511, allocations: 65.64 kB / 356.1 MB, free: 8.527 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.5139, allocations: 1.207 MB / 357.3 MB, free: 7.332 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.5145, allocations: 0.8052 MB / 358.1 MB, free: 6.5 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003992/0.5149, allocations: 47.27 kB / 358.1 MB, free: 6.453 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.5151, allocations: 35.44 kB / 358.2 MB, free: 6.418 MB / 282.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5151, allocations: 0 / 358.2 MB, free: 6.418 MB / 282.7 MB Notification: Performance of Templates: time 0.0135/0.5286, allocations: 3.652 MB / 361.8 MB, free: 2.793 MB / 282.7 MB