Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.189/1.189, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.07e-05/3.076e-05, allocations: 0 / 151.5 MB, free: 15.49 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1952, allocations: 25.15 MB / 176.6 MB, free: 15.89 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0645/0.2597, allocations: 35.74 MB / 212.4 MB, free: 13.6 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.26, allocations: 59.97 kB / 212.4 MB, free: 13.54 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03174/0.2918, allocations: 6.649 MB / 219.1 MB, free: 6.875 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2918, allocations: 0 / 219.1 MB, free: 6.875 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.2919, allocations: 8 kB / 219.1 MB, free: 6.867 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001303/0.2932, allocations: 0.5414 MB / 219.6 MB, free: 6.277 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.2932, allocations: 8.031 kB / 219.6 MB, free: 6.27 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.2934, allocations: 62.53 kB / 219.7 MB, free: 6.199 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.954e-05/0.2935, allocations: 35.62 kB / 219.7 MB, free: 6.164 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.2939, allocations: 250.5 kB / 220 MB, free: 5.879 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.2939, allocations: 20.56 kB / 220 MB, free: 5.859 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.453e-05/0.294, allocations: 27.98 kB / 220 MB, free: 5.832 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008044/0.2948, allocations: 314.5 kB / 220.3 MB, free: 5.512 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.2949, allocations: 4 kB / 220.3 MB, free: 5.508 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.261e-05/0.2949, allocations: 12 kB / 220.3 MB, free: 5.496 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.872e-05/0.295, allocations: 8 kB / 220.4 MB, free: 5.488 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007295/0.2957, allocations: 241 kB / 220.6 MB, free: 5.254 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002373/0.2981, allocations: 0.8556 MB / 221.4 MB, free: 4.336 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009999/0.2992, allocations: 346.4 kB / 221.8 MB, free: 3.988 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004839/0.2997, allocations: 172.8 kB / 222 MB, free: 3.816 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.847e-05/0.2998, allocations: 16.66 kB / 222 MB, free: 3.801 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.2998, allocations: 34.56 kB / 222 MB, free: 3.758 MB / 186.7 MB Notification: Performance of pre-optimization done (n=36): time 3.366e-06/0.2998, allocations: 0 / 222 MB, free: 3.758 MB / 186.7 MB Notification: Performance of matching and sorting (n=42): time 0.004082/0.3039, allocations: 1.443 MB / 223.4 MB, free: 2.219 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.304, allocations: 81.11 kB / 223.5 MB, free: 2.121 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.3043, allocations: 194.7 kB / 223.7 MB, free: 1.926 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.534e-05/0.3044, allocations: 33.7 kB / 223.8 MB, free: 1.887 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.3045, allocations: 191.2 kB / 223.9 MB, free: 1.699 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.3047, allocations: 138 kB / 224.1 MB, free: 1.562 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.3048, allocations: 8 kB / 224.1 MB, free: 1.555 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.3049, allocations: 326.8 kB / 224.4 MB, free: 1.227 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004497/0.3054, allocations: 164.7 kB / 224.6 MB, free: 1.062 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.3059, allocations: 191.6 kB / 224.7 MB, free: 0.8672 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004374/0.3063, allocations: 156 kB / 224.9 MB, free: 0.7148 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3063, allocations: 0 / 224.9 MB, free: 0.7148 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001334/0.3077, allocations: 493.8 kB / 225.4 MB, free: 228 kB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.3077, allocations: 7.938 kB / 225.4 MB, free: 220 kB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.3077, allocations: 4 kB / 225.4 MB, free: 216 kB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007308/0.3085, allocations: 157.6 kB / 225.5 MB, free: 56 kB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005346/0.309, allocations: 63.94 kB / 225.6 MB, free: 15.99 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004211/0.3133, allocations: 2.277 MB / 227.9 MB, free: 13.58 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.3138, allocations: 32.05 kB / 227.9 MB, free: 13.55 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.437e-05/0.3139, allocations: 23.98 kB / 227.9 MB, free: 13.52 MB / 202.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001666/0.314, allocations: 120.9 kB / 228.1 MB, free: 13.4 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.381e-05/0.3142, allocations: 31.67 kB / 228.1 MB, free: 13.37 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.3143, allocations: 42.77 kB / 228.1 MB, free: 13.33 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3143, allocations: 4 kB / 228.1 MB, free: 13.32 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3143, allocations: 4 kB / 228.1 MB, free: 13.32 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3143, allocations: 0 / 228.1 MB, free: 13.32 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.317, allocations: 1.086 MB / 229.2 MB, free: 12.17 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.317, allocations: 0 / 229.2 MB, free: 12.17 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005519/0.3176, allocations: 59.95 kB / 229.3 MB, free: 12.11 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006441/0.3183, allocations: 148.8 kB / 229.4 MB, free: 11.96 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.121e-05/0.3183, allocations: 15.98 kB / 229.4 MB, free: 11.95 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003871/0.3222, allocations: 2.173 MB / 231.6 MB, free: 9.645 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3222, allocations: 4.062 kB / 231.6 MB, free: 9.641 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.3242, allocations: 0.7882 MB / 232.4 MB, free: 8.824 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002506/0.3244, allocations: 148.6 kB / 232.6 MB, free: 8.66 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.074e-05/0.3245, allocations: 11.95 kB / 232.6 MB, free: 8.648 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004408/0.325, allocations: 36.05 kB / 232.6 MB, free: 8.613 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/0.3252, allocations: 71.86 kB / 232.7 MB, free: 8.543 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.809e-05/0.3253, allocations: 16 kB / 232.7 MB, free: 8.527 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002052/0.3255, allocations: 152.5 kB / 232.8 MB, free: 8.379 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3255, allocations: 0 / 232.8 MB, free: 8.379 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0008094/0.3264, allocations: 120 kB / 233 MB, free: 8.262 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (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: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002452/0.3288, allocations: 1.428 MB / 234.4 MB, free: 6.793 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.3302, allocations: 0.5269 MB / 234.9 MB, free: 6.254 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3303, allocations: 0 / 234.9 MB, free: 6.254 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008269/0.3311, allocations: 354.2 kB / 235.3 MB, free: 5.898 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004933/0.3316, allocations: 34.91 kB / 235.3 MB, free: 5.867 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.3339, allocations: 0.6617 MB / 236 MB, free: 5.164 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004384/0.3343, allocations: 0.7764 MB / 236.7 MB, free: 4.363 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002985/0.3347, allocations: 91.39 kB / 236.8 MB, free: 4.273 MB / 202.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3347, allocations: 0 / 236.8 MB, free: 4.273 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.969/3.304, allocations: 5.81 MB / 242.6 MB, free: 14.46 MB / 218.7 MB