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.951/1.951, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.899e-05/3.906e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4445/0.5532, allocations: 96.75 MB / 418.6 MB, free: 9.016 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.5535, allocations: 74.59 kB / 418.7 MB, free: 8.945 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9238/1.477, allocations: 163.5 MB / 0.5686 GB, free: 82.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.225e-06/1.477, allocations: 0 / 0.5686 GB, free: 82.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004447/1.478, allocations: 162 kB / 0.5687 GB, free: 82.35 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.03038/1.508, allocations: 7.507 MB / 0.5761 GB, free: 77.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/1.508, allocations: 14.62 kB / 0.5761 GB, free: 77.58 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007806/1.516, allocations: 1.547 MB / 0.5776 GB, free: 76.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07348/1.59, allocations: 10.05 MB / 0.5874 GB, free: 68.37 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02926/1.619, allocations: 8.406 MB / 0.5956 GB, free: 59.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008055/1.62, allocations: 0.621 MB / 0.5962 GB, free: 59.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005467/1.625, allocations: 0.8257 MB / 0.597 GB, free: 58.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0631/1.689, allocations: 20.25 MB / 0.6168 GB, free: 37.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000792/1.689, allocations: 83.28 kB / 0.6169 GB, free: 37.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006161/1.696, allocations: 397.6 kB / 0.6173 GB, free: 36.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004532/1.7, allocations: 2.107 MB / 0.6193 GB, free: 34.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05179/1.752, allocations: 17.47 MB / 0.6364 GB, free: 17.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4598/2.212, allocations: 84.96 MB / 0.7193 GB, free: 36.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02832/2.24, allocations: 7.949 MB / 0.7271 GB, free: 34.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01025/2.251, allocations: 5.074 MB / 0.7321 GB, free: 34.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004167/2.251, allocations: 68.06 kB / 0.7321 GB, free: 34.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.777e-05/2.251, allocations: 78.84 kB / 0.7322 GB, free: 34.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=450): time 9.488e-06/2.251, allocations: 3.75 kB / 0.7322 GB, free: 34.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=501): time 0.186/2.437, allocations: 37.63 MB / 0.769 GB, free: 21.65 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/2.437, allocations: 229.1 kB / 0.7692 GB, free: 21.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01348/2.451, allocations: 5.677 MB / 0.7747 GB, free: 19.47 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001176/2.452, allocations: 97.89 kB / 0.7748 GB, free: 19.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004853/2.457, allocations: 5.513 MB / 0.7802 GB, free: 15.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003362/2.46, allocations: 1.821 MB / 0.782 GB, free: 13.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001587/2.462, allocations: 222.8 kB / 0.7822 GB, free: 13.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001105/2.463, allocations: 0.8038 MB / 0.783 GB, free: 13.09 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01325/2.476, allocations: 4.803 MB / 0.7877 GB, free: 9.875 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02211/2.498, allocations: 10.86 MB / 0.7983 GB, free: 12.94 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0195/2.518, allocations: 7.303 MB / 0.8054 GB, free: 6.812 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002617/2.518, allocations: 60 kB / 0.8055 GB, free: 6.754 MB / 458.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.05209/2.57, allocations: 16.15 MB / 0.8212 GB, free: 9.012 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001858/2.571, allocations: 96 kB / 0.8213 GB, free: 8.918 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000382/2.571, allocations: 216 kB / 0.8215 GB, free: 8.707 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007941/2.579, allocations: 1.717 MB / 0.8232 GB, free: 7.371 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01808/2.597, allocations: 2.6 MB / 0.8257 GB, free: 5.137 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3495/2.947, allocations: 14.02 MB / 0.8394 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01319/2.96, allocations: 0.6581 MB / 0.8401 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003205/2.963, allocations: 0.6361 MB / 0.8407 GB, free: 106.3 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.004852/2.968, allocations: 0.9203 MB / 0.8416 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002434/2.971, allocations: 0.615 MB / 0.8422 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03247/3.003, allocations: 9.606 MB / 0.8516 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002255/3.003, allocations: 93.88 kB / 0.8517 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-05/3.003, allocations: 10.22 kB / 0.8517 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001261/3.004, allocations: 24.53 kB / 0.8517 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06327/3.067, allocations: 21.56 MB / 0.8728 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.359e-05/3.067, allocations: 9.5 kB / 0.8728 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007931/3.075, allocations: 0.7943 MB / 0.8735 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006897/3.082, allocations: 1.353 MB / 0.8749 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001286/3.083, allocations: 92.09 kB / 0.8749 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02172/3.105, allocations: 12.88 MB / 0.8875 GB, free: 94.25 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.757e-05/3.105, allocations: 25.14 kB / 0.8875 GB, free: 94.25 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03901/3.144, allocations: 17.12 MB / 0.9043 GB, free: 86.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005633/3.15, allocations: 1.394 MB / 0.9056 GB, free: 85.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002484/3.152, allocations: 80.47 kB / 0.9057 GB, free: 85.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007067/3.159, allocations: 317.3 kB / 0.906 GB, free: 85.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001765/3.161, allocations: 304.2 kB / 0.9063 GB, free: 85.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007951/3.162, allocations: 132.6 kB / 0.9064 GB, free: 85.38 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01085/3.173, allocations: 3.935 MB / 0.9103 GB, free: 84.03 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.21e-07/3.173, allocations: 3.438 kB / 0.9103 GB, free: 84.03 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01486/3.188, allocations: 2.039 MB / 0.9123 GB, free: 83.79 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.03878/3.227, allocations: 19.89 MB / 0.9317 GB, free: 68.79 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02648/3.253, allocations: 11.62 MB / 0.943 GB, free: 58.57 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/3.253, allocations: 0 / 0.943 GB, free: 58.57 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01226/3.266, allocations: 4.801 MB / 0.9477 GB, free: 54.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006402/3.272, allocations: 0.7252 MB / 0.9484 GB, free: 53.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06875/3.341, allocations: 21.1 MB / 0.969 GB, free: 35.16 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01733/3.358, allocations: 6.29 MB / 0.9752 GB, free: 30.52 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0152/3.373, allocations: 4.157 MB / 0.9792 GB, free: 26.66 MB / 474.7 MB Notification: Performance of SimCode: time 2.425e-06/3.374, allocations: 3.938 kB / 0.9792 GB, free: 26.66 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.754/10.13, allocations: 307.3 MB / 1.279 GB, free: 71.14 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