Comparison between two models of absorption of matter waves by a thin time-dependent barrier