Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.795e-05, allocations: 4 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2708, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1564/0.4273, allocations: 86.06 MB / 344.4 MB, free: 7.738 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.4277, allocations: 83.95 kB / 344.5 MB, free: 7.656 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7842/1.212, allocations: 144.1 MB / 488.6 MB, free: 2.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.212, allocations: 4 kB / 488.6 MB, free: 2.801 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0007193/1.213, allocations: 144 kB / 488.7 MB, free: 2.66 MB / 330.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.06002/1.273, allocations: 8.556 MB / 497.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/1.273, allocations: 12.03 kB / 497.3 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.384/1.657, allocations: 16.68 MB / 0.5019 GB, free: 44.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04719/1.704, allocations: 13.13 MB / 0.5148 GB, free: 43.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004531/1.705, allocations: 215.4 kB / 0.515 GB, free: 43.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00357/1.708, allocations: 405.4 kB / 0.5154 GB, free: 43.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02299/1.731, allocations: 9.008 MB / 0.5241 GB, free: 43.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03648/1.768, allocations: 14.13 MB / 0.5379 GB, free: 39.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005175/1.768, allocations: 103.6 kB / 0.538 GB, free: 39.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002602/1.771, allocations: 48.81 kB / 0.5381 GB, free: 39.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003571/1.775, allocations: 1.473 MB / 0.5395 GB, free: 39.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.142/1.917, allocations: 74.52 MB / 0.6123 GB, free: 2.977 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01683/1.933, allocations: 5.391 MB / 0.6176 GB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01208/1.946, allocations: 4.023 MB / 0.6215 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004229/1.95, allocations: 1.34 MB / 0.6228 GB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001354/1.95, allocations: 67.84 kB / 0.6229 GB, free: 8.836 MB / 378.7 MB Notification: Performance of pre-optimization done (n=268): time 1.167e-05/1.95, allocations: 0 / 0.6229 GB, free: 8.836 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.4997/2.45, allocations: 45.44 MB / 0.6672 GB, free: 68.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/2.45, allocations: 289.3 kB / 0.6675 GB, free: 67.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01508/2.465, allocations: 5.657 MB / 0.673 GB, free: 67.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001105/2.466, allocations: 25.7 kB / 0.6731 GB, free: 67.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005109/2.471, allocations: 4.984 MB / 0.6779 GB, free: 64.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002474/2.474, allocations: 1.297 MB / 0.6792 GB, free: 64.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001935/2.476, allocations: 0 / 0.6792 GB, free: 64.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0008786/2.477, allocations: 0.7207 MB / 0.6799 GB, free: 63.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01027/2.487, allocations: 4.281 MB / 0.6841 GB, free: 63.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01414/2.501, allocations: 9.652 MB / 0.6935 GB, free: 56.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.014/2.515, allocations: 6.324 MB / 0.6997 GB, free: 55.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002518/2.516, allocations: 57.41 kB / 0.6997 GB, free: 55.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.1233/2.639, allocations: 29.9 MB / 0.7289 GB, free: 45.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/2.639, allocations: 87.95 kB / 0.729 GB, free: 45.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08678/2.726, allocations: 20.25 MB / 0.7488 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0949/2.821, allocations: 16.53 MB / 0.7649 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01821/2.839, allocations: 2.156 MB / 0.7671 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3679/3.207, allocations: 31.46 MB / 0.7978 GB, free: 57.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01358/3.221, allocations: 0.5933 MB / 0.7984 GB, free: 57.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00274/3.224, allocations: 0.5693 MB / 0.7989 GB, free: 57.3 MB / 378.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 (1110): * Single equations (assignments): 1097 * 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.004155/3.228, allocations: 0.5882 MB / 0.7995 GB, free: 57.19 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.032/3.26, allocations: 9.67 MB / 0.8089 GB, free: 56.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002854/3.263, allocations: 0.6242 MB / 0.8095 GB, free: 56.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03325/3.296, allocations: 9.737 MB / 0.8191 GB, free: 54.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0292/3.325, allocations: 8.547 MB / 0.8274 GB, free: 51.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-05/3.325, allocations: 21.97 kB / 0.8274 GB, free: 51.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000119/3.325, allocations: 18.2 kB / 0.8274 GB, free: 51.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07015/3.396, allocations: 22.21 MB / 0.8491 GB, free: 43.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.472e-05/3.396, allocations: 0 / 0.8491 GB, free: 43.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005739/3.402, allocations: 0.5603 MB / 0.8497 GB, free: 43.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02372/3.425, allocations: 3.955 MB / 0.8535 GB, free: 42.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00117/3.427, allocations: 58.77 kB / 0.8536 GB, free: 42.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04293/3.469, allocations: 22.76 MB / 0.8758 GB, free: 22.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002157/3.472, allocations: 2.84 MB / 0.8786 GB, free: 19.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03976/3.511, allocations: 15.07 MB / 0.8933 GB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005222/3.517, allocations: 1.303 MB / 0.8946 GB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002648/3.519, allocations: 35.41 kB / 0.8946 GB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007437/3.527, allocations: 269.5 kB / 0.8949 GB, free: 5.352 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001736/3.529, allocations: 250.2 kB / 0.8951 GB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006063/3.529, allocations: 103.5 kB / 0.8952 GB, free: 5.129 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.01011/3.539, allocations: 3.898 MB / 0.899 GB, free: 1.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.91e-07/3.54, allocations: 0 / 0.899 GB, free: 1.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01519/3.555, allocations: 1.943 MB / 0.9009 GB, free: 0 / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 16 ($STATESET139834419147145.x[3],$STATESET139834419147145.x[2],$STATESET139834419147145.x[1],rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3],$STATESET139834419147144.x[3],$STATESET139834419147144.x[2],$STATESET139834419147144.x[1],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[3],revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 230 * 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 {(3,100.0%) 33,(1,100.0%) 1,(5,100.0%) 35,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3276/3.882, allocations: 16.07 MB / 0.9166 GB, free: 74.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02652/3.909, allocations: 11.31 MB / 0.9277 GB, free: 73.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/3.909, allocations: 0 / 0.9277 GB, free: 73.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01197/3.921, allocations: 4.974 MB / 0.9325 GB, free: 72.67 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007867/3.929, allocations: 0.7964 MB / 0.9333 GB, free: 72.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06853/3.998, allocations: 19.01 MB / 0.9519 GB, free: 69.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01366/4.011, allocations: 5.511 MB / 0.9572 GB, free: 68.64 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009857/4.021, allocations: 3.698 MB / 0.9609 GB, free: 65.93 MB / 394.7 MB Notification: Performance of SimCode: time 2.394e-06/4.021, allocations: 0 / 0.9609 GB, free: 65.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.247/11.27, allocations: 355.4 MB / 1.308 GB, free: 66.3 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat does not exist to compare? outputFormat=mat