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.844/1.844, allocations: 171.3 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.296e-05/2.309e-05, allocations: 0 / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2681, allocations: 38.77 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1533/0.4214, allocations: 68.42 MB / 326.8 MB, free: 9.359 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.4218, allocations: 71.95 kB / 326.8 MB, free: 9.289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04312/0.4649, allocations: 8.726 MB / 335.6 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.465, allocations: 0 / 335.6 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.362e-05/0.465, allocations: 12 kB / 335.6 MB, free: 0.5352 MB / 282.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.002703/0.4677, allocations: 0.7909 MB / 336.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.295e-05/0.4678, allocations: 8.031 kB / 336.4 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.4681, allocations: 59.34 kB / 336.4 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007328/0.4689, allocations: 331.7 kB / 336.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.184e-05/0.4689, allocations: 24 kB / 336.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.4691, allocations: 31.86 kB / 336.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001533/0.4706, allocations: 0.5335 MB / 337.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.4721, allocations: 0.5313 MB / 337.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/0.4721, allocations: 0 / 337.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.517e-05/0.4722, allocations: 0 / 337.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.4722, allocations: 12 kB / 337.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003941/0.4762, allocations: 1.281 MB / 339.2 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.4775, allocations: 416 kB / 339.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006297/0.4781, allocations: 262.5 kB / 339.8 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.318e-05/0.4782, allocations: 12.56 kB / 339.8 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.4783, allocations: 35.12 kB / 339.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.817e-06/0.4783, allocations: 4 kB / 339.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.006392/0.4847, allocations: 1.965 MB / 341.8 MB, free: 10 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.4848, allocations: 59.97 kB / 341.9 MB, free: 9.934 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000433/0.4852, allocations: 262.4 kB / 342.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.4854, allocations: 33.7 kB / 342.2 MB, free: 9.633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.4856, allocations: 205.1 kB / 342.4 MB, free: 9.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.4859, allocations: 213 kB / 342.6 MB, free: 9.219 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.017e-05/0.4859, allocations: 7.984 kB / 342.6 MB, free: 9.211 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.4861, allocations: 350.8 kB / 343 MB, free: 8.859 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007384/0.4869, allocations: 281.5 kB / 343.2 MB, free: 8.586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007824/0.4877, allocations: 333.5 kB / 343.6 MB, free: 8.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008314/0.4885, allocations: 224.5 kB / 343.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.4885, allocations: 0 / 343.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002549/0.4911, allocations: 0.8329 MB / 344.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.4912, allocations: 7.594 kB / 344.6 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.4912, allocations: 0 / 344.6 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002221/0.4934, allocations: 0.7484 MB / 345.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008559/0.4943, allocations: 107.8 kB / 345.5 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.4969, allocations: 1.158 MB / 346.6 MB, free: 5.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.4984, allocations: 139.9 kB / 346.8 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.4985, allocations: 35.98 kB / 346.8 MB, free: 4.973 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0003472/0.4989, allocations: 135.7 kB / 346.9 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002557/0.5014, allocations: 0.7686 MB / 347.7 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.5016, allocations: 51.39 kB / 347.7 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002224/0.5019, allocations: 65.05 kB / 347.8 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.5019, allocations: 12 kB / 347.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5019, allocations: 0 / 347.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.5019, allocations: 0 / 347.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004105/0.5061, allocations: 1.458 MB / 349.3 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.5061, allocations: 3.953 kB / 349.3 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008822/0.507, allocations: 91.88 kB / 349.4 MB, free: 2.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002064/0.5091, allocations: 0.7386 MB / 350.1 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.5092, allocations: 19.91 kB / 350.1 MB, free: 1.559 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002297/0.5115, allocations: 1.118 MB / 351.2 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.5116, allocations: 0 / 351.2 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003552/0.5151, allocations: 1.238 MB / 352.5 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004543/0.5156, allocations: 192.4 kB / 352.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002/0.5158, allocations: 16 kB / 352.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.5171, allocations: 131.9 kB / 352.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004992/0.5176, allocations: 148.2 kB / 353 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.5177, allocations: 35.95 kB / 353 MB, free: 14.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003145/0.518, allocations: 200.6 kB / 353.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5181, allocations: 4 kB / 353.2 MB, free: 14.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000839/0.5189, allocations: 135.9 kB / 353.3 MB, free: 14.29 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,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.003927/0.5228, allocations: 1.787 MB / 355.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.5248, allocations: 0.665 MB / 355.8 MB, free: 11.81 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.5249, allocations: 0 / 355.8 MB, free: 11.81 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.5259, allocations: 380.8 kB / 356.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009508/0.5269, allocations: 71.42 kB / 356.2 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004272/0.5312, allocations: 1.28 MB / 357.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.5318, allocations: 0.8593 MB / 358.4 MB, free: 9.168 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003895/0.5322, allocations: 39.45 kB / 358.4 MB, free: 9.129 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.5326, allocations: 147.4 kB / 358.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of SimCode: time 1.423e-06/0.5326, allocations: 0 / 358.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2795/0.8122, allocations: 14.05 MB / 372.6 MB, free: 95.05 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.8125, allocations: 143.8 kB / 372.7 MB, free: 94.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.964/3.777, allocations: 0 / 372.7 MB, free: 94.86 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