Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.068/1.068, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.968e-05/2.987e-05, allocations: 0 / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1753, allocations: 25.15 MB / 176.6 MB, free: 15.9 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06847/0.2438, allocations: 35.67 MB / 212.3 MB, free: 13.69 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/0.2442, allocations: 59.97 kB / 212.4 MB, free: 13.63 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04204/0.2863, allocations: 8.252 MB / 220.6 MB, free: 5.355 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2863, allocations: 0 / 220.6 MB, free: 5.355 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.86e-05/0.2864, allocations: 11.98 kB / 220.6 MB, free: 5.344 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.002443/0.2888, allocations: 0.7558 MB / 221.4 MB, free: 4.543 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.2889, allocations: 8.031 kB / 221.4 MB, free: 4.535 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.2891, allocations: 82.52 kB / 221.5 MB, free: 4.445 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.2892, allocations: 63.28 kB / 221.5 MB, free: 4.383 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000626/0.2899, allocations: 339.5 kB / 221.9 MB, free: 4.016 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.2899, allocations: 29 kB / 221.9 MB, free: 3.988 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.2901, allocations: 47.91 kB / 221.9 MB, free: 3.941 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.2916, allocations: 0.5664 MB / 222.5 MB, free: 3.363 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.481e-05/0.2917, allocations: 7.984 kB / 222.5 MB, free: 3.355 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.2918, allocations: 23.89 kB / 222.5 MB, free: 3.332 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.2918, allocations: 12 kB / 222.6 MB, free: 3.32 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.2934, allocations: 0.533 MB / 223.1 MB, free: 2.785 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004/0.2974, allocations: 1.336 MB / 224.4 MB, free: 1.391 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.2988, allocations: 404.6 kB / 224.8 MB, free: 0.9844 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007551/0.2996, allocations: 282.5 kB / 225.1 MB, free: 0.707 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.774e-05/0.2997, allocations: 8.547 kB / 225.1 MB, free: 0.6992 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.2997, allocations: 39.12 kB / 225.1 MB, free: 0.6523 MB / 186.7 MB Notification: Performance of pre-optimization done (n=55): time 3.496e-06/0.2997, allocations: 0 / 225.1 MB, free: 0.6523 MB / 186.7 MB Notification: Performance of matching and sorting (n=61): time 0.005881/0.3056, allocations: 1.971 MB / 227.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3057, allocations: 59.95 kB / 227.2 MB, free: 14.52 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004973/0.3062, allocations: 275.5 kB / 227.4 MB, free: 14.24 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.3064, allocations: 49.7 kB / 227.5 MB, free: 14.18 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.3066, allocations: 251.8 kB / 227.7 MB, free: 13.94 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002719/0.3069, allocations: 209.1 kB / 227.9 MB, free: 13.73 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.282e-05/0.3069, allocations: 16 kB / 228 MB, free: 13.71 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3071, allocations: 334.8 kB / 228.3 MB, free: 13.38 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008298/0.308, allocations: 281.5 kB / 228.6 MB, free: 13.11 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008852/0.3089, allocations: 341.5 kB / 228.9 MB, free: 12.77 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006489/0.3095, allocations: 222.1 kB / 229.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3095, allocations: 0 / 229.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002465/0.312, allocations: 0.8411 MB / 229.9 MB, free: 11.7 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.3121, allocations: 19.88 kB / 230 MB, free: 11.68 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3121, allocations: 0 / 230 MB, free: 11.68 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00222/0.3143, allocations: 0.7523 MB / 230.7 MB, free: 10.93 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007597/0.3151, allocations: 95.89 kB / 230.8 MB, free: 10.83 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/0.3173, allocations: 1.068 MB / 231.9 MB, free: 9.738 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.3186, allocations: 147.9 kB / 232 MB, free: 9.594 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.3188, allocations: 27.98 kB / 232.1 MB, free: 9.566 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: 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 (61): * Single equations (assignments): 60 * 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 prepare postOptimizeDAE: time 0.0002639/0.319, allocations: 147.2 kB / 232.2 MB, free: 9.414 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.3192, allocations: 51.42 kB / 232.2 MB, free: 9.363 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002176/0.3194, allocations: 68.72 kB / 232.3 MB, free: 9.297 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.3195, allocations: 8 kB / 232.3 MB, free: 9.289 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.3195, allocations: 4 kB / 232.3 MB, free: 9.285 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.3195, allocations: 3.984 kB / 232.3 MB, free: 9.281 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00377/0.3233, allocations: 1.462 MB / 233.8 MB, free: 7.762 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.3233, allocations: 0 / 233.8 MB, free: 7.762 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008165/0.3242, allocations: 91.83 kB / 233.9 MB, free: 7.672 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002078/0.3263, allocations: 0.7275 MB / 234.6 MB, free: 6.941 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.994e-05/0.3264, allocations: 23.97 kB / 234.6 MB, free: 6.918 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002098/0.3285, allocations: 1.046 MB / 235.7 MB, free: 5.848 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.3285, allocations: 0 / 235.7 MB, free: 5.848 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003246/0.3318, allocations: 1.187 MB / 236.9 MB, free: 4.637 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004322/0.3322, allocations: 192.4 kB / 237.1 MB, free: 4.43 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.3324, allocations: 20 kB / 237.1 MB, free: 4.41 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.3337, allocations: 147.8 kB / 237.2 MB, free: 4.266 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004672/0.3342, allocations: 148.2 kB / 237.4 MB, free: 4.121 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.3343, allocations: 31.97 kB / 237.4 MB, free: 4.09 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003639/0.3346, allocations: 218.2 kB / 237.6 MB, free: 3.879 MB / 202.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3347, allocations: 0 / 237.6 MB, free: 3.879 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0007763/0.3355, allocations: 152 kB / 237.8 MB, free: 3.73 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (J1.phi,J1.w,clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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.003559/0.339, allocations: 1.731 MB / 239.5 MB, free: 1.969 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.3411, allocations: 0.673 MB / 240.2 MB, free: 1.293 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3412, allocations: 0 / 240.2 MB, free: 1.293 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.3423, allocations: 380.8 kB / 240.5 MB, free: 0.9219 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008408/0.3431, allocations: 69.23 kB / 240.6 MB, free: 0.8555 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004613/0.3478, allocations: 1.357 MB / 242 MB, free: 15.46 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005677/0.3484, allocations: 0.8476 MB / 242.8 MB, free: 14.59 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003766/0.3488, allocations: 147.4 kB / 242.9 MB, free: 14.44 MB / 218.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3488, allocations: 0 / 242.9 MB, free: 14.44 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.921/3.27, allocations: 9.29 MB / 252.2 MB, free: 5.16 MB / 218.7 MB