Portland man jailed over brutal seven-hour attack on former partner