Scale invariance and a gravitational model with non-eternal inflation,