Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.971/1.971, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.158e-05/4.166e-05, allocations: 4 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4712/0.5835, allocations: 96.75 MB / 418.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.5838, allocations: 75.95 kB / 418.7 MB, free: 8.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.962/1.546, allocations: 163.5 MB / 0.5686 GB, free: 82.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.546, allocations: 0 / 0.5686 GB, free: 82.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005937/1.546, allocations: 161.8 kB / 0.5687 GB, free: 82.47 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.03855/1.585, allocations: 7.513 MB / 0.5761 GB, free: 77.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/1.585, allocations: 10.56 kB / 0.5761 GB, free: 77.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008257/1.593, allocations: 1.54 MB / 0.5776 GB, free: 76.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09496/1.688, allocations: 10.06 MB / 0.5874 GB, free: 68.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03006/1.719, allocations: 8.408 MB / 0.5956 GB, free: 59.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007927/1.719, allocations: 0.6246 MB / 0.5962 GB, free: 59.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005216/1.725, allocations: 0.8262 MB / 0.597 GB, free: 58.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06616/1.791, allocations: 20.25 MB / 0.6168 GB, free: 36.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005427/1.791, allocations: 83.22 kB / 0.6169 GB, free: 36.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004625/1.796, allocations: 397 kB / 0.6173 GB, free: 36.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004254/1.8, allocations: 2.099 MB / 0.6193 GB, free: 34.35 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04907/1.849, allocations: 17.48 MB / 0.6364 GB, free: 16.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4709/2.32, allocations: 84.96 MB / 0.7194 GB, free: 36.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02718/2.348, allocations: 7.953 MB / 0.7271 GB, free: 35.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0109/2.359, allocations: 5.079 MB / 0.7321 GB, free: 34.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004932/2.359, allocations: 64.47 kB / 0.7321 GB, free: 34.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.723e-05/2.359, allocations: 81.83 kB / 0.7322 GB, free: 34.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=450): time 1.183e-05/2.359, allocations: 3.938 kB / 0.7322 GB, free: 34.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=501): time 0.2338/2.593, allocations: 37.63 MB / 0.769 GB, free: 21.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/2.593, allocations: 234.9 kB / 0.7692 GB, free: 21.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02136/2.615, allocations: 5.68 MB / 0.7747 GB, free: 19.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001625/2.616, allocations: 95.52 kB / 0.7748 GB, free: 19.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007653/2.624, allocations: 5.674 MB / 0.7804 GB, free: 15.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004765/2.629, allocations: 1.819 MB / 0.7822 GB, free: 13.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002663/2.632, allocations: 223.5 kB / 0.7824 GB, free: 13.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001724/2.633, allocations: 0.7976 MB / 0.7831 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02014/2.654, allocations: 4.809 MB / 0.7878 GB, free: 9.754 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02327/2.677, allocations: 10.86 MB / 0.7985 GB, free: 12.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02003/2.697, allocations: 7.302 MB / 0.8056 GB, free: 6.695 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002635/2.697, allocations: 62.72 kB / 0.8056 GB, free: 6.637 MB / 458.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.05298/2.75, allocations: 16.34 MB / 0.8216 GB, free: 8.707 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002969/2.751, allocations: 103.7 kB / 0.8217 GB, free: 8.609 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000567/2.751, allocations: 212 kB / 0.8219 GB, free: 8.402 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008765/2.76, allocations: 1.714 MB / 0.8236 GB, free: 7.066 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0243/2.784, allocations: 2.596 MB / 0.8261 GB, free: 4.836 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3774/3.162, allocations: 14.15 MB / 0.8399 GB, free: 106.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01331/3.175, allocations: 0.6617 MB / 0.8406 GB, free: 106.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003239/3.179, allocations: 0.6345 MB / 0.8412 GB, free: 106.6 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.004978/3.184, allocations: 0.9235 MB / 0.8421 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002281/3.186, allocations: 0.6124 MB / 0.8427 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03281/3.219, allocations: 9.608 MB / 0.8521 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002508/3.219, allocations: 97.28 kB / 0.8522 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.199e-05/3.219, allocations: 9.438 kB / 0.8522 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001275/3.219, allocations: 20.38 kB / 0.8522 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06647/3.286, allocations: 21.56 MB / 0.8732 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.993e-05/3.286, allocations: 10.38 kB / 0.8733 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007892/3.294, allocations: 0.793 MB / 0.874 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006873/3.301, allocations: 1.356 MB / 0.8754 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001364/3.302, allocations: 86.64 kB / 0.8754 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02248/3.325, allocations: 12.88 MB / 0.888 GB, free: 94.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/3.325, allocations: 21.55 kB / 0.888 GB, free: 94.59 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03893/3.364, allocations: 17.14 MB / 0.9048 GB, free: 86.61 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005706/3.369, allocations: 1.382 MB / 0.9061 GB, free: 85.87 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002803/3.372, allocations: 85.41 kB / 0.9062 GB, free: 85.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007/3.379, allocations: 314.1 kB / 0.9065 GB, free: 85.77 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001845/3.381, allocations: 302.4 kB / 0.9068 GB, free: 85.72 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001089/3.382, allocations: 125.8 kB / 0.9069 GB, free: 85.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0112/3.394, allocations: 3.942 MB / 0.9108 GB, free: 84.35 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.212e-06/3.394, allocations: 0 / 0.9108 GB, free: 84.35 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01565/3.409, allocations: 2.042 MB / 0.9128 GB, free: 84.11 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.04154/3.451, allocations: 19.89 MB / 0.9322 GB, free: 68.91 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02747/3.478, allocations: 11.62 MB / 0.9435 GB, free: 58.69 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.611e-05/3.478, allocations: 4 kB / 0.9435 GB, free: 58.69 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01191/3.49, allocations: 4.797 MB / 0.9482 GB, free: 54.28 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007005/3.497, allocations: 0.7326 MB / 0.9489 GB, free: 53.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06696/3.564, allocations: 20.13 MB / 0.9686 GB, free: 36.07 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01552/3.58, allocations: 6.273 MB / 0.9747 GB, free: 31.44 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01886/3.599, allocations: 4.115 MB / 0.9787 GB, free: 28.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0105/3.61, allocations: 4.07 MB / 0.9827 GB, free: 25.03 MB / 474.7 MB Notification: Performance of SimCode: time 1.883e-06/3.61, allocations: 0 / 0.9827 GB, free: 25.03 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6753/4.285, allocations: 148.5 MB / 1.128 GB, free: 35.05 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/4.285, allocations: 172.2 kB / 1.128 GB, free: 34.82 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/12.62, allocations: 4 kB / 1.128 GB, free: 34.82 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat