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.058/2.058, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.787e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3716/0.3717, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1415/0.5132, allocations: 73.75 MB / 368 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.5136, allocations: 63.97 kB / 368 MB, free: 8.035 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04685/0.5604, allocations: 8.868 MB / 376.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.5605, allocations: 0 / 376.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.775e-05/0.5606, allocations: 12 kB / 376.9 MB, free: 15.14 MB / 330.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.002888/0.5635, allocations: 0.7872 MB / 377.7 MB, free: 14.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.5635, allocations: 8.031 kB / 377.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003515/0.5639, allocations: 63.25 kB / 377.8 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007977/0.5647, allocations: 343.5 kB / 378.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.983e-05/0.5648, allocations: 12 kB / 378.1 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.5649, allocations: 31.98 kB / 378.1 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001442/0.5664, allocations: 474.4 kB / 378.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.5678, allocations: 0.504 MB / 379.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.574e-05/0.5679, allocations: 11.89 kB / 379.1 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.771e-05/0.568, allocations: 7.922 kB / 379.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.568, allocations: 12 kB / 379.1 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004588/0.5726, allocations: 1.246 MB / 380.4 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.5741, allocations: 415.6 kB / 380.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006983/0.5749, allocations: 250.5 kB / 381 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.575, allocations: 16.5 kB / 381.1 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.5751, allocations: 35.12 kB / 381.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 6.212e-06/0.5751, allocations: 11.92 kB / 381.1 MB, free: 10.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.007102/0.5822, allocations: 1.865 MB / 383 MB, free: 8.832 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.5823, allocations: 59.97 kB / 383 MB, free: 8.762 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.5827, allocations: 229.2 kB / 383.3 MB, free: 8.531 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.5829, allocations: 41.69 kB / 383.3 MB, free: 8.484 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.5831, allocations: 185.3 kB / 383.5 MB, free: 8.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003316/0.5835, allocations: 224.8 kB / 383.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.446e-05/0.5835, allocations: 0 / 383.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.5837, allocations: 354.8 kB / 384 MB, free: 7.719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007262/0.5845, allocations: 249.5 kB / 384.3 MB, free: 7.477 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007533/0.5853, allocations: 305.5 kB / 384.6 MB, free: 7.172 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009048/0.5862, allocations: 200.5 kB / 384.8 MB, free: 6.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.5862, allocations: 0 / 384.8 MB, free: 6.977 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002549/0.5888, allocations: 0.7549 MB / 385.5 MB, free: 6.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.5889, allocations: 4 kB / 385.5 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.338e-05/0.5889, allocations: 4 kB / 385.5 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001814/0.5907, allocations: 0.5492 MB / 386.1 MB, free: 5.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/0.5916, allocations: 107.8 kB / 386.2 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002507/0.5941, allocations: 1.06 MB / 387.3 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/0.5957, allocations: 139.8 kB / 387.4 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/0.5959, allocations: 31.97 kB / 387.4 MB, free: 4.293 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0003687/0.5963, allocations: 134.6 kB / 387.6 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002642/0.5989, allocations: 0.6866 MB / 388.2 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.5992, allocations: 47.44 kB / 388.3 MB, free: 3.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002894/0.6021, allocations: 0.8199 MB / 389.1 MB, free: 2.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.6022, allocations: 4 kB / 389.1 MB, free: 2.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.6022, allocations: 0 / 389.1 MB, free: 2.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.6022, allocations: 3.984 kB / 389.1 MB, free: 2.562 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004049/0.6063, allocations: 1.329 MB / 390.4 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.6064, allocations: 96 / 390.4 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009268/0.6073, allocations: 91.89 kB / 390.5 MB, free: 1.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001809/0.6091, allocations: 0.5316 MB / 391.1 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.6093, allocations: 15.97 kB / 391.1 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/0.6116, allocations: 1.028 MB / 392.1 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.6117, allocations: 4 kB / 392.1 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003461/0.6152, allocations: 1.074 MB / 393.2 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004902/0.6157, allocations: 188.4 kB / 393.4 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.616, allocations: 16 kB / 393.4 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.6173, allocations: 135.8 kB / 393.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005258/0.6179, allocations: 152.2 kB / 393.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.618, allocations: 35.95 kB / 393.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003081/0.6183, allocations: 192.6 kB / 393.9 MB, free: 13.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6183, allocations: 0 / 393.9 MB, free: 13.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008928/0.6192, allocations: 135.9 kB / 394 MB, free: 13.54 MB / 346.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.003984/0.6233, allocations: 1.655 MB / 395.7 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002214/0.6255, allocations: 0.713 MB / 396.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.6256, allocations: 0 / 396.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.6268, allocations: 364.8 kB / 396.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.6278, allocations: 73.16 kB / 396.8 MB, free: 10.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004663/0.6325, allocations: 1.263 MB / 398.1 MB, free: 9.387 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/0.6331, allocations: 0.8593 MB / 398.9 MB, free: 8.5 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003358/0.6335, allocations: 43.45 kB / 399 MB, free: 8.457 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003738/0.6338, allocations: 143.4 kB / 399.1 MB, free: 8.316 MB / 346.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6339, allocations: 0 / 399.1 MB, free: 8.316 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07078/0.7046, allocations: 14.51 MB / 413.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002897/0.705, allocations: 142.6 kB / 413.8 MB, free: 9.625 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.201/3.906, allocations: 0 / 413.8 MB, free: 9.625 MB / 362.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