Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.056/2.056, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.283e-05/3.302e-05, allocations: 4 kB / 292.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4441/0.556, allocations: 79.39 MB / 422 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.5563, allocations: 69.64 kB / 422.1 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02039/0.5767, allocations: 4.093 MB / 426.2 MB, free: 11.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.5768, allocations: 3.938 kB / 426.2 MB, free: 11.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.978e-05/0.5769, allocations: 4 kB / 426.2 MB, free: 11.16 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001327/0.5782, allocations: 0.5165 MB / 426.7 MB, free: 10.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.5783, allocations: 8.031 kB / 426.7 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.897e-05/0.5784, allocations: 52.98 kB / 426.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.064e-05/0.5785, allocations: 31.7 kB / 426.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003744/0.5789, allocations: 225.5 kB / 427 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/0.5789, allocations: 11.75 kB / 427 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.998e-05/0.579, allocations: 30.86 kB / 427.1 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005434/0.5795, allocations: 208.8 kB / 427.3 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.5796, allocations: 3.953 kB / 427.3 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.164e-05/0.5796, allocations: 3.062 kB / 427.3 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.5796, allocations: 4 kB / 427.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004457/0.5801, allocations: 141.9 kB / 427.4 MB, free: 9.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.5818, allocations: 0.6579 MB / 428.1 MB, free: 9.367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005739/0.5824, allocations: 163.7 kB / 428.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/0.5827, allocations: 83.17 kB / 428.3 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.987e-05/0.5827, allocations: 7.984 kB / 428.3 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003945/0.5831, allocations: 150 kB / 428.5 MB, free: 9.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.777e-06/0.5831, allocations: 0 / 428.5 MB, free: 9.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.002285/0.5854, allocations: 0.8908 MB / 429.4 MB, free: 8.215 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.5855, allocations: 59.34 kB / 429.4 MB, free: 8.145 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.5858, allocations: 160 kB / 429.6 MB, free: 7.996 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.5859, allocations: 33.52 kB / 429.6 MB, free: 7.961 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.586, allocations: 186.3 kB / 429.8 MB, free: 7.789 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.5861, allocations: 97.89 kB / 429.9 MB, free: 7.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.5862, allocations: 3.625 kB / 429.9 MB, free: 7.707 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.5863, allocations: 322.5 kB / 430.2 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.5866, allocations: 82.83 kB / 430.3 MB, free: 7.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.5869, allocations: 126.5 kB / 430.4 MB, free: 7.234 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.5872, allocations: 107 kB / 430.5 MB, free: 7.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.5872, allocations: 4 kB / 430.5 MB, free: 7.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00102/0.5882, allocations: 332.1 kB / 430.8 MB, free: 6.879 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.782e-05/0.5883, allocations: 33.7 kB / 430.9 MB, free: 6.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/0.5884, allocations: 0 / 430.9 MB, free: 6.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003409/0.5887, allocations: 62.7 kB / 430.9 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.5892, allocations: 47.91 kB / 431 MB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007045/0.5899, allocations: 0.6128 MB / 431.6 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005181/0.5904, allocations: 43.3 kB / 431.6 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.877e-05/0.5905, allocations: 11.81 kB / 431.6 MB, free: 6.098 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001674/0.5907, allocations: 129.6 kB / 431.8 MB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.5907, allocations: 15.81 kB / 431.8 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008228/0.5916, allocations: 274.8 kB / 432.1 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.5916, allocations: 0 / 432.1 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.5916, allocations: 3.953 kB / 432.1 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.5916, allocations: 7.984 kB / 432.1 MB, free: 5.742 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.5932, allocations: 0.6469 MB / 432.7 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.5932, allocations: 7.984 kB / 432.7 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004556/0.5937, allocations: 43.47 kB / 432.8 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000273/0.594, allocations: 58.77 kB / 432.8 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/0.594, allocations: 7.406 kB / 432.8 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006978/0.5948, allocations: 0.6058 MB / 433.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/0.5948, allocations: 4.031 kB / 433.4 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.5961, allocations: 472.7 kB / 433.9 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.5963, allocations: 115.2 kB / 434 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.771e-05/0.5964, allocations: 7.812 kB / 434 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004993/0.5969, allocations: 39.28 kB / 434.1 MB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.5971, allocations: 42.92 kB / 434.1 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/0.5972, allocations: 11.98 kB / 434.1 MB, free: 3.855 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001885/0.5974, allocations: 128.6 kB / 434.2 MB, free: 3.746 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5974, allocations: 0 / 434.2 MB, free: 3.746 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005575/0.5979, allocations: 78.58 kB / 434.3 MB, free: 3.676 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001727/0.5997, allocations: 1.108 MB / 435.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009146/0.6007, allocations: 311.1 kB / 435.7 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.6007, allocations: 0 / 435.7 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004287/0.6011, allocations: 121.5 kB / 435.8 MB, free: 2.293 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.6017, allocations: 29.55 kB / 435.9 MB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.6035, allocations: 0.5994 MB / 436.5 MB, free: 1.672 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.604, allocations: 0.7518 MB / 437.2 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.6042, allocations: 63.42 kB / 437.3 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of SimCode: time 1.183e-06/0.6042, allocations: 0 / 437.3 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.855/3.459, allocations: 4.596 MB / 441.9 MB, free: 12.32 MB / 362.7 MB