We constrain the contribution of tensor-mode perturbations with free $n_t$ in the models with dynamical dark energy with the barotropic equation of state using Planck-2015 data on CMB anisotropy, polarization and lensing, BICEP2/Keck Array data on B-mode polarization, power spectrum of galaxies from WiggleZ and SN Ia data from the JLA compilation. We also investigate the uncertainties of reconstructed potential of the scalar field dark energy.