On minimalization of time varying linear systems with well-posed boundary conditions