This tolerance script is not optimizing the compensators. What am I doing wrong?
OPENFILE 'G:\Tol_output.txt' TXT
QUIET OFF
HEADER '>>>'
CLEARCOMP
LOADMERIT 'C:\Users\Mike Jones\Documents\Zemax\MeritFunction\test_mf.mf'
! COMP surf code
COMP 4 0 ! M1/M2 airspace compensator
COMP 8 0 ! M2/L1 airspace compensator
COMP 42 0 ! L3/L4 airspace compensator
COMP 52 0 ! Focus space compensator
! CPAR surf param
CPAR 2 1 ! M1 X-decenter compensator
CPAR 2 2 ! M1 Y-decenter compensator
CPAR 2 3 ! M1 X-tilt compensator
CPAR 2 4 ! M1 Y-tilt compensator
CPAR 5 1 ! M2 X-decenter compensator
CPAR 5 2 ! M2 Y-decenter compensator
CPAR 5 3 ! M2 X-tilt compensator
CPAR 5 4 ! M2 Y-tilt compensator
OPTIMIZE
FORMAT 10.4
! REPORT 'text' operand
REPORT 'Field 1 MTF at 80 cy/mm' 1
REPORT 'Field 2 MTF at 80 cy/mm' 2
REPORT 'Field 3 MTF at 80 cy/mm' 3
REPORT 'Field 4 MTF at 80 cy/mm' 4
REPORT 'Field 5 MTF at 80 cy/mm' 5
REPORT 'Field 6 MTF at 80 cy/mm' 6
REPORT 'Field 7 MTF at 80 cy/mm' 7
REPORT 'Field 8 MTF at 80 cy/mm' 8
REPORT 'Field 9 MTF at 80 cy/mm' 9