Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.099/2.099, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.42e-05/3.442e-05, allocations: 4 kB / 292.2 MB, free: 8.758 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 50.4 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5534, allocations: 79.97 MB / 422.6 MB, free: 13.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/0.5538, allocations: 70.47 kB / 422.7 MB, free: 13.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1146/0.6684, allocations: 9.278 MB / 431.9 MB, free: 5.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6685, allocations: 0 / 431.9 MB, free: 5.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.811e-05/0.6686, allocations: 8 kB / 431.9 MB, free: 5.801 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.003305/0.6719, allocations: 0.7716 MB / 432.7 MB, free: 5.012 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.672, allocations: 16.02 kB / 432.7 MB, free: 4.996 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001791/0.6722, allocations: 79.97 kB / 432.8 MB, free: 4.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.6724, allocations: 59.25 kB / 432.9 MB, free: 4.875 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006736/0.673, allocations: 335.7 kB / 433.2 MB, free: 4.539 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.149e-05/0.6731, allocations: 37.56 kB / 433.2 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.6733, allocations: 45.44 kB / 433.3 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.6747, allocations: 0.5458 MB / 433.8 MB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.6748, allocations: 7.906 kB / 433.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.752e-05/0.6749, allocations: 25.2 kB / 433.9 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.185e-05/0.6749, allocations: 8 kB / 433.9 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.6764, allocations: 0.4884 MB / 434.4 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004376/0.6808, allocations: 1.349 MB / 435.7 MB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.6823, allocations: 442.5 kB / 436.1 MB, free: 2.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007198/0.683, allocations: 265.9 kB / 436.4 MB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001301/0.6832, allocations: 8.547 kB / 436.4 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/0.6832, allocations: 42.56 kB / 436.4 MB, free: 2.086 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 3.597e-06/0.6833, allocations: 0 / 436.4 MB, free: 2.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.005869/0.6891, allocations: 1.931 MB / 438.4 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.6892, allocations: 67.91 kB / 438.4 MB, free: 432 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004061/0.6897, allocations: 248.2 kB / 438.7 MB, free: 220 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.6898, allocations: 52 kB / 438.7 MB, free: 176 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.69, allocations: 237.8 kB / 439 MB, free: 15.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002743/0.6903, allocations: 226.3 kB / 439.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.839e-05/0.6904, allocations: 20.86 kB / 439.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.6905, allocations: 334 kB / 439.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007731/0.6913, allocations: 255.7 kB / 439.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008028/0.6921, allocations: 319.6 kB / 440.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005976/0.6928, allocations: 198.7 kB / 440.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.6928, allocations: 0 / 440.3 MB, free: 14.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002246/0.695, allocations: 0.7773 MB / 441.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.047e-05/0.6951, allocations: 11.77 kB / 441.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/0.6951, allocations: 4 kB / 441.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00174/0.6969, allocations: 0.5502 MB / 441.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007636/0.6977, allocations: 103.7 kB / 441.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/0.6997, allocations: 0.9702 MB / 442.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.7011, allocations: 150.6 kB / 442.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.7013, allocations: 31.23 kB / 442.9 MB, free: 12.9 MB / 362.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: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002669/0.7015, allocations: 151.6 kB / 443 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.7017, allocations: 47.44 kB / 443.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002661/0.7044, allocations: 0.8601 MB / 443.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.7044, allocations: 11.98 kB / 443.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.7044, allocations: 4 kB / 444 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.7045, allocations: 7.938 kB / 444 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003784/0.7082, allocations: 1.413 MB / 445.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.7083, allocations: 4 kB / 445.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008906/0.7092, allocations: 99.25 kB / 445.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/0.7109, allocations: 0.5273 MB / 446 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.711, allocations: 26.61 kB / 446 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001883/0.7129, allocations: 0.9471 MB / 447 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.7129, allocations: 12 kB / 447 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003259/0.7162, allocations: 1.11 MB / 448.1 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/0.7167, allocations: 186 kB / 448.3 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/0.7169, allocations: 30.02 kB / 448.3 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.7182, allocations: 138.5 kB / 448.4 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004771/0.7187, allocations: 149.5 kB / 448.6 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.7188, allocations: 35.53 kB / 448.6 MB, free: 8.363 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000362/0.7192, allocations: 217.2 kB / 448.8 MB, free: 8.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.7192, allocations: 0 / 448.8 MB, free: 8.184 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000832/0.7201, allocations: 153.2 kB / 449 MB, free: 8.051 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.00391/0.724, allocations: 1.718 MB / 450.7 MB, free: 6.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.7263, allocations: 0.7364 MB / 451.4 MB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.7263, allocations: 0 / 451.4 MB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.7275, allocations: 372.8 kB / 451.8 MB, free: 5.309 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008983/0.7285, allocations: 77.8 kB / 451.9 MB, free: 5.234 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004481/0.733, allocations: 1.354 MB / 453.2 MB, free: 3.836 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005418/0.7335, allocations: 0.8596 MB / 454.1 MB, free: 2.949 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004015/0.734, allocations: 147.4 kB / 454.2 MB, free: 2.805 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.734, allocations: 0 / 454.2 MB, free: 2.805 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.956/3.69, allocations: 10.15 MB / 464.4 MB, free: 8.66 MB / 378.7 MB