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.924/1.924, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.978e-05/5.015e-05, allocations: 4 kB / 273.2 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1154, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4384/0.5539, allocations: 95.69 MB / 417.6 MB, free: 10.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.5542, allocations: 83.17 kB / 417.6 MB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9181/1.472, allocations: 147.5 MB / 0.5519 GB, free: 89.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.472, allocations: 0 / 0.5519 GB, free: 89.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007934/1.473, allocations: 144.3 kB / 0.5521 GB, free: 89.28 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.06923/1.542, allocations: 8.574 MB / 0.5604 GB, free: 86.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/1.543, allocations: 7.812 kB / 0.5605 GB, free: 86.26 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005376/1.548, allocations: 1.157 MB / 0.5616 GB, free: 85.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1144/1.662, allocations: 16.69 MB / 0.5779 GB, free: 78.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0448/1.707, allocations: 13.3 MB / 0.5909 GB, free: 65.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000544/1.708, allocations: 0.4934 MB / 0.5913 GB, free: 64.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003483/1.711, allocations: 0.6581 MB / 0.592 GB, free: 64.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05174/1.763, allocations: 16.69 MB / 0.6083 GB, free: 45.92 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005082/1.764, allocations: 107 kB / 0.6084 GB, free: 45.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002829/1.767, allocations: 318.1 kB / 0.6087 GB, free: 45.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003286/1.77, allocations: 1.48 MB / 0.6101 GB, free: 44.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04543/1.815, allocations: 13.21 MB / 0.623 GB, free: 30.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4447/2.26, allocations: 76.73 MB / 0.698 GB, free: 29.92 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04762/2.308, allocations: 8.521 MB / 0.7063 GB, free: 29.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008074/2.316, allocations: 4.097 MB / 0.7103 GB, free: 29.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002705/2.319, allocations: 1.344 MB / 0.7116 GB, free: 28.08 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.191e-05/2.319, allocations: 62.25 kB / 0.7117 GB, free: 28.04 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 7.484e-06/2.319, allocations: 0 / 0.7117 GB, free: 28.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=352): time 0.253/2.572, allocations: 44.89 MB / 0.7555 GB, free: 18.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002604/2.574, allocations: 3.231 MB / 0.7587 GB, free: 15.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01738/2.592, allocations: 6.497 MB / 0.765 GB, free: 13.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001202/2.593, allocations: 80.12 kB / 0.7651 GB, free: 13.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00486/2.598, allocations: 4.874 MB / 0.7698 GB, free: 9.414 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002555/2.601, allocations: 1.342 MB / 0.7712 GB, free: 8.434 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001862/2.603, allocations: 193.8 kB / 0.7713 GB, free: 8.289 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009155/2.604, allocations: 0.7116 MB / 0.772 GB, free: 7.805 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01124/2.615, allocations: 4.476 MB / 0.7764 GB, free: 5.785 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0165/2.631, allocations: 9.697 MB / 0.7859 GB, free: 10.21 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01722/2.649, allocations: 6.513 MB / 0.7922 GB, free: 4.762 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002088/2.649, allocations: 56 kB / 0.7923 GB, free: 4.707 MB / 442.7 MB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.1506/2.8, allocations: 30.59 MB / 0.8222 GB, free: 9.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002547/2.8, allocations: 84 kB / 0.8222 GB, free: 9.828 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4363/3.236, allocations: 20.58 MB / 0.8423 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09051/3.327, allocations: 16.59 MB / 0.8585 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01375/3.341, allocations: 2.115 MB / 0.8606 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07652/3.417, allocations: 33.33 MB / 0.8932 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01419/3.431, allocations: 0.7747 MB / 0.8939 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002614/3.434, allocations: 0.5632 MB / 0.8945 GB, free: 105.3 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.004246/3.438, allocations: 0.8095 MB / 0.8953 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002177/3.441, allocations: 0.676 MB / 0.8959 GB, free: 105 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03493/3.476, allocations: 10.15 MB / 0.9058 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02996/3.506, allocations: 8.849 MB / 0.9145 GB, free: 98.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.949e-05/3.506, allocations: 17.44 kB / 0.9145 GB, free: 98.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.455e-05/3.506, allocations: 13.97 kB / 0.9145 GB, free: 98.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07419/3.58, allocations: 23.36 MB / 0.9373 GB, free: 76.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.075e-05/3.58, allocations: 0 / 0.9373 GB, free: 76.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005847/3.586, allocations: 0.5616 MB / 0.9379 GB, free: 76.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02395/3.61, allocations: 4.007 MB / 0.9418 GB, free: 72.18 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001179/3.611, allocations: 99.92 kB / 0.9419 GB, free: 72.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04553/3.657, allocations: 23.99 MB / 0.9653 GB, free: 47.55 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002337/3.659, allocations: 2.994 MB / 0.9682 GB, free: 44.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04252/3.702, allocations: 15.47 MB / 0.9833 GB, free: 28.77 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005462/3.707, allocations: 1.388 MB / 0.9847 GB, free: 27.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002536/3.71, allocations: 87.97 kB / 0.9848 GB, free: 27.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008201/3.718, allocations: 354.9 kB / 0.9851 GB, free: 26.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001757/3.72, allocations: 248.1 kB / 0.9853 GB, free: 26.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006643/3.721, allocations: 100.6 kB / 0.9854 GB, free: 26.59 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01269/3.733, allocations: 4.635 MB / 0.99 GB, free: 22 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.042e-06/3.733, allocations: 2.062 kB / 0.99 GB, free: 22 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01448/3.748, allocations: 2.125 MB / 0.992 GB, free: 19.88 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.3893/4.137, allocations: 16.46 MB / 1.008 GB, free: 110 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03104/4.168, allocations: 11.49 MB / 1.019 GB, free: 109.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/4.168, allocations: 0 / 1.019 GB, free: 109.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01324/4.182, allocations: 5.091 MB / 1.024 GB, free: 108.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008487/4.19, allocations: 0.9459 MB / 1.025 GB, free: 108.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06946/4.26, allocations: 19.55 MB / 1.044 GB, free: 102.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01378/4.274, allocations: 5.513 MB / 1.05 GB, free: 100.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0104/4.284, allocations: 3.735 MB / 1.053 GB, free: 97.94 MB / 474.7 MB Notification: Performance of SimCode: time 1.653e-06/4.284, allocations: 0 / 1.053 GB, free: 97.94 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.197/11.48, allocations: 359 MB / 1.404 GB, free: 115.2 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