Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.102/2.102, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.49e-05/3.498e-05, allocations: 5.562 kB / 292.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1523, allocations: 50.42 MB / 342.6 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4341/0.5864, allocations: 79.29 MB / 421.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.5868, allocations: 76.83 kB / 422 MB, free: 14.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01912/0.6059, allocations: 3.973 MB / 426 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.01e-06/0.606, allocations: 7.984 kB / 426 MB, free: 11.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.042e-05/0.606, allocations: 4 kB / 426 MB, free: 11.38 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001026/0.607, allocations: 479.6 kB / 426.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.6071, allocations: 8.031 kB / 426.5 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.897e-05/0.6072, allocations: 56.55 kB / 426.5 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.108e-05/0.6073, allocations: 26.97 kB / 426.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.6077, allocations: 216.5 kB / 426.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.6078, allocations: 14.5 kB / 426.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.6078, allocations: 24.12 kB / 426.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.6084, allocations: 206.6 kB / 427 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.6084, allocations: 7.953 kB / 427 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.6085, allocations: 9.5 kB / 427 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.6085, allocations: 4 kB / 427 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004092/0.6089, allocations: 142.2 kB / 427.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.6108, allocations: 0.7827 MB / 427.9 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005089/0.6114, allocations: 136.7 kB / 428.1 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/0.6116, allocations: 66.48 kB / 428.1 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/0.6117, allocations: 8 kB / 428.1 MB, free: 9.367 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.6117, allocations: 30.56 kB / 428.2 MB, free: 9.328 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 3.798e-06/0.6117, allocations: 0 / 428.2 MB, free: 9.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.002126/0.6139, allocations: 0.8135 MB / 429 MB, free: 8.543 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.614, allocations: 55.41 kB / 429 MB, free: 8.477 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.6142, allocations: 165.3 kB / 429.2 MB, free: 8.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.6143, allocations: 25.7 kB / 429.2 MB, free: 8.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.6144, allocations: 201.8 kB / 429.4 MB, free: 8.117 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.473e-05/0.6145, allocations: 78.39 kB / 429.5 MB, free: 8.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.875e-05/0.6146, allocations: 3.875 kB / 429.5 MB, free: 8.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.6147, allocations: 322.8 kB / 429.8 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.6149, allocations: 67.31 kB / 429.9 MB, free: 7.688 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.6152, allocations: 106.5 kB / 430 MB, free: 7.598 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.6154, allocations: 65.8 kB / 430.1 MB, free: 7.555 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.6154, allocations: 0 / 430.1 MB, free: 7.555 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006855/0.6161, allocations: 254.5 kB / 430.3 MB, free: 7.363 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.6162, allocations: 16.02 kB / 430.3 MB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/0.6162, allocations: 0 / 430.3 MB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000365/0.6166, allocations: 63.83 kB / 430.4 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.6169, allocations: 35.92 kB / 430.4 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007105/0.6176, allocations: 0.5971 MB / 431 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003769/0.6181, allocations: 35.75 kB / 431 MB, free: 6.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/0.6181, allocations: 11.75 kB / 431.1 MB, free: 6.641 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: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.0001462/0.6183, allocations: 120.2 kB / 431.2 MB, free: 6.523 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-05/0.6184, allocations: 19.72 kB / 431.2 MB, free: 6.504 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008994/0.6193, allocations: 255.4 kB / 431.4 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.6193, allocations: 11.89 kB / 431.5 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.6193, allocations: 0 / 431.5 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.6193, allocations: 8.016 kB / 431.5 MB, free: 6.285 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.6207, allocations: 0.5972 MB / 432.1 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.6208, allocations: 4 kB / 432.1 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000365/0.6212, allocations: 35.91 kB / 432.1 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002822/0.6215, allocations: 58.7 kB / 432.2 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.6215, allocations: 7.688 kB / 432.2 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006541/0.6222, allocations: 0.6037 MB / 432.8 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.6222, allocations: 4.031 kB / 432.8 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009287/0.6231, allocations: 437.2 kB / 433.2 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.6233, allocations: 107.7 kB / 433.3 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.721e-05/0.6234, allocations: 7.812 kB / 433.3 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.6238, allocations: 38.98 kB / 433.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.6239, allocations: 23.41 kB / 433.4 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.624, allocations: 11.98 kB / 433.4 MB, free: 4.453 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001888/0.6242, allocations: 133 kB / 433.5 MB, free: 4.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.6242, allocations: 0 / 433.5 MB, free: 4.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005203/0.6247, allocations: 66.88 kB / 433.6 MB, free: 4.281 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001433/0.6262, allocations: 1.216 MB / 434.8 MB, free: 3.109 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006882/0.6269, allocations: 210.3 kB / 435 MB, free: 2.945 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.6269, allocations: 0 / 435 MB, free: 2.945 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.6272, allocations: 100.2 kB / 435.1 MB, free: 2.871 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004673/0.6277, allocations: 30.31 kB / 435.1 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.6298, allocations: 0.6492 MB / 435.8 MB, free: 2.191 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.6302, allocations: 0.7485 MB / 436.5 MB, free: 1.418 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.6304, allocations: 60.11 kB / 436.6 MB, free: 1.395 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6304, allocations: 0 / 436.6 MB, free: 1.395 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.896/3.527, allocations: 4.24 MB / 440.8 MB, free: 13.19 MB / 362.7 MB