Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.203/2.203, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.515e-05/4.519e-05, allocations: 4 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1396, allocations: 50.41 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4446/0.5842, allocations: 79.9 MB / 422.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.5846, allocations: 66.78 kB / 422.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04858/0.6332, allocations: 9.275 MB / 431.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6332, allocations: 0 / 431.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.278e-05/0.6333, allocations: 8 kB / 431.9 MB, free: 6.242 MB / 346.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.002774/0.6361, allocations: 0.7802 MB / 432.7 MB, free: 5.441 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.6361, allocations: 12.03 kB / 432.7 MB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002588/0.6364, allocations: 78.53 kB / 432.8 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002125/0.6366, allocations: 59.25 kB / 432.8 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007536/0.6374, allocations: 333.1 kB / 433.1 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.525e-05/0.6375, allocations: 39.56 kB / 433.2 MB, free: 4.957 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.6377, allocations: 49 kB / 433.2 MB, free: 4.926 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.6393, allocations: 0.5477 MB / 433.8 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.207e-05/0.6394, allocations: 6.969 kB / 433.8 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.163e-05/0.6395, allocations: 20.39 kB / 433.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.6395, allocations: 12 kB / 433.8 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.6411, allocations: 494.1 kB / 434.3 MB, free: 4.188 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004794/0.6459, allocations: 1.345 MB / 435.6 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.6476, allocations: 443.5 kB / 436.1 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008209/0.6485, allocations: 270.1 kB / 436.3 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.6486, allocations: 12.56 kB / 436.4 MB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.03e-05/0.6487, allocations: 34.5 kB / 436.4 MB, free: 2.531 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 4.739e-06/0.6487, allocations: 4 kB / 436.4 MB, free: 2.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.006407/0.6551, allocations: 1.94 MB / 438.3 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.6552, allocations: 63.91 kB / 438.4 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004514/0.6557, allocations: 253.5 kB / 438.6 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/0.6559, allocations: 47.27 kB / 438.7 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.6561, allocations: 192.6 kB / 438.9 MB, free: 468 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.6565, allocations: 226.8 kB / 439.1 MB, free: 272 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.237e-05/0.6566, allocations: 12.56 kB / 439.1 MB, free: 272 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002111/0.6568, allocations: 356.2 kB / 439.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008091/0.6577, allocations: 256.5 kB / 439.7 MB, free: 15.78 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008877/0.6586, allocations: 315.4 kB / 440 MB, free: 15.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006599/0.6593, allocations: 195.7 kB / 440.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.6593, allocations: 4 kB / 440.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002471/0.6618, allocations: 0.7892 MB / 441 MB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.6619, allocations: 7.953 kB / 441 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.269e-05/0.6619, allocations: 4 kB / 441 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001837/0.6638, allocations: 0.5465 MB / 441.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008307/0.6646, allocations: 98.52 kB / 441.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/0.6668, allocations: 0.9802 MB / 442.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.6684, allocations: 149.7 kB / 442.8 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001895/0.6687, allocations: 27.17 kB / 442.8 MB, free: 13.38 MB / 362.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.0002952/0.669, allocations: 152 kB / 443 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.6692, allocations: 47.44 kB / 443 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/0.672, allocations: 0.8634 MB / 443.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/0.672, allocations: 8 kB / 443.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.672, allocations: 0 / 443.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.022e-05/0.6721, allocations: 7.938 kB / 443.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004062/0.6761, allocations: 1.424 MB / 445.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.6762, allocations: 0 / 445.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009481/0.6772, allocations: 91.88 kB / 445.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/0.6789, allocations: 0.5336 MB / 445.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/0.6791, allocations: 30.83 kB / 446 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.681, allocations: 0.9461 MB / 446.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.6811, allocations: 0 / 446.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/0.6845, allocations: 1.121 MB / 448 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004715/0.685, allocations: 188.4 kB / 448.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.6853, allocations: 27.95 kB / 448.2 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.6867, allocations: 139.9 kB / 448.4 MB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005263/0.6872, allocations: 152.2 kB / 448.5 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.6874, allocations: 27.97 kB / 448.5 MB, free: 8.359 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003722/0.6878, allocations: 214.2 kB / 448.8 MB, free: 8.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6878, allocations: 0 / 448.8 MB, free: 8.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009246/0.6887, allocations: 160 kB / 448.9 MB, free: 7.992 MB / 362.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.004089/0.6928, allocations: 1.709 MB / 450.6 MB, free: 6.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.6953, allocations: 0.7442 MB / 451.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.6953, allocations: 0 / 451.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.6966, allocations: 376.8 kB / 451.7 MB, free: 5.121 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009925/0.6976, allocations: 73.22 kB / 451.8 MB, free: 5.051 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004727/0.7024, allocations: 1.321 MB / 453.1 MB, free: 3.691 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.703, allocations: 0.8518 MB / 454 MB, free: 2.812 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003741/0.7034, allocations: 44.17 kB / 454 MB, free: 2.766 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003569/0.7037, allocations: 151.3 kB / 454.2 MB, free: 2.617 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/0.7037, allocations: 0 / 454.2 MB, free: 2.617 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06368/0.7674, allocations: 15.34 MB / 469.5 MB, free: 3.43 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002881/0.7678, allocations: 183 kB / 469.7 MB, free: 3.207 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.284/4.052, allocations: 0 / 469.7 MB, free: 3.207 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat