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.143/1.143, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.057e-05, allocations: 0 / 154.4 MB, free: 13.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2409, allocations: 25.16 MB / 179.5 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06982/0.3108, allocations: 34.71 MB / 214.2 MB, free: 14.39 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.3111, allocations: 59.97 kB / 214.3 MB, free: 14.34 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01493/0.3261, allocations: 3.439 MB / 217.7 MB, free: 10.89 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3261, allocations: 3.938 kB / 217.7 MB, free: 10.88 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.988e-05/0.3262, allocations: 4 kB / 217.7 MB, free: 10.88 MB / 186.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.0007913/0.327, allocations: 466.4 kB / 218.2 MB, free: 10.38 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.327, allocations: 12.03 kB / 218.2 MB, free: 10.37 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.705e-05/0.3271, allocations: 54.55 kB / 218.3 MB, free: 10.3 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.984e-05/0.3272, allocations: 23.72 kB / 218.3 MB, free: 10.28 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.3276, allocations: 227.4 kB / 218.5 MB, free: 10.02 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.868e-05/0.3276, allocations: 16.44 kB / 218.5 MB, free: 10 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.622e-05/0.3277, allocations: 20 kB / 218.5 MB, free: 9.98 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000493/0.3282, allocations: 193.8 kB / 218.7 MB, free: 9.781 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.3283, allocations: 7.906 kB / 218.7 MB, free: 9.773 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.3283, allocations: 11.95 kB / 218.7 MB, free: 9.762 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.3283, allocations: 4 kB / 218.7 MB, free: 9.758 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.3287, allocations: 109.7 kB / 218.9 MB, free: 9.648 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.3302, allocations: 0.6938 MB / 219.5 MB, free: 8.898 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.3306, allocations: 130.5 kB / 219.7 MB, free: 8.762 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.3307, allocations: 64.84 kB / 219.7 MB, free: 8.695 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.3308, allocations: 4 kB / 219.7 MB, free: 8.691 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.3308, allocations: 30.56 kB / 219.8 MB, free: 8.652 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 3.357e-06/0.3308, allocations: 4 kB / 219.8 MB, free: 8.648 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.002011/0.3329, allocations: 0.7895 MB / 220.6 MB, free: 7.77 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.3329, allocations: 55.41 kB / 220.6 MB, free: 7.703 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.3332, allocations: 157.8 kB / 220.8 MB, free: 7.539 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.3332, allocations: 33.7 kB / 220.8 MB, free: 7.5 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.3334, allocations: 202.8 kB / 221 MB, free: 7.297 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.06e-05/0.3335, allocations: 82.75 kB / 221.1 MB, free: 7.215 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/0.3335, allocations: 4 kB / 221.1 MB, free: 7.211 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3336, allocations: 322.8 kB / 221.4 MB, free: 6.887 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.3338, allocations: 44 kB / 221.4 MB, free: 6.844 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.334, allocations: 85.28 kB / 221.5 MB, free: 6.746 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.3342, allocations: 63.97 kB / 221.6 MB, free: 6.684 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3342, allocations: 4 kB / 221.6 MB, free: 6.68 MB / 186.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006124/0.3348, allocations: 218.1 kB / 221.8 MB, free: 6.457 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.3349, allocations: 15.92 kB / 221.8 MB, free: 6.441 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3349, allocations: 4.125 kB / 221.8 MB, free: 6.438 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/0.3351, allocations: 36.77 kB / 221.9 MB, free: 6.398 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.3355, allocations: 51.97 kB / 221.9 MB, free: 6.348 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001633/0.3372, allocations: 1.382 MB / 223.3 MB, free: 4.828 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.3374, allocations: 8 kB / 223.3 MB, free: 4.82 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.3375, allocations: 8 kB / 223.3 MB, free: 4.812 MB / 186.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 () * 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.0001233/0.3376, allocations: 116.9 kB / 223.4 MB, free: 4.691 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.18e-05/0.3377, allocations: 19.81 kB / 223.4 MB, free: 4.672 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.751e-05/0.3378, allocations: 29.7 kB / 223.5 MB, free: 4.641 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.3378, allocations: 4 kB / 223.5 MB, free: 4.637 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3378, allocations: 3.938 kB / 223.5 MB, free: 4.633 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3378, allocations: 0 / 223.5 MB, free: 4.633 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.3391, allocations: 0.6266 MB / 224.1 MB, free: 3.938 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.3391, allocations: 4 kB / 224.1 MB, free: 3.934 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004214/0.3396, allocations: 43.92 kB / 224.2 MB, free: 3.891 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002263/0.3398, allocations: 32.83 kB / 224.2 MB, free: 3.855 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.3399, allocations: 8 kB / 224.2 MB, free: 3.848 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001534/0.3414, allocations: 1.375 MB / 225.6 MB, free: 2.34 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3414, allocations: 0 / 225.6 MB, free: 2.34 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008114/0.3423, allocations: 401.5 kB / 226 MB, free: 1.91 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.3424, allocations: 105 kB / 226.1 MB, free: 1.789 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.037e-05/0.3425, allocations: 7.953 kB / 226.1 MB, free: 1.781 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.3427, allocations: 4 kB / 226.1 MB, free: 1.777 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.411e-05/0.3428, allocations: 23.97 kB / 226.1 MB, free: 1.754 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.3428, allocations: 12 kB / 226.1 MB, free: 1.742 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001506/0.343, allocations: 132.2 kB / 226.2 MB, free: 1.613 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.343, allocations: 0 / 226.2 MB, free: 1.613 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004596/0.3434, allocations: 56 kB / 226.3 MB, free: 1.559 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 () * 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.001228/0.3447, allocations: 1.08 MB / 227.4 MB, free: 448 kB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007244/0.3454, allocations: 270 kB / 227.6 MB, free: 168 kB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3455, allocations: 0 / 227.6 MB, free: 168 kB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004472/0.3459, allocations: 202.5 kB / 227.8 MB, free: 15.95 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004774/0.3464, allocations: 34.52 kB / 227.9 MB, free: 15.92 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.3481, allocations: 0.6075 MB / 228.5 MB, free: 15.27 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.3485, allocations: 0.7483 MB / 229.2 MB, free: 14.49 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.3487, allocations: 67.41 kB / 229.3 MB, free: 14.43 MB / 202.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3487, allocations: 0 / 229.3 MB, free: 14.43 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.685/3.034, allocations: 4.19 MB / 233.5 MB, free: 10.23 MB / 202.7 MB