Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.396/2.396, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.835e-05/2.858e-05, allocations: 4.094 kB / 249.8 MB, free: 5.246 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.488/0.5942, allocations: 73.73 MB / 368 MB, free: 7.207 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.5945, allocations: 73.09 kB / 368.1 MB, free: 7.207 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06354/0.6581, allocations: 8.887 MB / 377 MB, free: 22.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.6582, allocations: 0 / 377 MB, free: 22.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.694e-05/0.6582, allocations: 7.75 kB / 377 MB, free: 22.09 MB / 314.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.003786/0.662, allocations: 0.7827 MB / 377.8 MB, free: 21.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.624e-05/0.6621, allocations: 7.781 kB / 377.8 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003735/0.6625, allocations: 66.23 kB / 377.8 MB, free: 21.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.6636, allocations: 333.8 kB / 378.2 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.473e-05/0.6636, allocations: 15.66 kB / 378.2 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.6639, allocations: 27.12 kB / 378.2 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002171/0.6661, allocations: 480.5 kB / 378.7 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.6682, allocations: 0.5022 MB / 379.2 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.897e-05/0.6683, allocations: 11.72 kB / 379.2 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.6685, allocations: 0 / 379.2 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.476e-05/0.6685, allocations: 7.781 kB / 379.2 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006374/0.6749, allocations: 1.266 MB / 380.5 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002129/0.6771, allocations: 416.2 kB / 380.9 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.6782, allocations: 248.5 kB / 381.1 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001809/0.6784, allocations: 12.45 kB / 381.1 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.6785, allocations: 38.31 kB / 381.2 MB, free: 20.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 6.322e-06/0.6785, allocations: 0 / 381.2 MB, free: 20.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.0113/0.6898, allocations: 1.858 MB / 383 MB, free: 19.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.69, allocations: 66.62 kB / 383.1 MB, free: 19.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005579/0.6905, allocations: 232.7 kB / 383.3 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002863/0.6908, allocations: 40.84 kB / 383.4 MB, free: 19.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/0.6911, allocations: 187.7 kB / 383.5 MB, free: 19.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004159/0.6916, allocations: 232.4 kB / 383.8 MB, free: 18.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.6917, allocations: 4 kB / 383.8 MB, free: 18.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002672/0.692, allocations: 353.2 kB / 384.1 MB, free: 18.51 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.6932, allocations: 245.3 kB / 384.4 MB, free: 18.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.6944, allocations: 301.3 kB / 384.6 MB, free: 18.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.696, allocations: 203.8 kB / 384.8 MB, free: 18.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.696, allocations: 0 / 384.8 MB, free: 18.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00376/0.6998, allocations: 0.7574 MB / 385.6 MB, free: 18.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.6999, allocations: 3.906 kB / 385.6 MB, free: 18.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-05/0.6999, allocations: 3.969 kB / 385.6 MB, free: 18.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001997/0.7019, allocations: 0.541 MB / 386.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009865/0.7029, allocations: 105.1 kB / 386.3 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002782/0.7057, allocations: 1.059 MB / 387.3 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/0.7077, allocations: 140.9 kB / 387.5 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001828/0.7079, allocations: 30.02 kB / 387.5 MB, free: 17.48 MB / 314.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): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0004263/0.7083, allocations: 131 kB / 387.6 MB, free: 17.35 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002963/0.7113, allocations: 0.6868 MB / 388.3 MB, free: 17.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.7116, allocations: 46.75 kB / 388.3 MB, free: 17.17 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.7148, allocations: 0.8241 MB / 389.2 MB, free: 16.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.7148, allocations: 3.875 kB / 389.2 MB, free: 16.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.7148, allocations: 0 / 389.2 MB, free: 16.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.7149, allocations: 7.859 kB / 389.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004466/0.7193, allocations: 1.328 MB / 390.5 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.7194, allocations: 0 / 390.5 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.7205, allocations: 92.23 kB / 390.6 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001809/0.7223, allocations: 0.5323 MB / 391.1 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/0.7225, allocations: 19.61 kB / 391.1 MB, free: 16.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.7251, allocations: 1.027 MB / 392.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.7251, allocations: 3.938 kB / 392.2 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003725/0.7288, allocations: 1.08 MB / 393.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000532/0.7294, allocations: 190.1 kB / 393.4 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.7297, allocations: 11.56 kB / 393.5 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.7313, allocations: 140 kB / 393.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005681/0.7318, allocations: 149.9 kB / 393.7 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.732, allocations: 31.19 kB / 393.8 MB, free: 15.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003366/0.7323, allocations: 193.3 kB / 394 MB, free: 14.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.7324, allocations: 4 kB / 394 MB, free: 14.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009975/0.7334, allocations: 135.3 kB / 394.1 MB, free: 14.9 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.004457/0.7378, allocations: 1.651 MB / 395.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.7403, allocations: 0.713 MB / 396.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.7403, allocations: 0 / 396.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.7415, allocations: 368.5 kB / 396.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.7427, allocations: 69.3 kB / 396.9 MB, free: 13.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/0.7476, allocations: 1.266 MB / 398.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006046/0.7482, allocations: 0.8524 MB / 399 MB, free: 12.29 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004458/0.7487, allocations: 42.83 kB / 399 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003924/0.7491, allocations: 141.9 kB / 399.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.7491, allocations: 0 / 399.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09425/0.8434, allocations: 14.53 MB / 413.7 MB, free: 2.598 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003961/0.8439, allocations: 143.2 kB / 413.9 MB, free: 2.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.824/4.668, allocations: 3.938 kB / 413.9 MB, free: 2.406 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat