Call me stupid, but why don't they just charge enough to cover costs and a bit of profit? The current pricing model is broken if you can't run a solar plant profitably.
A renewable producer (e.g. solar panels) cannot produce energy 24/7. And when it produces energy, you are not guaranteed the production is stable.
A consumer cannot consume energy 24/7. And when they consume energy, you are not guaranteed the consumption is stable.
To make the issue worse, a producer may not be producing energy when the consumer wants it, and vice versa.
Currently, energy storage is not widely installed. Hence any produced energy must be consumed at the same time.
The factors above combined means that there will be a mismatch. If the production is too great, your electricity appliances will probably explode and whatnot. If the consumption is too great, you experience blackouts. Neither are desirable.
Now consider there is a middleman. The grid. Producers sell energy to the grid. Consumers buy energy from the grid.
At some point in time, due to the factors above, the grid will need (A) zero to negative prices to encourage consumers to buy & use more energy from it, and to encourage producers to produce & sell less energy to it. Or (B) increased prices to encourage consumers to buy & use less energy and producers to produce & sell more energy. A flat price is not realistic. (Residential users only have a flat rate because our demand patterns are more stable.)
But due to the production patterns of renewable energy and consumption patterns of our society, there is a not-insignificant risk that renewable producers will consistently face scenario (A) above making it difficult to cover back the costs.
Because who would pay 10 cents per kilowatt hour when there's someone else who will pay someone to take that energy off their hands?
The problem is caused when the market clearing price is lower than the cost it took to produce it, and some of those costs are in the past.
It's like getting a boat and going fishing. If you pay $10,000 for the cost of the trip, and bring back $8,000 worth of fish, you can't just force people buy them from you for a 25% markup.
The state of California has a great live and historical dashboard of power production and consumption that you can click around in to get an intuitive sense of where the problems arise. We have more batteries than anywhere else in the world but it’s still nowhere near enough. CAISO daily outlook
Edit: the supply dashboard is more useful for this discussion: CAISO supply