Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.775/1.775, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.518e-05/2.517e-05, allocations: 7.938 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2635, allocations: 38.76 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1667/0.4303, allocations: 68.42 MB / 326.7 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.4306, allocations: 71.89 kB / 326.8 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04152/0.4722, allocations: 8.721 MB / 335.5 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4722, allocations: 4 kB / 335.5 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.26e-05/0.4723, allocations: 12 kB / 335.5 MB, free: 0.6602 MB / 282.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.002475/0.4748, allocations: 0.787 MB / 336.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.4748, allocations: 12.03 kB / 336.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001781/0.475, allocations: 55.34 kB / 336.4 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006452/0.4757, allocations: 343.6 kB / 336.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.4757, allocations: 12 kB / 336.7 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.4759, allocations: 35.86 kB / 336.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001454/0.4773, allocations: 0.5297 MB / 337.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.4787, allocations: 0.5352 MB / 337.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.9e-05/0.4787, allocations: 0 / 337.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.717e-05/0.4788, allocations: 4 kB / 337.9 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.4789, allocations: 8 kB / 337.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003832/0.4827, allocations: 1.281 MB / 339.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.484, allocations: 413.5 kB / 339.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006272/0.4846, allocations: 270.5 kB / 339.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.215e-05/0.4847, allocations: 8.547 kB / 339.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.4848, allocations: 39.12 kB / 339.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.707e-06/0.4848, allocations: 0 / 339.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.006247/0.491, allocations: 1.962 MB / 341.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.4911, allocations: 63.97 kB / 341.9 MB, free: 10.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.4916, allocations: 254.4 kB / 342.1 MB, free: 9.801 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/0.4917, allocations: 41.69 kB / 342.2 MB, free: 9.754 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.4919, allocations: 251.5 kB / 342.4 MB, free: 9.508 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.4922, allocations: 217 kB / 342.6 MB, free: 9.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.4922, allocations: 4 kB / 342.6 MB, free: 9.289 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4924, allocations: 338.8 kB / 343 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007274/0.4931, allocations: 273.5 kB / 343.2 MB, free: 8.684 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008228/0.494, allocations: 333.5 kB / 343.6 MB, free: 8.348 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008312/0.4948, allocations: 232.4 kB / 343.8 MB, free: 8.121 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4948, allocations: 0 / 343.8 MB, free: 8.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002414/0.4973, allocations: 0.8136 MB / 344.6 MB, free: 7.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.4973, allocations: 4 kB / 344.6 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.4973, allocations: 0 / 344.6 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002164/0.4995, allocations: 0.7562 MB / 345.4 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007891/0.5003, allocations: 103.9 kB / 345.5 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/0.5028, allocations: 1.161 MB / 346.6 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.5041, allocations: 139.9 kB / 346.8 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.5043, allocations: 31.98 kB / 346.8 MB, free: 5.078 MB / 298.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): 63 * 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 prepare postOptimizeDAE: time 0.0003147/0.5046, allocations: 130.4 kB / 346.9 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00249/0.5071, allocations: 0.7687 MB / 347.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.5073, allocations: 51.39 kB / 347.7 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002193/0.5075, allocations: 65.06 kB / 347.8 MB, free: 4.043 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.5075, allocations: 11.94 kB / 347.8 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5075, allocations: 0 / 347.8 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.5075, allocations: 3.984 kB / 347.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003974/0.5115, allocations: 1.463 MB / 349.3 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.5116, allocations: 3.953 kB / 349.3 MB, free: 2.516 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008708/0.5125, allocations: 91.89 kB / 349.4 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002028/0.5145, allocations: 0.7308 MB / 350.1 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.986e-05/0.5146, allocations: 23.89 kB / 350.1 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00223/0.5169, allocations: 1.114 MB / 351.2 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5169, allocations: 0 / 351.2 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003469/0.5204, allocations: 1.246 MB / 352.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004254/0.5208, allocations: 192.4 kB / 352.7 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/0.521, allocations: 12 kB / 352.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.5223, allocations: 131.9 kB / 352.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004776/0.5228, allocations: 152.2 kB / 353 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.5229, allocations: 27.97 kB / 353 MB, free: 14.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000304/0.5232, allocations: 208.6 kB / 353.2 MB, free: 14.53 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5232, allocations: 0 / 353.2 MB, free: 14.53 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007597/0.524, allocations: 135.9 kB / 353.3 MB, free: 14.4 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.003791/0.5278, allocations: 1.787 MB / 355.1 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.5297, allocations: 0.665 MB / 355.8 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5298, allocations: 0 / 355.8 MB, free: 11.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.5308, allocations: 380.8 kB / 356.1 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008777/0.5317, allocations: 69.05 kB / 356.2 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004037/0.5358, allocations: 1.309 MB / 357.5 MB, free: 10.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/0.5363, allocations: 0.8554 MB / 358.4 MB, free: 9.246 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003913/0.5367, allocations: 151.4 kB / 358.5 MB, free: 9.098 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5367, allocations: 4 kB / 358.5 MB, free: 9.094 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.168/3.705, allocations: 9.606 MB / 368.1 MB, free: 94.61 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat