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/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.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.011/1.011, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.115e-05/2.12e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05541/0.05546, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2185/0.274, allocations: 34.04 MB / 207.4 MB, free: 4.617 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.2743, allocations: 63.31 kB / 207.5 MB, free: 4.617 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01401/0.2883, allocations: 3.397 MB / 210.9 MB, free: 4.082 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.277e-06/0.2884, allocations: 4.281 kB / 210.9 MB, free: 4.082 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.2884, allocations: 3.594 kB / 210.9 MB, free: 4.082 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.0006963/0.2891, allocations: 467.3 kB / 211.3 MB, free: 3.684 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2892, allocations: 12.81 kB / 211.4 MB, free: 3.68 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.74e-05/0.2893, allocations: 24.75 kB / 211.4 MB, free: 3.668 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.2895, allocations: 221.9 kB / 211.6 MB, free: 3.449 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.2896, allocations: 9.891 kB / 211.6 MB, free: 3.449 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.128e-05/0.2896, allocations: 12.62 kB / 211.6 MB, free: 3.449 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000299/0.2899, allocations: 92.92 kB / 211.7 MB, free: 3.449 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003807/0.2903, allocations: 169.1 kB / 211.9 MB, free: 3.398 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.2904, allocations: 9.203 kB / 211.9 MB, free: 3.391 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.2904, allocations: 0 / 211.9 MB, free: 3.391 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.2904, allocations: 8.938 kB / 211.9 MB, free: 3.387 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.2916, allocations: 0.6524 MB / 212.5 MB, free: 3.023 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.2919, allocations: 118.5 kB / 212.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.2921, allocations: 58.78 kB / 212.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.2921, allocations: 1.312 kB / 212.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.2921, allocations: 31.94 kB / 212.8 MB, free: 2.949 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 2.645e-06/0.2922, allocations: 1.344 kB / 212.8 MB, free: 2.949 MB / 170.7 MB Notification: Performance of matching and sorting (n=23): time 0.001631/0.2938, allocations: 0.7391 MB / 213.5 MB, free: 2.453 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.2939, allocations: 54.09 kB / 213.5 MB, free: 2.391 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.294, allocations: 147.2 kB / 213.7 MB, free: 2.293 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.2941, allocations: 27.58 kB / 213.7 MB, free: 2.262 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.534e-05/0.2941, allocations: 205.4 kB / 213.9 MB, free: 2.086 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.2942, allocations: 86.09 kB / 214 MB, free: 2.027 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.2942, allocations: 0 / 214 MB, free: 2.027 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.2943, allocations: 325.1 kB / 214.3 MB, free: 1.715 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.2944, allocations: 43.62 kB / 214.4 MB, free: 1.715 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.2946, allocations: 80.45 kB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.2947, allocations: 54.44 kB / 214.5 MB, free: 1.668 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2948, allocations: 0 / 214.5 MB, free: 1.668 MB / 170.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005211/0.2953, allocations: 202.5 kB / 214.7 MB, free: 1.609 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.2953, allocations: 6.281 kB / 214.7 MB, free: 1.609 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.2953, allocations: 1.344 kB / 214.7 MB, free: 1.609 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002299/0.2956, allocations: 35.56 kB / 214.7 MB, free: 1.598 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003669/0.296, allocations: 48.53 kB / 214.8 MB, free: 1.594 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.2972, allocations: 1.32 MB / 216.1 MB, free: 392 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.2974, allocations: 3.469 kB / 216.1 MB, free: 392 kB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.2975, allocations: 11.11 kB / 216.1 MB, free: 388 kB / 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 () * 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 9.741e-05/0.2976, allocations: 112.5 kB / 216.2 MB, free: 276 kB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004138/0.298, allocations: 174.9 kB / 216.4 MB, free: 216 kB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.883e-05/0.2981, allocations: 23.77 kB / 216.4 MB, free: 200 kB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.595e-05/0.2981, allocations: 28.47 kB / 216.4 MB, free: 196 kB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2981, allocations: 0 / 216.4 MB, free: 196 kB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2982, allocations: 3.875 kB / 216.5 MB, free: 196 kB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2982, allocations: 3.953 kB / 216.5 MB, free: 192 kB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.2993, allocations: 0.568 MB / 217 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.2993, allocations: 3 kB / 217 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.2997, allocations: 46.45 kB / 217.1 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001691/0.2999, allocations: 30.97 kB / 217.1 MB, free: 15.83 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.2999, allocations: 0 / 217.1 MB, free: 15.83 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.3013, allocations: 1.325 MB / 218.4 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.3013, allocations: 0 / 218.4 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006725/0.302, allocations: 382.5 kB / 218.8 MB, free: 14.41 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.3021, allocations: 101.1 kB / 218.9 MB, free: 14.31 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/0.3022, allocations: 13.42 kB / 218.9 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.3024, allocations: 6.625 kB / 218.9 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.027e-05/0.3025, allocations: 16.06 kB / 218.9 MB, free: 14.3 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.3025, allocations: 8.547 kB / 218.9 MB, free: 14.3 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001252/0.3026, allocations: 119.2 kB / 219.1 MB, free: 14.22 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3026, allocations: 1.344 kB / 219.1 MB, free: 14.22 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005118/0.3032, allocations: 45.06 kB / 219.1 MB, free: 14.22 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.001063/0.3042, allocations: 1.057 MB / 220.2 MB, free: 13.34 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006129/0.3049, allocations: 251.3 kB / 220.4 MB, free: 13.23 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3049, allocations: 0 / 220.4 MB, free: 13.23 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003567/0.3053, allocations: 189.7 kB / 220.6 MB, free: 13.12 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004697/0.3058, allocations: 33.28 kB / 220.6 MB, free: 13.11 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.3074, allocations: 0.5839 MB / 221.2 MB, free: 12.7 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.3077, allocations: 0.7504 MB / 222 MB, free: 12 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.3079, allocations: 64.73 kB / 222 MB, free: 11.99 MB / 186.7 MB Notification: Performance of SimCode: time 1.232e-06/0.3079, allocations: 0 / 222 MB, free: 11.99 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.714/3.022, allocations: 4.151 MB / 226.2 MB, free: 10.44 MB / 186.7 MB