I am still unsure what to do about the memory issue, but I did manage to make Modplug Tracker squeeze out a song that is 1,033,920 patterns long. My latest goal is to make a song that contains at least Daisy (1,852,083) patterns. I have tried a couple of songs (one containing 1,896,350 patterns and the other containing 4,031,040 patterns), but I could not complete either of them. Modplug Tracker ran out of memory in both cases. Because of this, making a song that contains either pattern Peach (7,400,258) or pattern weird (10,604,884) would not work.