Running command: translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.536/2.536, allocations: 270 MB / 283.6 MB, free: 1.785 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.026e-05/3.04e-05, allocations: 7.938 kB / 348.4 MB, free: 2.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3679, allocations: 61.88 MB / 410.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1893/0.5573, allocations: 111.4 MB / 0.5095 GB, free: 11.11 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.5576, allocations: 79.94 kB / 0.5096 GB, free: 11.03 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8864/1.444, allocations: 162.3 MB / 0.668 GB, free: 3.754 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.019e-06/1.444, allocations: 0 / 0.668 GB, free: 3.754 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004487/1.444, allocations: 156 kB / 0.6682 GB, free: 3.602 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02551/1.47, allocations: 7.361 MB / 0.6754 GB, free: 12.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/1.47, allocations: 8.031 kB / 0.6754 GB, free: 12.15 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05466/1.525, allocations: 10.01 MB / 0.6851 GB, free: 2.117 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02611/1.551, allocations: 8.026 MB / 0.693 GB, free: 10 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000907/1.552, allocations: 0.6057 MB / 0.6936 GB, free: 9.391 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004049/1.556, allocations: 0.7927 MB / 0.6944 GB, free: 8.598 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05502/1.611, allocations: 19.83 MB / 0.7137 GB, free: 3.344 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004612/1.611, allocations: 79.28 kB / 0.7138 GB, free: 3.266 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003408/1.615, allocations: 383.8 kB / 0.7142 GB, free: 2.891 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004157/1.619, allocations: 2.042 MB / 0.7161 GB, free: 0.8477 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.454/2.073, allocations: 17.07 MB / 0.7328 GB, free: 86.64 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.111/2.184, allocations: 83.54 MB / 0.8144 GB, free: 39.49 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02119/2.205, allocations: 7.72 MB / 0.8219 GB, free: 36.22 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008324/2.214, allocations: 4.908 MB / 0.8267 GB, free: 34.18 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002709/2.214, allocations: 62.45 kB / 0.8268 GB, free: 34.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.377e-05/2.214, allocations: 76.94 kB / 0.8269 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=429): time 1.074e-05/2.214, allocations: 0 / 0.8269 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=476): time 0.1074/2.322, allocations: 34.58 MB / 0.8606 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.197e-05/2.322, allocations: 229.7 kB / 0.8609 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01114/2.333, allocations: 5.589 MB / 0.8663 GB, free: 7.648 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007491/2.334, allocations: 89.02 kB / 0.8664 GB, free: 7.559 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003861/2.337, allocations: 5.573 MB / 0.8718 GB, free: 2.602 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002042/2.34, allocations: 1.733 MB / 0.8735 GB, free: 1.066 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001035/2.341, allocations: 216 kB / 0.8737 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007822/2.341, allocations: 0.7823 MB / 0.8745 GB, free: 208 kB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03863/2.38, allocations: 6.21 MB / 0.8806 GB, free: 0 / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01679/2.397, allocations: 10.57 MB / 0.8909 GB, free: 3.273 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01569/2.413, allocations: 7.102 MB / 0.8978 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001911/2.413, allocations: 64 kB / 0.8979 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.04114/2.454, allocations: 15.82 MB / 0.9133 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001848/2.454, allocations: 100.1 kB / 0.9134 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003077/2.455, allocations: 211.8 kB / 0.9136 GB, free: 15.48 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006259/2.461, allocations: 1.712 MB / 0.9153 GB, free: 14.15 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/2.473, allocations: 2.523 MB / 0.9178 GB, free: 11.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3566/2.829, allocations: 13.98 MB / 0.9314 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/2.84, allocations: 0.6438 MB / 0.932 GB, free: 119.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002721/2.843, allocations: 0.6149 MB / 0.9326 GB, free: 119.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 962 * Number of states: 0 () * Number of discrete variables: 53 (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.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (1324): * Single equations (assignments): 1311 * 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.003274/2.846, allocations: 0.9159 MB / 0.9335 GB, free: 119.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001542/2.848, allocations: 0.6025 MB / 0.9341 GB, free: 119.5 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02088/2.869, allocations: 9.119 MB / 0.943 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001461/2.869, allocations: 86.11 kB / 0.9431 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.059e-05/2.869, allocations: 11.06 kB / 0.9431 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-05/2.869, allocations: 21.23 kB / 0.9431 GB, free: 119.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07232/2.942, allocations: 20.67 MB / 0.9633 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.915e-05/2.942, allocations: 10.72 kB / 0.9633 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004621/2.946, allocations: 0.7465 MB / 0.9641 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005421/2.952, allocations: 1.363 MB / 0.9654 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008916/2.953, allocations: 87.55 kB / 0.9655 GB, free: 118 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01898/2.972, allocations: 12.86 MB / 0.978 GB, free: 112.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/2.972, allocations: 18.41 kB / 0.9781 GB, free: 112.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04498/3.017, allocations: 16.34 MB / 0.994 GB, free: 107.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002915/3.02, allocations: 0.6324 MB / 0.9946 GB, free: 107.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00308/3.023, allocations: 77.7 kB / 0.9947 GB, free: 107.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00858/3.031, allocations: 301.5 kB / 0.995 GB, free: 107 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001781/3.033, allocations: 289.7 kB / 0.9953 GB, free: 107 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008128/3.034, allocations: 126.8 kB / 0.9954 GB, free: 106.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01313/3.047, allocations: 3.864 MB / 0.9992 GB, free: 105.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.168e-06/3.047, allocations: 0 / 0.9992 GB, free: 105.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02007/3.067, allocations: 1.983 MB / 1.001 GB, free: 105.4 MB / 0.5573 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 (359): * Single equations (assignments): 346 * 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.001591/3.069, allocations: 243.3 kB / 1.001 GB, free: 105.2 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02541/3.094, allocations: 11.14 MB / 1.012 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/3.095, allocations: 0 / 1.012 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.008745/3.103, allocations: 4.567 MB / 1.017 GB, free: 99.82 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004765/3.108, allocations: 0.7231 MB / 1.017 GB, free: 99.52 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03637/3.145, allocations: 16.77 MB / 1.034 GB, free: 89.59 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01227/3.157, allocations: 6.117 MB / 1.04 GB, free: 85.08 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01281/3.17, allocations: 4.008 MB / 1.044 GB, free: 82.71 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00255/3.172, allocations: 433.5 kB / 1.044 GB, free: 82.3 MB / 0.5573 GB Notification: Performance of SimCode: time 1.928e-06/3.172, allocations: 0 / 1.044 GB, free: 82.3 MB / 0.5573 GB Notification: Performance of Templates: time 0.194/3.366, allocations: 66.21 MB / 1.109 GB, free: 29.32 MB / 0.5573 GB