Completed changes for index reduction, BranchingDynamicPipes model can simulate now, this should add a lot of stability thanks to Matthis

Signed-off-by: jowr <jowr@mek.dtu.dk>