Optimizer GenerateModMat3.py