Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.061e-05/3.064e-05, allocations: 4 kB / 255.5 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09338/0.09344, allocations: 44.5 MB / 300 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.5667, allocations: 74.4 MB / 374.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003718/0.5672, allocations: 73.8 kB / 374.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05389/0.6211, allocations: 8.935 MB / 383.4 MB, free: 11.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6211, allocations: 1.312 kB / 383.4 MB, free: 11.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.625e-05/0.6212, allocations: 9.281 kB / 383.4 MB, free: 11.97 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.003186/0.6244, allocations: 0.7829 MB / 384.2 MB, free: 11.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.6245, allocations: 10.66 kB / 384.2 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002843/0.6248, allocations: 76.95 kB / 384.2 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002729/0.6251, allocations: 62.31 kB / 384.3 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008731/0.626, allocations: 343.5 kB / 384.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.21e-05/0.626, allocations: 30.5 kB / 384.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.6263, allocations: 46.27 kB / 384.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.6284, allocations: 0.5469 MB / 385.3 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.197e-05/0.6284, allocations: 11.48 kB / 385.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/0.6286, allocations: 21.91 kB / 385.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.549e-05/0.6286, allocations: 11.56 kB / 385.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002164/0.6308, allocations: 494.9 kB / 385.8 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005842/0.6367, allocations: 1.335 MB / 387.1 MB, free: 10.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.6387, allocations: 444.6 kB / 387.6 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000968/0.6397, allocations: 274.2 kB / 387.8 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00013/0.6399, allocations: 8.156 kB / 387.8 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.6399, allocations: 40.16 kB / 387.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 6.322e-06/0.64, allocations: 4 kB / 387.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.007637/0.6476, allocations: 1.928 MB / 389.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.6477, allocations: 59.8 kB / 389.9 MB, free: 9.871 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005104/0.6482, allocations: 257.2 kB / 390.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001899/0.6484, allocations: 49.03 kB / 390.2 MB, free: 9.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.6486, allocations: 240.9 kB / 390.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003167/0.6489, allocations: 228 kB / 390.6 MB, free: 9.414 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.6491, allocations: 19.44 kB / 390.6 MB, free: 9.414 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.696e-05/0.6492, allocations: 334.6 kB / 391 MB, free: 9.102 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009852/0.6502, allocations: 263 kB / 391.2 MB, free: 9.094 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.6512, allocations: 315.4 kB / 391.5 MB, free: 9.066 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007496/0.652, allocations: 200.4 kB / 391.7 MB, free: 9.059 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.652, allocations: 0 / 391.7 MB, free: 9.059 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002903/0.655, allocations: 0.7715 MB / 392.5 MB, free: 8.977 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.655, allocations: 7.016 kB / 392.5 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.311e-05/0.6551, allocations: 3.938 kB / 392.5 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002174/0.6573, allocations: 0.551 MB / 393.1 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009951/0.6583, allocations: 101.5 kB / 393.2 MB, free: 8.926 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002429/0.6607, allocations: 0.9793 MB / 394.1 MB, free: 8.395 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.6627, allocations: 150.9 kB / 394.3 MB, free: 8.387 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/0.6629, allocations: 33.52 kB / 394.3 MB, free: 8.387 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): 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.0003426/0.6633, allocations: 147.2 kB / 394.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.6635, allocations: 50.89 kB / 394.5 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003426/0.667, allocations: 0.8651 MB / 395.4 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.667, allocations: 3.875 kB / 395.4 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.667, allocations: 3.875 kB / 395.4 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.6671, allocations: 3.328 kB / 395.4 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004885/0.672, allocations: 1.418 MB / 396.8 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.672, allocations: 0 / 396.8 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.6732, allocations: 96.67 kB / 396.9 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/0.6753, allocations: 0.534 MB / 397.4 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001564/0.6755, allocations: 29.72 kB / 397.5 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/0.6778, allocations: 0.9502 MB / 398.4 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.6779, allocations: 2.203 kB / 398.4 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004284/0.6822, allocations: 1.121 MB / 399.5 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006308/0.6829, allocations: 184.7 kB / 399.7 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/0.6831, allocations: 22.75 kB / 399.7 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/0.6846, allocations: 144.3 kB / 399.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000501/0.6852, allocations: 152.1 kB / 400 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.6853, allocations: 38.22 kB / 400.1 MB, free: 6.871 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003151/0.6857, allocations: 209.5 kB / 400.3 MB, free: 6.785 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6857, allocations: 0 / 400.3 MB, free: 6.785 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009837/0.6867, allocations: 165 kB / 400.4 MB, free: 6.773 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.003593/0.6903, allocations: 1.695 MB / 402.1 MB, free: 6.047 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002322/0.6927, allocations: 0.7375 MB / 402.9 MB, free: 5.934 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.6927, allocations: 4.062 kB / 402.9 MB, free: 5.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.6943, allocations: 377.4 kB / 403.2 MB, free: 5.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.6955, allocations: 79.97 kB / 403.3 MB, free: 5.906 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004422/0.6999, allocations: 1.354 MB / 404.7 MB, free: 5.234 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005985/0.7006, allocations: 0.8602 MB / 405.5 MB, free: 20.53 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000397/0.701, allocations: 147.4 kB / 405.7 MB, free: 20.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.273e-06/0.701, allocations: 0 / 405.7 MB, free: 20.52 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.903/3.604, allocations: 10.16 MB / 415.8 MB, free: 16.7 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat