Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.114/1.114, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.291e-05/3.297e-05, allocations: 4 kB / 151.5 MB, free: 15.5 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1729, allocations: 25.15 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06592/0.2389, allocations: 36.97 MB / 213.6 MB, free: 12.36 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.2392, allocations: 63.95 kB / 213.7 MB, free: 12.29 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04253/0.2817, allocations: 8.363 MB / 222 MB, free: 3.906 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2818, allocations: 0 / 222 MB, free: 3.906 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.765e-05/0.2818, allocations: 12 kB / 222 MB, free: 3.895 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.002033/0.2839, allocations: 0.6467 MB / 222.7 MB, free: 3.199 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.2839, allocations: 8.031 kB / 222.7 MB, free: 3.191 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000184/0.2841, allocations: 70.53 kB / 222.8 MB, free: 3.113 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.2843, allocations: 39.53 kB / 222.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005554/0.2849, allocations: 287.5 kB / 223.1 MB, free: 2.75 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.2849, allocations: 28.78 kB / 223.1 MB, free: 2.723 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.2851, allocations: 28 kB / 223.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.2863, allocations: 469.3 kB / 223.6 MB, free: 2.227 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.526e-05/0.2864, allocations: 7.906 kB / 223.6 MB, free: 2.219 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.016e-05/0.2865, allocations: 11.95 kB / 223.6 MB, free: 2.207 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.084e-05/0.2866, allocations: 19.98 kB / 223.6 MB, free: 2.188 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.2878, allocations: 417.4 kB / 224.1 MB, free: 1.777 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003769/0.2916, allocations: 1.173 MB / 225.2 MB, free: 0.5469 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.2932, allocations: 491.4 kB / 225.7 MB, free: 56 kB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007357/0.2939, allocations: 266.3 kB / 226 MB, free: 15.79 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.432e-05/0.294, allocations: 8.438 kB / 226 MB, free: 15.78 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.013e-05/0.2941, allocations: 35 kB / 226 MB, free: 15.74 MB / 202.7 MB Notification: Performance of pre-optimization done (n=47): time 3.868e-06/0.2941, allocations: 0 / 226 MB, free: 15.74 MB / 202.7 MB Notification: Performance of matching and sorting (n=55): time 0.005691/0.2998, allocations: 1.935 MB / 227.9 MB, free: 13.71 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.2999, allocations: 81.67 kB / 228 MB, free: 13.62 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004352/0.3004, allocations: 242.8 kB / 228.3 MB, free: 13.38 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001077/0.3005, allocations: 53.69 kB / 228.3 MB, free: 13.32 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.3007, allocations: 207.4 kB / 228.5 MB, free: 13.11 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002371/0.3009, allocations: 177.4 kB / 228.7 MB, free: 12.94 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.268e-05/0.301, allocations: 12 kB / 228.7 MB, free: 12.93 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3011, allocations: 330.8 kB / 229 MB, free: 12.59 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006914/0.3018, allocations: 249.1 kB / 229.3 MB, free: 12.35 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007394/0.3026, allocations: 300.4 kB / 229.6 MB, free: 12.04 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006554/0.3033, allocations: 235.2 kB / 229.8 MB, free: 11.81 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.3033, allocations: 0 / 229.8 MB, free: 11.81 MB / 202.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002309/0.3056, allocations: 0.769 MB / 230.6 MB, free: 11.04 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3057, allocations: 8.781 kB / 230.6 MB, free: 11.03 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3057, allocations: 0 / 230.6 MB, free: 11.03 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001534/0.3072, allocations: 464.5 kB / 231 MB, free: 10.57 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006988/0.3079, allocations: 83.88 kB / 231.1 MB, free: 10.49 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.3097, allocations: 0.9781 MB / 232.1 MB, free: 9.484 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008384/0.3106, allocations: 91.86 kB / 232.2 MB, free: 9.395 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.3107, allocations: 24 kB / 232.2 MB, free: 9.371 MB / 202.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.0002222/0.3109, allocations: 136.9 kB / 232.3 MB, free: 9.23 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.3111, allocations: 35.53 kB / 232.4 MB, free: 9.195 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002086/0.3113, allocations: 59.39 kB / 232.4 MB, free: 9.137 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.3113, allocations: 4 kB / 232.4 MB, free: 9.133 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.3113, allocations: 7.953 kB / 232.4 MB, free: 9.125 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.3114, allocations: 4 kB / 232.4 MB, free: 9.121 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004251/0.3156, allocations: 1.543 MB / 234 MB, free: 7.512 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.3157, allocations: 0 / 234 MB, free: 7.512 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/0.3164, allocations: 87.91 kB / 234.1 MB, free: 7.426 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.3177, allocations: 438.5 kB / 234.5 MB, free: 6.996 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.188e-05/0.3178, allocations: 19.98 kB / 234.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001563/0.3194, allocations: 0.9277 MB / 235.4 MB, free: 6.023 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3195, allocations: 4.031 kB / 235.4 MB, free: 6.02 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002964/0.3224, allocations: 1.146 MB / 236.6 MB, free: 4.844 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004239/0.3229, allocations: 172.6 kB / 236.8 MB, free: 4.656 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.3231, allocations: 20 kB / 236.8 MB, free: 4.637 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000776/0.3238, allocations: 68 kB / 236.8 MB, free: 4.57 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003285/0.3242, allocations: 100.2 kB / 236.9 MB, free: 4.473 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.973e-05/0.3243, allocations: 31.92 kB / 237 MB, free: 4.441 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003217/0.3246, allocations: 195.1 kB / 237.2 MB, free: 4.25 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3246, allocations: 0 / 237.2 MB, free: 4.25 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0008249/0.3255, allocations: 135.9 kB / 237.3 MB, free: 4.117 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.003362/0.3289, allocations: 1.729 MB / 239 MB, free: 2.355 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.3306, allocations: 0.5502 MB / 239.6 MB, free: 1.805 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.3306, allocations: 0 / 239.6 MB, free: 1.805 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009934/0.3317, allocations: 304.4 kB / 239.9 MB, free: 1.504 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005731/0.3322, allocations: 45.92 kB / 239.9 MB, free: 1.461 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.3351, allocations: 0.8147 MB / 240.7 MB, free: 0.5977 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/0.3357, allocations: 0.8126 MB / 241.5 MB, free: 15.76 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003683/0.336, allocations: 111.4 kB / 241.7 MB, free: 15.65 MB / 218.7 MB Notification: Performance of SimCode: time 1.072e-06/0.3361, allocations: 0 / 241.7 MB, free: 15.65 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.986/3.322, allocations: 7.267 MB / 248.9 MB, free: 8.391 MB / 218.7 MB