Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 1.716/1.716, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003531, allocations: 8 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08249/0.08287, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4297/0.5127, allocations: 66.77 MB / 339.3 MB, free: 7.172 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.513, allocations: 67.91 kB / 339.4 MB, free: 7.137 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02503/0.5381, allocations: 5.649 MB / 345 MB, free: 2.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5381, allocations: 0 / 345 MB, free: 2.398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.5382, allocations: 7.984 kB / 345 MB, free: 2.391 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.001386/0.5396, allocations: 0.576 MB / 345.6 MB, free: 1.785 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.5396, allocations: 8.031 kB / 345.6 MB, free: 1.777 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.5398, allocations: 35.56 kB / 345.7 MB, free: 1.742 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.5402, allocations: 267.5 kB / 345.9 MB, free: 1.461 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.759e-05/0.5402, allocations: 18.88 kB / 345.9 MB, free: 1.449 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.602e-05/0.5403, allocations: 29.62 kB / 346 MB, free: 1.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008835/0.5412, allocations: 278.3 kB / 346.2 MB, free: 1.227 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.5413, allocations: 3.938 kB / 346.2 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.848e-05/0.5413, allocations: 10.31 kB / 346.2 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.5413, allocations: 12 kB / 346.3 MB, free: 1.211 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.5424, allocations: 275.7 kB / 346.5 MB, free: 1.008 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.5444, allocations: 0.7997 MB / 347.3 MB, free: 352 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009906/0.5454, allocations: 382.5 kB / 347.7 MB, free: 92 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.307e-05/0.5455, allocations: 8 kB / 347.7 MB, free: 84 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.5455, allocations: 33.69 kB / 347.7 MB, free: 44 kB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 3.436e-06/0.5456, allocations: 0 / 347.7 MB, free: 44 kB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.008997/0.5546, allocations: 2.039 MB / 349.8 MB, free: 14.36 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/0.5547, allocations: 67.86 kB / 349.8 MB, free: 14.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003425/0.5551, allocations: 192.4 kB / 350 MB, free: 14.11 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.18e-05/0.5551, allocations: 36.7 kB / 350.1 MB, free: 14.08 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.5553, allocations: 199.9 kB / 350.3 MB, free: 13.9 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000295/0.5556, allocations: 218.6 kB / 350.5 MB, free: 13.71 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.5557, allocations: 6.625 kB / 350.5 MB, free: 13.71 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.5559, allocations: 332.9 kB / 350.8 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007648/0.5567, allocations: 171.5 kB / 351 MB, free: 13.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00076/0.5574, allocations: 176 kB / 351.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000849/0.5583, allocations: 186.7 kB / 351.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5583, allocations: 0 / 351.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001971/0.5603, allocations: 489.3 kB / 351.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.5604, allocations: 4 kB / 351.8 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5604, allocations: 0 / 351.8 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.694e-05/0.5604, allocations: 4 kB / 351.8 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.5617, allocations: 125.6 kB / 351.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.075e-05/0.5618, allocations: 4 kB / 351.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006173/0.5624, allocations: 40.05 kB / 352 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.972e-05/0.5625, allocations: 15.56 kB / 352 MB, free: 12.52 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.0003751/0.5629, allocations: 159.8 kB / 352.2 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.5631, allocations: 35.62 kB / 352.2 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001929/0.5633, allocations: 49.7 kB / 352.2 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.5633, allocations: 8 kB / 352.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.5633, allocations: 0 / 352.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.5634, allocations: 7.984 kB / 352.3 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004696/0.5681, allocations: 1.328 MB / 353.6 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.5681, allocations: 4 kB / 353.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.5695, allocations: 128 kB / 353.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-05/0.5695, allocations: 11.94 kB / 353.7 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.18e-05/0.5696, allocations: 23.77 kB / 353.7 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.569e-05/0.5696, allocations: 8 kB / 353.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.758e-05/0.5697, allocations: 16.2 kB / 353.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/0.5728, allocations: 0.9044 MB / 354.7 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/0.573, allocations: 104.7 kB / 354.8 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.5732, allocations: 22.16 kB / 354.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000629/0.5738, allocations: 38.12 kB / 354.8 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.574, allocations: 42.39 kB / 354.9 MB, free: 10.03 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-05/0.5741, allocations: 29.75 kB / 354.9 MB, free: 10 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002501/0.5743, allocations: 141 kB / 355 MB, free: 9.883 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5744, allocations: 0 / 355 MB, free: 9.883 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009022/0.5753, allocations: 100.6 kB / 355.1 MB, free: 9.801 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.0002544/0.5755, allocations: 127.2 kB / 355.3 MB, free: 9.676 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001935/0.5775, allocations: 445 kB / 355.7 MB, free: 9.352 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.639e-06/0.5775, allocations: 4 kB / 355.7 MB, free: 9.348 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.5787, allocations: 266.2 kB / 356 MB, free: 9.148 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.5798, allocations: 69.5 kB / 356 MB, free: 9.098 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/0.5836, allocations: 1.234 MB / 357.3 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006325/0.5843, allocations: 0.8052 MB / 358.1 MB, free: 7.039 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.5847, allocations: 39.42 kB / 358.1 MB, free: 7 MB / 282.7 MB Notification: Performance of SimCode: time 1.392e-06/0.5847, allocations: 0 / 358.1 MB, free: 7 MB / 282.7 MB Notification: Performance of Templates: time 0.0146/0.5993, allocations: 4.382 MB / 362.5 MB, free: 2.668 MB / 282.7 MB