Given a bounded Lipschitz domain ω⊂Rd−1 and a lower semicontinuous function W:RN→R+∪{+∞} that vanishes on a finite set and that is bounded from below by a positive constant at infinity, we show that every map u:R×ω→RN with \[ \int_{\mathbb{R}\times\omega}\big(\lvert\nabla u\rvert^2+W(u)\big)\mathop{}\mathopen{}\mathrm{d} x_1\mathop{}\mathopen{}\mathrm{d}x'<+\infty\] has a limit u±∈{W=0} as x1→±∞. The convergence holds in L2(ω) and almost everywhere in ω. We also prove a similar result for more general potentials W in the case where the considered maps u are divergence-free in R×ω with ω being the (d−1)-torus and N=d.