Your errors :
idsaodv.tcl is not a simulation.
idsaodv.tcl is data / commands to be used as a configuration file.
Theoretically ..... as idsaodv.tcl is not used in any known simulations.
IDS is meant for preventing an attack.
Build example ...................