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.807/1.807, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.315e-05/3.32e-05, allocations: 0 / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2577, allocations: 38.77 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.3816, allocations: 69.1 MB / 332.9 MB, free: 4.559 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.382, allocations: 63.97 kB / 333 MB, free: 4.496 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04324/0.4252, allocations: 8.784 MB / 341.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.009e-06/0.4253, allocations: 0 / 341.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.445e-05/0.4253, allocations: 11.94 kB / 341.8 MB, free: 11.68 MB / 298.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.002776/0.4281, allocations: 0.7907 MB / 342.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.4282, allocations: 8.031 kB / 342.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001972/0.4284, allocations: 82.53 kB / 342.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.4286, allocations: 55.34 kB / 342.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006736/0.4293, allocations: 343.6 kB / 343.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.4293, allocations: 29 kB / 343.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.4295, allocations: 51.86 kB / 343.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002012/0.4316, allocations: 0.5781 MB / 343.7 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.4316, allocations: 11.91 kB / 343.7 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-05/0.4317, allocations: 20 kB / 343.8 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.4318, allocations: 15.98 kB / 343.8 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.4334, allocations: 0.5485 MB / 344.3 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004512/0.4379, allocations: 1.348 MB / 345.7 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.4394, allocations: 436 kB / 346.1 MB, free: 7.199 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007838/0.4402, allocations: 282.5 kB / 346.4 MB, free: 6.918 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.339e-05/0.4403, allocations: 12.55 kB / 346.4 MB, free: 6.906 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/0.4403, allocations: 35.66 kB / 346.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.457e-06/0.4404, allocations: 0 / 346.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.006448/0.4468, allocations: 2.072 MB / 348.5 MB, free: 4.699 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.4469, allocations: 63.97 kB / 348.6 MB, free: 4.625 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005127/0.4475, allocations: 279.6 kB / 348.8 MB, free: 4.352 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001933/0.4477, allocations: 49.7 kB / 348.9 MB, free: 4.297 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/0.4479, allocations: 243.7 kB / 349.1 MB, free: 4.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003113/0.4482, allocations: 233 kB / 349.3 MB, free: 3.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.922e-05/0.4483, allocations: 16 kB / 349.4 MB, free: 3.809 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.4484, allocations: 334.8 kB / 349.7 MB, free: 3.473 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008784/0.4493, allocations: 293.5 kB / 350 MB, free: 3.184 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009694/0.4503, allocations: 341.5 kB / 350.3 MB, free: 2.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006983/0.451, allocations: 230 kB / 350.5 MB, free: 2.621 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.4511, allocations: 4 kB / 350.5 MB, free: 2.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002556/0.4536, allocations: 0.8605 MB / 351.4 MB, free: 1.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.508e-05/0.4537, allocations: 9.719 kB / 351.4 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.4537, allocations: 0 / 351.4 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/0.456, allocations: 0.7528 MB / 352.2 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008567/0.4569, allocations: 107.8 kB / 352.3 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002249/0.4592, allocations: 1.067 MB / 353.3 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.4607, allocations: 155.9 kB / 353.5 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.4609, allocations: 31.98 kB / 353.5 MB, free: 15.6 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): 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.0002802/0.4612, allocations: 147.2 kB / 353.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.4614, allocations: 51.42 kB / 353.7 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002292/0.4616, allocations: 68.75 kB / 353.8 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.4616, allocations: 8 kB / 353.8 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.4617, allocations: 3.953 kB / 353.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.4617, allocations: 7.984 kB / 353.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004336/0.466, allocations: 1.559 MB / 355.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.4661, allocations: 0 / 355.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009456/0.4671, allocations: 99.83 kB / 355.5 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00216/0.4693, allocations: 0.7384 MB / 356.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001743/0.4695, allocations: 27.97 kB / 356.2 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.4716, allocations: 1.04 MB / 357.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4717, allocations: 0 / 357.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003815/0.4755, allocations: 1.282 MB / 358.5 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004988/0.476, allocations: 192.4 kB / 358.7 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001813/0.4762, allocations: 24 kB / 358.8 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.4776, allocations: 143.9 kB / 358.9 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000494/0.4781, allocations: 152.2 kB / 359 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.4782, allocations: 31.97 kB / 359.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003851/0.4786, allocations: 222.2 kB / 359.3 MB, free: 9.695 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4786, allocations: 0 / 359.3 MB, free: 9.695 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008483/0.4795, allocations: 163.9 kB / 359.4 MB, free: 9.535 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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,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.004219/0.4837, allocations: 1.865 MB / 361.3 MB, free: 7.645 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.486, allocations: 0.6884 MB / 362 MB, free: 6.957 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.486, allocations: 0 / 362 MB, free: 6.957 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.4872, allocations: 388.8 kB / 362.4 MB, free: 6.578 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009581/0.4882, allocations: 75.42 kB / 362.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004763/0.493, allocations: 1.377 MB / 363.8 MB, free: 5.082 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.4935, allocations: 0.8518 MB / 364.7 MB, free: 4.207 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.4939, allocations: 155.4 kB / 364.8 MB, free: 4.055 MB / 314.7 MB Notification: Performance of SimCode: time 1.432e-06/0.4939, allocations: 0 / 364.8 MB, free: 4.055 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.139/3.633, allocations: 9.624 MB / 374.5 MB, free: 91.95 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