Menu

#1 ssa.Endtime has strange behaviour

open
nobody
None
1
2011-07-11
2011-07-11
No

With the attached model the the behaviour of Endtime is not consistent when changed more than once

In [2]: ssa = stompy.SSA()
In [3]: ssa.Model(File='131037482406.psc',dir='c:\\stompy\\pscmodels'
In [4]: ssa.Endtime(100)
Info: the simulation endtime is: 100.0

In [5]: ssa.Run()
Info: 1 trajectory is generated
Number of time steps 262 End time 4.7989856092
Simulation time 0.0160000324249

Discussion

  • Brett Olivier

    Brett Olivier - 2011-07-11

    StomPy test file

     
  • Brett Olivier

    Brett Olivier - 2011-07-11

    In [8]: ssa.Endtime(5)
    Info: the simulation endtime is: 5.0

    In [9]: ssa.Run()
    Info: 1 trajectory is generated
    Number of time steps 395 End time 5.02136157842

    In [10]: ssa.Endtime(50)
    Info: the simulation endtime is: 50.0

    In [11]: ssa.Run()
    Info: 1 trajectory is generated
    Number of time steps 5032 End time 50.0016795685
    Simulation time 0.203000068665

    In [12]: ssa.Endtime(500)
    Info: the simulation endtime is: 500.0

    In [13]: ssa.Run()
    Info: 1 trajectory is generated
    Number of time steps 2316 End time 29.9765941339
    Simulation time 0.108999967575
    Simulation time 0.0309998989105

     
  • Brett Olivier

    Brett Olivier - 2011-07-11

    I've encountered the same with ssa.Timesteps() and it appears as if the simulator is terminating prematurely .... do you you know why this is? If this is normal behaviour?

     
  • Brett Olivier

    Brett Olivier - 2011-07-11
    • priority: 5 --> 7
     
  • Brett Olivier

    Brett Olivier - 2011-07-11

    this may be peculiar to this model and the way it is initialised.

     
  • Brett Olivier

    Brett Olivier - 2011-07-11
    • priority: 7 --> 1
     
  • Timo Maarleveld

    Timo Maarleveld - 2011-10-24

    This bug is solved from version 1.0