Hello,
I machine generated (MatLab Script) an electrical circuit Modelica (.mo) file electrical netlist from a four port Y Paramater rational model in the complex frequency domain. I created a model class and used the Modelica Library calls throughout. It has 546 passive components (Resistor, Capacitor, and Inductor classes) and has 824 connect() equations. It also extends the Modelica Library four port. So It is kinda big. I’m treating it as a four port component and in a top level graphical model I connected a signal source and load resistor to the four port. So that’s four more connect equations added to my model’s 824. I’m getting this “Not Globally Balanced” validation check error which says that I have 2144 variables and 2146 equations. So, somehow I have two more equations than unknowns. Is there some way to get System Modeler to list out the equations and variables in some file so I can see and count things as my equation tally isn’t jiving with what System Modeler is telling me. I have generated a corresponding SPICE circuit file and other than convergence issues, SPICE seems happy with the topology. So I do have something to compare it against. I’m searching high and low and I’m not seeing the problem here. I’ve attached my model file. Does anyone have any ideas on how best to trouble shoot this?
Thanks.
StartAnode.mo (63 KB)