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.FirstGrounded.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.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.091/1.091, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003541, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05771/0.05811, allocations: 25.16 MB / 183.6 MB, free: 5.867 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2201/0.2782, allocations: 34.8 MB / 218.4 MB, free: 6.141 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/0.2785, allocations: 62.75 kB / 218.5 MB, free: 6.133 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01293/0.2914, allocations: 3.425 MB / 221.9 MB, free: 4.789 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.2915, allocations: 0 / 221.9 MB, free: 4.789 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.2915, allocations: 7.781 kB / 221.9 MB, free: 4.785 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000807/0.2923, allocations: 491.7 kB / 222.4 MB, free: 4.344 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.2924, allocations: 7.688 kB / 222.4 MB, free: 4.344 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.2925, allocations: 60.91 kB / 222.4 MB, free: 4.293 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.489e-05/0.2926, allocations: 23.03 kB / 222.5 MB, free: 4.281 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.2929, allocations: 219.6 kB / 222.7 MB, free: 4.059 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.2929, allocations: 15.06 kB / 222.7 MB, free: 4.059 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.853e-05/0.293, allocations: 23.61 kB / 222.7 MB, free: 4.059 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004885/0.2935, allocations: 202.9 kB / 222.9 MB, free: 3.973 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.493e-05/0.2935, allocations: 3.906 kB / 222.9 MB, free: 3.969 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.2936, allocations: 14.55 kB / 222.9 MB, free: 3.965 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2936, allocations: 3.812 kB / 222.9 MB, free: 3.965 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000366/0.294, allocations: 126.8 kB / 223.1 MB, free: 3.941 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.2953, allocations: 0.6958 MB / 223.8 MB, free: 3.453 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.2957, allocations: 135.3 kB / 223.9 MB, free: 3.414 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.2957, allocations: 3.906 kB / 223.9 MB, free: 3.414 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.2957, allocations: 42.3 kB / 223.9 MB, free: 3.367 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 3.166e-06/0.2958, allocations: 3.938 kB / 223.9 MB, free: 3.363 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.002143/0.2979, allocations: 0.8703 MB / 224.8 MB, free: 2.82 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.298, allocations: 55.06 kB / 224.9 MB, free: 2.758 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.2982, allocations: 159.4 kB / 225 MB, free: 2.641 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.2982, allocations: 32.2 kB / 225 MB, free: 2.609 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.67e-05/0.2983, allocations: 203.6 kB / 225.2 MB, free: 2.43 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.942e-05/0.2984, allocations: 83.69 kB / 225.3 MB, free: 2.371 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.531e-05/0.2984, allocations: 6.938 kB / 225.3 MB, free: 2.371 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.28e-05/0.2985, allocations: 313.6 kB / 225.6 MB, free: 2.059 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.2987, allocations: 57.28 kB / 225.7 MB, free: 2.051 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.2989, allocations: 100.5 kB / 225.8 MB, free: 1.992 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.2991, allocations: 65.66 kB / 225.9 MB, free: 1.992 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2991, allocations: 0 / 225.9 MB, free: 1.992 MB / 170.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006264/0.2997, allocations: 241.4 kB / 226.1 MB, free: 1.906 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.2998, allocations: 7.625 kB / 226.1 MB, free: 1.906 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2998, allocations: 0 / 226.1 MB, free: 1.906 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002318/0.3, allocations: 38.67 kB / 226.1 MB, free: 1.891 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003412/0.3004, allocations: 53.84 kB / 226.2 MB, free: 1.875 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.3017, allocations: 1.388 MB / 227.6 MB, free: 0.5664 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.3019, allocations: 15.39 kB / 227.6 MB, free: 0.5586 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.3019, allocations: 10.84 kB / 227.6 MB, free: 0.5586 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.3021, allocations: 138.8 kB / 227.7 MB, free: 444 kB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.3022, allocations: 20 kB / 227.8 MB, free: 436 kB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.515e-05/0.3022, allocations: 26.64 kB / 227.8 MB, free: 424 kB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3022, allocations: 0 / 227.8 MB, free: 424 kB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.3023, allocations: 7.594 kB / 227.8 MB, free: 420 kB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3023, allocations: 0 / 227.8 MB, free: 420 kB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.3035, allocations: 0.6391 MB / 228.4 MB, free: 15.96 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3035, allocations: 4.062 kB / 228.4 MB, free: 15.96 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.3039, allocations: 46.97 kB / 228.5 MB, free: 15.95 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001804/0.3041, allocations: 36.58 kB / 228.5 MB, free: 15.93 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.3041, allocations: 3 kB / 228.5 MB, free: 15.93 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/0.3057, allocations: 1.394 MB / 229.9 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3058, allocations: 3.938 kB / 229.9 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008686/0.3066, allocations: 434.6 kB / 230.3 MB, free: 14.38 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.3068, allocations: 99.73 kB / 230.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.3068, allocations: 10.98 kB / 230.4 MB, free: 14.26 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.307, allocations: 14.45 kB / 230.5 MB, free: 14.25 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.367e-05/0.3071, allocations: 14.55 kB / 230.5 MB, free: 14.25 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.3071, allocations: 7.281 kB / 230.5 MB, free: 14.25 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001471/0.3073, allocations: 132 kB / 230.6 MB, free: 14.16 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3073, allocations: 0 / 230.6 MB, free: 14.16 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004575/0.3078, allocations: 53.41 kB / 230.7 MB, free: 14.16 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001305/0.3091, allocations: 1.103 MB / 231.8 MB, free: 13.25 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007723/0.3099, allocations: 283.3 kB / 232 MB, free: 13.11 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.3099, allocations: 0 / 232 MB, free: 13.11 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004492/0.3104, allocations: 216.8 kB / 232.3 MB, free: 12.98 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004875/0.3109, allocations: 34.12 kB / 232.3 MB, free: 12.97 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.3143, allocations: 2.118 MB / 234.4 MB, free: 11.37 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.3148, allocations: 0.752 MB / 235.2 MB, free: 10.63 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.315, allocations: 65.09 kB / 235.2 MB, free: 10.62 MB / 186.7 MB Notification: Performance of SimCode: time 1.022e-06/0.315, allocations: 1.25 kB / 235.2 MB, free: 10.62 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.677/2.992, allocations: 4.195 MB / 239.4 MB, free: 6.734 MB / 186.7 MB