1 | | Could you please elaborate on what isn't working correctly? max/min does not generate events, so noEvent has no effect in your example and is optimized away by the compiler. The only issues I can see are modelling related, i.e. you have the equation system |
2 | | {{{ |
3 | | Smax = max(Smax, s) |
4 | | flange_a.s = s |
5 | | flange_b.s = Smax |
6 | | }}} |
7 | | which can't be solved since there are four variables involved but only three equations. Likewise you get the equation system |
8 | | {{{ |
9 | | flange_a.f = 0.0 // Automatically generated since flange_a.f is an unconnected flow variable. |
10 | | flange_a.f = 0.0 // Added by you. |
11 | | }}} |
12 | | So the equation system generated by the model is simply unsolvable. To make it possible to simulate the model you'd need to remove the flange_a.f equation and add another equation to the first equation system. |
| 1 | Could you please elaborate on what isn't working correctly? max/min does not generate events, so noEvent has no effect in your example and is optimized away by the compiler. |
| 2 | |
| 3 | Edit: Removed wrong analysis, I didn't realise that the test model was just supposed to be part of testcase. |