Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Rotor1D,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_InitializationConversion_Rotor1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.657/2.657, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5e-05/5.015e-05, allocations: 0 / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3907, allocations: 54.86 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1619/0.5526, allocations: 87.69 MB / 447.5 MB, free: 9.176 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.553, allocations: 71.97 kB / 447.6 MB, free: 9.105 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7148/1.268, allocations: 89.73 MB / 0.5248 GB, free: 94.37 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.003e-06/1.268, allocations: 0 / 0.5248 GB, free: 94.37 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003897/1.268, allocations: 100.4 kB / 0.5248 GB, free: 94.37 MB / 458.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.1227/1.391, allocations: 9.652 MB / 0.5343 GB, free: 93.64 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/1.391, allocations: 9.062 kB / 0.5343 GB, free: 93.64 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004906/1.396, allocations: 0.8473 MB / 0.5351 GB, free: 93.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01656/1.413, allocations: 2.076 MB / 0.5371 GB, free: 93.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0132/1.426, allocations: 3.394 MB / 0.5405 GB, free: 92.63 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006088/1.427, allocations: 345.4 kB / 0.5408 GB, free: 92.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004148/1.431, allocations: 483.7 kB / 0.5412 GB, free: 92.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06809/1.499, allocations: 15.26 MB / 0.5562 GB, free: 89.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003697/1.499, allocations: 76.08 kB / 0.5562 GB, free: 89.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003307/1.503, allocations: 218.5 kB / 0.5564 GB, free: 89.97 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004305/1.507, allocations: 1.111 MB / 0.5575 GB, free: 89.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06346/1.57, allocations: 14.99 MB / 0.5722 GB, free: 88.73 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1082/1.679, allocations: 55.55 MB / 0.6264 GB, free: 49.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08816/1.767, allocations: 7.189 MB / 0.6334 GB, free: 43.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006318/1.773, allocations: 2.814 MB / 0.6362 GB, free: 40.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01294/1.786, allocations: 6.558 MB / 0.6426 GB, free: 33.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/1.786, allocations: 55.5 kB / 0.6426 GB, free: 33.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=176): time 5.761e-06/1.786, allocations: 0 / 0.6426 GB, free: 33.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=176): time 0.006846/1.793, allocations: 2.691 MB / 0.6453 GB, free: 30.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/1.793, allocations: 145.5 kB / 0.6454 GB, free: 30.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01012/1.804, allocations: 4.222 MB / 0.6495 GB, free: 26.17 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003572/1.804, allocations: 45.7 kB / 0.6496 GB, free: 26.12 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002952/1.807, allocations: 3.467 MB / 0.6529 GB, free: 22.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/1.808, allocations: 0.7243 MB / 0.6537 GB, free: 21.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007199/1.809, allocations: 140 kB / 0.6538 GB, free: 21.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003881/1.809, allocations: 0.5879 MB / 0.6544 GB, free: 21.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005181/1.814, allocations: 2.161 MB / 0.6565 GB, free: 19.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007909/1.822, allocations: 6.359 MB / 0.6627 GB, free: 10.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007984/1.83, allocations: 3.704 MB / 0.6663 GB, free: 6.852 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/1.831, allocations: 44 kB / 0.6663 GB, free: 6.809 MB / 458.7 MB Notification: Performance of matching and sorting (n=870) (initialization): time 0.02118/1.852, allocations: 7.794 MB / 0.674 GB, free: 15.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001463/1.852, allocations: 79.92 kB / 0.674 GB, free: 14.94 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002686/1.852, allocations: 152 kB / 0.6742 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003392/1.853, allocations: 220.8 kB / 0.6744 GB, free: 14.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01119/1.864, allocations: 1.618 MB / 0.676 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003889/1.864, allocations: 295.6 kB / 0.6762 GB, free: 12.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00903/1.873, allocations: 0.9238 MB / 0.6771 GB, free: 11.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/1.875, allocations: 442.1 kB / 0.6776 GB, free: 11.3 MB / 474.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.002063/1.877, allocations: 0.6269 MB / 0.6782 GB, free: 10.67 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001252/1.879, allocations: 402.7 kB / 0.6786 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007536/1.886, allocations: 2.521 MB / 0.681 GB, free: 7.742 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.791e-05/1.886, allocations: 20 kB / 0.681 GB, free: 7.723 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/1.886, allocations: 4 kB / 0.681 GB, free: 7.719 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3e-05/1.886, allocations: 7.969 kB / 0.6811 GB, free: 7.711 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/1.899, allocations: 4.28 MB / 0.6852 GB, free: 3.414 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-05/1.899, allocations: 0 / 0.6852 GB, free: 3.414 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004072/1.903, allocations: 347.5 kB / 0.6856 GB, free: 3.074 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.23e-05/1.903, allocations: 15.28 kB / 0.6856 GB, free: 3.062 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003043/1.904, allocations: 39.94 kB / 0.6856 GB, free: 3.023 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.52e-05/1.904, allocations: 4 kB / 0.6856 GB, free: 3.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/1.904, allocations: 4 kB / 0.6856 GB, free: 3.016 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.915, allocations: 4.854 MB / 0.6904 GB, free: 14.12 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/1.917, allocations: 0.4914 MB / 0.6908 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001523/1.918, allocations: 32 kB / 0.6909 GB, free: 13.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003479/1.922, allocations: 63.94 kB / 0.6909 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005314/1.922, allocations: 101.3 kB / 0.691 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002047/1.923, allocations: 51.98 kB / 0.6911 GB, free: 13.36 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008967/1.931, allocations: 2.933 MB / 0.6939 GB, free: 10.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.273e-06/1.932, allocations: 4 kB / 0.694 GB, free: 10.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008876/1.94, allocations: 1.338 MB / 0.6953 GB, free: 9.086 MB / 490.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.0127/1.953, allocations: 5.658 MB / 0.7008 GB, free: 3.387 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3325/2.286, allocations: 4.725 MB / 0.7054 GB, free: 115 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/2.286, allocations: 2.969 kB / 0.7054 GB, free: 115 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003247/2.289, allocations: 1.248 MB / 0.7066 GB, free: 115 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004106/2.293, allocations: 482.8 kB / 0.7071 GB, free: 114.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03934/2.333, allocations: 10.8 MB / 0.7176 GB, free: 112.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01057/2.343, allocations: 3.674 MB / 0.7212 GB, free: 112 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006364/2.35, allocations: 2.247 MB / 0.7234 GB, free: 112 MB / 490.7 MB Notification: Performance of SimCode: time 2.315e-06/2.35, allocations: 1.312 kB / 0.7234 GB, free: 112 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.109/6.459, allocations: 91.91 MB / 0.8132 GB, free: 66.53 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.InitializationConversion.Rotor1D_res.mat does not exist to compare? outputFormat=mat