Co-simulation is the coordinated execution of two or more simulation solvers that exchange data at discrete synchronization points to model a complete system. Unlike monolithic simulation, this approach allows each physical domain—such as mechanical dynamics, electrical circuits, and control logic—to be solved by its native, optimized solver while a master algorithm orchestrates time-stepping and data exchange between them.
Glossary
Co-Simulation

What is Co-Simulation?
Co-simulation is a simulation methodology where multiple subsystem models, potentially built in different tools, are coupled and solved simultaneously to capture the complex interactions of a complete mechatronic system.
This methodology is foundational to virtual commissioning and Hardware-in-the-Loop testing, where a physical controller can interact with a virtual plant model. The Functional Mock-up Interface (FMI) standard enables tool-independent co-simulation by packaging models into Functional Mock-up Units, allowing engineers to couple tools like Simulink, Amesim, and Dymola to validate system-level behavior before physical integration.
Key Characteristics of Co-Simulation
Co-simulation is defined by a set of architectural and operational principles that distinguish it from monolithic simulation. These characteristics enable the integration of heterogeneous models to solve complex, multi-domain system dynamics.
Modular Subsystem Coupling
The system is decomposed into constituent subsystems (e.g., mechanical, electrical, hydraulic, thermal), each modeled in its optimal domain-specific tool. These models are not merged into a single monolithic solver. Instead, they are coupled through a master algorithm that orchestrates the exchange of variables at their interfaces. This preserves the high-fidelity physics of each domain and allows engineering teams to work concurrently with their preferred software, such as using Simulink for controls and Adams for multi-body dynamics.
Discrete-Time Data Exchange
Unlike a continuous-time monolithic solver, co-simulation advances by exchanging data at discrete communication points or macro time steps. Between these points, each solver integrates its internal states independently. The master algorithm manages this handshake, providing input values at the start of a step and collecting outputs at the end. This synchronization is critical; the choice between explicit (Jacobi) and implicit (Gauss-Seidel) coupling schemes directly impacts numerical stability and accuracy.
Standardized Interface Encapsulation
Co-simulation relies on standardized interfaces to encapsulate solver internals. The dominant standard is the Functional Mock-up Interface (FMI). A tool exports its model as a Functional Mock-up Unit (FMU), a self-contained package containing the dynamic equations and a solver. The FMI standard defines the API for the master algorithm to initialize, step, and reset the FMU without needing to know its internal mathematics. This enables true tool-independent integration.
Master Algorithm Orchestration
A dedicated master algorithm is the central conductor of the co-simulation. It is responsible for:
- Synchronization: Managing the communication time grid.
- Input/Output Mapping: Routing signals between the correct output and input ports of different FMUs.
- Error Control: Implementing step-size control and detecting algebraic loops that require iterative correction.
- Data Logging: Capturing all exchanged variables for post-processing and verification. This algorithm can be a simple script or a sophisticated real-time controller.
Numerical Co-Simulation vs. Model Exchange
The FMI standard defines two distinct modes of integration:
- Co-Simulation Mode: Each FMU contains its own internal solver. The master algorithm only controls the communication step size. This is the most common mode for coupling black-box models from different vendors.
- Model Exchange Mode: The FMU provides only the mathematical equations (ODEs/DAEs) without a solver. A single external solver in the master algorithm integrates the entire coupled system. This mode offers higher numerical stability for stiff systems but requires the master to have a capable solver.
Real-Time and Non-Real-Time Execution
Co-simulation can be executed in two distinct temporal domains:
- Non-Real-Time (Offline): The simulation runs as fast as the CPU allows, used for system design, parameter sweeping, and what-if analysis. A 10-second maneuver might simulate in milliseconds.
- Real-Time (Hardware-in-the-Loop): The simulation must advance one second of model time for every second of wall-clock time. This is mandatory when a physical controller or human operator is in the loop, requiring strict deterministic execution to avoid overruns.
Frequently Asked Questions
Explore the core concepts, standards, and practical considerations for coupling heterogeneous simulation tools to model complex mechatronic systems.
Co-simulation is a simulation methodology where multiple subsystem models, potentially built in different specialized tools, are coupled and solved simultaneously to capture the complex interactions of a complete mechatronic system. Unlike traditional monolithic simulation where a single solver handles all physics, co-simulation orchestrates a master algorithm that manages the data exchange and time synchronization between independent solvers. Each solver is responsible for its own domain—such as a multi-body dynamics tool for mechanical parts and a circuit simulator for the motor drive—and they communicate at discrete synchronization points. This modular approach allows engineers to use the best-in-class tool for each physical domain, protects proprietary intellectual property by sharing only input-output behavior rather than full model equations, and enables parallel computation of subsystems that would otherwise be computationally intractable as a single coupled system.
Co-Simulation vs. Related Simulation Approaches
A feature-level comparison of co-simulation against monolithic simulation, model exchange, and hardware-in-the-loop approaches for mechatronic system validation.
| Feature | Co-Simulation | Monolithic Simulation | Model Exchange | Hardware-in-the-Loop |
|---|---|---|---|---|
Tool Coupling | Multiple solvers run simultaneously | Single solver environment | Model exported to single tool | Physical hardware + virtual model |
Solver Independence | ||||
Real-Time Capability | ||||
Proprietary Tool Support | Each tool uses native solver | Single vendor lock-in | Requires FMI standard compliance | Hardware-dependent |
Numerical Stability | Depends on co-simulation master algorithm | Guaranteed by unified solver | High if model is well-posed | Subject to I/O latency |
Communication Overhead | Moderate to high | None | Low | Deterministic I/O signals |
Typical Time Step | 1e-4 to 1e-2 seconds | 1e-6 to 1e-3 seconds | 1e-4 to 1e-2 seconds | 1e-3 to 1e-1 seconds |
Best For | Multi-physics mechatronic systems | Single-domain detailed analysis | Supplier-to-OEM model delivery | Controller validation with real ECU |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Mastering co-simulation requires understanding the standards, model types, and validation techniques that enable heterogeneous subsystem coupling.
Master Algorithm (Orchestrator)
The central solver responsible for coordinating the time progression and data exchange between coupled subsystem models. The master algorithm manages critical tasks:
- Step size negotiation: Determining the communication interval between subsystems
- Data interpolation: Extrapolating values when models request data at different time points
- Error control: Monitoring coupling errors introduced by sequential solving
- Jacobian computation: Calculating sensitivity derivatives for implicit coupling schemes Common approaches include Gauss-Seidel (sequential, fast) and Jacobi (parallel, more stable) iteration. The choice of master algorithm directly impacts simulation stability and computational performance.
Hardware-in-the-Loop (HIL)
A specialized co-simulation configuration where a physical controller (the hardware under test) interacts with a real-time virtual model of the plant. Unlike pure software co-simulation, HIL requires hard real-time execution—the simulation must compute its outputs within strict timing deadlines to avoid misleading the physical controller. This technique is essential for validating ECUs in automotive, flight controllers in aerospace, and PLCs in manufacturing before deployment. HIL catches integration faults that pure software simulation misses, such as signal latency, electrical noise, and timing jitter.
Co-Simulation Stability & Accuracy
Coupling subsystems introduces numerical artifacts not present in monolithic simulation. Key challenges include:
- Aliasing: High-frequency dynamics in one subsystem can be misrepresented at the communication step rate
- Energy errors: Explicit coupling schemes can artificially inject or dissipate energy at the interface, causing non-physical behavior
- Algebraic loops: Circular dependencies where Subsystem A needs Subsystem B's output, but B simultaneously needs A's output Mitigation strategies include implicit coupling (iterating until convergence at each step), energy-preserving interfaces, and variable step-size control. Understanding these phenomena is critical for trusting co-simulation results.
Virtual Commissioning
The application of co-simulation to validate control code against a digital model of the physical machine before installation. The PLC program connects to a simulated I/O layer that mirrors the behavior of sensors and actuators. This enables:
- Offline debugging: Finding logic errors without risking physical equipment
- Cycle time validation: Verifying that sequences complete within required takt times
- Exception testing: Injecting fault conditions that would be dangerous or expensive to create physically Virtual commissioning can reduce on-site commissioning time by up to 80% and is a cornerstone of modern mechatronic system development.
Model Exchange vs. Co-Simulation
FMI defines two fundamentally different coupling paradigms:
Model Exchange: The FMU provides the model equations (ODEs/DAEs) but no solver. The importing environment integrates the entire coupled system monolithically. This yields higher accuracy but requires all models to be compatible with the master solver's numerical methods.
Co-Simulation: Each FMU contains its own embedded solver. The master algorithm only coordinates data exchange at discrete communication points. This enables coupling of models with incompatible mathematics (e.g., continuous-time mechanical systems with discrete-event controllers) but introduces coupling errors at the interfaces.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us