2 >import "Simantics/Misc"
\r
3 >import "Simantics/Testing"
\r
4 >import "Simantics/Sysdyn"
\r
5 >m = importModel $ (getSystemProperty "scl.test.path") + "/../../../../../../../org.simantics.sysdyn.feature/rootFiles/sampleModels/Predator And Limited Prey.sysdyn"
\r
6 >exp = fromJust $ possibleResourceChild m "Experiment"
\r
7 >id = activateExperiment exp
\r
9 >withinEpsilon (lastValue exp id "/prey") 0.998 0.001
\r