def METHOD_NAME(output):
    """
    Get epc size from system message
    :param output: epc section info
    :return: total epc size
    """
    epc_size = 0
    for line in output.splitlines():
        tmp_epc = re.search(r'\b0x[0-9a-fA-F]*-0x[0-9a-fA-F]*\b',
                            str(line))
        if tmp_epc:
            epc_size += int(tmp_epc[0].split('-')[1], 16) - int(
                tmp_epc[0].split("-")[0], 16) + 1
    return epc_size