Skip to content

Hopsan

Multi-domain system simulation tool for hydraulic and mechatronic engineers and students

Permissive (OSI) · Apache-2.0
  • Linux

Listed by , founder & editor

58

Health

Active

Overview

Stars

243

Last commit

12 days ago

Nov 2026

Repository age

9 years

since May 2017

Latest version

v2.24.4

Sep 2026

Contributors

–

1 active in 90 days

Releases

4

last 12 months

Language

Wolfram Language

Hopsan simulates systems that mix several physical domains, such as hydraulics and mechatronics. It comes from the Fluid and Mechatronic Systems division at Linköping University. You build models in a graphical editor by dragging components and connecting them through power ports. Subsystems can be reused across models.

The core is a C++ library you can embed in other software. A command line application runs batch simulations, validation runs and calls from external tools. You can write your own component libraries in C++, and a subset of Modelica is also supported. Scripting works through HCOM or Python, and a small numeric language called numhop is built in. Simulations use multiple cores, and a server application can spread work across networked computers.

Results can be analyzed for energy losses, sensitivity and frequency response, and optimized numerically. Export goes to CSV, XML, Gnuplot, HDF5 and Matlab formats. FMI co-simulation FMUs can be imported and exported, and models can be exported to Matlab/Simulink. It runs on Windows and Linux. The core is Apache 2.0 and the GUI is GPL 3.0.

Who it's for

Hydraulics and mechatronics engineers

Power-port modeling, energy loss calculation and optimization fit fluid power system design.

Skip if: You need detailed 3D multibody or finite element analysis.

Students and researchers in system simulation

The source is open, you can write component models in C++ or Modelica, and results export to Matlab and HDF5.

Skip if: Your course or lab is standardized on a specific commercial toolchain.

Teams that co-simulate with other tools

FMI co-simulation FMU import and export and a Simulink export link it to other tools.

Skip if: You only need model exchange FMUs.

The problem it solves

System simulation of hydraulic and mechatronic machines usually needs costly commercial packages. Hopsan gives you a free tool to model, simulate and optimize these systems. You can also script it or embed it in your own software.

Strengths

  • Embeddable C++ core under Apache 2.0, with a CLI for batch runs
  • FMI co-simulation FMU import and export plus Simulink export
  • Exports results to CSV, XML, Gnuplot, HDF5 and Matlab
  • Python and HCOM scripting, with parallel simulation and optimization
  • Installers for Windows, plus deb, Snap and Flathub packages

Trade-offs

  • The GUI is GPL 3.0, so embedding it carries copyleft obligations
  • Only one contributor was active in the last 90 days
  • FMI support covers co-simulation FMUs only
  • Hosted or browser use is not available

Self-host Hopsan

Self-hostable
No (desktop or local app)

Quick start

choco install hopsan

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Hopsan free?

Yes. The simulation core is under Apache 2.0 and the graphical application under GPL 3.0.

Which platforms does it run on?

Windows and Linux. Windows gets an installer or a portable zip. Linux gets deb packages, Snap and Flathub.

Can it work with FMI?

Yes. You can import and export co-simulation FMUs.

Can I script or automate it?

Yes. Use HCOM or Python scripting, or the command line application for batch simulation.

Similar tools in Simulation software

GElectrical

Simulation software

Desktop tool for analyzing LV/MV electrical distribution networks from a schematic

201 26 18 days ago Slowing GPL-3.0

PyBERT

Simulation software

Python simulator for serial link bit error rate, for high-speed signal engineers

161 72 15 days ago Active BSD-3-Clause

pathview

Simulation software

Browser-based block diagram editor for building and simulating dynamic systems in Python

102 14 5 days ago Thriving MIT

Lightwave Explorer

Simulation software

GPU-accelerated nonlinear optics simulator for students and laser researchers

112 15 4 days ago Thriving MIT

suanPan

Simulation software

Parallel C++ finite element framework for structural and seismic engineering

97 15 today Active GPL-3.0

pairinteraction

Simulation software

Python library and GUI for computing Rydberg atom properties and pair potentials

58 38 22 days ago Slowing LGPL-3.0-or-later or GPL-3.0-or-later