Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.635/1.635, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.443e-05/4.467e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2552, allocations: 38.76 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1655/0.4207, allocations: 69.09 MB / 332.9 MB, free: 4.688 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.421, allocations: 71.95 kB / 333 MB, free: 4.617 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04278/0.4638, allocations: 8.784 MB / 341.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4639, allocations: 4 kB / 341.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.23e-05/0.4639, allocations: 8 kB / 341.8 MB, free: 11.8 MB / 298.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.002601/0.4665, allocations: 0.7945 MB / 342.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.4666, allocations: 8.031 kB / 342.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000199/0.4668, allocations: 82.53 kB / 342.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.467, allocations: 59.34 kB / 342.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007016/0.4678, allocations: 339.6 kB / 343 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.84e-05/0.4678, allocations: 32.94 kB / 343.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.468, allocations: 51.86 kB / 343.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.4696, allocations: 0.584 MB / 343.7 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.068e-05/0.4697, allocations: 7.906 kB / 343.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.902e-05/0.4698, allocations: 16 kB / 343.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.4698, allocations: 8 kB / 343.7 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.4715, allocations: 0.5544 MB / 344.3 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004227/0.4758, allocations: 1.368 MB / 345.7 MB, free: 7.734 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.4773, allocations: 444.8 kB / 346.1 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007862/0.4781, allocations: 278.5 kB / 346.4 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.254e-05/0.4782, allocations: 8.562 kB / 346.4 MB, free: 7.008 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.098e-05/0.4783, allocations: 39.66 kB / 346.4 MB, free: 6.961 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.717e-06/0.4783, allocations: 0 / 346.4 MB, free: 6.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.006288/0.4846, allocations: 2.068 MB / 348.5 MB, free: 4.801 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.4847, allocations: 55.97 kB / 348.5 MB, free: 4.734 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005153/0.4852, allocations: 283.6 kB / 348.8 MB, free: 4.457 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001662/0.4854, allocations: 49.7 kB / 348.9 MB, free: 4.402 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.4856, allocations: 247.7 kB / 349.1 MB, free: 4.156 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002985/0.4859, allocations: 225 kB / 349.3 MB, free: 3.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/0.486, allocations: 16 kB / 349.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4862, allocations: 334.8 kB / 349.7 MB, free: 3.582 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008552/0.487, allocations: 297.5 kB / 350 MB, free: 3.289 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009142/0.488, allocations: 351 kB / 350.3 MB, free: 2.938 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/0.4887, allocations: 230 kB / 350.5 MB, free: 2.715 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4887, allocations: 0 / 350.5 MB, free: 2.715 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002523/0.4912, allocations: 0.8605 MB / 351.4 MB, free: 1.848 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.4913, allocations: 4 kB / 351.4 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.4913, allocations: 32 / 351.4 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002218/0.4935, allocations: 0.7561 MB / 352.1 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008583/0.4944, allocations: 111.8 kB / 352.3 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.4967, allocations: 1.075 MB / 353.3 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.4982, allocations: 147.9 kB / 353.5 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/0.4984, allocations: 31.98 kB / 353.5 MB, free: 15.7 MB / 314.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): 63 * 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.0002751/0.4987, allocations: 151.1 kB / 353.7 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.4989, allocations: 47.44 kB / 353.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002402/0.4991, allocations: 68.75 kB / 353.8 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.4991, allocations: 8 kB / 353.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.4991, allocations: 3.953 kB / 353.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.4992, allocations: 3.984 kB / 353.8 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004398/0.5036, allocations: 1.571 MB / 355.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.5036, allocations: 7.938 kB / 355.4 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009112/0.5046, allocations: 91.84 kB / 355.5 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002139/0.5067, allocations: 0.7268 MB / 356.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000153/0.5069, allocations: 27.95 kB / 356.2 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002127/0.509, allocations: 1.036 MB / 357.2 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5091, allocations: 7.969 kB / 357.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003841/0.5129, allocations: 1.282 MB / 358.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004886/0.5135, allocations: 196.4 kB / 358.7 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001822/0.5137, allocations: 27.98 kB / 358.8 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.515, allocations: 143.9 kB / 358.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004779/0.5155, allocations: 144.2 kB / 359 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.5156, allocations: 31.97 kB / 359.1 MB, free: 10.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003633/0.516, allocations: 222.2 kB / 359.3 MB, free: 9.793 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.516, allocations: 0 / 359.3 MB, free: 9.793 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007775/0.5168, allocations: 163.9 kB / 359.4 MB, free: 9.633 MB / 314.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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,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.004148/0.521, allocations: 1.861 MB / 361.3 MB, free: 7.742 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.5232, allocations: 0.7028 MB / 362 MB, free: 7.047 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.5232, allocations: 0 / 362 MB, free: 7.047 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.5244, allocations: 389.8 kB / 362.4 MB, free: 6.664 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008911/0.5253, allocations: 76.31 kB / 362.5 MB, free: 6.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/0.5298, allocations: 1.375 MB / 363.8 MB, free: 5.164 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005738/0.5304, allocations: 0.8518 MB / 364.7 MB, free: 4.289 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000423/0.5308, allocations: 155.3 kB / 364.8 MB, free: 4.137 MB / 314.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5308, allocations: 0 / 364.8 MB, free: 4.137 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.151/3.681, allocations: 9.65 MB / 374.5 MB, free: 91.98 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat