notes.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. Version 2.4.0
  2. + Allow realtime interrupts on arbitrary ports
  3. + Allow realtime simulation to monitor specific ports
  4. * Fixed bug while removing a port
  5. * Fixed bug when adding a model during simulation
  6. * Incremental update of direct connection
  7. * Fixed external interrupts blocking internal transitions
  8. * Set elapsed time attribute to None when you shouldn't access it
  9. Version 2.3.1
  10. + Added nicer configuration for the optimized, minimal simulation kernel
  11. Version 2.3.0
  12. + Added an optimized simulation kernel for sequentiel simulation
  13. * Much faster direct connection algorithm
  14. * Fixed bug in checkpointing when no state saving was being done
  15. Version 2.2.4
  16. + Add setuptools installation
  17. * Fixed bug in Dynamic Structure DEVS simulation for (dis)connectPorts
  18. * Fixed bug in realtime simulation
  19. * Fixed bug with checkpointing
  20. * Restructured project
  21. Version 2.2.3
  22. * Fixed bug in the GVT algorithm where 'red' messages could be transient
  23. * Changed termination detection algorithm to prevent bottlenecks
  24. * Fixed missing import in realtime backend for exception handling
  25. * Updated GVT test for previously reformed GVT algorithm
  26. Version 2.2.2
  27. * Changed realtime backend to not use threads in the 'threadless' variants
  28. * Fixed elapsed attribute at initialisation
  29. * Fixed allocator crashing due to new Z function support
  30. * Fixed locking fairness for GVT setting (faster relocation/allocation)
  31. * Fixed basic boundary relocator for when dynamic allocation
  32. Version 2.2.1
  33. + Added user events in the loggers (optional) for 'state changes'
  34. + Allow continuing a previous simulation by calling simulate again
  35. + Added Z functions (output-to-input, input-to-input and output-to-output)
  36. * Changed the reinit interface to make continuing possible
  37. * Fixed massive memory leak by forgetting to set the
  38. 'temporaryIrreversible' flag in local simulation
  39. * Change to the termination detection: wait for 100ms before sending
  40. * Fixed complete horizon revertion (beyond GVT!)
  41. * Activity-log file is only generated when useful
  42. * ManualRelocator generates activity traces
  43. Version 2.2.0
  44. + Added templates for scheduler, relocator, tracer and experiment files
  45. + Allow custom activity functions for pre-transition and post-transition
  46. + Allow the definition of custom schedulers, defined externally
  47. + Pass the horizon to the relocators
  48. + No state saving when relocation caused sequential simulation
  49. + Allow local checkpointing (in most cases)
  50. + Possibility for a 'test cycle' which saves message count (+visualize)
  51. + Test cycle simulation creates an 'advised' initial distribution
  52. + Schedulers can now be configured per-node instead of globally
  53. + Allow for pull based termination conditions (NOT recommended)
  54. + Tracers are a lot more plugable, multiple tracers can work simultaneous
  55. + Realtime interrupts can happen with method calls on the simulator
  56. + Initial allocation can be loaded from file
  57. + Allowed local nested simulation in a distributed simulation
  58. + Included a model of a subset of PythonPDEVS
  59. + Much faster tracing due to trace message grouping (remove all RTT calls)
  60. + Method to reset a models alterations before reinitialising it
  61. + Method to force sequential simulation
  62. + Ignore state saving when sequential simulation is possible due to
  63. relocations
  64. + Added scaled realtime
  65. + Relocators can use a 'last state only' approach
  66. * File reading for realtime happens on-demand
  67. * Fixed GVT algorithm
  68. * Fixed checkpoint restoration with severely broken files
  69. * Rewrite of the realtime backend, works much better now
  70. * Yielding of the main thread for anti-messages and relocations
  71. * Split of the simulator configuration
  72. * Various bugfixes
  73. * External messages are processed differently, should give slight speedup
  74. * Removal of (most) global variables
  75. * Classic DEVS simulation bugfixes
  76. - Removed auto-allocation: use the new 'allocators' instead
  77. - Removed PyRO support
  78. Version 2.1.5
  79. + Added optional memoization
  80. + Added the basis of an activity relocator, still very slow
  81. + User can choose between manual relocation, or automatic relocation
  82. + Relocation now uses 'async locking' and remote kernels will have a quick
  83. stop feature to prevent many transitions that will simply be removed
  84. + Added Dirty Heap scheduler
  85. + Added 'discrete time' Scheduler
  86. + Added Minimal List scheduler
  87. + Progress bar visualizes when an error happens, process is now killable
  88. + Dynamic Structure DEVS added for local simulation
  89. + Added a polymorphic scheduler (still very unstable)
  90. + Activity tracking in distributed simulation now returns something usable
  91. + Added Classic DEVS simulation as an option
  92. + Added a random number generator for deterministic simulation
  93. * Fixed deadlock in distributed simulation for an overfilled threadpool
  94. * Activity is only counted for not-reverted functions
  95. * Fixed the Syslog logger (some messages were in wrong order, some forgotten)
  96. * Fixed GVT algorithm, deadlocks and incorrect GVTs should be solved
  97. * Fixed termination algorithm
  98. Version 2.1.4
  99. + Added a Cell DEVS styled activity tracer
  100. + Added a Cell DEVS styled location tracer
  101. + Added Cell DEVS styled tracer 'gnuplot' and 'libav' animation script
  102. + Start of Sphinx documentation
  103. + Added PyRO tests
  104. + Realtime simulation keeps track of the termination_time
  105. * Realtime backend is now compliant with Python3
  106. * Fixed PyRO simulation for nodes without actual models
  107. * Default message copy method now uses pickle's HIGHEST PROTOCOL
  108. * Fixed the *elapsed* attribute for the confluent transition function
  109. Version 2.1.3
  110. + Added marshal library for use in the state saver
  111. + Added HeapSet scheduler
  112. + Added NoAge scheduler (only use when ALWAYS ta > 0)
  113. + Added SortedList scheduler
  114. + VCD and XML traces can also be saved to a user-defined filename
  115. + Added automatic model-to-node allocation as an option
  116. + Added some additional checks in the configuration setting
  117. + Checkpoint recovery for XML and VCD tracing is possible
  118. + Termination condition became somewhat more fine grained
  119. + Draw the model to a user-defined file
  120. + Added model reinitialisation: simply rerun simulate()
  121. + Added API for changing a model after it has been distributed (for reinit)
  122. * Split up the state savers
  123. * Game Loop realtime backend is now user-configurable for FPS
  124. * Added some configuration options
  125. * Nested simulation was completely rewritten
  126. * Logging now respects the logging settings and messages before this
  127. configuration are queued
  128. * Fixed a simulation bug where some messages get resent due to revertions
  129. * Fixed PyRO simulation
  130. * Fixed several problems with relocation, still somewhat buggy
  131. * Cleaned up tests
  132. * Fixed memory leak in the MPI backend
  133. * Fixed Python3 compliance
  134. * Message scheduler became much cleaner and more maintainable
  135. * Anti messages are sent 'en masse'
  136. * Model distribution is faster by a factor 10 due to different pickling
  137. - Nested simulation only works if both the nesting and the nested
  138. simulation are local
  139. - Configuration options for the nested simulation are removed as they are
  140. no longer necessary
  141. Version 2.1.2
  142. + Added a looping backend for realtime simulation
  143. + Looping realtime backend builtin in the simulator with calls
  144. realtime_finished() and realtime_loop_call()
  145. + Allow even huge models to be transfered and checkpointed, by removing
  146. artificial recursion when pickling fails otherwise (includes small test)
  147. + Added basic tests for VCD and XML tracing
  148. + Allow direct simulation of AtomicDEVS models
  149. + Added tests for the three different realtime backends
  150. + Added small smoke test for checkpointing
  151. + Model can be marked as 'used in termination condition'
  152. + Model has the new simSettings function to do model-specific configs
  153. + Lots of internal documentation added
  154. + Check for whether or not the number of used locations is actually
  155. available
  156. + Edge labels can be hidden when drawing the model for small graphs
  157. * Fixed a massive performance degradation in the MPI redirection
  158. * Don't attempt to load an incomplete checkpoint (and subsequently crash)
  159. * Minor changes to realtime simulation backends
  160. * Relocation directives can be denied in case it is a model used in
  161. termination condition
  162. * Used dictionary comprehension instead of for loop at some places
  163. * Progress bar now always ends with 'completely done' instead of partial
  164. * Minor code cleanup
  165. * Fixed a race condition in the external message scheduler
  166. * Message scheduler was leaking memory by not cleaning up everything
  167. - Termination condition can no longer run on any node, runs on controller
  168. Version 2.1.1
  169. + Message copy can be ignored for performance (as in nearly all other
  170. simulators)
  171. + Added realtime test
  172. * Fixed several realtime termination bugs
  173. * Realtime component now uses sys.stdin instead of raw_input
  174. * Fixed PyRO middleware usage
  175. * Fixed some critical bugs in the XML and VCD tracers
  176. * Local simulation no longer runs on a thread for easy profiling/debugging
  177. * Huge performance improvement for when lots of models are transitioning
  178. * Changed the signalling protocol from message based (as in the abstract
  179. simulator) to an optimized implementation
  180. * Fixed some bugs in the scheduler
  181. * Increased performance for the scheduler
  182. * Bugfix for when a revertion was caused by an anti-message
  183. Version 2.1
  184. + Models can be drawn before simulation using GraphViz
  185. + Added model migration
  186. + A node can now host any number of models, even atomics
  187. + Added model migration, including directives
  188. + Added an API to set all simulation options, with some sanity checking
  189. + Added a fetch_all option to the simulator to reconstruct the model
  190. locally
  191. + Added automatic detection of middleware
  192. + Added RootDEVS class
  193. + Added progress visualisation, rather handy in distributed simulation
  194. * Huge alterations to the internal representation of models
  195. * Reduced code size by completely refactoring model and simulation setup
  196. * Simulation can now be killed with ctrl-c without hanging
  197. * Coupled models get completely removed by direct connection
  198. * Direct connection works only once on the root model
  199. * Model is constructed locally and then broadcast to other kernels
  200. * Fixed fossil collection race condition
  201. * Simplified checkpoint restoration and creation
  202. * Cleaned up tests
  203. * Simplified Solver core due to more agressive direct connection
  204. - Removed the plethora of (incompatible) IDs in models
  205. - Removed the mpirunner.py scripts
  206. - Removed checks for wrong local invocations, should no longer happen
  207. - Removed RemoteCDEVS class
  208. - Removed irreversibility (except locally) due to problems with model relocation
  209. - Removed remote code execution for model construction, normal code
  210. execution is still possible
  211. - Removed special Cython parts and build scripts
  212. Version 2.0
  213. + Further optimisations to the main simulation algorithm
  214. + Added Parallel DEVS simulation
  215. + Output function now returns a dictionary of outputs
  216. + Realtime simulation can use manual and automated input simultaneously
  217. + Added distributed simulation, both PyRO and MPI4Py
  218. + Added syslog logger
  219. + Added checkpointing
  220. + Allow for termination time instead of termination condition
  221. + Added direct saving to file of output
  222. + Allow nested simulation in distributed environment
  223. + Made Python3 compliant
  224. + Made PyPy compliant
  225. + Made Cython compliant
  226. + Messages got their own class
  227. + Added NestingException exception for nesting problems
  228. + Added irreversibility for faster distributed simulation
  229. + Added actual automated tests using Python unittest instead of ad-hoc manual testing
  230. * Split up several files due to huge amount of additions
  231. * Optimized memory consumption of VCD and XML output
  232. * Modularised simulation tracing
  233. * Updated examples
  234. * Transitions now take an additional argument indicating the input
  235. * Fixed realtime simulation bugs
  236. - Removed Classic DEVS simulation
  237. - Removed Peek and Poke methods
  238. - Removed Root output in verbose tracing
  239. Version 1.2
  240. + Allow realtime simulation using Python threads and TkInter events
  241. Version 1.1
  242. + Added custom 'copy()' function for messages
  243. + Added direct connection
  244. * Optimized message scheduler
  245. * Optimized message passing
  246. - Removed INFINITY object, redirected to a float
  247. Version 1.0.5
  248. + Added VCD tracing option
  249. * Fixed non-determinism bug in sorting colliding models
  250. Version 1.0.4
  251. + Added XML tracing option
  252. Version 1.0.3
  253. * Cleanup of terminology
  254. * Use True/False instead of 1/0
  255. Version 1.0.2
  256. + Added code to display atomic DEVS' initial conditions
  257. Version 1.0.1
  258. * Deal with DeprecationWarning
  259. * Default timeAdvance returns INFINITY
  260. Version 1.0
  261. + Initial version