Irreversibility and dissipativity of quantum systems