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.924/1.924, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.215e-05/4.242e-05, allocations: 7.375 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 48.7 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4376/0.5436, allocations: 95.96 MB / 417.8 MB, free: 9.914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.544, allocations: 86.97 kB / 417.9 MB, free: 9.832 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.842/2.386, allocations: 284.2 MB / 0.6856 GB, free: 29.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.225e-06/2.386, allocations: 0 / 0.6856 GB, free: 29.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008815/2.386, allocations: 286.1 kB / 0.6859 GB, free: 29.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: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.05207/2.439, allocations: 13.19 MB / 0.6987 GB, free: 24.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/2.439, allocations: 12.09 kB / 0.6987 GB, free: 24.39 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01303/2.452, allocations: 2.693 MB / 0.7014 GB, free: 24.22 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1343/2.586, allocations: 18.45 MB / 0.7194 GB, free: 23.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05473/2.641, allocations: 14.85 MB / 0.7339 GB, free: 21.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001521/2.642, allocations: 1.099 MB / 0.735 GB, free: 21.58 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009297/2.652, allocations: 1.465 MB / 0.7364 GB, free: 21.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.135/2.787, allocations: 35.48 MB / 0.771 GB, free: 10.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001007/2.788, allocations: 135.7 kB / 0.7712 GB, free: 10.56 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008257/2.796, allocations: 0.6669 MB / 0.7718 GB, free: 9.996 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007648/2.804, allocations: 3.711 MB / 0.7755 GB, free: 6.949 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1428/2.947, allocations: 34.16 MB / 0.8088 GB, free: 1.328 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7274/3.674, allocations: 139.1 MB / 0.9447 GB, free: 25.47 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05468/3.729, allocations: 15.08 MB / 0.9594 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01985/3.749, allocations: 9.317 MB / 0.9685 GB, free: 18.82 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1024/3.851, allocations: 34.75 MB / 1.002 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001122/3.851, allocations: 100.5 kB / 1.003 GB, free: 4.301 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=745): time 1.158e-05/3.851, allocations: 0 / 1.003 GB, free: 4.301 MB / 0.4948 GB Notification: Performance of matching and sorting (n=827): time 0.6808/4.532, allocations: 67.22 MB / 1.068 GB, free: 98.19 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/4.532, allocations: 304.7 kB / 1.068 GB, free: 97.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0272/4.56, allocations: 9.273 MB / 1.078 GB, free: 97.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001929/4.562, allocations: 137 kB / 1.078 GB, free: 97.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.008392/4.57, allocations: 9.487 MB / 1.087 GB, free: 91.85 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005249/4.575, allocations: 2.983 MB / 1.09 GB, free: 90.07 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00315/4.579, allocations: 360.8 kB / 1.09 GB, free: 90.07 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.002051/4.581, allocations: 1.099 MB / 1.091 GB, free: 89.72 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02158/4.602, allocations: 8.011 MB / 1.099 GB, free: 88.61 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02855/4.631, allocations: 17.57 MB / 1.116 GB, free: 73.27 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02902/4.66, allocations: 11.97 MB / 1.128 GB, free: 65.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004823/4.661, allocations: 96 kB / 1.128 GB, free: 65.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2399) (initialization): time 0.08028/4.741, allocations: 26.94 MB / 1.154 GB, free: 42.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003182/4.741, allocations: 144 kB / 1.154 GB, free: 42.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006332/4.742, allocations: 332 kB / 1.155 GB, free: 42.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01162/4.753, allocations: 2.399 MB / 1.157 GB, free: 40.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02933/4.783, allocations: 4.268 MB / 1.161 GB, free: 36.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03101/4.814, allocations: 14.38 MB / 1.175 GB, free: 23.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02166/4.836, allocations: 1.09 MB / 1.176 GB, free: 22.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004671/4.84, allocations: 0.9969 MB / 1.177 GB, free: 21.95 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.007807/4.848, allocations: 1.424 MB / 1.179 GB, free: 20.53 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004087/4.852, allocations: 1.01 MB / 1.18 GB, free: 19.51 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4525/5.305, allocations: 16.72 MB / 1.196 GB, free: 87.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000368/5.305, allocations: 169.2 kB / 1.196 GB, free: 87.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.819e-05/5.305, allocations: 12.72 kB / 1.196 GB, free: 87.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002142/5.306, allocations: 34.61 kB / 1.196 GB, free: 87.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1132/5.419, allocations: 34.53 MB / 1.23 GB, free: 86.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001273/5.419, allocations: 7 kB / 1.23 GB, free: 86.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01392/5.433, allocations: 1.389 MB / 1.231 GB, free: 86.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01035/5.443, allocations: 1.769 MB / 1.233 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002055/5.446, allocations: 133.8 kB / 1.233 GB, free: 86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02899/5.475, allocations: 12.91 MB / 1.246 GB, free: 83.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.318e-05/5.475, allocations: 11.86 kB / 1.246 GB, free: 83.29 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0649/5.54, allocations: 26.31 MB / 1.272 GB, free: 73.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009863/5.549, allocations: 2.244 MB / 1.274 GB, free: 73.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004466/5.554, allocations: 127.9 kB / 1.274 GB, free: 73.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01168/5.566, allocations: 0.5274 MB / 1.274 GB, free: 73.22 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002817/5.569, allocations: 448 kB / 1.275 GB, free: 73.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001882/5.571, allocations: 187.6 kB / 1.275 GB, free: 73.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01806/5.589, allocations: 6.411 MB / 1.281 GB, free: 70.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.493e-06/5.589, allocations: 0 / 1.281 GB, free: 70.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02302/5.612, allocations: 3.434 MB / 1.285 GB, free: 70.6 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.06633/5.678, allocations: 27.76 MB / 1.312 GB, free: 48.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04624/5.724, allocations: 19.33 MB / 1.331 GB, free: 31.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/5.724, allocations: 0 / 1.331 GB, free: 31.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01966/5.744, allocations: 7.603 MB / 1.338 GB, free: 24.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01116/5.755, allocations: 1.257 MB / 1.339 GB, free: 23.74 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4911/6.246, allocations: 35.9 MB / 1.374 GB, free: 96.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03392/6.28, allocations: 10.59 MB / 1.385 GB, free: 95.47 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0229/6.303, allocations: 7.588 MB / 1.392 GB, free: 95.46 MB / 0.5105 GB Notification: Performance of SimCode: time 2.084e-06/6.303, allocations: 3.156 kB / 1.392 GB, free: 95.46 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.755/15.06, allocations: 410.6 MB / 1.793 GB, free: 112.6 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