Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.903e-05/3.912e-05, allocations: 4 kB / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1476, allocations: 44.5 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4385/0.5862, allocations: 74.4 MB / 374.4 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.5866, allocations: 70.78 kB / 374.4 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04214/0.6287, allocations: 8.941 MB / 383.4 MB, free: 11.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6288, allocations: 1.375 kB / 383.4 MB, free: 11.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.902e-05/0.6288, allocations: 9.281 kB / 383.4 MB, free: 11.59 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.002414/0.6312, allocations: 0.778 MB / 384.2 MB, free: 11.1 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.6313, allocations: 10.25 kB / 384.2 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001565/0.6315, allocations: 83.89 kB / 384.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.6317, allocations: 65.3 kB / 384.3 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005888/0.6323, allocations: 339.2 kB / 384.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/0.6323, allocations: 35.72 kB / 384.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.6325, allocations: 45.73 kB / 384.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.6339, allocations: 0.5477 MB / 385.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.634, allocations: 6.469 kB / 385.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.79e-05/0.6341, allocations: 18.03 kB / 385.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.6341, allocations: 14.56 kB / 385.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.6355, allocations: 493.8 kB / 385.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003921/0.6394, allocations: 1.335 MB / 387.1 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.6409, allocations: 448.6 kB / 387.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006381/0.6415, allocations: 277.1 kB / 387.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.911e-05/0.6417, allocations: 8.281 kB / 387.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.6417, allocations: 38.81 kB / 387.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.156e-06/0.6417, allocations: 0 / 387.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.005173/0.6469, allocations: 1.918 MB / 389.8 MB, free: 9.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.647, allocations: 63.67 kB / 389.9 MB, free: 9.504 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003449/0.6473, allocations: 260.6 kB / 390.1 MB, free: 9.391 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.6474, allocations: 48.22 kB / 390.2 MB, free: 9.359 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.6476, allocations: 186.5 kB / 390.4 MB, free: 9.246 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.6478, allocations: 233.7 kB / 390.6 MB, free: 9.109 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-05/0.6479, allocations: 15.34 kB / 390.6 MB, free: 9.109 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9e-05/0.648, allocations: 357.7 kB / 391 MB, free: 8.797 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006656/0.6487, allocations: 257.3 kB / 391.2 MB, free: 8.793 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000718/0.6494, allocations: 314.4 kB / 391.5 MB, free: 8.766 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005261/0.6499, allocations: 194.6 kB / 391.7 MB, free: 8.758 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.65, allocations: 0 / 391.7 MB, free: 8.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002039/0.652, allocations: 0.7888 MB / 392.5 MB, free: 8.668 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.652, allocations: 4.594 kB / 392.5 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/0.6521, allocations: 3.844 kB / 392.5 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/0.6537, allocations: 0.5561 MB / 393.1 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007519/0.6544, allocations: 98.73 kB / 393.2 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.6562, allocations: 0.9829 MB / 394.1 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/0.658, allocations: 151.3 kB / 394.3 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.6581, allocations: 35.52 kB / 394.3 MB, free: 8.066 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.0002629/0.6584, allocations: 151 kB / 394.5 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.6586, allocations: 50.52 kB / 394.5 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/0.661, allocations: 0.8579 MB / 395.4 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.661, allocations: 3.875 kB / 395.4 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.661, allocations: 3.875 kB / 395.4 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.6611, allocations: 6.531 kB / 395.4 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.6645, allocations: 1.426 MB / 396.8 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.6645, allocations: 0 / 396.8 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008851/0.6654, allocations: 93.73 kB / 396.9 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.6669, allocations: 0.5347 MB / 397.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.667, allocations: 30.59 kB / 397.5 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.6686, allocations: 0.9404 MB / 398.4 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6687, allocations: 0 / 398.4 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002848/0.6715, allocations: 1.125 MB / 399.5 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003611/0.6719, allocations: 187.9 kB / 399.7 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.6721, allocations: 24.05 kB / 399.7 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.6733, allocations: 137.3 kB / 399.9 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005391/0.6739, allocations: 150.7 kB / 400 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/0.674, allocations: 36.97 kB / 400.1 MB, free: 6.566 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003661/0.6744, allocations: 215.8 kB / 400.3 MB, free: 6.473 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6744, allocations: 0 / 400.3 MB, free: 6.473 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001139/0.6756, allocations: 171.2 kB / 400.4 MB, free: 6.461 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.004621/0.6802, allocations: 1.701 MB / 402.1 MB, free: 21.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002546/0.6828, allocations: 0.7353 MB / 402.9 MB, free: 21.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6828, allocations: 0 / 402.9 MB, free: 21.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.6842, allocations: 383.2 kB / 403.2 MB, free: 21.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.6854, allocations: 76.08 kB / 403.3 MB, free: 21.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005536/0.691, allocations: 1.324 MB / 404.6 MB, free: 20.95 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006827/0.6917, allocations: 0.8557 MB / 405.5 MB, free: 20.25 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004154/0.6921, allocations: 42.19 kB / 405.5 MB, free: 20.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004312/0.6926, allocations: 147.7 kB / 405.7 MB, free: 20.22 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.6926, allocations: 0 / 405.7 MB, free: 20.22 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07156/0.7642, allocations: 15.32 MB / 421 MB, free: 13.68 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003424/0.7646, allocations: 190.3 kB / 421.2 MB, free: 13.45 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.21/3.974, allocations: 0 / 421.2 MB, free: 13.45 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat