The pilot: GPSS-Plus

Updated: 2026-11-17

GPSS-Plus: Discrete-Event and Continuous-System Simulation Engine

GPSS-Plus is a discrete-event and continuous-system simulation engine designed to model and analyze the behavior of real-world systems over time. Its purpose is not to program applications, but to describe how a system works and observe its evolution under different conditions.

Essentially, it operates as a digital laboratory where a set of entities (customers, products, vehicles, signals, or data packets) flows through a network of processes and resources with defined capacities and delays.

The goal is to transform a real-world system description into an executable model: from an industrial production line or a logistics chain to data traffic in a network or an emergency protocol. By simulating thousands of scenarios in minutes, it enables forecasting, decision optimization, and the design of contingency protocols within a general-purpose simulation environment.

There are different approaches to system modeling, both in terms of their interface and their objectives.

Discrete and/or continuous Drag & Drop-based approaches:

  • DES: Built by connecting graphical blocks.
  • Continuous modeling: Systems of differential equations.
  • Hybrid graphical + scripting approaches: Combine DES with external code.

Discrete approaches based on dedicated or general-purpose languages:

  • With a dedicated DSL: Entirely defined in a textual language such as classic GPSS.
  • Using general-purpose languages: Through simulation libraries.

Thanks to its inheritance of the key concepts of classic GPSS, GPSS-Plus bridges both worlds, using its own language to define the model while relying on the power of a general-purpose language whenever the domain requires it.

The ultimate goal is to make everything understandable:

GENERATE 5
ADVANCE 10 {From:"Madrid", To:"Paris"}
TERMINATE

 

The main innovations introduced are:

1. Syntax: Extended Compatibility

The most significant change lies in how block and command parameters are handled. In classic GPSS, the A, B, C... parameters provided a fixed and limited syntax.

Classic example:

ADVANCE 30,10 ; Waits between 30 and 40 time units

In GPSS-Plus, this structure is retained but extended with a JSON-like format, allowing more details to be specified without compromising simplicity:

ADVANCE 30,10 {From:"Madrid", To:"Paris"}

This makes it possible to integrate graphical, behavioral, or logical parameters without inventing new syntactic variants for each case.

2. Graphical Visualization

GPSS-Plus visually represents entities and blocks through simple graphical elements: small circles that move across a canvas, following exactly the model's flow. This representation makes it possible to observe the system in real time, immediately understand its dynamics, and facilitate the detection of bottlenecks or unexpected behaviors during execution.

This visualization, which did not exist in classic GPSS, introduces a new way of interacting with the model, where direct observation becomes a key tool for validation and understanding.

3. Virtual Entities (VE)

Virtual entities help describe the invisible aspects of the model. For those coming from other paradigms, they encompass what was previously described externally in another language. For beginners, they are simply another type of entity.

In GPSS-Plus, everything that happens in the system unfolds over time and can be observed as it occurs. To make this possible, all behaviors are handled in the same way: as entities that move, whether abstract, visible, or simply representing a volume.

Virtual entities are not displayed, but they are fully-fledged entities that execute internal logic or system events. They are created to describe this behavior through ON_ENTER, a TIMER  or TIMEOUT, and live within the model itself.

According to their life cycle, there are three main types:

  • Reactors, which handle specific events and then disappear.

  • Agents, which do not die and manage the model's universe.

  • Components, living entities that exist as part of another entity and die along with it.

With this approach, the model becomes an ecosystem of concurrent executions. An entity can wait for a bus while answering a phone call; an agent can control traffic; the sun can rise and set without any main entity having to take care of it.

It becomes apparent that many familiar concepts from Procedural Programming and Object-Oriented Programming are reinterpreted: behavior is not encapsulated in hierarchical objects, but explicitly modeled as entities that coexist and act in parallel within the system. 

There is no this, no parent, no child: they are all brothers. Functions are no longer one-off calls but become living procedures. There is no “this.breathe()” that always breathes in the same way; instead, there is a person who walks and, at the same time, breathes different air.
 

4. Model Auditing and V&V

Because it is described entirely as an explicit model, GPSS-Plus allows its behavior to be automatically analyzed, interpreted, and assessed. An artificial intelligence system or external auditor can reconstruct what the system does, detect internal inconsistencies, and compare the modeler's intentions with the model's actual execution.

This capability represents a natural evolution of traditional verification and validation (V&V) processes, which are no longer based solely on manual review and statistical analysis. It also introduces consistency between history (H), model (M), and execution (E), laying the foundations for a new validation approach.
 

5. Structured Variables

In GPSS-Plus, variables (SAVEVALUE, ASSIGN) can contain numbers, strings, arrays, or objects.
This makes it possible to work with complex data structures directly within the model, without resorting to external languages or sacrificing readability. For example:

ASSIGN DATOS, {tipo:"Student", Name:"Antonio", Age: 22, Grades: [8,5.8,6,8]}

6. Hybrid Discrete-Continuous System

Continuous modeling in GPSS-Plus is based on a simple idea: dividing time into small frames. By executing these steps sequentially within the event queue, continuous behavior emerges naturally.

INTEGRATE, DYNAMIC, SOLVE are the basic tools that allow continuous-system structures to be defined and integrated into the very core of the discrete system. RK4, Jacobian matrices, and Newton-Raphson make it possible to simulate fluids, voltages, or velocities using the same DSL. 

7. Sandbox, Digital Twins, and Edge Software

Simulation models can pursue three main objectives:
 
- Sandbox, focused on bounded simulation and obtaining results, with or without historical data preloading.
- Digital Twin, where the model accompanies a real system for verification, control, or predictive operation.
- Edge Software, where the model constitutes the system itself, running continuously as operational logic.

In the latter two cases, the model must interact with the external environment. GPSS-Plus enables this coupling through the BRIDGER, which acts as a generic bidirectional channel between the model and real physical systems.

From the language's perspective, access to external resources is uniform: a database, a file, or a sensor are all handled using the same syntax. Opening a relay or storing data is expressed through BRIDGE_WRITE, and replacing a GENERATE block that simulates the arrival of a packet with a subscription to a real motion sensor is practically immediate. The transition from sandbox to digital twin or edge software is therefore transparent.

Thanks to Rehydration, the model does not simply connect to the real world; it also synchronizes with its current state, allowing the simulator to 'wake up' in the middle of a process without losing operational continuity after the last stored piece of data, even following a model modification.

8. Kinematic Models

Modeling kinematic motion based on its causality emerges naturally. What was previously a problem to be solved using domain-specific engines is translated into the direct visualization of the DES algorithm through perfectly transparent building blocks.

Classic algorithms such as conveyor, road traffic and railway become primitives according to their causal classification: resource, entity, or contract.

The well-known 'open secret' of O(1) algorithms is no longer hidden behind specialized implementations and can now be observed directly within the DES model itself.

 

Other Notable Extensions:

In addition to these innovations, GPSS-Plus incorporates multiple extensions that expand its expressiveness, modularity, and power:

  • New resources: new blocks such as STOCK, RESTROOM, CONDITIONS, and finite-state machines that expand the classic range (STORAGE, FACILITY...).

  • Dynamic resource creation: What would require manually dragging hundreds of blocks in Drag & Drop engines can be achieved in GPSS-Plus with a simple FOREACH loop and a NEWFACILITY. This is the key difference between a textual language and classic graphical interfaces.

  • Statistics: allows automatic statistics to be collected for any resource or sequence and displayed graphically.
  • Behavior functions: using real or simulated data, automatically creates interpolations that encapsulate complex behaviors (for example, different sections of a road or machine).

  • Native functions: tools such as CONCAT, MERGE , PUSH extend the language without relying on external code.

  • Automatic charts: simply tabulating data is enough to generate charts within the simulation environment.

  • Contexts (CX$): each model can define independent contexts, ideal for creating reusable libraries, modules, or components.

  • Full debugging: the system allows detailed tracking of the event queue, each entity, resource, or variable, facilitating model analysis and correction.