I finally got a chance to look at your scenario in detail and everything checks out. Both spouse have indeed enough money in the other accounts to make the TFSA contributions. The points of confusion are:
1. The TFSA room graph shows the room at the beginning of the year, so will include your previous year’s withdrawals plus the additional room added every year.
2. The reports shows net deposits to the accounts (deposits minus withdrawals). For your regular TIME MACHINE run, I have checked that you do indeed make the maximum deposit of all your TFSA room in every year as instructed. However you also then withdraw the distributions, also as instructed, which increase you room for the following year. The net deposit amount in the year varies due to the yielded distributions that change with the account balance, and the yearly added TFSA room, which due legislation is indexed and rounded to the nearest $500, it does not increase evenly. Sometimes the room deposited is higher and sometimes lower than the distributions withdrawn in a year, so you may end up with either a deposit or a withdrawal from the account in any year.
The Optimized run in your case makes very few withdrawals from the TFSAs, on the contrary it deposits the max room to it mostly every year, so the deposits and the room at the beginning of each year stays about even.