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.808/1.808, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.091e-05, allocations: 0 / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2632, allocations: 38.77 MB / 263.9 MB, free: 9.723 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.3891, allocations: 69.09 MB / 333 MB, free: 4.531 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.3895, allocations: 75.95 kB / 333 MB, free: 4.457 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04223/0.4317, allocations: 8.782 MB / 341.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4318, allocations: 3.938 kB / 341.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.465e-05/0.4318, allocations: 8 kB / 341.8 MB, free: 11.64 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.002594/0.4344, allocations: 0.7907 MB / 342.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.4345, allocations: 11.97 kB / 342.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002902/0.4348, allocations: 86.52 kB / 342.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.435, allocations: 55.34 kB / 342.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007007/0.4357, allocations: 339.6 kB / 343.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.089e-05/0.4358, allocations: 33 kB / 343.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.436, allocations: 51.86 kB / 343.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.4376, allocations: 0.5742 MB / 343.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/0.4377, allocations: 7.906 kB / 343.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-05/0.4378, allocations: 19.94 kB / 343.8 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.4378, allocations: 12 kB / 343.8 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.4395, allocations: 0.5408 MB / 344.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004255/0.4439, allocations: 1.364 MB / 345.7 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.4454, allocations: 432 kB / 346.1 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007561/0.4462, allocations: 278.5 kB / 346.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.269e-05/0.4463, allocations: 16.55 kB / 346.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.4463, allocations: 39.12 kB / 346.5 MB, free: 6.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.847e-06/0.4463, allocations: 0 / 346.5 MB, free: 6.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.006268/0.4526, allocations: 2.076 MB / 348.5 MB, free: 4.656 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.4527, allocations: 63.97 kB / 348.6 MB, free: 4.582 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004919/0.4532, allocations: 279.6 kB / 348.9 MB, free: 4.309 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001307/0.4533, allocations: 49.69 kB / 348.9 MB, free: 4.254 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.4535, allocations: 197.2 kB / 349.1 MB, free: 4.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002872/0.4538, allocations: 221 kB / 349.3 MB, free: 3.836 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.495e-05/0.4539, allocations: 12 kB / 349.3 MB, free: 3.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.4541, allocations: 358.8 kB / 349.7 MB, free: 3.465 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008366/0.455, allocations: 289.5 kB / 350 MB, free: 3.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008842/0.4559, allocations: 349.5 kB / 350.3 MB, free: 2.832 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000655/0.4565, allocations: 230 kB / 350.5 MB, free: 2.609 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.4565, allocations: 0 / 350.5 MB, free: 2.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002493/0.459, allocations: 0.8721 MB / 351.4 MB, free: 1.727 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.4591, allocations: 4 kB / 351.4 MB, free: 1.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.4591, allocations: 0 / 351.4 MB, free: 1.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002183/0.4613, allocations: 0.7637 MB / 352.2 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008184/0.4622, allocations: 103.8 kB / 352.3 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.4644, allocations: 1.076 MB / 353.4 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.4659, allocations: 151.9 kB / 353.5 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.4661, allocations: 31.98 kB / 353.5 MB, free: 15.58 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.0002834/0.4664, allocations: 143.1 kB / 353.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.4666, allocations: 55.52 kB / 353.7 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002472/0.4668, allocations: 68.75 kB / 353.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.4669, allocations: 8 kB / 353.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.4669, allocations: 7.891 kB / 353.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4669, allocations: 3.984 kB / 353.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00428/0.4712, allocations: 1.567 MB / 355.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4712, allocations: 0 / 355.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008838/0.4721, allocations: 95.84 kB / 355.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002038/0.4742, allocations: 0.7267 MB / 356.2 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.4743, allocations: 35.94 kB / 356.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.4764, allocations: 1.033 MB / 357.3 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.4764, allocations: 3.938 kB / 357.3 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003656/0.4801, allocations: 1.285 MB / 358.6 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00048/0.4806, allocations: 188.4 kB / 358.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001839/0.4808, allocations: 24 kB / 358.8 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.4821, allocations: 143.9 kB / 358.9 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004593/0.4826, allocations: 152.2 kB / 359.1 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.4827, allocations: 35.95 kB / 359.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003616/0.4831, allocations: 218.2 kB / 359.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4831, allocations: 0 / 359.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007942/0.4839, allocations: 163.9 kB / 359.5 MB, free: 9.512 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.00415/0.4881, allocations: 1.857 MB / 361.3 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.4904, allocations: 0.6962 MB / 362 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.4904, allocations: 4.062 kB / 362 MB, free: 6.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001326/0.4918, allocations: 384.8 kB / 362.4 MB, free: 6.555 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4928, allocations: 77.16 kB / 362.5 MB, free: 6.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004913/0.4978, allocations: 1.337 MB / 363.8 MB, free: 5.102 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005565/0.4984, allocations: 0.8596 MB / 364.7 MB, free: 4.219 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004382/0.4989, allocations: 48.16 kB / 364.7 MB, free: 4.172 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.4993, allocations: 139.4 kB / 364.8 MB, free: 4.035 MB / 314.7 MB Notification: Performance of SimCode: time 1.283e-06/0.4993, allocations: 0 / 364.8 MB, free: 4.035 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2703/0.7697, allocations: 14.91 MB / 379.8 MB, free: 89.4 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002704/0.77, allocations: 187.3 kB / 379.9 MB, free: 89.18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.092/3.862, allocations: 0 / 379.9 MB, free: 89.18 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