  We consider smooth locally Hamiltonian flows on compact surfaces of genus
$g\geq 2$ to prove their deviation of Birkhoff integrals for smooth
observables. Our work generalizes results of Forni and Bufetov which prove the
existence of deviation spectrum of Birkhoff integrals for observables whose
jets vanish at sufficiently high order around fixed points of the flow. They
showed that ergodic integrals can display a power spectrum of behaviours with
exactly $g$ positive exponents related to the positive Lyapunov exponents of
the cocycle so-called Kontsevich-Zorich, a renormalization cocycle over the
Teichm\"uller flow on a stratum of the moduli space of translation surfaces.
  Our paper extends the study of the spectrum of deviations of ergodic
integrals beyond the case of observables whose jets vanish at sufficiently high
order around fixed points. We prove the existence of some extra terms in
deviation spectrum related to non-vanishing of the derivatives of observables
at fixed points. The proof of this new phenomenon is based on tools developed
in the recent work of the first author and Ulcigrai for locally Hamiltonian
flows having only (simple) non-degenerate saddles. In full generality, due to
the occurrence of (multiple) degenerate saddles, we introduce new methods of
handling functions with polynomial singularities over a full measure set of
IETs.
