def read_converged(content):
    """Check if program terminated normally"""
    
    error_msg = ['[ERROR] Program stopped due to fatal error',
                 '[WARNING] Runtime exception occurred',
                 'Error in Broyden matrix inversion!']

    for line in reversed(content.split('\n')):
        if any([msg in line for msg in error_msg]):
            return False
    return True