I am having the following errors during the simulation of the model in the picture (the blocks cell, cell1, and cell2 contains the electrochemical model of a battery cell, by the way also trying to change these blocks with the built-in ConstantVoltage I got a similar error):
[1] 12:36:28 Symbolic Error An independent subset of the model has imbalanced number of equations (180) and variables (177). variables:
[2] 12:36:37 Translation Error pre-optimization module clockPartitioning (simulation) failed.
Do you know what is the reason of this error?

I notice two things:
v=Vandv=0). The variable names refer to the code ofModelica.Electrical.Analog.Sources.ConstantVoltage