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.PreLoad.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.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.659/1.659, allocations: 171.1 MB / 187.3 MB, free: 1.055 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004756/0.0004759, allocations: 11.98 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08368/0.08419, allocations: 38.77 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3428/0.427, allocations: 68.28 MB / 340.8 MB, free: 5.68 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.4273, allocations: 70.41 kB / 340.9 MB, free: 5.645 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04073/0.4681, allocations: 9.114 MB / 350 MB, free: 13.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4681, allocations: 0 / 350 MB, free: 13.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.804e-05/0.4682, allocations: 8 kB / 350 MB, free: 13.98 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.002061/0.4702, allocations: 0.7602 MB / 350.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.4703, allocations: 12.03 kB / 350.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.4705, allocations: 55.34 kB / 350.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005159/0.471, allocations: 312.6 kB / 351.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.915e-05/0.4711, allocations: 34.5 kB / 351.2 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.4712, allocations: 49.5 kB / 351.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.4727, allocations: 461.5 kB / 351.7 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.991e-05/0.4728, allocations: 11.22 kB / 351.7 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.41e-05/0.4729, allocations: 26.05 kB / 351.7 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.4729, allocations: 12 kB / 351.7 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.4748, allocations: 490.1 kB / 352.2 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003752/0.4785, allocations: 1.403 MB / 353.6 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.4802, allocations: 0.5508 MB / 354.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-05/0.4803, allocations: 8.562 kB / 354.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.4803, allocations: 45.81 kB / 354.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=67): time 3.276e-06/0.4803, allocations: 0 / 354.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=103): time 0.01355/0.4939, allocations: 3.275 MB / 357.5 MB, free: 7.875 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.494, allocations: 64.41 kB / 357.6 MB, free: 7.797 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.4944, allocations: 245.5 kB / 357.8 MB, free: 7.594 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.114e-05/0.4945, allocations: 41.39 kB / 357.8 MB, free: 7.559 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.4946, allocations: 256.7 kB / 358.1 MB, free: 7.344 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000373/0.495, allocations: 345.1 kB / 358.4 MB, free: 7.047 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.539e-05/0.4951, allocations: 22.12 kB / 358.4 MB, free: 7.039 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4952, allocations: 345 kB / 358.8 MB, free: 6.707 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.4963, allocations: 287.7 kB / 359.1 MB, free: 6.512 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.4974, allocations: 364.1 kB / 359.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.4985, allocations: 316.1 kB / 359.7 MB, free: 6.047 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4985, allocations: 0 / 359.7 MB, free: 6.047 MB / 282.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002503/0.5011, allocations: 0.796 MB / 360.5 MB, free: 5.465 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.5011, allocations: 4 kB / 360.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.5011, allocations: 0 / 360.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.124e-05/0.5012, allocations: 7.953 kB / 360.5 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/0.5027, allocations: 222.9 kB / 360.8 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.913e-05/0.5028, allocations: 4 kB / 360.8 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007092/0.5035, allocations: 58.28 kB / 360.8 MB, free: 5.195 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.094e-05/0.5036, allocations: 30.92 kB / 360.8 MB, free: 5.172 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 () * Number of clocked 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.0003794/0.504, allocations: 203.4 kB / 361 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.5042, allocations: 47.44 kB / 361.1 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.5044, allocations: 71.83 kB / 361.2 MB, free: 4.938 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.906e-05/0.5044, allocations: 15.95 kB / 361.2 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.5044, allocations: 0 / 361.2 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.5044, allocations: 11.97 kB / 361.2 MB, free: 4.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005102/0.5096, allocations: 2.019 MB / 363.2 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.5096, allocations: 4 kB / 363.2 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.5113, allocations: 219 kB / 363.4 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.112e-05/0.5114, allocations: 8 kB / 363.4 MB, free: 3.047 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.541e-05/0.5115, allocations: 28.81 kB / 363.5 MB, free: 3.031 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.032e-05/0.5115, allocations: 15.97 kB / 363.5 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/0.5115, allocations: 11.89 kB / 363.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003962/0.5155, allocations: 1.407 MB / 364.9 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003835/0.5159, allocations: 175.3 kB / 365.1 MB, free: 1.715 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.5161, allocations: 30.61 kB / 365.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000706/0.5168, allocations: 55.66 kB / 365.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.517, allocations: 79.73 kB / 365.2 MB, free: 1.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.732e-05/0.5171, allocations: 35.73 kB / 365.3 MB, free: 1.559 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002558/0.5173, allocations: 173.2 kB / 365.4 MB, free: 1.418 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.336e-06/0.5174, allocations: 0 / 365.4 MB, free: 1.418 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007689/0.5181, allocations: 158.9 kB / 365.6 MB, free: 1.289 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 () * Number of clocked 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.0002295/0.5184, allocations: 146.1 kB / 365.7 MB, free: 1.148 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002633/0.521, allocations: 0.7515 MB / 366.5 MB, free: 0.582 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/0.5211, allocations: 8.062 kB / 366.5 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.5226, allocations: 457.8 kB / 366.9 MB, free: 236 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.5238, allocations: 103.6 kB / 367 MB, free: 156 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004762/0.5286, allocations: 1.867 MB / 368.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006177/0.5293, allocations: 0.8852 MB / 369.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004419/0.5298, allocations: 63.3 kB / 369.8 MB, free: 13.37 MB / 298.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5298, allocations: 0 / 369.8 MB, free: 13.37 MB / 298.7 MB Notification: Performance of Templates: time 0.01902/0.5488, allocations: 6.974 MB / 376.8 MB, free: 6.469 MB / 298.7 MB