Based on the error message you are using an Algebraic Component in your model. By definition the Algebraic Component variations introduce an algebraic loop into the model, and the PLECS Coder does not support code generation for models with algebraic loops.
This is documented in the PLECS Documentation under Code Generation + Unsupported Components.
You'll have to derive an alternative way to create your custom component using controlled sources and measurements, along with any necessary delays in the feedback path to break resulting algebraic loops. When breaking the algebraic loops, note the Discretization Behavior setting of any controlled sources, which can be configured to be first-order or zero-order holds. Refer to the documentation for a more complete description.