Robust Software Partitioning with Multiple Instantiation