complex demolding

How can I simulate pulling this blue part out of the cavity from the black end. In needs to slide out for this simulation, that's why I am only showing 1/2 the solid mold.