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 1.862/1.862, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.647e-05, allocations: 0 / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 44.52 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5035/0.6067, allocations: 74.39 MB / 374.3 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.6071, allocations: 68.22 kB / 374.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04046/0.6475, allocations: 8.943 MB / 383.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6476, allocations: 0 / 383.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.926e-05/0.6476, allocations: 13.62 kB / 383.3 MB, free: 11.76 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.002361/0.65, allocations: 0.7791 MB / 384.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.6501, allocations: 9.156 kB / 384.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.6502, allocations: 85.47 kB / 384.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000182/0.6504, allocations: 59.59 kB / 384.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005854/0.651, allocations: 337.5 kB / 384.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.6511, allocations: 35.84 kB / 384.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.6512, allocations: 48.64 kB / 384.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.6527, allocations: 0.5525 MB / 385.2 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.6527, allocations: 10.28 kB / 385.2 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.6528, allocations: 17.56 kB / 385.3 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.6529, allocations: 10.66 kB / 385.3 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.6543, allocations: 497.5 kB / 385.8 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.6582, allocations: 1.339 MB / 387.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.6596, allocations: 446.6 kB / 387.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006408/0.6603, allocations: 279.5 kB / 387.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.6604, allocations: 6.766 kB / 387.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.6605, allocations: 42.47 kB / 387.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.817e-06/0.6605, allocations: 0 / 387.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.005253/0.6657, allocations: 1.924 MB / 389.8 MB, free: 9.738 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.6658, allocations: 63.73 kB / 389.8 MB, free: 9.672 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.6662, allocations: 258.1 kB / 390.1 MB, free: 9.562 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.6663, allocations: 47.95 kB / 390.1 MB, free: 9.531 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.6664, allocations: 236.1 kB / 390.4 MB, free: 9.348 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.6666, allocations: 237.9 kB / 390.6 MB, free: 9.211 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.93e-05/0.6667, allocations: 11.69 kB / 390.6 MB, free: 9.211 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.379e-05/0.6668, allocations: 339.3 kB / 390.9 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006743/0.6675, allocations: 255.3 kB / 391.2 MB, free: 8.895 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007144/0.6682, allocations: 319.7 kB / 391.5 MB, free: 8.867 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005484/0.6688, allocations: 201.2 kB / 391.7 MB, free: 8.852 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.6688, allocations: 0 / 391.7 MB, free: 8.852 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002014/0.6708, allocations: 0.7793 MB / 392.5 MB, free: 8.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.6709, allocations: 8.359 kB / 392.5 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-05/0.6709, allocations: 3.875 kB / 392.5 MB, free: 8.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001579/0.6725, allocations: 0.5551 MB / 393.1 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007352/0.6733, allocations: 96.77 kB / 393.1 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.675, allocations: 0.982 MB / 394.1 MB, free: 8.184 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.6763, allocations: 150.9 kB / 394.3 MB, free: 8.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.6764, allocations: 29.83 kB / 394.3 MB, free: 8.176 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): 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.0002408/0.6767, allocations: 143.5 kB / 394.4 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.6768, allocations: 50.61 kB / 394.5 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002357/0.6792, allocations: 0.8644 MB / 395.4 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.6792, allocations: 7.125 kB / 395.4 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.6792, allocations: 0 / 395.4 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.6792, allocations: 7.516 kB / 395.4 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003277/0.6825, allocations: 1.421 MB / 396.8 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.6826, allocations: 4 kB / 396.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00082/0.6834, allocations: 96.12 kB / 396.9 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/0.6849, allocations: 0.5183 MB / 397.4 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.845e-05/0.685, allocations: 34.78 kB / 397.4 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.6865, allocations: 0.9531 MB / 398.4 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6865, allocations: 0 / 398.4 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002813/0.6894, allocations: 1.126 MB / 399.5 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00036/0.6897, allocations: 184.2 kB / 399.7 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001631/0.6899, allocations: 23.59 kB / 399.7 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.6911, allocations: 144.5 kB / 399.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004134/0.6915, allocations: 150.3 kB / 400 MB, free: 6.668 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.6917, allocations: 37.48 kB / 400.1 MB, free: 6.664 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002642/0.6919, allocations: 212.4 kB / 400.3 MB, free: 6.582 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6919, allocations: 3.938 kB / 400.3 MB, free: 6.578 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007221/0.6927, allocations: 168.9 kB / 400.4 MB, free: 6.562 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.003331/0.696, allocations: 1.702 MB / 402.1 MB, free: 21.83 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.6979, allocations: 0.7421 MB / 402.9 MB, free: 21.71 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.6979, allocations: 0 / 402.9 MB, free: 21.71 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009837/0.6989, allocations: 382 kB / 403.2 MB, free: 21.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008281/0.6998, allocations: 76.45 kB / 403.3 MB, free: 21.69 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004491/0.7043, allocations: 1.354 MB / 404.7 MB, free: 21.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005453/0.7049, allocations: 0.8563 MB / 405.5 MB, free: 20.31 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/0.7052, allocations: 147.7 kB / 405.7 MB, free: 20.3 MB / 330.7 MB Notification: Performance of SimCode: time 1.223e-06/0.7052, allocations: 0 / 405.7 MB, free: 20.3 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.849/3.554, allocations: 10.17 MB / 415.8 MB, free: 16.51 MB / 330.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