Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.896/1.896, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.093e-05/4.106e-05, allocations: 8 kB / 273.2 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4367/0.539, allocations: 95.96 MB / 417.8 MB, free: 9.938 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/0.5394, allocations: 79.95 kB / 417.9 MB, free: 9.859 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.718/2.257, allocations: 284.2 MB / 0.6856 GB, free: 29.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.126e-06/2.257, allocations: 3.594 kB / 0.6856 GB, free: 29.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001026/2.258, allocations: 282.9 kB / 0.6859 GB, free: 29.55 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: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.07613/2.334, allocations: 13.18 MB / 0.6988 GB, free: 24.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.211e-05/2.335, allocations: 7.5 kB / 0.6988 GB, free: 24.37 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01814/2.353, allocations: 2.695 MB / 0.7014 GB, free: 24.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1538/2.507, allocations: 18.45 MB / 0.7194 GB, free: 23.19 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05229/2.559, allocations: 14.85 MB / 0.7339 GB, free: 21.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001509/2.56, allocations: 1.099 MB / 0.735 GB, free: 21.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009062/2.57, allocations: 1.457 MB / 0.7364 GB, free: 21.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1086/2.678, allocations: 35.31 MB / 0.7709 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001215/2.679, allocations: 137.5 kB / 0.771 GB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009638/2.689, allocations: 0.6673 MB / 0.7717 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01019/2.699, allocations: 3.704 MB / 0.7753 GB, free: 7.176 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1633/2.863, allocations: 33.68 MB / 0.8082 GB, free: 1.953 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6757/3.539, allocations: 139.1 MB / 0.9441 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05514/3.594, allocations: 15.03 MB / 0.9588 GB, free: 23.05 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01968/3.613, allocations: 9.32 MB / 0.9679 GB, free: 19.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09885/3.712, allocations: 34.74 MB / 1.002 GB, free: 4.738 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001248/3.713, allocations: 110.3 kB / 1.002 GB, free: 4.648 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=745): time 1.219e-05/3.713, allocations: 0 / 1.002 GB, free: 4.648 MB / 0.4948 GB Notification: Performance of matching and sorting (n=827): time 0.7132/4.426, allocations: 67.25 MB / 1.068 GB, free: 97.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/4.426, allocations: 306.4 kB / 1.068 GB, free: 97.02 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02472/4.451, allocations: 9.266 MB / 1.077 GB, free: 96.23 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001892/4.453, allocations: 139.8 kB / 1.077 GB, free: 96.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.008078/4.461, allocations: 9.486 MB / 1.086 GB, free: 90.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004871/4.466, allocations: 2.984 MB / 1.089 GB, free: 89.18 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003307/4.469, allocations: 358.8 kB / 1.09 GB, free: 89.18 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00236/4.471, allocations: 1.108 MB / 1.091 GB, free: 88.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02028/4.492, allocations: 8.003 MB / 1.098 GB, free: 87.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.027/4.519, allocations: 17.47 MB / 1.116 GB, free: 72.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02748/4.546, allocations: 11.97 MB / 1.127 GB, free: 66.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004926/4.547, allocations: 99 kB / 1.127 GB, free: 66.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2399) (initialization): time 0.07513/4.622, allocations: 26 MB / 1.153 GB, free: 44.56 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002642/4.622, allocations: 151.5 kB / 1.153 GB, free: 44.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005824/4.623, allocations: 334.4 kB / 1.153 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01133/4.634, allocations: 2.403 MB / 1.155 GB, free: 42.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0298/4.664, allocations: 4.27 MB / 1.16 GB, free: 38.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02952/4.694, allocations: 14.38 MB / 1.174 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02155/4.715, allocations: 1.087 MB / 1.175 GB, free: 24.94 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005019/4.72, allocations: 0.9898 MB / 1.176 GB, free: 23.97 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1513 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2203): * Single equations (assignments): 2186 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007926/4.728, allocations: 1.416 MB / 1.177 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00373/4.732, allocations: 1.01 MB / 1.178 GB, free: 21.53 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.437/5.169, allocations: 15.94 MB / 1.194 GB, free: 86.32 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003831/5.17, allocations: 171.1 kB / 1.194 GB, free: 86.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-05/5.17, allocations: 14.88 kB / 1.194 GB, free: 86.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002136/5.17, allocations: 34.69 kB / 1.194 GB, free: 86.32 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1125/5.283, allocations: 34.51 MB / 1.228 GB, free: 84.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000129/5.283, allocations: 6.844 kB / 1.228 GB, free: 84.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01423/5.297, allocations: 1.397 MB / 1.229 GB, free: 84.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01005/5.307, allocations: 1.764 MB / 1.231 GB, free: 84.78 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001822/5.309, allocations: 140.3 kB / 1.231 GB, free: 84.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02654/5.336, allocations: 12.91 MB / 1.243 GB, free: 82.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/5.336, allocations: 10.83 kB / 1.243 GB, free: 82.06 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06066/5.396, allocations: 26.3 MB / 1.269 GB, free: 72.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008838/5.405, allocations: 2.247 MB / 1.271 GB, free: 72.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004104/5.409, allocations: 126.9 kB / 1.271 GB, free: 72.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01146/5.421, allocations: 0.5391 MB / 1.272 GB, free: 72.01 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002542/5.423, allocations: 445.9 kB / 1.272 GB, free: 71.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001049/5.424, allocations: 190.3 kB / 1.273 GB, free: 71.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01731/5.442, allocations: 6.413 MB / 1.279 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.082e-06/5.442, allocations: 0 / 1.279 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02248/5.464, allocations: 3.426 MB / 1.282 GB, free: 69.39 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (653): * Single equations (assignments): 636 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06142/5.526, allocations: 27.76 MB / 1.309 GB, free: 48.51 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04511/5.571, allocations: 18.82 MB / 1.328 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/5.571, allocations: 0 / 1.328 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02012/5.591, allocations: 7.52 MB / 1.335 GB, free: 25.29 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0113/5.603, allocations: 1.252 MB / 1.336 GB, free: 24.23 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4955/6.098, allocations: 36.29 MB / 1.372 GB, free: 96.65 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04033/6.139, allocations: 10.59 MB / 1.382 GB, free: 95.56 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02871/6.167, allocations: 7.583 MB / 1.389 GB, free: 95.55 MB / 0.5105 GB Notification: Performance of SimCode: time 2.294e-06/6.167, allocations: 0 / 1.389 GB, free: 95.55 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.478/14.65, allocations: 407.6 MB / 1.787 GB, free: 108 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat