One of the results for hilbert curve marble tracks, mentioned elsewhere in the thread, was a video showing how to make one in blender, which has a physics engine so it can simulate it pretty well.
But for hobby purposes I would suggest to contact some university, they have such software, and they could find simulation of balls motion at marble fountain interesting for research (and educational) purposes.
https://www.youtube.com/watch?v=8YeXyUNCnhM
I'd imagine that the 3d-printable models could be imported into blender, so it's 'just' adding balls and motion to the lift.