Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.0003602, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08139/0.08178, allocations: 44.51 MB / 308.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004123/0.08595, allocations: 2.773 MB / 311.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002025/0.08802, allocations: 0.8778 MB / 312 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002678/0.08833, allocations: 11.94 kB / 312 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.08848, allocations: 63.47 kB / 312.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004365/0.08893, allocations: 171.5 kB / 312.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004799/0.08942, allocations: 115.8 kB / 312.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000608/0.09005, allocations: 403.7 kB / 312.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003395/0.0904, allocations: 154.1 kB / 312.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003271/0.09075, allocations: 187.3 kB / 313.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003517/0.09112, allocations: 243 kB / 313.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.551e-05/0.09121, allocations: 28 kB / 313.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.45e-05/0.09131, allocations: 28 kB / 313.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.09143, allocations: 87.66 kB / 313.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.09158, allocations: 113.5 kB / 313.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005755/0.09217, allocations: 438.9 kB / 314 MB, free: 11.35 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.588e-06/0.09218, allocations: 0 / 314 MB, free: 11.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.0922, allocations: 0 / 314 MB, free: 11.35 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.882e-06/0.09222, allocations: 0 / 314 MB, free: 11.35 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001805/0.09403, allocations: 0.8028 MB / 314.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.09408, allocations: 8.031 kB / 314.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.09424, allocations: 55.39 kB / 314.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.09477, allocations: 314.1 kB / 315.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.203e-05/0.09485, allocations: 37 kB / 315.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.09499, allocations: 51.94 kB / 315.3 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.09626, allocations: 462.4 kB / 315.7 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.807e-05/0.09632, allocations: 19.89 kB / 315.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.653e-05/0.09639, allocations: 16 kB / 315.7 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.09642, allocations: 12 kB / 315.8 MB, free: 9.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.0979, allocations: 487.7 kB / 316.2 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.1012, allocations: 1.398 MB / 317.6 MB, free: 7.562 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/0.1026, allocations: 0.5366 MB / 318.2 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.044e-05/0.1027, allocations: 8.562 kB / 318.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.1028, allocations: 47.12 kB / 318.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 3.869e-06/0.1028, allocations: 0 / 318.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=103): time 0.01021/0.113, allocations: 3.289 MB / 321.5 MB, free: 3.586 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.1131, allocations: 64.41 kB / 321.6 MB, free: 3.512 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003706/0.1135, allocations: 247 kB / 321.8 MB, free: 3.262 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.202e-05/0.1136, allocations: 37.7 kB / 321.9 MB, free: 3.219 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.1138, allocations: 251.7 kB / 322.1 MB, free: 2.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003753/0.1142, allocations: 354.8 kB / 322.4 MB, free: 2.617 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.529e-05/0.1142, allocations: 20 kB / 322.5 MB, free: 2.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.1145, allocations: 342.8 kB / 322.8 MB, free: 2.254 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008674/0.1154, allocations: 285.9 kB / 323.1 MB, free: 1.973 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009208/0.1163, allocations: 361.4 kB / 323.4 MB, free: 1.609 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009433/0.1173, allocations: 322.9 kB / 323.7 MB, free: 1.297 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.1173, allocations: 0 / 323.7 MB, free: 1.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002138/0.1194, allocations: 0.7901 MB / 324.5 MB, free: 0.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.1195, allocations: 8.922 kB / 324.5 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1195, allocations: 0 / 324.5 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.1195, allocations: 8 kB / 324.6 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.1208, allocations: 215.7 kB / 324.8 MB, free: 280 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.1209, allocations: 4 kB / 324.8 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000479/0.1214, allocations: 59.97 kB / 324.8 MB, free: 216 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.389e-05/0.1214, allocations: 31.98 kB / 324.9 MB, free: 184 kB / 266.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.0003845/0.1218, allocations: 193.8 kB / 325 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.122, allocations: 59.3 kB / 325.1 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/0.1222, allocations: 69.39 kB / 325.2 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.1223, allocations: 12 kB / 325.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.1223, allocations: 0 / 325.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.1223, allocations: 11.81 kB / 325.2 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004543/0.1269, allocations: 2.018 MB / 327.2 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.1269, allocations: 8 kB / 327.2 MB, free: 13.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.1281, allocations: 211.7 kB / 327.4 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-05/0.1281, allocations: 8 kB / 327.4 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.967e-05/0.1282, allocations: 35.94 kB / 327.5 MB, free: 13.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.35e-05/0.1282, allocations: 15.94 kB / 327.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.475e-06/0.1283, allocations: 4 kB / 327.5 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003323/0.1316, allocations: 1.407 MB / 328.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/0.1318, allocations: 136.4 kB / 329 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.1319, allocations: 20 kB / 329 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005486/0.1325, allocations: 67.91 kB / 329.1 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.1327, allocations: 72.86 kB / 329.2 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-05/0.1328, allocations: 35.94 kB / 329.2 MB, free: 11.6 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002348/0.133, allocations: 174 kB / 329.4 MB, free: 11.43 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.78e-07/0.133, allocations: 0 / 329.4 MB, free: 11.43 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007082/0.1337, allocations: 156 kB / 329.5 MB, free: 11.28 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.0002095/0.134, allocations: 139 kB / 329.7 MB, free: 11.13 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.1361, allocations: 0.7504 MB / 330.4 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.004e-06/0.1361, allocations: 4.125 kB / 330.4 MB, free: 10.37 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.1373, allocations: 458.5 kB / 330.9 MB, free: 9.926 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008136/0.1381, allocations: 100.8 kB / 331 MB, free: 9.824 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/0.1419, allocations: 1.862 MB / 332.8 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006782/0.1426, allocations: 0.8813 MB / 333.7 MB, free: 6.965 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003391/0.143, allocations: 67.41 kB / 333.8 MB, free: 6.898 MB / 282.7 MB Notification: Performance of SimCode: time 2.116e-06/0.143, allocations: 0 / 333.8 MB, free: 6.898 MB / 282.7 MB Notification: Performance of Templates: time 0.01453/0.1575, allocations: 7 MB / 340.8 MB, free: 15.89 MB / 298.7 MB