#time 1h minor fixes

- updated RA flow allocation procedure after the IRM refactoring
- modified RMT so it doesn't crash the simulation when it runs into a
missing output gate