Bug introduced in 11.3 and fixed in 12.1
I am a bit surprised that I am not getting a boolean output for the following simple Modelica model:
model = ImportString[
"block Or
input Boolean u1;
input Boolean u2;
output Boolean y;
equation
y = (u1 or u2);
end Or;"
,
"Mo"
];
sim = SystemModelSimulate[ model, {"y"}, {0,1},
Association[
"Inputs" -> {
"u1" -> Function[ t, True ],
"u2" -> Function[ t, False ]
}
]
];
First @ sim[{"y"}]
Function[ t, 1., Listable ]
So, what is returned is the real output (e.g. Boole[y]
). Is this a bug?
VerificationTest
in a test notebook (a great feature btw) a bit more opaque. $\endgroup$