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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.048/1.048, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.072e-05/2.102e-05, allocations: 0 / 148.2 MB, free: 6.117 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05752/0.05758, allocations: 25.18 MB / 173.4 MB, free: 12.9 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2188/0.2765, allocations: 34.5 MB / 207.9 MB, free: 4.629 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.2768, allocations: 59.62 kB / 207.9 MB, free: 4.629 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03747/0.3143, allocations: 8.651 MB / 216.6 MB, free: 3.23 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3143, allocations: 0 / 216.6 MB, free: 3.23 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.227e-05/0.3144, allocations: 7.75 kB / 216.6 MB, free: 3.23 MB / 170.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.001846/0.3162, allocations: 0.7034 MB / 217.3 MB, free: 2.695 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.3163, allocations: 7.656 kB / 217.3 MB, free: 2.695 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.3165, allocations: 61.59 kB / 217.4 MB, free: 2.66 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004243/0.3169, allocations: 290.2 kB / 217.7 MB, free: 2.406 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.317, allocations: 15.09 kB / 217.7 MB, free: 2.406 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-05/0.3171, allocations: 23.69 kB / 217.7 MB, free: 2.406 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008786/0.318, allocations: 328.5 kB / 218 MB, free: 2.375 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007988/0.3188, allocations: 326.7 kB / 218.3 MB, free: 2.281 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.292e-05/0.3188, allocations: 7.75 kB / 218.3 MB, free: 2.277 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.342e-05/0.3189, allocations: 0 / 218.3 MB, free: 2.277 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3189, allocations: 11.41 kB / 218.4 MB, free: 2.277 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003312/0.3223, allocations: 1.269 MB / 219.6 MB, free: 1.672 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009074/0.3232, allocations: 419.2 kB / 220 MB, free: 1.633 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007867/0.324, allocations: 297.5 kB / 220.3 MB, free: 1.594 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.502e-05/0.3241, allocations: 15.59 kB / 220.3 MB, free: 1.59 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.3242, allocations: 40.94 kB / 220.4 MB, free: 1.547 MB / 170.7 MB Notification: Performance of pre-optimization done (n=62): time 3.676e-06/0.3242, allocations: 0 / 220.4 MB, free: 1.547 MB / 170.7 MB Notification: Performance of matching and sorting (n=98): time 0.00524/0.3294, allocations: 2.129 MB / 222.5 MB, free: 0.6953 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.3295, allocations: 67.72 kB / 222.6 MB, free: 0.6289 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.3298, allocations: 188.2 kB / 222.8 MB, free: 0.5195 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.3298, allocations: 25.7 kB / 222.8 MB, free: 500 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.3299, allocations: 255.2 kB / 223 MB, free: 292 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.3302, allocations: 317.1 kB / 223.3 MB, free: 44 kB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.3302, allocations: 0 / 223.3 MB, free: 44 kB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.3304, allocations: 348.3 kB / 223.7 MB, free: 15.71 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004757/0.3309, allocations: 200 kB / 223.9 MB, free: 15.71 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005408/0.3315, allocations: 268 kB / 224.1 MB, free: 15.66 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.332, allocations: 227.5 kB / 224.4 MB, free: 15.63 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.332, allocations: 4 kB / 224.4 MB, free: 15.62 MB / 186.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001266/0.3333, allocations: 0.5837 MB / 225 MB, free: 15.5 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.3333, allocations: 7.094 kB / 225 MB, free: 15.5 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3333, allocations: 0 / 225 MB, free: 15.5 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.3334, allocations: 7.75 kB / 225 MB, free: 15.5 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.3348, allocations: 212.8 kB / 225.2 MB, free: 15.46 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.309e-05/0.3349, allocations: 7.75 kB / 225.2 MB, free: 15.46 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006312/0.3355, allocations: 39.17 kB / 225.2 MB, free: 15.45 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.071e-05/0.3356, allocations: 29.38 kB / 225.2 MB, free: 15.44 MB / 186.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 (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.0001965/0.3358, allocations: 120.7 kB / 225.4 MB, free: 15.32 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001239/0.3371, allocations: 0.5557 MB / 225.9 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.3372, allocations: 46.91 kB / 226 MB, free: 15.18 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001956/0.3374, allocations: 59.42 kB / 226 MB, free: 15.16 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3374, allocations: 11.62 kB / 226 MB, free: 15.16 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3374, allocations: 0 / 226 MB, free: 15.16 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.3375, allocations: 3.984 kB / 226 MB, free: 15.16 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.3409, allocations: 1.706 MB / 227.7 MB, free: 14.35 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.341, allocations: 3.875 kB / 227.7 MB, free: 14.35 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.3425, allocations: 207.8 kB / 228 MB, free: 14.31 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.911e-05/0.3426, allocations: 11.38 kB / 228 MB, free: 14.31 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.678e-05/0.3427, allocations: 11.77 kB / 228 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.006e-05/0.3427, allocations: 11.69 kB / 228 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.238e-06/0.3427, allocations: 7.875 kB / 228 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003069/0.3458, allocations: 1.332 MB / 229.3 MB, free: 13.56 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004474/0.3463, allocations: 171.2 kB / 229.5 MB, free: 13.43 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.3464, allocations: 7.891 kB / 229.5 MB, free: 13.42 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009616/0.3474, allocations: 46.66 kB / 229.5 MB, free: 13.41 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.3476, allocations: 72.61 kB / 229.6 MB, free: 13.38 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.85e-05/0.3477, allocations: 28.41 kB / 229.6 MB, free: 13.38 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002376/0.348, allocations: 150.8 kB / 229.8 MB, free: 13.29 MB / 186.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.348, allocations: 4 kB / 229.8 MB, free: 13.29 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.00106/0.3491, allocations: 117.8 kB / 229.9 MB, free: 13.29 MB / 186.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 (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.004171/0.3533, allocations: 3.191 MB / 233.1 MB, free: 10.75 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.3552, allocations: 0.5592 MB / 233.7 MB, free: 10.71 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.3552, allocations: 0 / 233.7 MB, free: 10.71 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001182/0.3564, allocations: 355.8 kB / 234 MB, free: 10.67 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.3578, allocations: 77.66 kB / 234.1 MB, free: 10.64 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005163/0.363, allocations: 1.298 MB / 235.4 MB, free: 9.785 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007138/0.3638, allocations: 0.8735 MB / 236.3 MB, free: 9.004 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007273/0.3645, allocations: 188.5 kB / 236.4 MB, free: 8.98 MB / 186.7 MB Notification: Performance of SimCode: time 1.082e-06/0.3645, allocations: 0 / 236.4 MB, free: 8.98 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.666/3.031, allocations: 8.834 MB / 245.3 MB, free: 0.7227 MB / 186.7 MB