Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.995/1.995, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.775e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4428/0.5507, allocations: 95.26 MB / 411.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004048/0.5512, allocations: 79.11 kB / 411.6 MB, free: 13.51 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9596/1.511, allocations: 144.6 MB / 0.5432 GB, free: 80.47 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.138e-06/1.511, allocations: 0 / 0.5432 GB, free: 80.47 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006382/1.511, allocations: 155.5 kB / 0.5434 GB, free: 80.46 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2272 * Number of variables: 2272 Notification: Performance of Generate backend data structure: time 0.05588/1.567, allocations: 8.558 MB / 0.5517 GB, free: 75.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/1.567, allocations: 14.75 kB / 0.5518 GB, free: 75.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1137/1.681, allocations: 16.68 MB / 0.568 GB, free: 61.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04591/1.727, allocations: 13.28 MB / 0.581 GB, free: 48.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000377/1.728, allocations: 212 kB / 0.5812 GB, free: 48.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003416/1.731, allocations: 411.6 kB / 0.5816 GB, free: 47.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02248/1.754, allocations: 9.003 MB / 0.5904 GB, free: 38.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03554/1.789, allocations: 14.14 MB / 0.6042 GB, free: 23.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004796/1.79, allocations: 107 kB / 0.6043 GB, free: 23.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002623/1.792, allocations: 47.95 kB / 0.6044 GB, free: 23.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003418/1.796, allocations: 1.467 MB / 0.6058 GB, free: 21.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4401/2.236, allocations: 74.51 MB / 0.6786 GB, free: 42.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01133/2.247, allocations: 5.341 MB / 0.6838 GB, free: 42.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008076/2.255, allocations: 4.015 MB / 0.6877 GB, free: 42.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002794/2.258, allocations: 1.35 MB / 0.689 GB, free: 40.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.554e-05/2.258, allocations: 59.47 kB / 0.6891 GB, free: 40.92 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 7.394e-06/2.258, allocations: 1.344 kB / 0.6891 GB, free: 40.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=350): time 0.1823/2.441, allocations: 43.21 MB / 0.7313 GB, free: 29.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/2.441, allocations: 270.9 kB / 0.7315 GB, free: 29.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01436/2.455, allocations: 5.649 MB / 0.737 GB, free: 27.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001173/2.456, allocations: 29.64 kB / 0.7371 GB, free: 27.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004788/2.461, allocations: 4.989 MB / 0.7419 GB, free: 23.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002471/2.464, allocations: 1.295 MB / 0.7432 GB, free: 22.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/2.465, allocations: 7.688 kB / 0.7432 GB, free: 22.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007306/2.466, allocations: 0.7199 MB / 0.7439 GB, free: 21.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01032/2.476, allocations: 4.316 MB / 0.7481 GB, free: 18.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0139/2.49, allocations: 9.683 MB / 0.7576 GB, free: 7.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/2.504, allocations: 6.35 MB / 0.7638 GB, free: 2.309 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002142/2.505, allocations: 56 kB / 0.7638 GB, free: 2.254 MB / 426.7 MB Notification: Performance of matching and sorting (n=1257) (initialization): time 0.1423/2.647, allocations: 30.25 MB / 0.7934 GB, free: 11.85 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001776/2.647, allocations: 84 kB / 0.7935 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.098/2.745, allocations: 20.32 MB / 0.8133 GB, free: 7.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4241/3.169, allocations: 16.52 MB / 0.8294 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01454/3.184, allocations: 2.157 MB / 0.8316 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07399/3.258, allocations: 31.48 MB / 0.8623 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01467/3.273, allocations: 0.5869 MB / 0.8629 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003049/3.276, allocations: 0.5754 MB / 0.8634 GB, free: 113.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 866 * 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 (1111): * Single equations (assignments): 1098 * 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,(5,100.0%) 40} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004424/3.28, allocations: 0.5894 MB / 0.864 GB, free: 113.4 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03321/3.313, allocations: 9.723 MB / 0.8735 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002589/3.316, allocations: 0.6322 MB / 0.8741 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03414/3.35, allocations: 9.792 MB / 0.8837 GB, free: 107 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0292/3.38, allocations: 8.616 MB / 0.8921 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.669e-05/3.38, allocations: 15.66 kB / 0.8921 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001214/3.38, allocations: 16.59 kB / 0.8921 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07148/3.451, allocations: 22.28 MB / 0.9139 GB, free: 91.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-05/3.451, allocations: 4 kB / 0.9139 GB, free: 91.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005847/3.457, allocations: 0.5501 MB / 0.9144 GB, free: 91.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0238/3.481, allocations: 3.959 MB / 0.9183 GB, free: 88.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001228/3.482, allocations: 58.31 kB / 0.9183 GB, free: 88.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04341/3.526, allocations: 22.74 MB / 0.9406 GB, free: 66.04 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002249/3.528, allocations: 2.873 MB / 0.9434 GB, free: 62.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04046/3.569, allocations: 15.08 MB / 0.9581 GB, free: 47.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005498/3.574, allocations: 1.318 MB / 0.9594 GB, free: 46.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002806/3.577, allocations: 38.41 kB / 0.9594 GB, free: 46.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007813/3.585, allocations: 299.4 kB / 0.9597 GB, free: 46.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001773/3.587, allocations: 253.8 kB / 0.9599 GB, free: 45.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006536/3.587, allocations: 95.95 kB / 0.96 GB, free: 45.68 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01022/3.598, allocations: 3.898 MB / 0.9638 GB, free: 41.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.72e-07/3.598, allocations: 2.906 kB / 0.9638 GB, free: 41.81 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01495/3.613, allocations: 1.904 MB / 0.9657 GB, free: 39.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 ($STATESET140065615716745.x[3],$STATESET140065615716745.x[2],$STATESET140065615716745.x[1],$STATESET140065615716744.x[3],$STATESET140065615716744.x[2],$STATESET140065615716744.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 (242): * Single equations (assignments): 231 * 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.04239/3.655, allocations: 16.03 MB / 0.9813 GB, free: 23.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3503/4.005, allocations: 11.36 MB / 0.9924 GB, free: 123.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/4.006, allocations: 1.75 kB / 0.9924 GB, free: 123.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01354/4.019, allocations: 5.006 MB / 0.9973 GB, free: 122.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008554/4.028, allocations: 0.798 MB / 0.9981 GB, free: 122.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07115/4.099, allocations: 19.06 MB / 1.017 GB, free: 119.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01387/4.113, allocations: 5.507 MB / 1.022 GB, free: 118.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009867/4.123, allocations: 3.701 MB / 1.026 GB, free: 117.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.733e-06/4.123, allocations: 0 / 1.026 GB, free: 117.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.468/11.59, allocations: 355.9 MB / 1.373 GB, free: 128.7 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat