Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.144/1.144, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.252e-05/2.246e-05, allocations: 0 / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05777/0.05784, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2315/0.2894, allocations: 33.92 MB / 207.3 MB, free: 4.652 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.2897, allocations: 66.25 kB / 207.4 MB, free: 4.652 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01536/0.3051, allocations: 3.524 MB / 210.9 MB, free: 4.105 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3052, allocations: 0 / 210.9 MB, free: 4.105 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.963e-05/0.3052, allocations: 4.688 kB / 210.9 MB, free: 4.105 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000909/0.3061, allocations: 485.4 kB / 211.4 MB, free: 3.699 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.3062, allocations: 9.594 kB / 211.4 MB, free: 3.699 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.617e-05/0.3063, allocations: 24.56 kB / 211.4 MB, free: 3.688 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.3066, allocations: 213.4 kB / 211.6 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.3066, allocations: 9.438 kB / 211.6 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.597e-05/0.3067, allocations: 21.17 kB / 211.6 MB, free: 3.469 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00038/0.3071, allocations: 111.4 kB / 211.7 MB, free: 3.465 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003917/0.3075, allocations: 146.5 kB / 211.9 MB, free: 3.43 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.671e-05/0.3076, allocations: 9.188 kB / 211.9 MB, free: 3.422 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.3076, allocations: 5.172 kB / 211.9 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.3076, allocations: 8.172 kB / 211.9 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.309, allocations: 0.5524 MB / 212.5 MB, free: 3.145 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004846/0.3095, allocations: 155.7 kB / 212.6 MB, free: 3.113 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.3097, allocations: 79.97 kB / 212.7 MB, free: 3.105 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.3098, allocations: 2.75 kB / 212.7 MB, free: 3.105 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.3098, allocations: 39.09 kB / 212.7 MB, free: 3.062 MB / 170.7 MB Notification: Performance of pre-optimization done (n=22): time 3.336e-06/0.3098, allocations: 0 / 212.7 MB, free: 3.062 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.001544/0.3114, allocations: 0.7141 MB / 213.5 MB, free: 2.574 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.3114, allocations: 55.09 kB / 213.5 MB, free: 2.512 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.3116, allocations: 121.7 kB / 213.6 MB, free: 2.418 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.3116, allocations: 25.7 kB / 213.6 MB, free: 2.387 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.3117, allocations: 202.6 kB / 213.8 MB, free: 2.211 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.406e-05/0.3118, allocations: 85.95 kB / 213.9 MB, free: 2.156 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/0.3118, allocations: 0 / 213.9 MB, free: 2.156 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.537e-05/0.3119, allocations: 321.9 kB / 214.2 MB, free: 1.844 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.3121, allocations: 45.78 kB / 214.3 MB, free: 1.844 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.3122, allocations: 84.64 kB / 214.4 MB, free: 1.809 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.3124, allocations: 64.62 kB / 214.4 MB, free: 1.805 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3124, allocations: 0 / 214.4 MB, free: 1.805 MB / 170.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004553/0.3129, allocations: 186.2 kB / 214.6 MB, free: 1.754 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.3129, allocations: 4.812 kB / 214.6 MB, free: 1.754 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.313, allocations: 5.188 kB / 214.6 MB, free: 1.75 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.679e-05/0.313, allocations: 2.781 kB / 214.6 MB, free: 1.75 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005389/0.3136, allocations: 64.92 kB / 214.7 MB, free: 1.75 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.3136, allocations: 9.219 kB / 214.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.3138, allocations: 10.06 kB / 214.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.3139, allocations: 10.06 kB / 214.7 MB, free: 1.742 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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 9.424e-05/0.314, allocations: 102 kB / 214.8 MB, free: 1.637 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000418/0.3144, allocations: 165.9 kB / 215 MB, free: 1.586 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.858e-05/0.3144, allocations: 19.94 kB / 215 MB, free: 1.574 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.31e-05/0.3145, allocations: 20.97 kB / 215 MB, free: 1.57 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3146, allocations: 5.781 kB / 215 MB, free: 1.566 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3146, allocations: 1.781 kB / 215 MB, free: 1.566 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3146, allocations: 0 / 215 MB, free: 1.566 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.3156, allocations: 0.5499 MB / 215.6 MB, free: 1.238 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.3157, allocations: 1.5 kB / 215.6 MB, free: 1.238 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006546/0.3163, allocations: 76.39 kB / 215.7 MB, free: 1.23 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.3164, allocations: 0 / 215.7 MB, free: 1.23 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.3164, allocations: 3.781 kB / 215.7 MB, free: 1.23 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.768e-06/0.3164, allocations: 0 / 215.7 MB, free: 1.23 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.3165, allocations: 3.75 kB / 215.7 MB, free: 1.23 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000602/0.3171, allocations: 369.2 kB / 216 MB, free: 1.031 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.493e-05/0.3172, allocations: 88.8 kB / 216.1 MB, free: 0.9297 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/0.3172, allocations: 3.875 kB / 216.1 MB, free: 0.9297 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.3175, allocations: 15.31 kB / 216.1 MB, free: 0.9258 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.449e-05/0.3176, allocations: 18.23 kB / 216.1 MB, free: 0.9258 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.3176, allocations: 7.812 kB / 216.2 MB, free: 0.9219 MB / 170.7 MB Notification: Performance of sorting global known variables: time 8.256e-05/0.3177, allocations: 105.8 kB / 216.3 MB, free: 0.8438 MB / 170.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3177, allocations: 0 / 216.3 MB, free: 0.8438 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004507/0.3181, allocations: 41.88 kB / 216.3 MB, free: 0.8438 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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.0009201/0.3191, allocations: 1.04 MB / 217.3 MB, free: 15.98 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003927/0.3195, allocations: 141.9 kB / 217.5 MB, free: 15.97 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3195, allocations: 3.938 kB / 217.5 MB, free: 15.96 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001552/0.3197, allocations: 67.62 kB / 217.5 MB, free: 15.96 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.3203, allocations: 36.33 kB / 217.6 MB, free: 15.96 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.3226, allocations: 0.7289 MB / 218.3 MB, free: 15.46 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.323, allocations: 0.752 MB / 219.1 MB, free: 14.75 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.3232, allocations: 61.69 kB / 219.1 MB, free: 14.75 MB / 186.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3232, allocations: 0 / 219.1 MB, free: 14.75 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.76/3.083, allocations: 3.35 MB / 222.5 MB, free: 13.68 MB / 186.7 MB