Hi Otto,
my bad and you are right about the annotations which in this case make it a complete example. I still have to get used to Modelica and including annotations do make code highly unreadable imo - a reason for usually being collapsed.
But, the simple fact remains that the example does not work in Version 4.3 which is quite irritating.
BTW, in Version 4.3 a simple typo like extending the same class (circular definition) will crash System Modeler and a restart will not work also because the faulty model is automatically loaded, e.g.
model newClass some class
extends newClass; // a typo here, should have been oldClass...
end newClass;
Note: This is just indicative, I cannot find the original code as I had to go back in history using Dropbox to restart...
Renaming something in text mode can also quickly crash WSM 4.3 - I have not seen a really convincing Refactor-functionality as renaming a class name for example will not update its name in existing connect-equations.
The interplay WSM 4.3 - Mathematica 11.3 is not smooth either ... so I will have to see whether 5.1 is worth it. After all, System Dynamics inductive modeling is probably not the typical use case and some people call me a weirdo for trying. ;-)
Guido
Edit: Is there a published list of known issues with WSM 4.3 - that would help greatly.