Added script for automatic compilation for simulation