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.956/1.956, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.568e-05/4.588e-05, allocations: 7.984 kB / 273.2 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.444/0.5523, allocations: 96.74 MB / 418.6 MB, free: 8.738 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.5527, allocations: 83.94 kB / 418.7 MB, free: 8.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9643/1.517, allocations: 163.5 MB / 0.5686 GB, free: 82.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.517, allocations: 0 / 0.5686 GB, free: 82.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004956/1.518, allocations: 160.2 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.0313/1.549, allocations: 7.517 MB / 0.576 GB, free: 77.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/1.549, allocations: 11.12 kB / 0.5761 GB, free: 77.57 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007987/1.557, allocations: 1.542 MB / 0.5776 GB, free: 76.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0726/1.63, allocations: 10.05 MB / 0.5874 GB, free: 68.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03069/1.66, allocations: 8.4 MB / 0.5956 GB, free: 59.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007452/1.661, allocations: 0.6253 MB / 0.5962 GB, free: 59.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005662/1.667, allocations: 0.8241 MB / 0.597 GB, free: 58.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06061/1.728, allocations: 20.35 MB / 0.6169 GB, free: 36.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005385/1.728, allocations: 91.2 kB / 0.617 GB, free: 36.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004698/1.733, allocations: 393 kB / 0.6173 GB, free: 36.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004372/1.737, allocations: 2.099 MB / 0.6194 GB, free: 34.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05023/1.788, allocations: 17.77 MB / 0.6367 GB, free: 16.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5075/2.295, allocations: 84.96 MB / 0.7197 GB, free: 19.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03012/2.325, allocations: 7.99 MB / 0.7275 GB, free: 18.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0101/2.336, allocations: 5.077 MB / 0.7325 GB, free: 18.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004805/2.336, allocations: 66.34 kB / 0.7325 GB, free: 18.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.413e-05/2.336, allocations: 79.16 kB / 0.7326 GB, free: 18.42 MB / 426.7 MB Notification: Performance of pre-optimization done (n=450): time 1.033e-05/2.336, allocations: 0 / 0.7326 GB, free: 18.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=501): time 0.1532/2.489, allocations: 37.65 MB / 0.7694 GB, free: 5.574 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/2.49, allocations: 228.8 kB / 0.7696 GB, free: 5.352 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01442/2.504, allocations: 5.681 MB / 0.7751 GB, free: 3.395 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001285/2.505, allocations: 91.55 kB / 0.7752 GB, free: 3.312 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005366/2.511, allocations: 5.677 MB / 0.7808 GB, free: 15.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003538/2.514, allocations: 1.825 MB / 0.7826 GB, free: 13.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001792/2.516, allocations: 220.8 kB / 0.7828 GB, free: 13.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001133/2.517, allocations: 0.8036 MB / 0.7836 GB, free: 13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01369/2.531, allocations: 4.803 MB / 0.7882 GB, free: 9.285 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02132/2.552, allocations: 10.93 MB / 0.7989 GB, free: 12.27 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01987/2.572, allocations: 7.303 MB / 0.806 GB, free: 6.148 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002805/2.573, allocations: 64 kB / 0.8061 GB, free: 6.086 MB / 458.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.06989/2.643, allocations: 16.96 MB / 0.8227 GB, free: 7.664 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002119/2.643, allocations: 99.19 kB / 0.8228 GB, free: 7.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000427/2.643, allocations: 216 kB / 0.823 GB, free: 7.359 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008248/2.652, allocations: 1.714 MB / 0.8246 GB, free: 6.023 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01848/2.67, allocations: 2.595 MB / 0.8272 GB, free: 3.793 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3788/3.049, allocations: 14.2 MB / 0.841 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01375/3.063, allocations: 0.66 MB / 0.8417 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003279/3.066, allocations: 0.6306 MB / 0.8423 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.004943/3.071, allocations: 0.9311 MB / 0.8432 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002171/3.073, allocations: 0.6145 MB / 0.8438 GB, free: 106.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03249/3.106, allocations: 9.604 MB / 0.8532 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002275/3.106, allocations: 90.75 kB / 0.8533 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.09e-05/3.106, allocations: 16.84 kB / 0.8533 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001176/3.106, allocations: 20.67 kB / 0.8533 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06345/3.17, allocations: 21.58 MB / 0.8744 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.097e-05/3.17, allocations: 12.09 kB / 0.8744 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01106/3.181, allocations: 0.7977 MB / 0.8752 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01061/3.192, allocations: 1.357 MB / 0.8765 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00154/3.193, allocations: 91.95 kB / 0.8766 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03467/3.228, allocations: 12.88 MB / 0.8892 GB, free: 94.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.172e-05/3.228, allocations: 13.22 kB / 0.8892 GB, free: 94.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04583/3.274, allocations: 17.13 MB / 0.9059 GB, free: 86.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005846/3.28, allocations: 1.39 MB / 0.9073 GB, free: 85.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002694/3.282, allocations: 90.61 kB / 0.9074 GB, free: 85.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006864/3.289, allocations: 308.4 kB / 0.9077 GB, free: 85.29 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001842/3.291, allocations: 306.2 kB / 0.9079 GB, free: 85.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007757/3.292, allocations: 124.5 kB / 0.9081 GB, free: 85.21 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01089/3.303, allocations: 3.941 MB / 0.9119 GB, free: 83.86 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.01e-07/3.303, allocations: 0 / 0.9119 GB, free: 83.86 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01463/3.318, allocations: 2.038 MB / 0.9139 GB, free: 83.62 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.03907/3.357, allocations: 19.89 MB / 0.9333 GB, free: 68.05 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02718/3.384, allocations: 11.97 MB / 0.945 GB, free: 57.57 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.717e-05/3.384, allocations: 6.312 kB / 0.945 GB, free: 57.57 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0116/3.396, allocations: 4.859 MB / 0.9498 GB, free: 53.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006283/3.402, allocations: 0.7364 MB / 0.9505 GB, free: 52.47 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06649/3.469, allocations: 20.17 MB / 0.9702 GB, free: 34.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01583/3.484, allocations: 6.275 MB / 0.9763 GB, free: 30.18 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01901/3.503, allocations: 4.108 MB / 0.9803 GB, free: 27.54 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0109/3.514, allocations: 4.069 MB / 0.9843 GB, free: 23.77 MB / 474.7 MB Notification: Performance of SimCode: time 1.492e-06/3.514, allocations: 4 kB / 0.9843 GB, free: 23.77 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6965/4.211, allocations: 149.6 MB / 1.13 GB, free: 32.76 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003228/4.211, allocations: 182.2 kB / 1.131 GB, free: 32.52 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.406/12.62, allocations: 0 / 1.131 GB, free: 32.52 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