Boundary massive sine-Gordon model at the free Fermi limit and RG flow of Casimir energy