Solution (source code)

= Solution

Let $N=\mathbb Z^2$ and let $t$ generate the other factor of $\Gamma_B=N\rtimes_B\mathbb Z$. For $n\in N$,
$$
[t,n]=tnt^{-1}n^{-1}=(B-I)n.
$$
After <abelianization>, the image of $N$ is therefore
$$
N/(B-I)N.
$$
If $1$ is not an <eigenvalue> of $B$, then $\det(B-I)\ne0$. Hence $(B-I)N$ is a full-rank sublattice of $N$ with finite <index of a subgroup> $|\det(B-I)|$. The displayed quotient, and therefore the image of the $\mathbb Z^2$ factor in $\Gamma_B^{\mathrm{ab}}$, is finite. In fact the <abelianization of a semidirect product by the integers> gives
$$
\Gamma_B^{\mathrm{ab}}
\cong\mathbb Z\oplus N/(B-I)N.
$$