I would just like to point out that generally, building Ships of the line is pretty uneconomic unless you buy the tools in europe as compared to simply using your colonists to make manufactured goods such as cigars or rum and using the earnings to buy ships in europe(coupled with Peter Minuit). Exceptions being if your tax rate is really high or if you have some really good founding fathers(doubly so if they're based on the tax rate) for hammers and/or guns.
300 tools, 300 muskets and 400 hammers is an extreme amount of resources and work hours.
Here's some quick math: to produce 300 muskets you need 200 tools(assuming you have an arsenal) which in turn requires 133 ore which in turn is roughly 13 worker turns of expert ore miners(depending on how good your tiles are) added to 12 turns of master blacksmith worker turns and then 200/12~17 worker turns of expert gunsmiths=42 worker turns for 300 muskets.
To produce 300 tools you need 200 ore which is rougly 20 worker turns in ore miners added to 17 worker turns of expert blacksmiths= 37 worker turns for 300 tools.
For 400 hammers you need 400 lumber which is 25 worker turns of expert lumberjacks(riverside forest with lodges) and 33 worker turns of expert carpenters = 58 worker turns for 400 hammers.
This in total adds up to 137 worker turns for a single ship of the line which means it will take 137 colonists(all experts in their respective professions) to produce on average one ship of the line per turn or 1 colonist(against, being expert in all needed professions) 137 turns to make one ship of the line.
Let's use the worst possible case scenario where you have no river and no special resources(but peter minuit, which you should always get for obvious reasons) to calculate how much cigars/furs/rum etc you would get. Lets assume a 4 base tile(farmed grassland) with an expert on it yielding 8 tobacco per turn. That would require 3 planters per 2 master tobacconists letting us gain 54 worker turns of cigars in the time it would take us to get one ship of the line. That equates to 986 cigars.
Assuming a selling price of 9 per cigar thats 8874 gold. As long as your tax rate was lower than roughly 33% you would actually get more ships of the line per turn using tobacconists and tobacco planters than using ore miners, lumberjacks, blacksmiths, gunsmiths and carpenters.
I have neglected to count rebel sentiment since it should make no difference(it would take less turns to complete a ship but all at the same time you would get more cigars in a shorter amount of time to balance it out).
The only thing that really changes this is if you have founding fathers that add to production of for example guns or hammers(or you have declared independence and have theocracy) but even then the only founding fathers that I can remember off the top of my head that gives bonuses to any of these professions are tied to your tax rate(which just means that it becomes profitable at a lower tax rate).
Obviously, the fact that you can use gold for other things than ships of the line means that simply making cigars/rum/coats/cloth in the first place is that much more versatile in that you can buy whatever you want.
Obviously, if you make such extreme amounts of money that the king will start increasing your tax rate to the point where its no longer useful to trade then producing your own ships of the line will probably look better but I'm doubtful as to whether you can actually get a large enough production line going without having to use the "kill your population" exploit in order to keep bell generation needed low enough that your ships are actually worth anything.
All in all, ships are expensive. It probably *works*, but is it optimal? I doubt it.