Controllability criterion for stationary systems