Create  testOpenSim function

Put all open simulation analysis into function