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.943/1.943, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.681e-05/3.694e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4277/0.529, allocations: 95.68 MB / 417.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.5293, allocations: 83.95 kB / 417.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9522/1.482, allocations: 147.5 MB / 0.5519 GB, free: 89.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.006e-06/1.482, allocations: 2.859 kB / 0.5519 GB, free: 89.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006882/1.482, allocations: 149.2 kB / 0.552 GB, free: 89.56 MB / 426.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.05571/1.538, allocations: 8.559 MB / 0.5604 GB, free: 86.33 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/1.538, allocations: 10.78 kB / 0.5604 GB, free: 86.33 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005599/1.544, allocations: 1.154 MB / 0.5615 GB, free: 85.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.117/1.661, allocations: 16.69 MB / 0.5778 GB, free: 78.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0682/1.729, allocations: 13.31 MB / 0.5908 GB, free: 65.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008609/1.73, allocations: 498.9 kB / 0.5913 GB, free: 64.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005099/1.735, allocations: 0.6678 MB / 0.592 GB, free: 64.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08205/1.817, allocations: 16.77 MB / 0.6083 GB, free: 46.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008189/1.818, allocations: 107 kB / 0.6084 GB, free: 45.99 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004253/1.822, allocations: 312.2 kB / 0.6087 GB, free: 45.72 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005178/1.828, allocations: 1.477 MB / 0.6102 GB, free: 44.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06617/1.894, allocations: 13.48 MB / 0.6233 GB, free: 30.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4614/2.355, allocations: 76.72 MB / 0.6983 GB, free: 29.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04763/2.403, allocations: 8.554 MB / 0.7066 GB, free: 28.81 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008127/2.411, allocations: 4.095 MB / 0.7106 GB, free: 28.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002774/2.414, allocations: 1.348 MB / 0.7119 GB, free: 27.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.647e-05/2.414, allocations: 60.56 kB / 0.712 GB, free: 27.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 6.542e-06/2.414, allocations: 0 / 0.712 GB, free: 27.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=352): time 0.2513/2.666, allocations: 44.91 MB / 0.7558 GB, free: 18.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00264/2.668, allocations: 3.236 MB / 0.759 GB, free: 15.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01774/2.686, allocations: 6.492 MB / 0.7653 GB, free: 12.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001224/2.687, allocations: 79.97 kB / 0.7654 GB, free: 12.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004837/2.692, allocations: 4.867 MB / 0.7702 GB, free: 9.129 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002553/2.695, allocations: 1.344 MB / 0.7715 GB, free: 8.152 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001932/2.697, allocations: 190.6 kB / 0.7717 GB, free: 8.004 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008621/2.698, allocations: 0.7109 MB / 0.7724 GB, free: 7.523 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01136/2.709, allocations: 4.481 MB / 0.7767 GB, free: 5.559 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01653/2.726, allocations: 9.758 MB / 0.7863 GB, free: 9.938 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01683/2.742, allocations: 6.518 MB / 0.7926 GB, free: 4.484 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002/2.743, allocations: 52 kB / 0.7927 GB, free: 4.434 MB / 442.7 MB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.1389/2.882, allocations: 31.1 MB / 0.8231 GB, free: 9.254 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000173/2.882, allocations: 84 kB / 0.8231 GB, free: 9.172 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4271/3.309, allocations: 20.57 MB / 0.8432 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09127/3.4, allocations: 16.6 MB / 0.8594 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01391/3.414, allocations: 2.115 MB / 0.8615 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07903/3.493, allocations: 33.31 MB / 0.894 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01457/3.508, allocations: 0.7774 MB / 0.8948 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002719/3.511, allocations: 0.559 MB / 0.8953 GB, free: 105.4 MB / 474.7 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 (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.004452/3.515, allocations: 0.8203 MB / 0.8961 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002277/3.518, allocations: 0.6701 MB / 0.8968 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04918/3.567, allocations: 10.15 MB / 0.9067 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04686/3.614, allocations: 8.853 MB / 0.9154 GB, free: 98.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001051/3.614, allocations: 15.56 kB / 0.9154 GB, free: 98.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001334/3.614, allocations: 19.81 kB / 0.9154 GB, free: 98.22 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07595/3.69, allocations: 23.36 MB / 0.9382 GB, free: 76.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.847e-05/3.69, allocations: 0 / 0.9382 GB, free: 76.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005754/3.696, allocations: 0.565 MB / 0.9388 GB, free: 75.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02513/3.721, allocations: 4.006 MB / 0.9427 GB, free: 71.62 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00138/3.723, allocations: 106.6 kB / 0.9428 GB, free: 71.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06422/3.787, allocations: 23.99 MB / 0.9662 GB, free: 46.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003093/3.79, allocations: 3.001 MB / 0.9691 GB, free: 43.72 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04531/3.835, allocations: 15.47 MB / 0.9842 GB, free: 28.25 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005959/3.841, allocations: 1.388 MB / 0.9856 GB, free: 26.84 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002988/3.844, allocations: 87.97 kB / 0.9857 GB, free: 26.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008514/3.853, allocations: 353.3 kB / 0.986 GB, free: 26.41 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001856/3.855, allocations: 250.5 kB / 0.9862 GB, free: 26.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009411/3.856, allocations: 98.64 kB / 0.9863 GB, free: 26.07 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01267/3.869, allocations: 4.639 MB / 0.9909 GB, free: 21.48 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.72e-07/3.869, allocations: 0 / 0.9909 GB, free: 21.48 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01381/3.882, allocations: 2.125 MB / 0.9929 GB, free: 19.36 MB / 474.7 MB 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.3882/4.271, allocations: 16.44 MB / 1.009 GB, free: 110.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0313/4.302, allocations: 11.81 MB / 1.021 GB, free: 109.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/4.302, allocations: 0 / 1.021 GB, free: 109.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01323/4.315, allocations: 5.17 MB / 1.026 GB, free: 108.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008736/4.324, allocations: 0.9408 MB / 1.027 GB, free: 108.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07246/4.397, allocations: 19.58 MB / 1.046 GB, free: 102.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01428/4.411, allocations: 5.52 MB / 1.051 GB, free: 100.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01045/4.422, allocations: 3.73 MB / 1.055 GB, free: 97.66 MB / 474.7 MB Notification: Performance of SimCode: time 1.402e-06/4.422, allocations: 0 / 1.055 GB, free: 97.66 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.533/11.96, allocations: 360.6 MB / 1.407 GB, free: 114.3 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