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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.665/1.665, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.341e-05/2.349e-05, allocations: 0 / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2044, allocations: 38.78 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.3057, allocations: 68.2 MB / 335.8 MB, free: 5.129 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.306, allocations: 67.97 kB / 335.9 MB, free: 5.062 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03956/0.3455, allocations: 9.112 MB / 345 MB, free: 11.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.657e-06/0.3456, allocations: 0 / 345 MB, free: 11.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.862e-05/0.3456, allocations: 8 kB / 345 MB, free: 11.91 MB / 298.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.001577/0.3472, allocations: 0.7182 MB / 345.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3473, allocations: 12.03 kB / 345.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.3474, allocations: 59.28 kB / 345.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005046/0.3479, allocations: 302.2 kB / 346.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.915e-05/0.348, allocations: 37 kB / 346.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.3481, allocations: 47.91 kB / 346.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000957/0.3491, allocations: 406.4 kB / 346.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.052e-05/0.3492, allocations: 7.938 kB / 346.6 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.285e-05/0.3492, allocations: 20 kB / 346.6 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.3493, allocations: 8 kB / 346.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009489/0.3502, allocations: 371.9 kB / 346.9 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003299/0.3535, allocations: 1.398 MB / 348.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.3547, allocations: 493.6 kB / 348.8 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008178/0.3555, allocations: 339.2 kB / 349.2 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.887e-05/0.3556, allocations: 8.562 kB / 349.2 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.3556, allocations: 43.5 kB / 349.2 MB, free: 7.508 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 3.961e-06/0.3556, allocations: 0 / 349.2 MB, free: 7.508 MB / 298.7 MB Notification: Performance of matching and sorting (n=103): time 0.008305/0.364, allocations: 2.768 MB / 352 MB, free: 4.656 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.3641, allocations: 60.41 kB / 352 MB, free: 4.586 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/0.3644, allocations: 219.5 kB / 352.2 MB, free: 4.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.385e-05/0.3645, allocations: 41.7 kB / 352.3 MB, free: 4.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.3647, allocations: 247.7 kB / 352.5 MB, free: 4.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.365, allocations: 350.9 kB / 352.9 MB, free: 3.723 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.664e-05/0.3651, allocations: 20 kB / 352.9 MB, free: 3.703 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.3653, allocations: 342.8 kB / 353.2 MB, free: 3.359 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005835/0.3659, allocations: 226 kB / 353.4 MB, free: 3.141 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006771/0.3666, allocations: 297.5 kB / 353.7 MB, free: 2.836 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006337/0.3673, allocations: 252.9 kB / 354 MB, free: 2.594 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.363e-06/0.3673, allocations: 4 kB / 354 MB, free: 2.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001565/0.3688, allocations: 0.6689 MB / 354.7 MB, free: 1.914 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.3689, allocations: 8 kB / 354.7 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.722e-06/0.3689, allocations: 0 / 354.7 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.3689, allocations: 4 kB / 354.7 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.3701, allocations: 227.7 kB / 354.9 MB, free: 1.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/0.3701, allocations: 4 kB / 354.9 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005208/0.3707, allocations: 55.95 kB / 354.9 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.711e-05/0.3708, allocations: 31.98 kB / 355 MB, free: 1.59 MB / 298.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.000221/0.371, allocations: 160.7 kB / 355.1 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.3712, allocations: 59.36 kB / 355.2 MB, free: 1.367 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.3714, allocations: 69.41 kB / 355.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.3714, allocations: 12 kB / 355.3 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.3714, allocations: 7.938 kB / 355.3 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.3714, allocations: 3.984 kB / 355.3 MB, free: 1.277 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1806/0.5521, allocations: 1.904 MB / 357.2 MB, free: 78.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/0.5521, allocations: 7.969 kB / 357.2 MB, free: 78.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.5536, allocations: 212.3 kB / 357.4 MB, free: 78.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.892e-05/0.5536, allocations: 9 kB / 357.4 MB, free: 78.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-05/0.5537, allocations: 29.17 kB / 357.4 MB, free: 78.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.802e-05/0.5538, allocations: 14.47 kB / 357.5 MB, free: 78.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/0.5538, allocations: 10.14 kB / 357.5 MB, free: 78.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.5562, allocations: 1.45 MB / 358.9 MB, free: 77.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003432/0.5566, allocations: 183.3 kB / 359.1 MB, free: 77.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.5567, allocations: 21.88 kB / 359.1 MB, free: 77.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005823/0.5573, allocations: 61.64 kB / 359.2 MB, free: 77.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.5575, allocations: 77.28 kB / 359.3 MB, free: 77.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-05/0.5576, allocations: 32.33 kB / 359.3 MB, free: 77.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002023/0.5578, allocations: 175 kB / 359.5 MB, free: 77.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.5578, allocations: 2.125 kB / 359.5 MB, free: 77.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007005/0.5585, allocations: 156 kB / 359.6 MB, free: 77.57 MB / 298.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.0001833/0.5587, allocations: 139.5 kB / 359.7 MB, free: 77.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.56, allocations: 0.6348 MB / 360.4 MB, free: 77.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.271e-06/0.56, allocations: 0 / 360.4 MB, free: 77.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007403/0.5607, allocations: 396.6 kB / 360.8 MB, free: 77.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007897/0.5616, allocations: 98.98 kB / 360.9 MB, free: 77.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.5641, allocations: 1.295 MB / 362.2 MB, free: 76.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/0.5645, allocations: 0.8803 MB / 363 MB, free: 76.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.5648, allocations: 64.03 kB / 363.1 MB, free: 76.11 MB / 298.7 MB Notification: Performance of SimCode: time 1.862e-06/0.5649, allocations: 4 kB / 363.1 MB, free: 76.11 MB / 298.7 MB Notification: Performance of Templates: time 0.01092/0.5758, allocations: 6.993 MB / 370.1 MB, free: 73.35 MB / 298.7 MB