Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.246/2.246, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.539e-05/3.568e-05, allocations: 4 kB / 269.4 MB, free: 6.297 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 47.58 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4108/0.517, allocations: 78.76 MB / 395.8 MB, free: 8.891 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.5173, allocations: 71.45 kB / 395.9 MB, free: 8.855 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04446/0.5618, allocations: 9.129 MB / 405 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5619, allocations: 0 / 405 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.088e-05/0.5619, allocations: 8 kB / 405 MB, free: 0.9609 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.002592/0.5645, allocations: 0.7777 MB / 405.8 MB, free: 168 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.5646, allocations: 8.031 kB / 405.8 MB, free: 160 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001892/0.5648, allocations: 89.77 kB / 405.9 MB, free: 88 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001876/0.565, allocations: 59.25 kB / 405.9 MB, free: 28 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006815/0.5657, allocations: 327.2 kB / 406.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/0.5658, allocations: 41.7 kB / 406.3 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001549/0.5659, allocations: 43.56 kB / 406.3 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.5674, allocations: 0.5464 MB / 406.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.828e-05/0.5675, allocations: 11.47 kB / 406.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.75e-05/0.5676, allocations: 16.62 kB / 406.9 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.5676, allocations: 12 kB / 406.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.569, allocations: 493.5 kB / 407.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004503/0.5736, allocations: 1.349 MB / 408.7 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.5751, allocations: 445 kB / 409.2 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007764/0.5759, allocations: 266.2 kB / 409.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001063/0.5761, allocations: 12.19 kB / 409.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.5761, allocations: 43 kB / 409.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 4.138e-06/0.5761, allocations: 0 / 409.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.005894/0.582, allocations: 1.922 MB / 411.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.5821, allocations: 59.97 kB / 411.5 MB, free: 11.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004428/0.5826, allocations: 257 kB / 411.7 MB, free: 11.37 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.5828, allocations: 49.25 kB / 411.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.5829, allocations: 187 kB / 412 MB, free: 11.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.5833, allocations: 235.5 kB / 412.2 MB, free: 10.99 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/0.5833, allocations: 11.31 kB / 412.2 MB, free: 10.99 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.5835, allocations: 358 kB / 412.5 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007734/0.5843, allocations: 259.9 kB / 412.8 MB, free: 10.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008152/0.5851, allocations: 319.6 kB / 413.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006797/0.5858, allocations: 195.9 kB / 413.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.5859, allocations: 0 / 413.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002376/0.5883, allocations: 0.7842 MB / 414.1 MB, free: 9.609 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/0.5883, allocations: 8 kB / 414.1 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.37e-05/0.5884, allocations: 4 kB / 414.1 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001839/0.5902, allocations: 0.5528 MB / 414.6 MB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008268/0.5911, allocations: 99.7 kB / 414.7 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.5932, allocations: 0.9851 MB / 415.7 MB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.5948, allocations: 153.5 kB / 415.9 MB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/0.5951, allocations: 31.05 kB / 415.9 MB, free: 8.082 MB / 330.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.0003305/0.5954, allocations: 149.6 kB / 416.1 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.5956, allocations: 47.44 kB / 416.1 MB, free: 7.902 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002872/0.5985, allocations: 0.8593 MB / 417 MB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.5986, allocations: 8 kB / 417 MB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.5986, allocations: 0 / 417 MB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/0.5986, allocations: 7.984 kB / 417 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004074/0.6027, allocations: 1.423 MB / 418.4 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.6028, allocations: 0 / 418.4 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009563/0.6038, allocations: 95.77 kB / 418.5 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/0.6056, allocations: 0.5293 MB / 419 MB, free: 5.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.6058, allocations: 30.77 kB / 419.1 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001981/0.6078, allocations: 0.9378 MB / 420 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/0.6078, allocations: 4.031 kB / 420 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/0.6113, allocations: 1.126 MB / 421.1 MB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000517/0.6119, allocations: 185.1 kB / 421.3 MB, free: 3.844 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.6121, allocations: 22.25 kB / 421.3 MB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.6135, allocations: 143.4 kB / 421.5 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005184/0.6141, allocations: 149.5 kB / 421.6 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.6142, allocations: 31.89 kB / 421.6 MB, free: 3.543 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003886/0.6146, allocations: 213.7 kB / 421.9 MB, free: 3.367 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6146, allocations: 0 / 421.9 MB, free: 3.367 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009445/0.6156, allocations: 163.5 kB / 422 MB, free: 3.227 MB / 330.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.00406/0.6196, allocations: 1.704 MB / 423.7 MB, free: 1.844 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002296/0.622, allocations: 0.7417 MB / 424.5 MB, free: 1.305 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.6221, allocations: 0 / 424.5 MB, free: 1.305 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.6233, allocations: 389.8 kB / 424.8 MB, free: 1.043 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009778/0.6243, allocations: 74.31 kB / 424.9 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004733/0.6291, allocations: 1.312 MB / 426.2 MB, free: 15.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005921/0.6297, allocations: 0.8591 MB / 427.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003557/0.6301, allocations: 44.16 kB / 427.1 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003312/0.6305, allocations: 148.7 kB / 427.3 MB, free: 14.79 MB / 346.7 MB Notification: Performance of SimCode: time 1.653e-06/0.6305, allocations: 0 / 427.3 MB, free: 14.79 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07582/0.7063, allocations: 15.32 MB / 442.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003063/0.7067, allocations: 194.5 kB / 442.8 MB, free: 15.31 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.31/4.017, allocations: 0 / 442.8 MB, free: 15.31 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat