Scalable HIL simulator for multi-agent systems interacting in physical environments