Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.934/1.934, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.817e-05/3.833e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4517/0.5553, allocations: 96.75 MB / 418.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.5556, allocations: 75.95 kB / 418.6 MB, free: 9.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.021/1.577, allocations: 163.5 MB / 0.5685 GB, free: 82.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.577, allocations: 0 / 0.5685 GB, free: 82.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004326/1.577, allocations: 157.3 kB / 0.5687 GB, free: 82.58 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: 3108 * Number of variables: 3108 Notification: Performance of Generate backend data structure: time 0.02871/1.606, allocations: 7.517 MB / 0.576 GB, free: 77.83 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/1.606, allocations: 10.53 kB / 0.576 GB, free: 77.83 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007351/1.614, allocations: 1.545 MB / 0.5775 GB, free: 76.83 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0827/1.696, allocations: 10.05 MB / 0.5873 GB, free: 68.6 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03877/1.735, allocations: 8.416 MB / 0.5956 GB, free: 60.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008186/1.736, allocations: 0.6245 MB / 0.5962 GB, free: 59.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00559/1.742, allocations: 0.8276 MB / 0.597 GB, free: 58.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06133/1.803, allocations: 20.35 MB / 0.6169 GB, free: 37.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008539/1.804, allocations: 87.22 kB / 0.6169 GB, free: 37.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00546/1.809, allocations: 400.7 kB / 0.6173 GB, free: 36.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004478/1.814, allocations: 2.102 MB / 0.6194 GB, free: 34.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05147/1.866, allocations: 17.77 MB / 0.6367 GB, free: 16.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5249/2.39, allocations: 84.96 MB / 0.7197 GB, free: 35.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02777/2.418, allocations: 7.987 MB / 0.7275 GB, free: 34.33 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01063/2.429, allocations: 5.073 MB / 0.7325 GB, free: 34.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005811/2.43, allocations: 61.64 kB / 0.7325 GB, free: 34.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.765e-05/2.43, allocations: 84 kB / 0.7326 GB, free: 34.24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=450): time 9.328e-06/2.43, allocations: 0 / 0.7326 GB, free: 34.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=501): time 0.158/2.588, allocations: 37.64 MB / 0.7693 GB, free: 21.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/2.588, allocations: 228.9 kB / 0.7696 GB, free: 21.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01379/2.602, allocations: 5.685 MB / 0.7751 GB, free: 19.22 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001163/2.603, allocations: 93.33 kB / 0.7752 GB, free: 19.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004667/2.608, allocations: 5.51 MB / 0.7806 GB, free: 14.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003373/2.611, allocations: 1.819 MB / 0.7824 GB, free: 13.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001613/2.613, allocations: 222.3 kB / 0.7826 GB, free: 13.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001196/2.614, allocations: 0.8085 MB / 0.7834 GB, free: 12.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0135/2.627, allocations: 4.802 MB / 0.7881 GB, free: 9.555 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02049/2.648, allocations: 10.93 MB / 0.7987 GB, free: 12.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01884/2.667, allocations: 7.301 MB / 0.8059 GB, free: 6.418 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002563/2.667, allocations: 60 kB / 0.8059 GB, free: 6.359 MB / 458.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.05215/2.719, allocations: 16.74 MB / 0.8223 GB, free: 8.098 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000202/2.72, allocations: 96 kB / 0.8224 GB, free: 8.004 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004096/2.72, allocations: 212.8 kB / 0.8226 GB, free: 7.797 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008209/2.728, allocations: 1.721 MB / 0.8242 GB, free: 6.457 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01855/2.747, allocations: 2.592 MB / 0.8268 GB, free: 4.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3588/3.106, allocations: 14.04 MB / 0.8405 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01297/3.119, allocations: 0.6651 MB / 0.8411 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003153/3.122, allocations: 0.6277 MB / 0.8417 GB, free: 106.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1362): * Single equations (assignments): 1349 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004888/3.127, allocations: 0.9325 MB / 0.8427 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002438/3.129, allocations: 0.6125 MB / 0.8432 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03339/3.163, allocations: 9.601 MB / 0.8526 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002338/3.163, allocations: 92 kB / 0.8527 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-05/3.163, allocations: 9.344 kB / 0.8527 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000125/3.163, allocations: 23.98 kB / 0.8527 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06573/3.229, allocations: 21.59 MB / 0.8738 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.934e-05/3.229, allocations: 9.594 kB / 0.8738 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007874/3.237, allocations: 0.7955 MB / 0.8746 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006929/3.244, allocations: 1.362 MB / 0.8759 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001273/3.245, allocations: 92.97 kB / 0.876 GB, free: 102.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02152/3.267, allocations: 12.88 MB / 0.8886 GB, free: 94.03 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.52e-05/3.267, allocations: 17.3 kB / 0.8886 GB, free: 94.03 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03915/3.306, allocations: 17.13 MB / 0.9054 GB, free: 86.05 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005902/3.312, allocations: 1.381 MB / 0.9067 GB, free: 85.32 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002818/3.315, allocations: 93.34 kB / 0.9068 GB, free: 85.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007063/3.322, allocations: 314.1 kB / 0.9071 GB, free: 85.21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001798/3.324, allocations: 303.2 kB / 0.9074 GB, free: 85.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008337/3.325, allocations: 130.4 kB / 0.9075 GB, free: 85.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01107/3.336, allocations: 3.94 MB / 0.9114 GB, free: 83.79 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.42e-07/3.336, allocations: 0 / 0.9114 GB, free: 83.79 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01484/3.351, allocations: 2.036 MB / 0.9133 GB, free: 83.55 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (385): * Single equations (assignments): 372 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03994/3.391, allocations: 19.88 MB / 0.9328 GB, free: 67.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0281/3.419, allocations: 11.98 MB / 0.9445 GB, free: 57.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.797e-05/3.419, allocations: 4 kB / 0.9445 GB, free: 57.42 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01202/3.431, allocations: 4.87 MB / 0.9492 GB, free: 52.94 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006586/3.438, allocations: 0.723 MB / 0.9499 GB, free: 52.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07215/3.51, allocations: 21.13 MB / 0.9706 GB, free: 33.89 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01645/3.526, allocations: 6.288 MB / 0.9767 GB, free: 29.24 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01171/3.538, allocations: 4.158 MB / 0.9808 GB, free: 25.38 MB / 474.7 MB Notification: Performance of SimCode: time 1.643e-06/3.538, allocations: 0 / 0.9808 GB, free: 25.38 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.815/10.35, allocations: 309.1 MB / 1.283 GB, free: 67.08 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat