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.PreLoad.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadModel(Modelica): time 1.62/1.62, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.837e-05/1.84e-05, allocations: 4 kB / 222.5 MB, free: 8.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07044/0.07048, allocations: 38.76 MB / 261.3 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2802/0.3508, allocations: 67.56 MB / 328.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.351, allocations: 68.78 kB / 328.9 MB, free: 4.332 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03792/0.389, allocations: 9.024 MB / 337.9 MB, free: 12.9 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.599e-06/0.389, allocations: 4 kB / 337.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.231e-05/0.3891, allocations: 8 kB / 337.9 MB, free: 12.89 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001539/0.3906, allocations: 0.7233 MB / 338.7 MB, free: 12.15 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3907, allocations: 12.03 kB / 338.7 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.3908, allocations: 59.33 kB / 338.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.3914, allocations: 303.7 kB / 339 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.3914, allocations: 20 kB / 339 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.869e-05/0.3915, allocations: 27.94 kB / 339.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008783/0.3924, allocations: 347.8 kB / 339.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008211/0.3933, allocations: 340.6 kB / 339.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.388e-05/0.3933, allocations: 7.891 kB / 339.8 MB, free: 11.24 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.78e-05/0.3934, allocations: 3.938 kB / 339.8 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.3934, allocations: 16 kB / 339.8 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003123/0.3965, allocations: 1.312 MB / 341.1 MB, free: 10.2 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009384/0.3975, allocations: 470.8 kB / 341.5 MB, free: 9.918 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007199/0.3983, allocations: 308.6 kB / 341.8 MB, free: 9.703 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.3983, allocations: 8.562 kB / 341.9 MB, free: 9.695 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.3984, allocations: 46.31 kB / 341.9 MB, free: 9.648 MB / 282.7 MB Notification: Performance of pre-optimization done (n=67): time 4.346e-06/0.3984, allocations: 0 / 341.9 MB, free: 9.648 MB / 282.7 MB Notification: Performance of matching and sorting (n=103): time 0.005336/0.4037, allocations: 2.209 MB / 344.1 MB, free: 7.812 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.4038, allocations: 64.66 kB / 344.2 MB, free: 7.738 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.4041, allocations: 208.7 kB / 344.4 MB, free: 7.551 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/0.4042, allocations: 29.64 kB / 344.4 MB, free: 7.516 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.4044, allocations: 253.3 kB / 344.6 MB, free: 7.297 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/0.4047, allocations: 333 kB / 345 MB, free: 7.008 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.4048, allocations: 0 / 345 MB, free: 7.008 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.405, allocations: 348 kB / 345.3 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004894/0.4055, allocations: 209.5 kB / 345.5 MB, free: 6.555 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005677/0.4061, allocations: 274.9 kB / 345.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005449/0.4066, allocations: 240.8 kB / 346 MB, free: 6.234 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.336e-06/0.4067, allocations: 0 / 346 MB, free: 6.234 MB / 282.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001388/0.4081, allocations: 0.6163 MB / 346.6 MB, free: 5.773 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.4081, allocations: 8 kB / 346.6 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.104e-06/0.4081, allocations: 0 / 346.6 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.4082, allocations: 4 kB / 346.7 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.4092, allocations: 222.7 kB / 346.9 MB, free: 5.551 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.4093, allocations: 4 kB / 346.9 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000483/0.4098, allocations: 39.97 kB / 346.9 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.154e-05/0.4099, allocations: 34.88 kB / 346.9 MB, free: 5.48 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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.0001973/0.4101, allocations: 120.7 kB / 347.1 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.4102, allocations: 47.44 kB / 347.1 MB, free: 5.309 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001761/0.4104, allocations: 61.8 kB / 347.2 MB, free: 5.285 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.4104, allocations: 8 kB / 347.2 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.4105, allocations: 4 kB / 347.2 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.4105, allocations: 7.984 kB / 347.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003667/0.4142, allocations: 1.736 MB / 348.9 MB, free: 3.676 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.4142, allocations: 4 kB / 348.9 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.4153, allocations: 215.7 kB / 349.1 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.228e-05/0.4154, allocations: 8 kB / 349.1 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-05/0.4155, allocations: 16.23 kB / 349.2 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.484e-05/0.4155, allocations: 15.88 kB / 349.2 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-05/0.4155, allocations: 11.98 kB / 349.2 MB, free: 3.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.418, allocations: 1.387 MB / 350.6 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003759/0.4184, allocations: 180.4 kB / 350.8 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.942e-05/0.4186, allocations: 12 kB / 350.8 MB, free: 1.629 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005529/0.4191, allocations: 51.89 kB / 350.8 MB, free: 1.578 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.4193, allocations: 64.66 kB / 350.9 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.659e-05/0.4194, allocations: 39.92 kB / 350.9 MB, free: 1.477 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002126/0.4196, allocations: 158 kB / 351.1 MB, free: 1.324 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.6e-07/0.4196, allocations: 0 / 351.1 MB, free: 1.324 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000717/0.4204, allocations: 124 kB / 351.2 MB, free: 1.203 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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.0002143/0.4206, allocations: 115 kB / 351.3 MB, free: 1.078 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.4219, allocations: 0.5848 MB / 351.9 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.677e-06/0.422, allocations: 4 kB / 351.9 MB, free: 500 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008024/0.4228, allocations: 367.6 kB / 352.3 MB, free: 132 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000817/0.4236, allocations: 81.3 kB / 352.3 MB, free: 52 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.4265, allocations: 1.245 MB / 353.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006792/0.4272, allocations: 0.8806 MB / 354.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/0.4276, allocations: 59.41 kB / 354.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of SimCode: time 1.857e-06/0.4276, allocations: 0 / 354.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of Templates: time 0.0141/0.4417, allocations: 6.902 MB / 361.4 MB, free: 6.832 MB / 298.7 MB