Open joseph03choi opened 3 months ago
Try using your intermediate variable and mark it irreducible B(t) = 0, [irreducible=true]
to prevent it from being eliminated during simplification.
yeah right now it's a bit manual to make sure things aren't eliminated, we need to automate that.
Here is the full code to reproduce the error with
@discrete_events
not being able to see connector variables.Everything runs properly until you get to solve(), where you get the error message
ERROR: UndefVarError: 'pi_control_valve₊readingsIn₊c_B' not defined
. You can replace thereadingsIn.c_B
under@discrete_events
with a number and the problem can be solved, so we know this is the issue.