Once the optimizer has found a good ordering for the system given, you should have a file named optimqr.seq, in the output directory. The codegen.pl program will read this file from it's current working directory, therefore you may wish to copy it from the output directory to the directory in which codegen.pl resides.