software · Q589
PySD
Python system-dynamics translation and simulation library for Vensim and XMILE models.
Overview
PySD is a library for translating system-dynamics models into Python and running them alongside Python analysis tools. It reads Vensim and XMILE models, providing programmatic access to parameters, simulation runs and outputs rather than a replacement diagram editor.[2][3]
Translation and analysis
A model is parsed and translated into a reusable Python representation. Users can inspect model documentation, choose returned variables and align result timestamps with observed data. This makes PySD useful where a system-dynamics model is one component of a larger analysis script. The project's current repository requires Python 3.9 or later.[2][3][4]
Translation limits
PySD does not implement every Vensim or XMILE function. A translated model may fail or run only partially when unsupported constructs remain. Its XMILE documentation specifically identifies a development gap relative to Vensim support and says XMILE macros are unsupported. Compatibility therefore has to be checked against the actual equations and functions used, not simply the file extension.[2][5]
Inputs and outputs
Results can be returned as pandas data frames or written as CSV, tab-separated or netCDF files. The guide prefers tab-separated output for some subscripted data and netCDF when preserving metadata is important; netCDF needs an optional dependency. For Vensim DATA-type inputs, the documented Python route accepts tabular CSV or TAB files rather than directly relying on the original binary dataset.[3]
Parameters and initial state
Setting a parameter and setting an initial condition have different effects. The guide warns that parameter changes persist in the loaded model, while initial-state options can restart or continue a run. Repeated scenarios should explicitly control those choices. PySD's MIT license covers the library, while imported models and data remain subject to their own rights.[1][3]
When it substitutes
PySD can replace selected Vensim execution and data-analysis workflows when a supported model can be translated and numerical behavior checked. It is particularly useful for scripted experiments within Python. This does not establish a complete replacement for Vensim's graphical authoring, every native function or its deployment formats.[2][3][6][7]
Capabilities & limitations
Vensim/XMILE execution
limitedTranslation supports many models but not every function or feature.[2][5]
Dynamic system modeling and simulation · Python environment · Edition, deployment and model dependencies affect availability
2 sources · check evidence
Vensim/XMILE translation and unsupported functions
vendor · checked 2026-10-07XMILE/Vensim support gap and unsupported XMILE macros
vendor · checked 2026-10-07Analysis-friendly outputs
supportedReturns data frames or CSV/TAB/netCDF results with dependency differences.[3]
Dynamic system modeling and simulation · Python environment · Edition, deployment and model dependencies affect availability
1 source · check evidence
Data inputs, results formats, parameters and initial conditions
vendor · checked 2026-10-07XMILE macros
unsupportedCurrent XMILE translation guide identifies macros as unsupported.[5]
Dynamic system modeling and simulation · Python environment · Edition, deployment and model dependencies affect availability
1 source · check evidence
XMILE/Vensim support gap and unsupported XMILE macros
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
References
- PySD license
MIT license
vendor · retrieved 2026-10-07 - PySD overview
Vensim/XMILE translation and unsupported functions
vendor · retrieved 2026-10-07 - PySD getting started
Data inputs, results formats, parameters and initial conditions
vendor · retrieved 2026-10-07 - PySD repository
Python requirements and community-maintained simulation library
vendor · retrieved 2026-10-07 - PySD XMILE translation
XMILE/Vensim support gap and unsupported XMILE macros
vendor · retrieved 2026-10-07 - Vensim software
Dynamic feedback, causal tracing and analysis
vendor · retrieved 2026-10-07 - Vensim file types
Native model, packaged model and result formats
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 637 | 2026-10-12 23:29:50 | /* wbeditentity-create-item:0| */ sf:eb5122e7-3c1f-4ba6-985c-ede7120b1345:v1 | Add PySD with cited simulation workflows, licensing and migration limits; documentation research only. | attribution: /proposals/eb5122e7-3c1f-4ba6-985c-ede7120b1345 |