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_3.2.1_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 1.829/1.829, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.376e-05/3.397e-05, allocations: 4 kB / 273.1 MB, free: 3.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08807/0.08813, allocations: 48.7 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3724/0.4606, allocations: 96.75 MB / 418.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.4608, allocations: 78.39 kB / 418.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9016/1.362, allocations: 163.5 MB / 0.5685 GB, free: 71.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.564e-06/1.363, allocations: 0 / 0.5685 GB, free: 71.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004162/1.363, allocations: 161.7 kB / 0.5686 GB, free: 71.02 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.02305/1.386, allocations: 7.5 MB / 0.5759 GB, free: 67.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/1.386, allocations: 11.44 kB / 0.576 GB, free: 67.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0543/1.44, allocations: 10.06 MB / 0.5858 GB, free: 67.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02436/1.465, allocations: 8.404 MB / 0.594 GB, free: 66.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007637/1.466, allocations: 0.6262 MB / 0.5946 GB, free: 66.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004009/1.47, allocations: 0.8222 MB / 0.5954 GB, free: 66.17 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05012/1.52, allocations: 20.25 MB / 0.6152 GB, free: 58.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004385/1.52, allocations: 94.5 kB / 0.6153 GB, free: 58.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003524/1.524, allocations: 392.9 kB / 0.6156 GB, free: 57.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003429/1.527, allocations: 2.106 MB / 0.6177 GB, free: 56.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03867/1.566, allocations: 17.48 MB / 0.6348 GB, free: 40.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4097/1.976, allocations: 84.96 MB / 0.7177 GB, free: 44.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02231/1.998, allocations: 7.94 MB / 0.7255 GB, free: 42.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008493/2.007, allocations: 5.077 MB / 0.7304 GB, free: 42.9 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003281/2.007, allocations: 69.25 kB / 0.7305 GB, free: 42.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.806e-05/2.007, allocations: 82.14 kB / 0.7306 GB, free: 42.85 MB / 458.7 MB Notification: Performance of pre-optimization done (n=450): time 1.073e-05/2.007, allocations: 0 / 0.7306 GB, free: 42.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=501): time 0.1191/2.126, allocations: 37.63 MB / 0.7673 GB, free: 37.56 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.422e-05/2.126, allocations: 231.8 kB / 0.7676 GB, free: 37.34 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01216/2.138, allocations: 5.68 MB / 0.7731 GB, free: 36.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008712/2.139, allocations: 97.78 kB / 0.7732 GB, free: 36.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003845/2.143, allocations: 5.513 MB / 0.7786 GB, free: 32.26 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002359/2.146, allocations: 1.816 MB / 0.7803 GB, free: 30.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00135/2.147, allocations: 228.1 kB / 0.7806 GB, free: 30.74 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001092/2.148, allocations: 0.7974 MB / 0.7813 GB, free: 30.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01022/2.158, allocations: 4.802 MB / 0.786 GB, free: 28.59 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/2.172, allocations: 10.87 MB / 0.7966 GB, free: 18.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01427/2.187, allocations: 7.304 MB / 0.8038 GB, free: 16.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001995/2.187, allocations: 60.34 kB / 0.8038 GB, free: 16.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.04058/2.227, allocations: 16.15 MB / 0.8196 GB, free: 7.191 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001977/2.228, allocations: 98.84 kB / 0.8197 GB, free: 7.098 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003421/2.228, allocations: 221.8 kB / 0.8199 GB, free: 6.887 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006211/2.234, allocations: 1.715 MB / 0.8216 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01261/2.247, allocations: 2.595 MB / 0.8241 GB, free: 3.324 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02383/2.271, allocations: 14 MB / 0.8378 GB, free: 6.195 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01155/2.282, allocations: 0.6638 MB / 0.8384 GB, free: 5.645 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002715/2.285, allocations: 0.6334 MB / 0.8391 GB, free: 5.027 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.003803/2.289, allocations: 0.9233 MB / 0.84 GB, free: 4.105 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001828/2.291, allocations: 0.6131 MB / 0.8406 GB, free: 3.484 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02746/2.318, allocations: 9.778 MB / 0.8501 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001803/2.319, allocations: 101.2 kB / 0.8502 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-05/2.319, allocations: 11.95 kB / 0.8502 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.211e-05/2.319, allocations: 18.98 kB / 0.8502 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06805/2.387, allocations: 22.3 MB / 0.872 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.08e-05/2.387, allocations: 12 kB / 0.872 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005373/2.392, allocations: 0.7952 MB / 0.8728 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005375/2.398, allocations: 1.358 MB / 0.8741 GB, free: 9.953 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008848/2.399, allocations: 101.8 kB / 0.8742 GB, free: 9.867 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2955/2.694, allocations: 12.86 MB / 0.8868 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.55e-05/2.694, allocations: 24.16 kB / 0.8868 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03294/2.727, allocations: 17.13 MB / 0.9035 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007531/2.735, allocations: 1.392 MB / 0.9049 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003137/2.738, allocations: 85 kB / 0.905 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008831/2.747, allocations: 312.4 kB / 0.9053 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0018/2.749, allocations: 304 kB / 0.9056 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009804/2.75, allocations: 129.2 kB / 0.9057 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0146/2.764, allocations: 3.939 MB / 0.9095 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.556e-06/2.764, allocations: 0 / 0.9095 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02322/2.788, allocations: 2.044 MB / 0.9115 GB, free: 122.2 MB / 0.4948 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.001861/2.79, allocations: 245.2 kB / 0.9118 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03134/2.821, allocations: 11.63 MB / 0.9231 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/2.821, allocations: 1.688 kB / 0.9231 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008932/2.83, allocations: 4.788 MB / 0.9278 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004392/2.834, allocations: 0.73 MB / 0.9285 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04028/2.875, allocations: 18.29 MB / 0.9464 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01181/2.886, allocations: 6.282 MB / 0.9525 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00333/2.89, allocations: 0.531 MB / 0.953 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of SimCode: time 2.017e-06/2.89, allocations: 3.844 kB / 0.953 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.6146/3.504, allocations: 255.9 MB / 1.203 GB, free: 26.98 MB / 0.4948 GB