Is this a bug in the simulator?

It says expected an object of type time.duration on line 621 but clearly im giving such object...