Unfortunately, as you have seen, the solver name and non-default
option settings still get printed when using Knitro with Ampl even
with "outlev=0" and "option solver_msg 0;" (there is no easy way I
know of to get rid of this printing in the Knitro-Ampl link).
Try changing your "solve" commands to something like
solve >scratch-file;
where scratch-file is the name of some temporary file where the
unwanted output can be sent. Under Unix, "solve >/dev/null"
automatically throws away the unwanted output, but under Windows you
need to redirect output to an actual file.
Best,
Richard Waltz
Ziena Optimization