Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.406/2.406, allocations: 235 MB / 247.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.657e-05/4.675e-05, allocations: 4 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4453/0.4454, allocations: 54.85 MB / 359.9 MB, free: 3.168 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2069/0.6524, allocations: 104 MB / 463.9 MB, free: 8.871 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003625/0.6528, allocations: 71.97 kB / 464 MB, free: 8.801 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.003/1.656, allocations: 163.5 MB / 0.6128 GB, free: 75.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.465e-06/1.656, allocations: 4 kB / 0.6128 GB, free: 75.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004918/1.657, allocations: 159.9 kB / 0.6129 GB, free: 75.63 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.03015/1.687, allocations: 7.511 MB / 0.6203 GB, free: 68.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/1.687, allocations: 8.031 kB / 0.6203 GB, free: 68.02 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007619/1.694, allocations: 1.545 MB / 0.6218 GB, free: 66.47 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07296/1.767, allocations: 10.05 MB / 0.6316 GB, free: 56.39 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0316/1.799, allocations: 8.416 MB / 0.6398 GB, free: 47.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007996/1.8, allocations: 0.6217 MB / 0.6404 GB, free: 47.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005167/1.805, allocations: 0.8316 MB / 0.6412 GB, free: 46.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0606/1.866, allocations: 20.26 MB / 0.661 GB, free: 24.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005818/1.866, allocations: 91.2 kB / 0.6611 GB, free: 24.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005174/1.872, allocations: 395.8 kB / 0.6615 GB, free: 24.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004464/1.876, allocations: 2.097 MB / 0.6635 GB, free: 22.13 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05091/1.927, allocations: 17.48 MB / 0.6806 GB, free: 4.637 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.521/2.448, allocations: 85.06 MB / 0.7636 GB, free: 33.38 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04841/2.497, allocations: 7.951 MB / 0.7714 GB, free: 32.11 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01075/2.507, allocations: 5.076 MB / 0.7764 GB, free: 32.06 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004663/2.508, allocations: 68.53 kB / 0.7764 GB, free: 32.05 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.403e-05/2.508, allocations: 76.56 kB / 0.7765 GB, free: 32.01 MB / 474.7 MB Notification: Performance of pre-optimization done (n=450): time 8.807e-06/2.508, allocations: 0 / 0.7765 GB, free: 32.01 MB / 474.7 MB Notification: Performance of matching and sorting (n=501): time 0.1577/2.666, allocations: 37.63 MB / 0.8133 GB, free: 20.43 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/2.666, allocations: 229.9 kB / 0.8135 GB, free: 20.21 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01563/2.682, allocations: 5.666 MB / 0.819 GB, free: 18.25 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001239/2.683, allocations: 96.19 kB / 0.8191 GB, free: 18.17 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005304/2.688, allocations: 5.683 MB / 0.8246 GB, free: 13.94 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002991/2.691, allocations: 1.821 MB / 0.8264 GB, free: 12.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00175/2.693, allocations: 223 kB / 0.8266 GB, free: 12.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001104/2.694, allocations: 0.7946 MB / 0.8274 GB, free: 11.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01263/2.707, allocations: 4.806 MB / 0.8321 GB, free: 10.29 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01747/2.724, allocations: 10.87 MB / 0.8427 GB, free: 15.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01973/2.744, allocations: 7.301 MB / 0.8499 GB, free: 9.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002823/2.745, allocations: 60 kB / 0.8499 GB, free: 9.191 MB / 490.7 MB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.05856/2.803, allocations: 16.39 MB / 0.8659 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003037/2.804, allocations: 102.3 kB / 0.866 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005665/2.804, allocations: 216 kB / 0.8662 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01103/2.815, allocations: 1.706 MB / 0.8679 GB, free: 9.758 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02441/2.84, allocations: 2.6 MB / 0.8704 GB, free: 7.523 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04417/2.884, allocations: 14.07 MB / 0.8842 GB, free: 10.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0204/2.904, allocations: 0.6621 MB / 0.8848 GB, free: 9.961 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004231/2.909, allocations: 0.6246 MB / 0.8854 GB, free: 9.348 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * 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 (1363): * Single equations (assignments): 1350 * 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.007003/2.916, allocations: 0.9251 MB / 0.8863 GB, free: 8.426 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003518/2.919, allocations: 0.6131 MB / 0.8869 GB, free: 7.805 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4605/3.38, allocations: 9.614 MB / 0.8963 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000304/3.38, allocations: 92.58 kB / 0.8964 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-05/3.38, allocations: 9.562 kB / 0.8964 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001502/3.381, allocations: 27.39 kB / 0.8964 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1095/3.49, allocations: 21.55 MB / 0.9175 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001249/3.49, allocations: 11.78 kB / 0.9175 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01069/3.501, allocations: 0.8004 MB / 0.9183 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009577/3.511, allocations: 1.352 MB / 0.9196 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001728/3.512, allocations: 94.23 kB / 0.9197 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0366/3.549, allocations: 12.87 MB / 0.9323 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.476e-05/3.549, allocations: 18.91 kB / 0.9323 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05733/3.606, allocations: 17.12 MB / 0.949 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007987/3.615, allocations: 1.39 MB / 0.9504 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003589/3.618, allocations: 83.11 kB / 0.9504 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01058/3.629, allocations: 319 kB / 0.9507 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002592/3.631, allocations: 296.6 kB / 0.951 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001422/3.633, allocations: 134.4 kB / 0.9512 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01549/3.649, allocations: 3.927 MB / 0.955 GB, free: 109 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.625e-06/3.649, allocations: 3.875 kB / 0.955 GB, free: 109 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0251/3.674, allocations: 2.046 MB / 0.957 GB, free: 108.8 MB / 0.5105 GB 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.05324/3.727, allocations: 19.89 MB / 0.9764 GB, free: 98.26 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02645/3.754, allocations: 11.62 MB / 0.9878 GB, free: 93.98 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.706e-05/3.754, allocations: 3.656 kB / 0.9878 GB, free: 93.98 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01118/3.765, allocations: 4.796 MB / 0.9924 GB, free: 89.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006672/3.771, allocations: 0.7265 MB / 0.9932 GB, free: 88.97 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06625/3.838, allocations: 20.14 MB / 1.013 GB, free: 71.38 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01585/3.854, allocations: 6.275 MB / 1.019 GB, free: 66.76 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01953/3.873, allocations: 4.118 MB / 1.023 GB, free: 64.23 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01063/3.884, allocations: 4.071 MB / 1.027 GB, free: 60.46 MB / 0.5105 GB Notification: Performance of SimCode: time 2.675e-06/3.884, allocations: 0 / 1.027 GB, free: 60.46 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7024/4.586, allocations: 148.5 MB / 1.172 GB, free: 90.62 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002306/4.587, allocations: 168 kB / 1.172 GB, free: 90.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.352/12.94, allocations: 0 / 1.172 GB, free: 90.39 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat