The sim_time returns the simulation time for the last step of the default simulation and this function does not have any argument. So the index_value would not work.
May be if you could elaborate what your end goal is, there may be another Adams function that can help.