def METHOD_NAME(allElements):
    result = []
    if allElements is None or allElements.getSize() == 0:
        return result
    for i in range (0, allElements.getSize()):
        current = allElements.get(i)
        if current.isSetId() and current.getTypeCode() != libsbml.SBML_LOCAL_PARAMETER:
            result.append(current.getId())
    return result