Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Rotor1D,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_InitializationConversion_Rotor1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.989/1.989, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.553e-05/3.568e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5012/0.602, allocations: 81.18 MB / 403 MB, free: 8.652 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003827/0.6025, allocations: 71.95 kB / 403.1 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4206/1.023, allocations: 89.75 MB / 492.8 MB, free: 14.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.023, allocations: 0 / 492.8 MB, free: 14.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004142/1.024, allocations: 96 kB / 492.9 MB, free: 14.05 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1702 * Number of variables: 1702 Notification: Performance of Generate backend data structure: time 0.1226/1.146, allocations: 9.651 MB / 0.4908 GB, free: 4.328 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.198e-05/1.146, allocations: 12.02 kB / 0.4908 GB, free: 4.316 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004612/1.151, allocations: 0.8454 MB / 0.4916 GB, free: 3.461 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01604/1.167, allocations: 2.076 MB / 0.4937 GB, free: 1.375 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2953/1.462, allocations: 3.385 MB / 0.497 GB, free: 87.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005214/1.463, allocations: 347 kB / 0.4973 GB, free: 87.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003747/1.467, allocations: 474.3 kB / 0.4977 GB, free: 87.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07145/1.538, allocations: 15.32 MB / 0.5127 GB, free: 84.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004278/1.539, allocations: 63.25 kB / 0.5128 GB, free: 84.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003075/1.542, allocations: 220 kB / 0.513 GB, free: 84.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004706/1.546, allocations: 1.114 MB / 0.5141 GB, free: 84.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0652/1.612, allocations: 15.18 MB / 0.5289 GB, free: 84.87 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/1.722, allocations: 55.52 MB / 0.5831 GB, free: 46.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08898/1.811, allocations: 7.214 MB / 0.5902 GB, free: 45.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006553/1.817, allocations: 2.817 MB / 0.5929 GB, free: 44.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01401/1.831, allocations: 6.565 MB / 0.5993 GB, free: 39.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.442e-05/1.831, allocations: 55.22 kB / 0.5994 GB, free: 39.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=176): time 5.561e-06/1.831, allocations: 0 / 0.5994 GB, free: 39.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=176): time 0.007192/1.839, allocations: 2.685 MB / 0.602 GB, free: 38.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.74e-05/1.839, allocations: 148.7 kB / 0.6021 GB, free: 38.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/1.85, allocations: 4.218 MB / 0.6063 GB, free: 35.49 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003997/1.85, allocations: 49.7 kB / 0.6063 GB, free: 35.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003235/1.853, allocations: 3.475 MB / 0.6097 GB, free: 32.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001318/1.855, allocations: 0.7226 MB / 0.6104 GB, free: 31.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001017/1.856, allocations: 132 kB / 0.6105 GB, free: 31.67 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000633/1.857, allocations: 0.5973 MB / 0.6111 GB, free: 31.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006131/1.863, allocations: 2.156 MB / 0.6132 GB, free: 29.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00872/1.871, allocations: 6.408 MB / 0.6195 GB, free: 21.06 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008413/1.88, allocations: 3.695 MB / 0.6231 GB, free: 17.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001343/1.88, allocations: 44 kB / 0.6231 GB, free: 17.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=870) (initialization): time 0.02115/1.901, allocations: 8.217 MB / 0.6312 GB, free: 10.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000117/1.901, allocations: 68 kB / 0.6312 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/1.902, allocations: 152 kB / 0.6314 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002371/1.902, allocations: 220 kB / 0.6316 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01051/1.912, allocations: 1.622 MB / 0.6332 GB, free: 8.816 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003008/1.913, allocations: 295.5 kB / 0.6334 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008494/1.921, allocations: 0.9245 MB / 0.6343 GB, free: 7.594 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001652/1.923, allocations: 441.1 kB / 0.6348 GB, free: 7.164 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 692 * Number of states: 0 () * Number of discrete variables: 39 (rotor1D10.cylinderColor[3],rotor1D10.cylinderColor[2],rotor1D10.cylinderColor[1],rotor1D9.cylinderColor[3],rotor1D9.cylinderColor[2],rotor1D9.cylinderColor[1],rotor1D8.cylinderColor[3],rotor1D8.cylinderColor[2],rotor1D8.cylinderColor[1],rotor1D7.cylinderColor[3],rotor1D7.cylinderColor[2],rotor1D7.cylinderColor[1],rotor1D6.cylinderColor[3],rotor1D6.cylinderColor[2],rotor1D6.cylinderColor[1],rotor1D5.cylinderColor[3],rotor1D5.cylinderColor[2],rotor1D5.cylinderColor[1],rotor1D4.cylinderColor[3],rotor1D4.cylinderColor[2],rotor1D4.cylinderColor[1],rotor1D3.cylinderColor[3],rotor1D3.cylinderColor[2],rotor1D3.cylinderColor[1],rotor1D2.cylinderColor[3],rotor1D2.cylinderColor[2],rotor1D2.cylinderColor[1],rotor1D1.cylinderColor[3],rotor1D1.cylinderColor[2],rotor1D1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 843 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002247/1.925, allocations: 0.6333 MB / 0.6354 GB, free: 6.523 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/1.926, allocations: 394.8 kB / 0.6358 GB, free: 6.133 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006753/1.933, allocations: 2.521 MB / 0.6382 GB, free: 3.598 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-05/1.933, allocations: 20.86 kB / 0.6382 GB, free: 3.578 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/1.933, allocations: 0 / 0.6382 GB, free: 3.578 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.773e-05/1.933, allocations: 15.89 kB / 0.6383 GB, free: 3.562 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/1.946, allocations: 4.284 MB / 0.6424 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-05/1.946, allocations: 0 / 0.6424 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004175/1.95, allocations: 343.5 kB / 0.6428 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.823e-05/1.95, allocations: 7.938 kB / 0.6428 GB, free: 14.92 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004357/1.95, allocations: 41.55 kB / 0.6428 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.319e-05/1.95, allocations: 12 kB / 0.6428 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.95, allocations: 0 / 0.6428 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/1.962, allocations: 4.846 MB / 0.6476 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/1.964, allocations: 0.4955 MB / 0.648 GB, free: 9.461 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001435/1.965, allocations: 30.12 kB / 0.6481 GB, free: 9.434 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00347/1.969, allocations: 71.81 kB / 0.6481 GB, free: 9.367 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005715/1.969, allocations: 93.19 kB / 0.6482 GB, free: 9.277 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002193/1.97, allocations: 51.98 kB / 0.6483 GB, free: 9.227 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.009208/1.979, allocations: 2.936 MB / 0.6511 GB, free: 6.289 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.979, allocations: 0 / 0.6511 GB, free: 6.289 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008321/1.987, allocations: 1.337 MB / 0.6525 GB, free: 4.949 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 20 (rotor1D1.phi,rotor1D1.w,rotor1D2.phi,rotor1D2.w,rotor1D3.phi,rotor1D3.w,rotor1D4.phi,rotor1D4.w,rotor1D5.phi,rotor1D5.w,rotor1D6.phi,rotor1D6.w,rotor1D7.phi,rotor1D7.w,rotor1D8.phi,rotor1D8.w,rotor1D9.phi,rotor1D9.w,rotor1D10.phi,rotor1D10.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3107/2.298, allocations: 5.655 MB / 0.658 GB, free: 92.13 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01297/2.311, allocations: 4.938 MB / 0.6628 GB, free: 92.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/2.311, allocations: 4.094 kB / 0.6628 GB, free: 92.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003253/2.314, allocations: 1.253 MB / 0.664 GB, free: 92.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004144/2.319, allocations: 480 kB / 0.6645 GB, free: 92.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03923/2.358, allocations: 10.82 MB / 0.675 GB, free: 89.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009537/2.367, allocations: 3.678 MB / 0.6786 GB, free: 89.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005929/2.373, allocations: 2.25 MB / 0.6808 GB, free: 89.07 MB / 442.7 MB Notification: Performance of SimCode: time 3.216e-06/2.373, allocations: 0 / 0.6808 GB, free: 89.07 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.277/6.65, allocations: 93.01 MB / 0.7717 GB, free: 42.85 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.InitializationConversion.Rotor1D_res.mat does not exist to compare? outputFormat=mat