I get an out of memory error EVERY time i go from 2 silver to gold silver rank i assume thats from level 4 to level 5 ive gone over this odf several times and find no errors so WTF is wrong?

basename = "fed_mirandaii"
verbosetooltip = "AUTOTOOLTIP-fed_mirandaiiMr5.odf"
race = "unitedfederation"
maxhealth = 470
curhealth = 470
healthrate = 0.630
maxshields = 1573
curshields = 1573
shieldrate = 2.363
shieldgeneratorhitpoints = 106
engineshitpoints = 106
weaponshitpoints = 106
lifesupporthitpoints = 106
sensorshitpoints = 106
shipclass = "battleship"
attackpower = 1.000
intrinsicvalue = 1.000
weapon1 = "fedW_mirandaiiMr51"
weapon2 = "fedW_mirandaiiMr52"
weapon3 = "fedW_mirandaiiMr52"
weapon4 = "fed_blockadebreakerA"
worthxp = 111
xplevel = 5
maxspecialenergy = 207
specialenergyrate = 1.726
weapon7 = "all_veteran6"
weaponhardpoints7 = "root"
weapon6 = "passive_standaloneshield"
weaponhardpoints6 = "root"
weapon6iconpos = 70 50
unitname = "Miranda-II Class"
tooltip = "Miranda-II Class"
buildtime = 130
crewcost = 125
dilithiumcost = 711
tritancost = 217
supplycost = 22
recycledilithium = 213
recycletritanium = 65
recyclesupply = 7
recycletime = 72
giveisallowed = 0
physicsfile = "smooth_physics_80.odf"
trekphysicsfile = "smooth_physics_80.odf"
fleetcapfile = "all_cap_mixedtech.odf"
originalclass = "fed_mirandaii"
weaponhardpoints1 = "hp01" "hp02" "hp03" "hp04" "hp05" "hp06" "hp07"
weaponhardpoints2 = "hp08"
weaponhardpoints3 = "hp09"
weaponhardpoints4 = "root"
weapon5 = "passive_shieldbattery"
weaponhardpoints5 = "root"
weapon8 = "rom_cloak"
weapon9 = "fedW_akira_domr62"
weapon10 = "fedW_akira_domr62"
weaponhardpoints8 = "root"
weaponhardpoints9 = "hp08"
weaponhardpoints10 = "hp09"
enginestargethardpoints = "hp22" "hp23" "hp24" "hp25" "hp26" "hp27"
lifesupporttargethardpoints = "hp10" "hp11" "hp12" "hp13" "hp14" "hp15"
weaponstargethardpoints = "hp01" "hp02" "hp03" "hp04" "hp05" "hp06" "hp07" "hp08" "hp09"
shieldgeneratortargethardpoints = "hp10" "hp11" "hp12" "hp13" "hp14" "hp15"
sensorstargethardpoints = "hp16" "hp17" "hp18" "hp19" "hp20" "hp21"
hulltargethardpoints = "hp10" "hp11" "hp12" "hp13" "hp14" "hp15"
criticaltargethardpoints = "hp16" "hp17" "hp18" "hp19" "hp20" "hp21"
weapon1iconpos = 65 50
weapon2iconpos = 75 28
weapon3iconpos = 75 72
weapon4iconpos = 75 50
weapon5iconpos = 80 50
possiblecraftnames = "USS Abell" "USS Arcane" "USS Barnard" "USS Bavaria" "USS Bembo" "USS Bremen" "USS Butterfly" "USS Catīs Eye" "USS Cyclone" "USS Deploy" "USS Dourly" "USS Dumbbell" "USS Eddinson" "USS Emitter" "USS Eskimo" "USS Flame" "USS Forsaken" "USS Helix" "USS Hourglass" "USS Jewel" "USS Linebacker" "USS Meropis" "USS Midnight" "USS Natrium" "USS Nemesis" "USS Neutrino" "USS Opal" "USS Pleader" "USS Prolific" "USS Prophet" "USS Qabalah" "USS Red Spider" "USS Regal" "USS Reliant" "USS Retina" "USS Rook" "USS Septum" "USS Shorley" "USS Solid" "USS Stingray" "USS Superior" "USS Suzumiya" "USS Tarocco" "USS Thesis" "USS Tian An Men" "USS Topaz" "USS Trusty" "USS Vacuum" "USS Vivit" "USS Wahoo"
eventselect = "Basic4CruiserSelect"
eventacknowledge = "Basic4CruiserAcknowledge"
eventattack = "Basic4CruiserAttack"
eventstop = "Basic4CruiserStop"
eventmove = "Basic4CruiserMove"
eventrepair = "Basic4CruiserRepair"
shiptype = "C"
enginesrepairtime = 1.0
lifesupportrepairtime = 0.25
weaponsrepairtime = 1.0
shieldgeneratorrepairtime = 1.0
sensorsrepairtime = 1.0
avoidanceclass = 5
weldingradius = 0.25
fireball = "x_large_explosion"
classlabel = "craft"
ainame = "CraftProcess"
officercost = 0
shielddelay = 2
damagedscan = 50.0
enginescrewloss = 10.0f
lifesupportcrewloss = 10.0f
weaponscrewloss = 10.0f
shieldgeneratorcrewloss = 10.0f
sensorscrewloss = 5.0f
lifesupportloss = 2
engineshitpercent = 7.0f
lifesupporthitpercent = 7.0f
weaponshitpercent = 7.0f
shieldgeneratorhitpercent = 1.0f
sensorshitpercent = 0
crewhitpercent = 7.0f
hullhitpercent = 71.0f
ship = 1
has_hitpoints = 1
has_crew = 1
transporter = 1
alert = 1
show_sw_autonomy = 1
show_movement_autonomy = 1
can_explore = 1
combat = 1
can_sandd = 1
buildablebyownerraceonly = 1
specialenergydisplaymode = 1
extraweaponhardpoints = "root"
maxextraweapons = 10
rangescan = 850
shieldhit = "shield_fed_hitM"
shieldhitcritical = "shield_fed_hitcritM"
shielddown = "shield_fed_down"