Power grid stability analysis using pipeline machine