Ok, so I have something like this:
model MolarAmount
import SI = Modelica.SIunits;
SI.AmountOfSubstance nu "moles of stuff";
parameter Real lambda = 42 "some variable on which nu depends";
equation
nu = 1 - lambda;
end MolarAmount;
This runs just fine, but it complains about incompatible units, as expected. How do I get it to ignore this?