What does the output file for the post processing commands object show for the file opening/writing/closing? Try right-clicking the Solution object and clearing the generated data. Then running the solve again. Does this result in the file being created?