Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.155e-05/5.182e-05, allocations: 7.984 kB / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2687, allocations: 38.76 MB / 263.9 MB, free: 9.801 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.416, allocations: 69.08 MB / 332.9 MB, free: 4.613 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/0.4164, allocations: 71.97 kB / 333 MB, free: 4.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04345/0.4599, allocations: 8.778 MB / 341.8 MB, free: 11.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.707e-06/0.4599, allocations: 8 kB / 341.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.368e-05/0.46, allocations: 15.92 kB / 341.8 MB, free: 11.72 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.002489/0.4625, allocations: 0.7868 MB / 342.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.4625, allocations: 8.031 kB / 342.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001691/0.4627, allocations: 78.53 kB / 342.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.4629, allocations: 63.34 kB / 342.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006703/0.4636, allocations: 339.6 kB / 343.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/0.4637, allocations: 33 kB / 343.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.4638, allocations: 51.86 kB / 343.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.4654, allocations: 0.584 MB / 343.7 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.545e-05/0.4655, allocations: 7.906 kB / 343.7 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.843e-05/0.4656, allocations: 20 kB / 343.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.4656, allocations: 8 kB / 343.8 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.4672, allocations: 0.5583 MB / 344.3 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004017/0.4712, allocations: 1.36 MB / 345.7 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.4727, allocations: 437.4 kB / 346.1 MB, free: 7.219 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000743/0.4734, allocations: 278.5 kB / 346.4 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.155e-05/0.4735, allocations: 12.56 kB / 346.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.4736, allocations: 35.12 kB / 346.4 MB, free: 6.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.066e-06/0.4736, allocations: 4 kB / 346.4 MB, free: 6.887 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.006172/0.4798, allocations: 2.068 MB / 348.5 MB, free: 4.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.4799, allocations: 63.97 kB / 348.6 MB, free: 4.656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004876/0.4804, allocations: 283.6 kB / 348.8 MB, free: 4.379 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.4805, allocations: 53.64 kB / 348.9 MB, free: 4.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.4807, allocations: 193.2 kB / 349.1 MB, free: 4.125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000283/0.481, allocations: 225 kB / 349.3 MB, free: 3.902 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.4811, allocations: 12 kB / 349.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.4813, allocations: 362.7 kB / 349.7 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008597/0.4821, allocations: 293.5 kB / 350 MB, free: 3.238 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009314/0.4831, allocations: 347.1 kB / 350.3 MB, free: 2.891 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006676/0.4838, allocations: 230 kB / 350.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4838, allocations: 0 / 350.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00254/0.4863, allocations: 0.876 MB / 351.4 MB, free: 1.785 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.4864, allocations: 4 kB / 351.4 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.4864, allocations: 4.031 kB / 351.4 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002208/0.4886, allocations: 0.7522 MB / 352.2 MB, free: 1.023 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007786/0.4894, allocations: 107.9 kB / 352.3 MB, free: 0.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.4916, allocations: 1.075 MB / 353.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.493, allocations: 151.9 kB / 353.5 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.4931, allocations: 31.98 kB / 353.5 MB, free: 15.64 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.0002496/0.4934, allocations: 147.1 kB / 353.7 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.4935, allocations: 47.44 kB / 353.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.4938, allocations: 68.75 kB / 353.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.4938, allocations: 8 kB / 353.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.4938, allocations: 7.938 kB / 353.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.4938, allocations: 0 / 353.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004171/0.498, allocations: 1.571 MB / 355.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.4981, allocations: 4 kB / 355.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008689/0.4989, allocations: 99.83 kB / 355.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/0.501, allocations: 0.7307 MB / 356.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.5012, allocations: 23.97 kB / 356.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.5033, allocations: 1.04 MB / 357.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.5033, allocations: 0 / 357.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003751/0.5071, allocations: 1.277 MB / 358.5 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004539/0.5076, allocations: 196.4 kB / 358.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001851/0.5078, allocations: 28 kB / 358.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.509, allocations: 139.9 kB / 358.9 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004713/0.5095, allocations: 144.2 kB / 359 MB, free: 9.988 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.5096, allocations: 39.95 kB / 359.1 MB, free: 9.949 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003584/0.51, allocations: 218.2 kB / 359.3 MB, free: 9.738 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.51, allocations: 0 / 359.3 MB, free: 9.738 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007811/0.5108, allocations: 163.9 kB / 359.4 MB, free: 9.578 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.004092/0.5149, allocations: 1.868 MB / 361.3 MB, free: 7.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.5171, allocations: 0.6989 MB / 362 MB, free: 6.988 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5171, allocations: 0 / 362 MB, free: 6.988 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.5183, allocations: 393.8 kB / 362.4 MB, free: 6.602 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008802/0.5192, allocations: 81.16 kB / 362.5 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004199/0.5234, allocations: 1.328 MB / 363.8 MB, free: 5.148 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005127/0.5239, allocations: 0.8596 MB / 364.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003271/0.5243, allocations: 48.17 kB / 364.7 MB, free: 4.219 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003558/0.5247, allocations: 147.4 kB / 364.9 MB, free: 4.074 MB / 314.7 MB Notification: Performance of SimCode: time 2.875e-06/0.5247, allocations: 0 / 364.9 MB, free: 4.074 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2739/0.7986, allocations: 14.93 MB / 379.8 MB, free: 89.38 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002629/0.7989, allocations: 184.9 kB / 380 MB, free: 89.15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.247/4.046, allocations: 0 / 380 MB, free: 89.15 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat