Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.093/2.093, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.183e-05/2.181e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2958, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4249, allocations: 73.75 MB / 367.9 MB, free: 8.148 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.4252, allocations: 63.97 kB / 368 MB, free: 8.086 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04124/0.4664, allocations: 8.875 MB / 376.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.937e-06/0.4665, allocations: 0 / 376.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.966e-05/0.4665, allocations: 15.94 kB / 376.9 MB, free: 15.18 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.002395/0.4689, allocations: 0.7794 MB / 377.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.469, allocations: 12.03 kB / 377.7 MB, free: 14.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.4692, allocations: 59.25 kB / 377.7 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006219/0.4698, allocations: 351.5 kB / 378.1 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.4698, allocations: 12 kB / 378.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.47, allocations: 24 kB / 378.1 MB, free: 13.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00136/0.4714, allocations: 482.4 kB / 378.6 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.4727, allocations: 0.5 MB / 379.1 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.4727, allocations: 15.84 kB / 379.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.377e-05/0.4728, allocations: 0 / 379.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.4728, allocations: 12 kB / 379.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003845/0.4767, allocations: 1.246 MB / 380.4 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.478, allocations: 419.5 kB / 380.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006135/0.4786, allocations: 250.5 kB / 381 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.4788, allocations: 16.48 kB / 381 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.4788, allocations: 47.06 kB / 381.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 3.526e-06/0.4789, allocations: 0 / 381.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.006354/0.4852, allocations: 1.853 MB / 382.9 MB, free: 8.887 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.4853, allocations: 59.97 kB / 383 MB, free: 8.816 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.4857, allocations: 225.2 kB / 383.2 MB, free: 8.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.4858, allocations: 45.69 kB / 383.3 MB, free: 8.539 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.486, allocations: 235.8 kB / 383.5 MB, free: 8.305 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002879/0.4863, allocations: 228.8 kB / 383.7 MB, free: 8.078 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-05/0.4864, allocations: 4 kB / 383.7 MB, free: 8.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.4866, allocations: 342.8 kB / 384.1 MB, free: 7.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007156/0.4873, allocations: 249.5 kB / 384.3 MB, free: 7.488 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007381/0.488, allocations: 297.5 kB / 384.6 MB, free: 7.191 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008257/0.4889, allocations: 204.5 kB / 384.8 MB, free: 6.992 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.4889, allocations: 4 kB / 384.8 MB, free: 6.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002351/0.4913, allocations: 0.7317 MB / 385.5 MB, free: 6.246 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.4913, allocations: 8 kB / 385.5 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/0.4913, allocations: 0 / 385.5 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/0.4931, allocations: 0.5531 MB / 386.1 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007332/0.4938, allocations: 103.8 kB / 386.2 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/0.496, allocations: 1.06 MB / 387.2 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/0.4974, allocations: 139.9 kB / 387.4 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.4975, allocations: 31.98 kB / 387.4 MB, free: 4.328 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.0003128/0.4978, allocations: 135.5 kB / 387.5 MB, free: 4.188 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002417/0.5003, allocations: 0.6944 MB / 388.2 MB, free: 3.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.5004, allocations: 47.44 kB / 388.3 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/0.5031, allocations: 0.8122 MB / 389.1 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.5031, allocations: 8 kB / 389.1 MB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.5031, allocations: 0 / 389.1 MB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.5031, allocations: 3.984 kB / 389.1 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003655/0.5068, allocations: 1.329 MB / 390.4 MB, free: 1.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.5069, allocations: 4 kB / 390.4 MB, free: 1.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008519/0.5077, allocations: 91.88 kB / 390.5 MB, free: 1.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001554/0.5093, allocations: 0.5277 MB / 391.1 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.5094, allocations: 23.95 kB / 391.1 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/0.5116, allocations: 1.024 MB / 392.1 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.5116, allocations: 0 / 392.1 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.5148, allocations: 1.078 MB / 393.2 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004182/0.5153, allocations: 180.5 kB / 393.4 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.5155, allocations: 15.98 kB / 393.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.5167, allocations: 127.9 kB / 393.5 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000489/0.5172, allocations: 156.2 kB / 393.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.5173, allocations: 35.91 kB / 393.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002747/0.5176, allocations: 192.6 kB / 393.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5176, allocations: 4 kB / 393.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000773/0.5184, allocations: 139.9 kB / 394 MB, free: 13.56 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.003618/0.5221, allocations: 1.658 MB / 395.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.5241, allocations: 0.7092 MB / 396.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.5241, allocations: 0 / 396.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.5251, allocations: 364.8 kB / 396.7 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008478/0.526, allocations: 69.72 kB / 396.8 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004027/0.53, allocations: 1.295 MB / 398.1 MB, free: 9.379 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/0.5306, allocations: 0.8593 MB / 399 MB, free: 8.492 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004008/0.531, allocations: 147.4 kB / 399.1 MB, free: 8.348 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.531, allocations: 0 / 399.1 MB, free: 8.348 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.907/3.438, allocations: 10.13 MB / 409.2 MB, free: 14.23 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat