A study of the continuous flow model of production lines with unreliable machines and finite buffers