Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.355/1.355, allocations: 111.2 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003593, allocations: 7.984 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05885/0.05926, allocations: 25.17 MB / 183.5 MB, free: 5.922 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004335/0.06364, allocations: 2.439 MB / 185.9 MB, free: 3.48 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.06588, allocations: 0.7604 MB / 186.7 MB, free: 2.715 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003718/0.0663, allocations: 4 kB / 186.7 MB, free: 2.711 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.06647, allocations: 51.55 kB / 186.8 MB, free: 2.66 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004982/0.06698, allocations: 151.6 kB / 186.9 MB, free: 2.512 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006171/0.06761, allocations: 111.8 kB / 187 MB, free: 2.402 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009052/0.06853, allocations: 383.7 kB / 187.4 MB, free: 2.027 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000402/0.06896, allocations: 149.8 kB / 187.5 MB, free: 1.879 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004608/0.06944, allocations: 195.2 kB / 187.7 MB, free: 1.688 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004138/0.06987, allocations: 219.1 kB / 187.9 MB, free: 1.473 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 9.032e-05/0.06998, allocations: 28 kB / 188 MB, free: 1.445 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.07011, allocations: 24 kB / 188 MB, free: 1.422 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.07024, allocations: 87.66 kB / 188.1 MB, free: 1.336 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.0704, allocations: 109.5 kB / 188.2 MB, free: 1.223 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006686/0.07108, allocations: 414.8 kB / 188.6 MB, free: 0.8164 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.07111, allocations: 4 kB / 188.6 MB, free: 0.8125 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.07112, allocations: 0 / 188.6 MB, free: 0.8125 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.07115, allocations: 0 / 188.6 MB, free: 0.8125 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002557/0.07371, allocations: 0.7758 MB / 189.4 MB, free: 15.98 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/0.07379, allocations: 8.031 kB / 189.4 MB, free: 15.98 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000193/0.074, allocations: 90.47 kB / 189.5 MB, free: 15.88 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.07417, allocations: 51.34 kB / 189.5 MB, free: 15.83 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000561/0.07474, allocations: 297.3 kB / 189.8 MB, free: 15.5 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.724e-05/0.07483, allocations: 37 kB / 189.8 MB, free: 15.47 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.07497, allocations: 40 kB / 189.9 MB, free: 15.43 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.07661, allocations: 454.3 kB / 190.3 MB, free: 14.98 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.236e-05/0.07669, allocations: 7.906 kB / 190.3 MB, free: 14.97 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-05/0.07678, allocations: 19.98 kB / 190.4 MB, free: 14.95 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.0768, allocations: 12 kB / 190.4 MB, free: 14.94 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.07876, allocations: 471.6 kB / 190.8 MB, free: 14.48 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004006/0.08281, allocations: 1.347 MB / 192.2 MB, free: 13.07 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/0.0845, allocations: 0.5122 MB / 192.7 MB, free: 12.54 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.476e-05/0.08462, allocations: 12.55 kB / 192.7 MB, free: 12.53 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.08468, allocations: 47.06 kB / 192.7 MB, free: 12.47 MB / 170.7 MB Notification: Performance of pre-optimization done (n=62): time 3.567e-06/0.08469, allocations: 0 / 192.7 MB, free: 12.47 MB / 170.7 MB Notification: Performance of matching and sorting (n=98): time 0.01417/0.09887, allocations: 3.181 MB / 195.9 MB, free: 9.215 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.099, allocations: 60.41 kB / 196 MB, free: 9.145 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004111/0.09942, allocations: 250.6 kB / 196.2 MB, free: 8.891 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.09959, allocations: 41.7 kB / 196.3 MB, free: 8.844 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.09979, allocations: 239.8 kB / 196.5 MB, free: 8.609 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000386/0.1002, allocations: 331 kB / 196.8 MB, free: 8.281 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.368e-05/0.1003, allocations: 20 kB / 196.8 MB, free: 8.262 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1004, allocations: 346.7 kB / 197.2 MB, free: 7.914 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.1016, allocations: 277.9 kB / 197.5 MB, free: 7.645 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.1028, allocations: 349.4 kB / 197.8 MB, free: 7.297 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.1041, allocations: 306.9 kB / 198.1 MB, free: 6.996 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1041, allocations: 0 / 198.1 MB, free: 6.996 MB / 170.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002675/0.1068, allocations: 0.7549 MB / 198.9 MB, free: 6.234 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.1069, allocations: 8 kB / 198.9 MB, free: 6.227 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.1069, allocations: 0 / 198.9 MB, free: 6.227 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.757e-05/0.107, allocations: 4 kB / 198.9 MB, free: 6.223 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/0.1086, allocations: 211.7 kB / 199.1 MB, free: 6.016 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.58e-05/0.1086, allocations: 4 kB / 199.1 MB, free: 6.012 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007446/0.1094, allocations: 63.95 kB / 199.1 MB, free: 5.949 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.601e-05/0.1095, allocations: 27.95 kB / 199.2 MB, free: 5.922 MB / 170.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 (108): * Single equations (assignments): 108 * 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.0004114/0.1099, allocations: 209.3 kB / 199.4 MB, free: 5.707 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001657/0.1101, allocations: 55.34 kB / 199.4 MB, free: 5.652 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002146/0.1103, allocations: 65.28 kB / 199.5 MB, free: 5.586 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.1104, allocations: 8 kB / 199.5 MB, free: 5.578 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/0.1104, allocations: 3.984 kB / 199.5 MB, free: 5.574 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/0.1104, allocations: 7.969 kB / 199.5 MB, free: 5.566 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005541/0.116, allocations: 1.954 MB / 201.5 MB, free: 3.496 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/0.116, allocations: 8 kB / 201.5 MB, free: 3.488 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.1177, allocations: 200.1 kB / 201.7 MB, free: 3.293 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.757e-05/0.1177, allocations: 19.98 kB / 201.7 MB, free: 3.273 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.1179, allocations: 20 kB / 201.7 MB, free: 3.254 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.818e-05/0.1179, allocations: 11.94 kB / 201.7 MB, free: 3.242 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-05/0.1179, allocations: 11.98 kB / 201.7 MB, free: 3.23 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004102/0.122, allocations: 1.361 MB / 203.1 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004318/0.1225, allocations: 176.4 kB / 203.3 MB, free: 1.605 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.1227, allocations: 27.98 kB / 203.3 MB, free: 1.578 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007236/0.1234, allocations: 59.97 kB / 203.3 MB, free: 1.52 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.1236, allocations: 72.45 kB / 203.4 MB, free: 1.449 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.127e-05/0.1237, allocations: 28 kB / 203.4 MB, free: 1.422 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002613/0.124, allocations: 170 kB / 203.6 MB, free: 1.254 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.124, allocations: 11.94 kB / 203.6 MB, free: 1.242 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007959/0.1248, allocations: 148 kB / 203.8 MB, free: 1.094 MB / 170.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 (98): * Single equations (assignments): 98 * 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.1742/0.299, allocations: 1.926 MB / 205.7 MB, free: 23.27 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.3017, allocations: 0.7184 MB / 206.4 MB, free: 23.26 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.3018, allocations: 0.75 kB / 206.4 MB, free: 23.26 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.3031, allocations: 446 kB / 206.8 MB, free: 23.24 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000984/0.3041, allocations: 91.75 kB / 206.9 MB, free: 23.24 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009283/0.3135, allocations: 3.64 MB / 210.6 MB, free: 21.34 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005105/0.314, allocations: 0.8727 MB / 211.4 MB, free: 20.63 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005813/0.3146, allocations: 198.5 kB / 211.6 MB, free: 20.5 MB / 170.7 MB Notification: Performance of SimCode: time 1.352e-06/0.3146, allocations: 0 / 211.6 MB, free: 20.5 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.754/3.068, allocations: 8.767 MB / 220.4 MB, free: 16.17 MB / 170.7 MB