WSMPlot returns empty plot when plotting sensitivities

While playing around with WSMLink, I’ve encountered an issue where WSMPlot returns and empty plot when plotting sensitivities. Plotting other simulation variables works fine. Here’s an example right out of the WSMLink documentation for WSMSimulateSensitivity:

mmodel = "MathematicaExamples.Basic.DiffEq";

\[ScriptCapitalM] = WSMSimulateSensitivity[mmodel, {0, 5}, {"a"}]

WSMPlot[\[ScriptCapitalM], {{"y", "a", 0.1}, {"z", "a", 0.1}}]

However, this works fine:

Any ideas about what is going on? I’m running Mathematica 10.4.1 and SystemModeler 4.0.1 on Windows 10.

This is a bug when using a combination of an old SystemModeler and certain versions of Mathematica. Upgrading SystemModeler to a newer version (4.1 or newer) should fix the issue, or you can use this workaround:

WSMPlot[\[ScriptCapitalM], {{"y", "a", 0.1}, {"z", "a", 0.1}}, 
 PerformanceGoal -> "Speed"]

OK, thanks. I’ll use the workaround until I can upgrade.