| 3 | | C:\Data\Desktop\omc190test>C:\OpenModelica1.9.0\bin\omc Model.mos |
| 4 | | true |
| 5 | | {"C:/Data/Desktop/omc190test/Model","Model_init.xml"} |
| 6 | | |
| 7 | | C:\Data\Desktop\omc190test>Model.exe -output=static_stock |
| 8 | | time=10,static_stock=1000 |
| 9 | | |
| 10 | | However, when I run the latest nightly (OpenModelica-revision-20160), I get: |
| 11 | | |
| 12 | | C:\Data\Desktop\omc191test>C:\OpenModelica1.9.1Nightly\bin\omc Model.mos |
| 13 | | true |
| 14 | | {"C:/Data/Desktop/omc191test/Model","Model_init.xml"} |
| 15 | | |
| 16 | | C:\Data\Desktop\omc191test>Model.exe -output=static_stock |
| 17 | | time=10,static_stock=2.9802322387695313e-005 |
| 18 | | |
| 19 | | |
| 20 | | |
| 21 | | Model.mo: |
| 22 | | |
| 23 | | model Model |
| 24 | | Real ramp(start=0, fixed=true); |
| 25 | | Real out; |
| 26 | | Real static_stock(start=1000, fixed=true); |
| 27 | | equation |
| 28 | | der(ramp) = 1; |
| 29 | | out = if ramp > 0 then ramp else 0; |
| 30 | | der(static_stock) = 0; |
| 31 | | end Model; |
| 32 | | |
| 33 | | |
| 34 | | |
| 35 | | Model.mos: |
| 36 | | |
| 37 | | loadFile("Model.mo"); |
| 38 | | buildModel(Model,startTime=0.0,stopTime=10.0,method="euler",outputFormat="mat",cflags="-O0",variableFilter=".*"); |
| 39 | | |
| | 3 | Currently OMEdit always display conditional connectors even when they are switched off, which might be a bit confusing for the user. It would be nice (and probably not too hard to implement in MetaModelica) if we only drew conditional connectors when they are active. |