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.755/1.755, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 12 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07304/0.07342, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004058/0.07752, allocations: 2.776 MB / 274.7 MB, free: 9.395 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.07944, allocations: 0.8732 MB / 275.6 MB, free: 8.516 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.07974, allocations: 11.94 kB / 275.6 MB, free: 8.504 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.07988, allocations: 51.59 kB / 275.6 MB, free: 8.453 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004145/0.0803, allocations: 175.5 kB / 275.8 MB, free: 8.281 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.08077, allocations: 119.8 kB / 275.9 MB, free: 8.164 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006001/0.08138, allocations: 407.6 kB / 276.3 MB, free: 7.766 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003151/0.08171, allocations: 154 kB / 276.5 MB, free: 7.613 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.08207, allocations: 199.3 kB / 276.7 MB, free: 7.418 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003494/0.08243, allocations: 235 kB / 276.9 MB, free: 7.188 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.08252, allocations: 31.98 kB / 276.9 MB, free: 7.156 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.08266, allocations: 24 kB / 277 MB, free: 7.133 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.08278, allocations: 83.67 kB / 277 MB, free: 7.051 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.08294, allocations: 113.5 kB / 277.1 MB, free: 6.934 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005721/0.08352, allocations: 439 kB / 277.6 MB, free: 6.504 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.867e-06/0.08354, allocations: 0 / 277.6 MB, free: 6.504 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.877e-06/0.08355, allocations: 4 kB / 277.6 MB, free: 6.5 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.08358, allocations: 4 kB / 277.6 MB, free: 6.496 MB / 234.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.001832/0.08542, allocations: 0.7874 MB / 278.4 MB, free: 5.656 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.08547, allocations: 8.031 kB / 278.4 MB, free: 5.648 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.08562, allocations: 63.34 kB / 278.4 MB, free: 5.586 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005303/0.08616, allocations: 318 kB / 278.8 MB, free: 5.23 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.821e-05/0.08624, allocations: 37 kB / 278.8 MB, free: 5.195 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.08635, allocations: 44 kB / 278.8 MB, free: 5.152 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.08765, allocations: 474.3 kB / 279.3 MB, free: 4.684 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.248e-05/0.08771, allocations: 7.906 kB / 279.3 MB, free: 4.676 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.272e-05/0.08778, allocations: 16 kB / 279.3 MB, free: 4.66 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.08781, allocations: 12 kB / 279.3 MB, free: 4.648 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.08934, allocations: 495.7 kB / 279.8 MB, free: 4.164 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003294/0.09265, allocations: 1.39 MB / 281.2 MB, free: 2.715 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.09407, allocations: 0.5522 MB / 281.8 MB, free: 2.156 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.709e-05/0.09416, allocations: 12.52 kB / 281.8 MB, free: 2.145 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.0942, allocations: 43.12 kB / 281.8 MB, free: 2.094 MB / 234.7 MB Notification: Performance of pre-optimization done (n=67): time 4.132e-06/0.09422, allocations: 0 / 281.8 MB, free: 2.094 MB / 234.7 MB Notification: Performance of matching and sorting (n=103): time 0.01051/0.1047, allocations: 3.289 MB / 285.1 MB, free: 14.73 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/0.1048, allocations: 64.41 kB / 285.2 MB, free: 14.65 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003656/0.1052, allocations: 251 kB / 285.4 MB, free: 14.4 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.88e-05/0.1053, allocations: 37.7 kB / 285.4 MB, free: 14.36 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.1055, allocations: 247.7 kB / 285.7 MB, free: 14.11 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003645/0.1059, allocations: 350.9 kB / 286 MB, free: 13.76 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.243e-05/0.106, allocations: 16 kB / 286 MB, free: 13.75 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002106/0.1062, allocations: 342.8 kB / 286.4 MB, free: 13.4 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009287/0.1071, allocations: 289.8 kB / 286.7 MB, free: 13.12 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009603/0.1081, allocations: 357.4 kB / 287 MB, free: 12.76 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009408/0.1091, allocations: 322.9 kB / 287.3 MB, free: 12.45 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.561e-06/0.1091, allocations: 0 / 287.3 MB, free: 12.45 MB / 250.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002196/0.1113, allocations: 0.7976 MB / 288.1 MB, free: 11.64 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.1114, allocations: 8.062 kB / 288.1 MB, free: 11.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.1114, allocations: 4 kB / 288.1 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.1114, allocations: 4 kB / 288.1 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.1126, allocations: 219.6 kB / 288.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.1126, allocations: 4 kB / 288.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004826/0.1131, allocations: 55.97 kB / 288.4 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/0.1132, allocations: 31.98 kB / 288.4 MB, free: 11.32 MB / 250.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.0003603/0.1136, allocations: 193.7 kB / 288.6 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.1137, allocations: 59.34 kB / 288.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.1139, allocations: 69.39 kB / 288.8 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.1139, allocations: 12 kB / 288.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.114, allocations: 3.953 kB / 288.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.114, allocations: 7.969 kB / 288.8 MB, free: 10.97 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004639/0.1186, allocations: 2.025 MB / 290.8 MB, free: 8.836 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.732e-05/0.1187, allocations: 8 kB / 290.8 MB, free: 8.828 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/0.1199, allocations: 212.1 kB / 291 MB, free: 8.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.859e-05/0.1199, allocations: 12 kB / 291 MB, free: 8.609 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.393e-05/0.12, allocations: 24 kB / 291.1 MB, free: 8.586 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.882e-05/0.12, allocations: 15.92 kB / 291.1 MB, free: 8.57 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.87e-06/0.1201, allocations: 4 kB / 291.1 MB, free: 8.566 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003359/0.1234, allocations: 1.411 MB / 292.5 MB, free: 7.082 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003724/0.1238, allocations: 180.4 kB / 292.7 MB, free: 6.887 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.124, allocations: 23.98 kB / 292.7 MB, free: 6.863 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005507/0.1245, allocations: 59.97 kB / 292.7 MB, free: 6.805 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.1247, allocations: 76.8 kB / 292.8 MB, free: 6.727 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.567e-05/0.1248, allocations: 31.98 kB / 292.9 MB, free: 6.695 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002436/0.125, allocations: 181.9 kB / 293 MB, free: 6.516 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.3e-07/0.125, allocations: 4 kB / 293 MB, free: 6.512 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0007/0.1258, allocations: 152 kB / 293.2 MB, free: 6.363 MB / 250.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.0002074/0.126, allocations: 138.8 kB / 293.3 MB, free: 6.219 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002102/0.1281, allocations: 0.7504 MB / 294.1 MB, free: 5.469 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.463e-06/0.1281, allocations: 3.938 kB / 294.1 MB, free: 5.465 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.1293, allocations: 458.7 kB / 294.5 MB, free: 5.02 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008191/0.1302, allocations: 110.2 kB / 294.6 MB, free: 4.91 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003695/0.1339, allocations: 1.866 MB / 296.5 MB, free: 2.953 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006473/0.1346, allocations: 0.8813 MB / 297.4 MB, free: 2.039 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/0.1349, allocations: 67.41 kB / 297.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of SimCode: time 1.568e-06/0.135, allocations: 0 / 297.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of Templates: time 0.1884/0.3233, allocations: 6.989 MB / 304.4 MB, free: 29.11 MB / 250.7 MB