Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.774/2.774, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.926e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4189, allocations: 54.85 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2212/0.6401, allocations: 103.3 MB / 457.8 MB, free: 7.711 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.6405, allocations: 75.95 kB / 457.9 MB, free: 7.637 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.075/1.715, allocations: 159.9 MB / 0.6033 GB, free: 7.406 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.715, allocations: 0 / 0.6033 GB, free: 7.406 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005924/1.716, allocations: 160 kB / 0.6034 GB, free: 7.25 MB / 442.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.03525/1.751, allocations: 7.493 MB / 0.6108 GB, free: 15.67 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/1.751, allocations: 8.031 kB / 0.6108 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08855/1.84, allocations: 10.05 MB / 0.6206 GB, free: 5.582 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4473/2.287, allocations: 8.401 MB / 0.6288 GB, free: 65.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007117/2.288, allocations: 273.1 kB / 0.6291 GB, free: 65.64 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005275/2.293, allocations: 494.4 kB / 0.6295 GB, free: 65.64 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03562/2.329, allocations: 13.1 MB / 0.6423 GB, free: 65.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05453/2.384, allocations: 18.79 MB / 0.6607 GB, free: 61.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006044/2.384, allocations: 96.08 kB / 0.6608 GB, free: 61.66 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004418/2.389, allocations: 44.31 kB / 0.6608 GB, free: 61.66 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004909/2.394, allocations: 2.109 MB / 0.6629 GB, free: 61.64 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1497/2.543, allocations: 81.03 MB / 0.742 GB, free: 11.09 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01608/2.559, allocations: 8.067 MB / 0.7499 GB, free: 6.75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01046/2.57, allocations: 4.986 MB / 0.7547 GB, free: 2.738 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005233/2.571, allocations: 71.39 kB / 0.7548 GB, free: 2.688 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.698e-05/2.571, allocations: 73.22 kB / 0.7549 GB, free: 2.605 MB / 458.7 MB Notification: Performance of pre-optimization done (n=452): time 1.11e-05/2.571, allocations: 0 / 0.7549 GB, free: 2.605 MB / 458.7 MB Notification: Performance of matching and sorting (n=499): time 0.1528/2.723, allocations: 36.94 MB / 0.791 GB, free: 3.766 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001754/2.724, allocations: 227 kB / 0.7912 GB, free: 3.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01568/2.739, allocations: 5.148 MB / 0.7962 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001201/2.741, allocations: 28.05 kB / 0.7962 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007591/2.748, allocations: 5.834 MB / 0.8019 GB, free: 9.922 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003598/2.752, allocations: 1.758 MB / 0.8036 GB, free: 8.336 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001601/2.754, allocations: 3.938 kB / 0.8036 GB, free: 8.332 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001346/2.755, allocations: 0.8192 MB / 0.8044 GB, free: 7.645 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01491/2.77, allocations: 4.648 MB / 0.809 GB, free: 3.465 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4319/3.202, allocations: 11.43 MB / 0.8201 GB, free: 97.89 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01976/3.222, allocations: 7.237 MB / 0.8272 GB, free: 97.82 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005888/3.222, allocations: 63.19 kB / 0.8273 GB, free: 97.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1557) (initialization): time 0.05055/3.273, allocations: 15.83 MB / 0.8427 GB, free: 97.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002558/3.273, allocations: 103.8 kB / 0.8428 GB, free: 97.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003835/3.274, allocations: 231.5 kB / 0.843 GB, free: 97.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008474/3.282, allocations: 1.714 MB / 0.8447 GB, free: 97.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0202/3.302, allocations: 2.726 MB / 0.8474 GB, free: 96.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02477/3.327, allocations: 13.18 MB / 0.8603 GB, free: 91.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01445/3.342, allocations: 464.1 kB / 0.8607 GB, free: 91.81 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003453/3.345, allocations: 0.6697 MB / 0.8614 GB, free: 91.81 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1048 * 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 (1433): * Single equations (assignments): 1420 * 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.005697/3.351, allocations: 0.6732 MB / 0.862 GB, free: 91.47 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02786/3.379, allocations: 8.698 MB / 0.8705 GB, free: 91.25 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002287/3.381, allocations: 0.585 MB / 0.8711 GB, free: 91.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0285/3.41, allocations: 9.139 MB / 0.88 GB, free: 90.85 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002248/3.41, allocations: 89.62 kB / 0.8801 GB, free: 90.85 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.469e-05/3.41, allocations: 13.73 kB / 0.8801 GB, free: 90.85 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001137/3.41, allocations: 25.11 kB / 0.8801 GB, free: 90.85 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05962/3.47, allocations: 19.7 MB / 0.8994 GB, free: 83.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-05/3.47, allocations: 15.53 kB / 0.8994 GB, free: 83.87 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008328/3.478, allocations: 0.7944 MB / 0.9001 GB, free: 83.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007499/3.486, allocations: 1.339 MB / 0.9015 GB, free: 83.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001205/3.487, allocations: 27.31 kB / 0.9015 GB, free: 83.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02297/3.51, allocations: 12.12 MB / 0.9133 GB, free: 75.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.312e-05/3.51, allocations: 18.53 kB / 0.9133 GB, free: 75.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0477/3.558, allocations: 16.58 MB / 0.9295 GB, free: 60.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007126/3.565, allocations: 1.331 MB / 0.9308 GB, free: 59.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002598/3.568, allocations: 19.47 kB / 0.9308 GB, free: 59.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008706/3.576, allocations: 247 kB / 0.9311 GB, free: 59.13 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001827/3.578, allocations: 304.5 kB / 0.9314 GB, free: 58.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008455/3.579, allocations: 124.1 kB / 0.9315 GB, free: 58.82 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01147/3.59, allocations: 3.416 MB / 0.9348 GB, free: 55.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.312e-06/3.591, allocations: 3.281 kB / 0.9348 GB, free: 55.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02188/3.612, allocations: 1.749 MB / 0.9365 GB, free: 54.12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (383): * Single equations (assignments): 370 * 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.04151/3.654, allocations: 19.42 MB / 0.9555 GB, free: 36.06 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02813/3.682, allocations: 11.46 MB / 0.9667 GB, free: 25.59 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/3.682, allocations: 0 / 0.9667 GB, free: 25.59 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01147/3.694, allocations: 4.672 MB / 0.9713 GB, free: 21.31 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005778/3.7, allocations: 0.5362 MB / 0.9718 GB, free: 20.84 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06849/3.768, allocations: 19.64 MB / 0.991 GB, free: 3.586 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4303/4.198, allocations: 6.901 MB / 0.9977 GB, free: 95.04 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.02345/4.222, allocations: 4.278 MB / 1.002 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01201/4.234, allocations: 4.066 MB / 1.006 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of SimCode: time 1.493e-06/4.234, allocations: 0 / 1.006 GB, free: 94.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3511/4.585, allocations: 140.5 MB / 1.143 GB, free: 19.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002686/4.586, allocations: 139.4 kB / 1.143 GB, free: 19.14 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.773/13.36, allocations: 0 / 1.143 GB, free: 19.14 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat