Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.447/2.447, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.16e-05/4.166e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4192, allocations: 54.86 MB / 359.9 MB, free: 2.695 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.195/0.6143, allocations: 102.5 MB / 462.4 MB, free: 10.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.6147, allocations: 79.95 kB / 462.5 MB, free: 10.33 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9233/1.538, allocations: 147.6 MB / 0.5957 GB, free: 92.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.043e-06/1.538, allocations: 0 / 0.5957 GB, free: 92.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006598/1.539, allocations: 143 kB / 0.5959 GB, free: 92.2 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: 2273 * Number of variables: 2273 Notification: Performance of Generate backend data structure: time 0.05801/1.597, allocations: 8.567 MB / 0.6042 GB, free: 85.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.514e-05/1.597, allocations: 12.03 kB / 0.6043 GB, free: 85.4 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007458/1.604, allocations: 1.155 MB / 0.6054 GB, free: 84.27 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1559/1.76, allocations: 16.68 MB / 0.6217 GB, free: 67.56 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04655/1.807, allocations: 13.31 MB / 0.6347 GB, free: 54.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005897/1.808, allocations: 0.4893 MB / 0.6352 GB, free: 53.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003725/1.811, allocations: 0.6675 MB / 0.6358 GB, free: 53.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05424/1.866, allocations: 16.69 MB / 0.6521 GB, free: 34.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005554/1.866, allocations: 107 kB / 0.6522 GB, free: 34.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003147/1.869, allocations: 319.9 kB / 0.6525 GB, free: 34.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003528/1.873, allocations: 1.475 MB / 0.654 GB, free: 32.93 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04598/1.919, allocations: 13.21 MB / 0.6669 GB, free: 19.69 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4987/2.418, allocations: 76.73 MB / 0.7418 GB, free: 47.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04952/2.467, allocations: 8.526 MB / 0.7501 GB, free: 46.62 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008278/2.476, allocations: 4.101 MB / 0.7541 GB, free: 46.59 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00269/2.478, allocations: 1.345 MB / 0.7554 GB, free: 45.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.424e-05/2.479, allocations: 68.84 kB / 0.7555 GB, free: 45.42 MB / 474.7 MB Notification: Performance of pre-optimization done (n=268): time 7.404e-06/2.479, allocations: 0 / 0.7555 GB, free: 45.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=352): time 0.2541/2.733, allocations: 44.89 MB / 0.7993 GB, free: 37.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002603/2.735, allocations: 3.22 MB / 0.8025 GB, free: 34.17 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0179/2.753, allocations: 6.49 MB / 0.8088 GB, free: 32.03 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00124/2.755, allocations: 79.91 kB / 0.8089 GB, free: 31.96 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005018/2.76, allocations: 4.88 MB / 0.8137 GB, free: 28.11 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002547/2.762, allocations: 1.331 MB / 0.815 GB, free: 27.13 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001845/2.764, allocations: 190.2 kB / 0.8151 GB, free: 26.99 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008543/2.765, allocations: 0.7107 MB / 0.8158 GB, free: 26.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01131/2.776, allocations: 4.479 MB / 0.8202 GB, free: 23.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01517/2.792, allocations: 9.7 MB / 0.8297 GB, free: 11.94 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01469/2.806, allocations: 6.517 MB / 0.836 GB, free: 6.488 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002134/2.807, allocations: 52.94 kB / 0.8361 GB, free: 6.438 MB / 474.7 MB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.1339/2.94, allocations: 30.66 MB / 0.866 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00017/2.941, allocations: 88.06 kB / 0.8661 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09647/3.037, allocations: 20.58 MB / 0.8862 GB, free: 8.074 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4668/3.504, allocations: 16.59 MB / 0.9024 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01459/3.519, allocations: 2.109 MB / 0.9045 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07789/3.597, allocations: 33.31 MB / 0.937 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01428/3.611, allocations: 0.7809 MB / 0.9378 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002609/3.614, allocations: 0.5542 MB / 0.9383 GB, free: 124.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 842 * Number of states: 0 () * Number of discrete variables: 60 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],bodyCylinder4.color[3],bodyCylinder4.color[2],bodyCylinder4.color[1],bodyCylinder4.body.sphereColor[3],bodyCylinder4.body.sphereColor[2],bodyCylinder4.body.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],spherical2.sphereColor[3],spherical2.sphereColor[2],spherical2.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[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 (1089): * Single equations (assignments): 1076 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 38,(4,100.0%) 41} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.003337/3.617, allocations: 0.8163 MB / 0.9391 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00225/3.619, allocations: 0.6748 MB / 0.9398 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03525/3.654, allocations: 10.15 MB / 0.9497 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03058/3.685, allocations: 8.846 MB / 0.9583 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-05/3.685, allocations: 15.56 kB / 0.9583 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001012/3.685, allocations: 23.19 kB / 0.9584 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07474/3.76, allocations: 23.35 MB / 0.9812 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.127e-05/3.76, allocations: 3.75 kB / 0.9812 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00592/3.766, allocations: 0.5565 MB / 0.9817 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02426/3.79, allocations: 4.009 MB / 0.9856 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001176/3.792, allocations: 105.5 kB / 0.9857 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04546/3.837, allocations: 23.98 MB / 1.009 GB, free: 83.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002367/3.84, allocations: 3 MB / 1.012 GB, free: 80.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04266/3.882, allocations: 15.46 MB / 1.027 GB, free: 65.78 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005527/3.888, allocations: 1.379 MB / 1.029 GB, free: 64.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002426/3.89, allocations: 94.41 kB / 1.029 GB, free: 64.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007967/3.898, allocations: 358.7 kB / 1.029 GB, free: 63.94 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001553/3.9, allocations: 245.9 kB / 1.029 GB, free: 63.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005104/3.901, allocations: 95.95 kB / 1.029 GB, free: 63.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01193/3.912, allocations: 4.638 MB / 1.034 GB, free: 59.01 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.01e-07/3.913, allocations: 0.9375 kB / 1.034 GB, free: 59.01 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01413/3.927, allocations: 2.129 MB / 1.036 GB, free: 56.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[3],revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 233 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,100.0%) 35,(1,100.0%) 1,(3,100.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0429/3.97, allocations: 16.45 MB / 1.052 GB, free: 40.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02748/3.997, allocations: 11.48 MB / 1.063 GB, free: 28.79 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/3.997, allocations: 4 kB / 1.063 GB, free: 28.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01253/4.01, allocations: 5.092 MB / 1.068 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009069/4.019, allocations: 0.9406 MB / 1.069 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4517/4.471, allocations: 19.55 MB / 1.088 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01696/4.488, allocations: 5.517 MB / 1.094 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01047/4.498, allocations: 3.733 MB / 1.097 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.502e-06/4.498, allocations: 0 / 1.097 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.127/11.63, allocations: 359 MB / 1.448 GB, free: 1.16 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat