We have studied a spatially flat Friedmann–Lemaître–Robertson–Walker (FLRW) cosmological model with an additional assumption that the universe is filled with barotropic causal bulk viscous fluid. The bulk viscous coefficient of the fluid is related to the energy density and relaxation time by the relation . We have used a truncated version of the transport equation for the viscous pressure. The expansion rate of such a spatially flat FLRW universe is governed by the well-known modified Painlevé–Ince equation. We find that the Lie symmetry corresponding to scale invariance gives the power-law solution for this model equation from invariant curve condition. For the value of , our result satisfies the present experimental value of the deceleration parameter (q) for . The result obtained for the relaxation time which is of the order of the Hubble time supports the necessary condition for successful inflation. Our study not only shows the role of the bulk viscosity for the present accelerating expansion but also predicts an age of around , which solves the age problem of the present universe.