Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.314/2.314, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.918e-05/2.92e-05, allocations: 0 / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 50.41 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5058/0.6217, allocations: 81.38 MB / 424 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.622, allocations: 71.2 kB / 424.1 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05962/0.6816, allocations: 9.495 MB / 433.6 MB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6817, allocations: 0 / 433.6 MB, free: 4.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.854e-05/0.6817, allocations: 11.98 kB / 433.6 MB, free: 4.645 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001448/0.6832, allocations: 0.5644 MB / 434.1 MB, free: 4.055 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.757e-05/0.6833, allocations: 12.03 kB / 434.2 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.6834, allocations: 63.84 kB / 434.2 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004567/0.6839, allocations: 47.61 kB / 434.3 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005576/0.6844, allocations: 274.7 kB / 434.5 MB, free: 3.656 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.6846, allocations: 93.02 kB / 434.6 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.857e-05/0.6847, allocations: 29.12 kB / 434.6 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009138/0.6856, allocations: 348.3 kB / 435 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.6857, allocations: 3.906 kB / 435 MB, free: 3.281 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.012e-05/0.6858, allocations: 17.45 kB / 435 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.6858, allocations: 8 kB / 435 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009948/0.6868, allocations: 373.9 kB / 435.4 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002884/0.6897, allocations: 1.162 MB / 436.5 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008286/0.6906, allocations: 312.5 kB / 436.8 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004241/0.691, allocations: 165.3 kB / 437 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.935e-05/0.6911, allocations: 4 kB / 437 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.6911, allocations: 41.42 kB / 437.1 MB, free: 1.613 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.987e-06/0.6911, allocations: 0 / 437.1 MB, free: 1.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.003752/0.6949, allocations: 1.307 MB / 438.4 MB, free: 500 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/0.695, allocations: 84.86 kB / 438.4 MB, free: 396 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.6954, allocations: 191.5 kB / 438.6 MB, free: 228 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.528e-05/0.6955, allocations: 36.95 kB / 438.7 MB, free: 192 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.6956, allocations: 196.8 kB / 438.9 MB, free: 4 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.6958, allocations: 153.8 kB / 439 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/0.6959, allocations: 9.312 kB / 439 MB, free: 15.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.6961, allocations: 332.7 kB / 439.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004221/0.6965, allocations: 139.6 kB / 439.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004937/0.697, allocations: 206.7 kB / 439.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.6975, allocations: 143.7 kB / 439.8 MB, free: 15.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.6975, allocations: 0 / 439.8 MB, free: 15.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001428/0.6989, allocations: 0.491 MB / 440.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.699, allocations: 8 kB / 440.3 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.699, allocations: 0 / 440.3 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/0.7001, allocations: 241 kB / 440.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.7006, allocations: 55.28 kB / 440.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005712/0.7064, allocations: 2.639 MB / 443.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005384/0.707, allocations: 39.47 kB / 443.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-05/0.7071, allocations: 19.56 kB / 443.3 MB, free: 12.32 MB / 362.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: 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 (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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001821/0.7072, allocations: 116.2 kB / 443.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.7074, allocations: 31.67 kB / 443.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.7075, allocations: 47.39 kB / 443.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.7075, allocations: 4 kB / 443.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.7075, allocations: 0 / 443.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.7075, allocations: 3.984 kB / 443.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002559/0.7101, allocations: 1.037 MB / 444.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.7102, allocations: 0 / 444.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004587/0.7106, allocations: 47.91 kB / 444.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.7117, allocations: 222.6 kB / 444.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.614e-05/0.7118, allocations: 18.36 kB / 444.8 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005381/0.7172, allocations: 2.576 MB / 447.4 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.7173, allocations: 8.031 kB / 447.4 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.7191, allocations: 0.7322 MB / 448.1 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/0.7194, allocations: 139.2 kB / 448.3 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.491e-05/0.7195, allocations: 11.19 kB / 448.3 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004905/0.7201, allocations: 38.92 kB / 448.3 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000254/0.7203, allocations: 63.75 kB / 448.4 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.932e-05/0.7204, allocations: 19.61 kB / 448.4 MB, free: 8.129 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000248/0.7207, allocations: 153.5 kB / 448.6 MB, free: 8 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7207, allocations: 0 / 448.6 MB, free: 8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009386/0.7216, allocations: 145.3 kB / 448.7 MB, free: 7.875 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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 Backend phase and start with SimCode phase: time 0.002555/0.7242, allocations: 1.35 MB / 450 MB, free: 6.719 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.7258, allocations: 0.5482 MB / 450.6 MB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.7258, allocations: 0 / 450.6 MB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000978/0.7268, allocations: 387.9 kB / 451 MB, free: 5.922 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004489/0.7273, allocations: 24.11 kB / 451 MB, free: 5.898 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.7295, allocations: 0.6339 MB / 451.6 MB, free: 5.227 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.73, allocations: 0.7881 MB / 452.4 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003119/0.7303, allocations: 87.39 kB / 452.5 MB, free: 4.328 MB / 362.7 MB Notification: Performance of SimCode: time 1.382e-06/0.7303, allocations: 7.938 kB / 452.5 MB, free: 4.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.946/3.676, allocations: 6.115 MB / 458.6 MB, free: 14.2 MB / 378.7 MB