Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.025/2.025, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09494, allocations: 44.51 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4192/0.5142, allocations: 72.08 MB / 381.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.5145, allocations: 70.12 kB / 381.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02327/0.5378, allocations: 5.629 MB / 386.7 MB, free: 14.13 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5378, allocations: 0 / 386.7 MB, free: 14.13 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.222e-05/0.5379, allocations: 6.969 kB / 386.8 MB, free: 14.13 MB / 314.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.001207/0.5391, allocations: 0.5729 MB / 387.3 MB, free: 13.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.5391, allocations: 9.781 kB / 387.3 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.636e-05/0.5393, allocations: 36.2 kB / 387.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.5396, allocations: 249.6 kB / 387.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.5396, allocations: 24.16 kB / 387.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.661e-05/0.5397, allocations: 31.28 kB / 387.7 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008337/0.5406, allocations: 277.8 kB / 387.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.5406, allocations: 5.188 kB / 387.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.926e-05/0.5407, allocations: 9.281 kB / 388 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.5407, allocations: 8.984 kB / 388 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009689/0.5417, allocations: 290.1 kB / 388.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.5435, allocations: 0.8147 MB / 389.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000926/0.5444, allocations: 364.2 kB / 389.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.85e-05/0.5445, allocations: 9.25 kB / 389.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.5445, allocations: 40.77 kB / 389.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 2.766e-06/0.5445, allocations: 0 / 389.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.006923/0.5515, allocations: 2.031 MB / 391.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.5516, allocations: 55.91 kB / 391.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.5518, allocations: 195.5 kB / 391.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.5519, allocations: 36.83 kB / 391.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.123e-05/0.5519, allocations: 203.6 kB / 392 MB, free: 12.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.5521, allocations: 221.3 kB / 392.2 MB, free: 11.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.5522, allocations: 9.375 kB / 392.2 MB, free: 11.87 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.305e-05/0.5522, allocations: 334.1 kB / 392.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005242/0.5528, allocations: 175.7 kB / 392.7 MB, free: 11.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005555/0.5533, allocations: 170.9 kB / 392.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005597/0.5539, allocations: 186.4 kB / 393.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.5539, allocations: 0 / 393.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001275/0.5552, allocations: 487.7 kB / 393.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.5553, allocations: 7.938 kB / 393.5 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.5553, allocations: 7.891 kB / 393.5 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.5553, allocations: 0 / 393.5 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008744/0.5562, allocations: 124.2 kB / 393.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.5562, allocations: 3.969 kB / 393.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004171/0.5567, allocations: 37.62 kB / 393.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.5567, allocations: 15.95 kB / 393.7 MB, free: 11.45 MB / 314.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.0002333/0.5569, allocations: 156.8 kB / 393.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.48e-05/0.557, allocations: 31.25 kB / 393.9 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.5572, allocations: 52 kB / 394 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.5572, allocations: 7.828 kB / 394 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.5573, allocations: 1.359 kB / 394 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.5573, allocations: 6.75 kB / 394 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002759/0.56, allocations: 1.335 MB / 395.3 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/0.5601, allocations: 3.875 kB / 395.3 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000901/0.561, allocations: 129.5 kB / 395.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/0.561, allocations: 7.75 kB / 395.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.5e-05/0.5611, allocations: 17.61 kB / 395.5 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.195e-05/0.5611, allocations: 11.72 kB / 395.5 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.5611, allocations: 7.781 kB / 395.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.5631, allocations: 0.9049 MB / 396.4 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.5632, allocations: 118.3 kB / 396.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8e-05/0.5633, allocations: 14.72 kB / 396.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004216/0.5637, allocations: 31.94 kB / 396.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.911e-05/0.5638, allocations: 52.09 kB / 396.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.17e-05/0.5639, allocations: 23.97 kB / 396.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001435/0.564, allocations: 134.4 kB / 396.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.564, allocations: 0 / 396.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005409/0.5646, allocations: 98.44 kB / 396.8 MB, free: 10.22 MB / 314.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.000163/0.5648, allocations: 140.3 kB / 397 MB, free: 10.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.566, allocations: 445.4 kB / 397.4 MB, free: 10.08 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.5661, allocations: 0 / 397.4 MB, free: 10.08 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006597/0.5667, allocations: 256.6 kB / 397.7 MB, free: 10.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00075/0.5675, allocations: 68.3 kB / 397.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.5698, allocations: 1.236 MB / 399 MB, free: 9.258 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.5701, allocations: 0.8019 MB / 399.8 MB, free: 8.547 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.5704, allocations: 41.7 kB / 399.8 MB, free: 8.543 MB / 314.7 MB Notification: Performance of SimCode: time 1.193e-06/0.5704, allocations: 4 kB / 399.8 MB, free: 8.539 MB / 314.7 MB Notification: Performance of Templates: time 0.009294/0.5797, allocations: 4.398 MB / 404.2 MB, free: 8.195 MB / 314.7 MB