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.774/1.774, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.711e-05/3.721e-05, allocations: 4 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2719, allocations: 38.76 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1959/0.4679, allocations: 86.74 MB / 350.6 MB, free: 3 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.4683, allocations: 83.95 kB / 350.7 MB, free: 2.918 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8472/1.315, allocations: 147.1 MB / 497.7 MB, free: 7.746 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.316, allocations: 3.938 kB / 497.7 MB, free: 7.742 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007054/1.316, allocations: 148 kB / 497.9 MB, free: 7.598 MB / 346.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.6056/1.922, allocations: 8.556 MB / 0.4946 GB, free: 37.06 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.891e-05/1.922, allocations: 12.06 kB / 0.4946 GB, free: 37.06 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005683/1.928, allocations: 1.157 MB / 0.4957 GB, free: 36.96 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1146/2.042, allocations: 16.69 MB / 0.512 GB, free: 36.46 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04564/2.088, allocations: 13.14 MB / 0.5248 GB, free: 35.91 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000621/2.089, allocations: 498.1 kB / 0.5253 GB, free: 35.9 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003438/2.092, allocations: 0.6733 MB / 0.526 GB, free: 35.88 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05702/2.149, allocations: 16.68 MB / 0.5422 GB, free: 31.83 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005199/2.15, allocations: 110.2 kB / 0.5424 GB, free: 31.82 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002677/2.152, allocations: 321.4 kB / 0.5427 GB, free: 31.82 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003667/2.156, allocations: 1.475 MB / 0.5441 GB, free: 31.8 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04592/2.202, allocations: 13.21 MB / 0.557 GB, free: 29.9 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1282/2.33, allocations: 76.75 MB / 0.6319 GB, free: 10.32 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04848/2.379, allocations: 8.503 MB / 0.6403 GB, free: 3.418 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2923/2.671, allocations: 4.178 MB / 0.6443 GB, free: 80.17 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003113/2.674, allocations: 1.349 MB / 0.6457 GB, free: 79.04 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.052e-05/2.675, allocations: 62.44 kB / 0.6457 GB, free: 79 MB / 394.8 MB Notification: Performance of pre-optimization done (n=268): time 7.304e-06/2.675, allocations: 0 / 0.6457 GB, free: 79 MB / 394.8 MB Notification: Performance of matching and sorting (n=354): time 0.2548/2.929, allocations: 46.86 MB / 0.6915 GB, free: 73.04 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002617/2.932, allocations: 3.232 MB / 0.6946 GB, free: 69.98 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01661/2.949, allocations: 6.493 MB / 0.701 GB, free: 69.46 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001194/2.95, allocations: 82.59 kB / 0.7011 GB, free: 69.43 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004848/2.955, allocations: 4.867 MB / 0.7058 GB, free: 67.05 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002583/2.957, allocations: 1.351 MB / 0.7071 GB, free: 66.27 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002083/2.96, allocations: 184.7 kB / 0.7073 GB, free: 66.27 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0008638/2.96, allocations: 0.7139 MB / 0.708 GB, free: 65.94 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01128/2.972, allocations: 4.503 MB / 0.7124 GB, free: 65.53 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01468/2.987, allocations: 9.727 MB / 0.7219 GB, free: 56.92 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01471/3.001, allocations: 6.554 MB / 0.7283 GB, free: 54.81 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002302/3.002, allocations: 53.5 kB / 0.7283 GB, free: 54.81 MB / 394.8 MB Notification: Performance of matching and sorting (n=1237) (initialization): time 0.1247/3.126, allocations: 30.64 MB / 0.7583 GB, free: 36.38 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001449/3.127, allocations: 88.95 kB / 0.7583 GB, free: 36.29 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08821/3.215, allocations: 20.63 MB / 0.7785 GB, free: 16.63 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.375/3.59, allocations: 16.59 MB / 0.7947 GB, free: 65.49 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01402/3.604, allocations: 2.121 MB / 0.7968 GB, free: 65.49 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07845/3.682, allocations: 33.32 MB / 0.8293 GB, free: 60.3 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01537/3.698, allocations: 0.7704 MB / 0.8301 GB, free: 60.3 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003253/3.701, allocations: 0.5591 MB / 0.8306 GB, free: 60.3 MB / 394.8 MB 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 (1091): * Single equations (assignments): 1078 * 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.005681/3.707, allocations: 0.8178 MB / 0.8314 GB, free: 60.19 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003318/3.71, allocations: 0.6708 MB / 0.8321 GB, free: 60.19 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03629/3.747, allocations: 10.23 MB / 0.8421 GB, free: 57.59 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03089/3.778, allocations: 8.934 MB / 0.8508 GB, free: 54.61 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001023/3.778, allocations: 14.69 kB / 0.8508 GB, free: 54.61 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001196/3.778, allocations: 20.98 kB / 0.8508 GB, free: 54.61 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07465/3.853, allocations: 23.53 MB / 0.8738 GB, free: 45.53 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.039e-05/3.853, allocations: 0 / 0.8738 GB, free: 45.53 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005982/3.859, allocations: 0.5621 MB / 0.8743 GB, free: 45.12 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02417/3.883, allocations: 4.017 MB / 0.8783 GB, free: 42.49 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001248/3.884, allocations: 98.47 kB / 0.8784 GB, free: 42.41 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04747/3.932, allocations: 23.99 MB / 0.9018 GB, free: 20.34 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002565/3.934, allocations: 2.951 MB / 0.9047 GB, free: 17.14 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04503/3.979, allocations: 15.69 MB / 0.92 GB, free: 1.668 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005858/3.985, allocations: 1.386 MB / 0.9213 GB, free: 268 kB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003185/3.989, allocations: 87.98 kB / 0.9214 GB, free: 180 kB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.3264/4.315, allocations: 325.6 kB / 0.9217 GB, free: 80.48 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001927/4.317, allocations: 250.5 kB / 0.922 GB, free: 80.48 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001089/4.318, allocations: 101.6 kB / 0.9221 GB, free: 80.48 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.01371/4.332, allocations: 4.636 MB / 0.9266 GB, free: 80.24 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.373e-06/4.332, allocations: 2.625 kB / 0.9266 GB, free: 80.24 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.016/4.348, allocations: 2.136 MB / 0.9287 GB, free: 80.24 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3],$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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (246): * Single equations (assignments): 235 * 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.0478/4.396, allocations: 16.71 MB / 0.945 GB, free: 78.19 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.03157/4.428, allocations: 11.56 MB / 0.9563 GB, free: 77.46 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/4.428, allocations: 0 / 0.9563 GB, free: 77.46 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01292/4.441, allocations: 5.14 MB / 0.9613 GB, free: 76.55 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00884/4.449, allocations: 0.9435 MB / 0.9622 GB, free: 76.51 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07002/4.52, allocations: 19.61 MB / 0.9814 GB, free: 70.58 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01375/4.533, allocations: 5.517 MB / 0.9868 GB, free: 68.86 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009838/4.543, allocations: 3.728 MB / 0.9904 GB, free: 65.88 MB / 410.8 MB Notification: Performance of SimCode: time 4.498e-06/4.543, allocations: 0 / 0.9904 GB, free: 65.88 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.435/11.98, allocations: 359.3 MB / 1.341 GB, free: 42.02 MB / 442.8 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