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.18/2.18, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.621e-05/2.623e-05, allocations: 0 / 255.4 MB, free: 2.648 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.09418, allocations: 44.52 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4282/0.5225, allocations: 74.39 MB / 374.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.5228, allocations: 73.59 kB / 374.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04035/0.5631, allocations: 8.935 MB / 383.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5632, allocations: 0 / 383.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.008e-05/0.5632, allocations: 12.75 kB / 383.4 MB, free: 11.64 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.002531/0.5658, allocations: 0.7722 MB / 384.1 MB, free: 11.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.5658, allocations: 13.78 kB / 384.2 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001657/0.566, allocations: 83.61 kB / 384.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.5662, allocations: 60.84 kB / 384.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.5668, allocations: 338 kB / 384.6 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.141e-05/0.5669, allocations: 31.41 kB / 384.7 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.567, allocations: 46.78 kB / 384.7 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.5685, allocations: 0.5589 MB / 385.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/0.5686, allocations: 5.281 kB / 385.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.663e-05/0.5687, allocations: 19.25 kB / 385.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.5687, allocations: 12.06 kB / 385.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.5701, allocations: 496.9 kB / 385.8 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003959/0.5741, allocations: 1.34 MB / 387.1 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.5755, allocations: 448.2 kB / 387.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000628/0.5762, allocations: 276.4 kB / 387.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001109/0.5763, allocations: 4.469 kB / 387.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.5763, allocations: 46.38 kB / 387.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.937e-06/0.5763, allocations: 0 / 387.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.00523/0.5816, allocations: 1.922 MB / 389.8 MB, free: 9.621 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.5817, allocations: 63.77 kB / 389.9 MB, free: 9.555 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.582, allocations: 258.6 kB / 390.1 MB, free: 9.445 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.5821, allocations: 50.14 kB / 390.2 MB, free: 9.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.5823, allocations: 187.2 kB / 390.4 MB, free: 9.297 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.5825, allocations: 234.7 kB / 390.6 MB, free: 9.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.423e-05/0.5826, allocations: 14 kB / 390.6 MB, free: 9.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.5827, allocations: 354.9 kB / 390.9 MB, free: 8.844 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/0.5834, allocations: 263.5 kB / 391.2 MB, free: 8.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000731/0.5841, allocations: 319.5 kB / 391.5 MB, free: 8.812 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005272/0.5847, allocations: 194.4 kB / 391.7 MB, free: 8.797 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.5847, allocations: 0 / 391.7 MB, free: 8.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00205/0.5867, allocations: 0.7948 MB / 392.5 MB, free: 8.711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.5868, allocations: 13.62 kB / 392.5 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.582e-05/0.5868, allocations: 0 / 392.5 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/0.5884, allocations: 0.5549 MB / 393.1 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007153/0.5891, allocations: 100.3 kB / 393.2 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.5908, allocations: 0.9797 MB / 394.1 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.5922, allocations: 150.7 kB / 394.3 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.5924, allocations: 34.44 kB / 394.3 MB, free: 8.109 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.0002447/0.5926, allocations: 141.6 kB / 394.5 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.5928, allocations: 50.67 kB / 394.5 MB, free: 7.973 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/0.5952, allocations: 0.8605 MB / 395.4 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.5952, allocations: 7.719 kB / 395.4 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.5952, allocations: 0 / 395.4 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.5952, allocations: 3.375 kB / 395.4 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003341/0.5986, allocations: 1.423 MB / 396.8 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.5986, allocations: 3.906 kB / 396.8 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000866/0.5995, allocations: 93.56 kB / 396.9 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001455/0.601, allocations: 0.5268 MB / 397.4 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.6011, allocations: 27.69 kB / 397.5 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.6027, allocations: 0.9644 MB / 398.4 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6027, allocations: 0 / 398.4 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002951/0.6057, allocations: 1.116 MB / 399.5 MB, free: 6.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004406/0.6062, allocations: 192.9 kB / 399.7 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.6063, allocations: 20.84 kB / 399.7 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.6076, allocations: 145.2 kB / 399.9 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004301/0.6081, allocations: 144.5 kB / 400 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.6082, allocations: 42.2 kB / 400.1 MB, free: 6.598 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002946/0.6085, allocations: 211.2 kB / 400.3 MB, free: 6.516 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6085, allocations: 0 / 400.3 MB, free: 6.516 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007662/0.6093, allocations: 168.2 kB / 400.4 MB, free: 6.504 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.003294/0.6126, allocations: 1.701 MB / 402.1 MB, free: 5.773 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002119/0.6148, allocations: 0.7449 MB / 402.9 MB, free: 21.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6148, allocations: 0 / 402.9 MB, free: 21.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.6159, allocations: 387.1 kB / 403.3 MB, free: 21.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008792/0.6168, allocations: 77.08 kB / 403.3 MB, free: 21.63 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003845/0.6206, allocations: 1.318 MB / 404.7 MB, free: 20.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.6211, allocations: 0.8596 MB / 405.5 MB, free: 20.28 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002971/0.6214, allocations: 41.61 kB / 405.6 MB, free: 20.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003022/0.6217, allocations: 144.8 kB / 405.7 MB, free: 20.26 MB / 330.7 MB Notification: Performance of SimCode: time 1.293e-06/0.6218, allocations: 0 / 405.7 MB, free: 20.26 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04678/0.6685, allocations: 15.36 MB / 421.1 MB, free: 13.69 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003444/0.669, allocations: 187.8 kB / 421.2 MB, free: 13.46 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.135/3.804, allocations: 3.938 kB / 421.2 MB, free: 13.46 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