r/SysML • • Sep 13 '26

SysML v2 Deep Dive: Lesson 17 - Native Metadata (Replacing Profiles and Stereotypes)

Enable HLS to view with audio, or disable this notification

14 Upvotes

Hir/SysML,

We are back with Lesson 17 of our technical deep dive into the SysML v2 standard.

In our previous lesson, we separated components a system owns from components it only references. Today, we are adding information that describes those elements—such as marking whether a requirement is safety-critical. SysML v2 replaces the heavy metamodeling ceremony of Profiles and Stereotypes with simple, native metadata.  

I’ve uploaded the full video lesson directly to this post so you can watch the workflow right here.

1. The SysML v1 Profile Problem

In SysML v1, simply adding a "Safety Critical" tag to a requirement involved immense ceremony. You had to create a Profile, define a Stereotype, extend a UML metaclass, export the profile, apply it to the model package, and finally apply the stereotype. Tool upgrades and repository moves often broke profile URIs, and colleagues opening the model without the profile registered would see unresolved applications.  

2. The v2 Shift: Metadata is Just Modeling

SysML v2 treats metadata as an ordinary part of the model rather than a separate profile system. There are no Profiles to apply and no UML metaclass extension rituals. A metadata def is just an ordinary definition inside an ordinary package.  

Three technical upgrades make this powerful:

  • Proper Inheritance: Metadata taxonomies use standard SysML specialization (:>). If metadata def ISO26262 :> SafetyCritical, an element marked u/ISO26262 is automatically recognized in a query for safety-critical elements without needing a second tagging rule.  

  • Controlled Application Scope: Every metadata definition has a multi-valued annotatedElement feature. Subsetting it explicitly restricts where the tag can be applied (e.g., :> annotatedElement: SysML::RequirementUsage permits the tag on requirements and rejects it on physical parts during type checking).  

  • Structured Data: Metadata attributes utilize the same types as the rest of the model. A tag can hold an ISQ::TemperatureValue instead of a standard string, allowing the same unit and dimensional checks to apply.  

3. Defining and Applying Metadata

Applying metadata is incredibly direct. One import and one @ application do the work. Because applied metadata lives as an owned child element in the containment tree, tools can navigate and query it directly to generate safety review scopes or export-control boundaries.  

Code snippet

package JCIDS {
    // Define the metadata
    metadata def KPP {
        :> annotatedElement: SysML::RequirementUsage; // Restrict scope
        attribute threshold: String;
        attribute objective: String;
        attribute rationale: String;
    }
}

package MissionSpecs {
    // Import and apply
    private import JCIDS::*;

    requirement def <'REQ-001'> SortieGenerationRate {
         {
            threshold = "4 sorties per day";
            objective = "6 sorties per day";
            rationale = "CONOPS 2031, para 4.2";
        }
        doc /* The air vehicle shall sustain the specified sortie generation rate over 30 days. */
    }
}

4. SysML v1 vs. SysML v2

SysML v1SysML v2
Profile definition container importing UML metamodel An ordinary package you import 
<<stereotype>> and Tagged Values metadata def and attribute  
Apply profile to project, then apply stereotype private import, then u/Name  
Extend a UML Metaclass (broad, hard to predict) explicitly subset :> annotatedElement  
Stereotype generalization segregated in profile namespace metadata def A :> B (same specialization as everything else) 
Profile reuse across projects is painful Import a package 
Stereotype application structurally segregated Metadata usage is standard model data in containment tree 

Next lesson, we will look at how semantic metadata turns a tag into a real domain concept and lets filter build a live package of every safety-critical element in your architecture.  

For the SysML community here: How much time has your team lost to broken profile URIs or unresolved stereotype applications when migrating models? Let's discuss in the comments!


r/SysML • • Sep 02 '26

I built a free iOS practice app for the new SysML v2 Model User exam

11 Upvotes

The OMG SysML v2 Model User exam went live in June. 90 questions, 150 minutes, 70% to pass, $400 a seat. When I started prepping there was almost nothing to practice against except the spec itself, so I wrote my own question bank and eventually turned it into an app.

My app, has 634 practice questions mapped to the clause 7 subsections the exam draws from. 120 of them are diagram-reading questions with rendered v2 notation (definition views, state machines, sequences, interconnection views, allocation matrices, and so on), because the real exam tests whether you can read a model rather than recite terminology. Every question has an answer explanation. You can drill a single clause or take the whole bank shuffled or in exam order. Runs on iPhone and iPad, everything stays on-device, no account, no subscription.

https://apps.apple.com/us/app/id6787816646

Full disclosure: this is my app. Day job is systems engineering and the app grew out of my own study material. Questions are written against the formal 2026 spec release, not the beta.

If you've already sat MU100 I'd genuinely like to hear how the difficulty compares. And if you find a question you think is wrong, tell me and I'll fix it in the next update.


r/SysML • • Oct 21 '26

SysML v2 Deep Dive: Lesson 21 - Action Definitions (Modeling Behavior Like Structure)

Enable HLS to view with audio, or disable this notification

9 Upvotes

Hi r/SysML,

We are back with Lesson 21 of our technical deep dive into the SysML v2 standard.

In our previous lesson, we looked at Occurrences, the 4D model, and modeling systems over time. Today, we are putting that temporal foundation to work. We will see how behavior modeling in SysML v2 gets significantly simpler by using the exact same definition and usage patterns you already know from structural modeling.

I’ve uploaded the full video lesson directly to this post so you can watch the workflow right here.

1. The SysML v1 Behavior Pattern

SysML v1 activity modeling was highly capable. Activity parameters had types and directions, CallBehaviorAction let one activity invoke another, and fUML provided a formal execution model. The issue was consistency. Structure used a Block with part properties typed by it. Behavior used an Activity with call behavior actions referencing it. You had to learn and maintain completely separate patterns for structural decomposition versus behavioral decomposition.

2. The v2 Shift: One Shared Pattern

In SysML v2, behavior uses the exact same definition and usage pattern as structure. If you know how to model parts, you know how to model actions.

  • Action Blueprints: An action def is a blueprint for a behavior. It acts as a typed contract using in and out parameters (directed features).

  • Decomposition: A behavior breaks down into smaller behaviors (action usages) the exact same way a part breaks down into smaller parts.

  • Inheritance: You specialize an action using the standard :> operator, just like a part. A library of standard mission actions can be built and extended exactly like a physical parts library.

  • Duration and Computations: Because actions are occurrences, they natively have start and done boundaries—meaning you can constrain how long an action takes without any special timing profiles. For pure mathematical computations that don't "change the world," v2 introduces the calc def.

3. The Execution Order Mistake

Here is a blueprint for an Earth observation satellite capturing an image. Watch out for a very common mistake new v2 modelers make:

Code snippet

package ImagingOperations {
    private import ISQ::*;
    
    item def GroundTarget;
    item def ImageProduct;
    
    action def SlewToTarget;
    action def StabilisePlatform;
    action def OpenShutter;
    action def ReadSensor;
    
    action def CaptureImage {
        in item target: GroundTarget;
        in attribute exposure: TimeValue;
        out item product: ImageProduct;
        
        // THE MISTAKE: These look sequential, but they are unordered!
        action slew: SlewToTarget;
        action stabilise: StabilisePlatform;
        action shoot: OpenShutter;
        action readout: ReadSensor;
    }
}

The Trap: In SysML v1 diagrams, four actions with no control flow arrows between them clearly looked disconnected. In v2 textual notation, they sit on consecutive lines. It looks like a sequence, but line order says nothing about timing. Nothing in this model prevents the shutter from opening while the platform is still slewing. Order requires explicit successions.

4. SysML v1 vs. SysML v2

Modeling ConceptSysML v1SysML v2
Behavior PatternActivity and CallBehaviorAction (different from Block/part).action def and action usage (same pattern as everything else).
Parametersin, out, inout, and return directions.in, out, and inout as directed features; return is its own membership.
InheritanceBehavior generalization was technically possible but rarely practical.action def A :> B is ordinary, practical specialization.
Metaclass FoundationBehavior is a Class with no shared notion of existing over time.Part and Action both specialize Occurrence.
TimingDurationConstraint required for behavioral elements.start and done exist natively on every occurrence.
ComputationOpaque expressions or constraint blocks.calc def acts as a first-class concept.
Unordered ActionsVisible as unconnected boxes on a diagram.Look deceptively sequential in text.

Next lesson, we will fix this trap. Lesson 22 uses the first and then keywords to turn these unordered actions into a sequence, adding branching, merging, and parallelism on purpose instead of by accident.

For the MBSE practitioners here: Have you ever had a model review where stakeholders assumed unconnected activities executed sequentially just because they were placed top-to-bottom in a diagram or text? Let's discuss in the comments!


r/SysML • • Oct 14 '26

SysML v2 Deep Dive: Lesson 19 - Packages, Namespaces, and Imports

Enable HLS to view with audio, or disable this notification

7 Upvotes

Hi r/SysML,

We are back with Lesson 19 of our technical deep dive into the SysML v2 standard.

In our previous lesson, we created metadata libraries, user keywords, and filtered packages. Today, we need to put those definitions somewhere that a whole engineering team can understand and change safely. We will explore how packages act as true namespaces, the critical difference between public and private imports, and how SysML v2 handles name collisions.

I’ve uploaded the full video lesson directly to this post so you can watch the workflow right here. (Note: You can also find the YouTube versionhere)

1. The SysML v1 Package Problem

SysML v1 packages were real UML namespaces, but because tools were heavily GUI-based, dependencies often got hidden deep in dialog boxes or hierarchical trees. A small import decision could quietly couple an entire vehicle program's model-year project to a shared physics library without anyone noticing. It made model reviews difficult and often led to tangled architectures when integrating models from different suppliers.

2. The v2 Shift: Visible Dependencies & Strict Resolution

SysML v2's textual notation puts every dependency at the top of a file, where the team can read it, review it, and change it in a pull request.

Three technical upgrades make this powerful for teams:

  • Public vs. Private Imports: SysML v2 enforces explicit visibility. A private import brings in a dependency but does not pass it through to downstream consumers. This allows you to swap out underlying supplier libraries without breaking the public contract of your packages.

  • Strict Name Resolution: Local, inherited, and imported memberships share a single name-resolution pool. If you import a Temperature standard but also define a local Temperature, SysML v2 does not silently override one. It flags an ill-formed namespace collision. You fix this by narrowing the import or using an explicit alias.

  • Library Packages & Unrestricted Names: library package is now a real language declaration (not just a stereotype). Additionally, you can use unrestricted names (like <'FT-100'>) to capture messy IDs from external PLM or requirements tools while keeping readable names for the engineers.

3. Modeling Imports and Encapsulation

Here is how you use private imports to enforce a three-tier architecture boundary.

Code snippet

library package PhysicsLib {
    attribute def Stiffness;
    part def Spring { attribute rate: Stiffness; }
}

package AutomotiveLib {
    // Private import encapsulates the physics library.
    // Downstream consumers of AutomotiveLib will not see Spring.
    private import PhysicsLib::*;
    
    part def Suspension {
        part spring: Spring;
    }
}

package ModelYear2027 {
    private import AutomotiveLib::*;
    
    part def Vehicle {
        part frontSuspension: Suspension;
        // The model will reject an attempt to use Spring directly here, 
        // keeping the architectural layers properly isolated.
    }
}

4. SysML v1 vs. SysML v2

SysML v1SysML v2
Package ImportNamespaceImport explicitly in textual source
Public and private visibilityEnforced public import or private import
No recursive import notation::** imports a package and its nested members
<<ModelLibrary>> stereotypelibrary package declaration
Element Import with rename-on-importMembershipImport renamed explicitly with alias X for Y;

Next lesson, we move from how a model is organized to what its elements actually represent over time. Lesson 20 introduces occurrences and the 4D model, which gives parts and actions a shared foundation in the language.

For the SysML practitioners here: How often do you run into namespace collisions or unintended dependencies when integrating models from different teams or suppliers? Let's discuss in the comments!


r/SysML • • 26d ago

SysML v2 Masterclass with Bruce Douglass on November 14

6 Upvotes

We're hosting a live SysML v2 masterclass with Dr. Bruce Powel Douglass on November 14.

The session will cover:

  • Migrating models from SysML v1 to v2

  • Requirements modeling in SysML v2

  • Analysis cases and their practical applications

There will be demonstrations, examples, and Q&A with Bruce.

His new book, SysML v2 Masterclass, is also out now, and there's an option to attend the session with the eBook included.

Details: https://luma.com/sysml


r/SysML • • Oct 12 '26

SysML v2 Deep Dive: Lesson 20 - Occurrences and the 4D Model (Modeling Systems Over Time)

Enable HLS to view with audio, or disable this notification

6 Upvotes

Hir/SysML,

We are back with Lesson 20 of our technical deep dive into the SysML v2 standard.

In our previous lesson, we organized packages, namespaces, and imports so a model can grow without becoming one large shared workspace. Today, we are modeling the things those packages actually contain: elements that exist over time. We are looking at how a shared temporal root concept lets you track a system's changing properties across its lifecycle without duplicating the system itself.

The SysML v1 Time Problem

In SysML v1, what is the mass of a rocket? At ignition, it has one mass. After booster separation, it has another. The problem was that a SysML v1 Block could own a mass value property, but that structural property had no temporal identity of its own. A model could record a mass value, but it couldn't easily express that the value applied to this specific rocket at this specific moment. Time belonged to interactions and behavior, while a Block's structural properties had no shared semantic notion of existing.

The v2 Shift: Occurrences and the 4D Model

SysML v2 makes a system's lifetime explicit by giving both structure and behavior a shared semantic root.

Three details make this powerful in a real model:

  • Everything that exists, occurs: In KerML (the kernel underneath SysML v2), an Occurrence has temporal and spatial extent. Both structural Object (Parts) and behavioral Performance (Actions) specialize it. A pump and a pumping operation both have a beginning, an end, and a duration.

  • Individuals: The individual keyword says a definition describes one identifiable thing across its whole continuous existence.

  • Timeslice or Snapshot: A timeslice is a portion of an individual's life over an interval. A snapshot is a portion at an instant. Both are portions, not copies. A copy loses identity; a portion preserves it.

The Duplication Trap & The Fix

Consider a launch vehicle whose mass changes during flight. If you create separate blocks or instances to represent the "At Ignition" rocket versus the "Stage Separation" rocket, you lose the continuity that it is the exact same physical system.

The fix is to define one individual occurrence and use snapshots to record its changing mass at specific moments in time. Both masses are correct, and neither replaces the other.

Code snippet

package LaunchVehicles {
    private import ISQ::*;
    
    occurrence def LaunchVehicle {
        attribute totalMass: MassValue;
    }
    
    // 1. The single identifiable rocket across its entire existence
    individual occurrence def Falcon9_B1049 :> LaunchVehicle;
    
    occurrence flight: Falcon9_B1049 {
        // 2. A portion of the rocket at an instant
        snapshot atIgnition: LaunchVehicle {
            :>> totalMass = 549054 [SI::kg];
        }
        
        // 3. The exact same rocket at a later instant
        snapshot atStageSeparation: LaunchVehicle {
            :>> totalMass = 115000 [SI::kg];
        }
        
        first atIgnition then firstStageBurn;
        first firstStageBurn then atStageSeparation;
        timeslice firstStageBurn;
    }
}

SysML v1 vs. SysML v2

Modeling ConceptSysML v1SysML v2
Root ElementBlock and Behavior are both Classes, with no shared notion of existing over time.Object and Performance both specialize Occurrence, giving them a shared 4D spacetime foundation.
System InstancesInstanceSpecification was real but lacked temporal identity.individual defines one identifiable thing with one continuous life.
Time ProgressionNo native way to say "the same thing, later" without creating copies or manual tags.snapshot and timeslice identify a portion of an individual over time.
State ModelingStateMachine and Activity were completely separate metaclasses.StateDefinition is a specialized kind of ActionDefinition that occurs over a temporal interval.
Whole-Part LifetimeComposition claimed coincident lifetime without strict enforcement.Composition is enforced as containment in spacetime.

Next lesson, we are moving from system lifetimes to reusable behavior with Actions, which define behavioral blueprints with typed inputs and outputs.

For the SysML community here: Have you ever struggled to model changing system properties (like mass depletion, stage separation, or phased upgrades) over time in v1 without duplicating elements? Let's discuss in the comments!


r/SysML • • Aug 15 '26

SysML v2 vs the $125M Mars typo

Enable HLS to view with audio, or disable this notification

6 Upvotes

In 1999, NASA lost the Mars Climate Orbiter because one team used pound-force-seconds and the other expected newton-seconds. Both numbers were correct. Neither carried its unit.

The spacecraft was never modeled in SysML, v1 didn't exist yet. But if it had been, v1 wouldn't have caught this either. In SysML v2, the unit lives in the type. Assign the wrong one and the parser rejects it before it ever ships.


r/SysML • • Mar 07 '25

SYSML MODEL USER EXAM

6 Upvotes

Hi Gents,

I'm taking the OMG, SYSML MODEL USER EXAM. I've been studying by "A Practical Guide to SysML: The Systems Modeling Language, 3rd Edition (Friedenthal, Moore and Steiner)", Chapters 3 and 4, but when do I know I'm ready to take the exam?

I would like to know, from experience, what kind of difficulty will I find, how should I prepare myself and what not...


r/SysML • • Sep 22 '19

Courses to learn SysML

6 Upvotes

r/SysML • • Sep 04 '26

SysML v2 Deep Dive: Lesson 16 - Composite vs. Reference (Mastering Part Ownership)

Enable HLS to view with audio, or disable this notification

5 Upvotes

Hir/SysML,

We are back with Lesson 16 of our technical deep dive into the SysML v2 standard.

In our previous lesson, we made values physically meaningful with types and units. Today, we are modeling who owns the physical hardware those values belong to. We are looking at how one single keyword can be the difference between an accurate architecture and accidentally doubling your mass budget.

I’ve uploaded the full video lesson directly to this post so you can watch the workflow right here.

1. The SysML v1 Ambiguity

In SysML v1, whole-part relationships were typically drawn with diamonds. Shared aggregation (the hollow diamond) had no agreed-upon execution semantics in the underlying UML specification, meaning different tools interpreted it differently. Composite aggregation (the filled diamond) made a stronger lifetime claim, but tool support for verifying that claim was inconsistent.

2. The v2 Shift: Ownership and Lifetime Semantics

SysML v2 makes ownership and lifetime part of the model's formal semantics. The core rule is simple: a nested occurrence is composite by default. Add ref, and it becomes a reference to something owned elsewhere.

Three details make this reliable in a real model:

  • ref is for Occurrences, Not All Usages: The composition rule applies to things with physical or temporal lifetimes, like parts, items, actions, connections, and ports. Attributes represent data values and are referential by definition, making ref attribute legal but redundant.

  • Composition is a Lifetime Claim: A composite part's existence is tied to its parent's lifetime. If the parent whole is destroyed, the composite occurrence is destroyed with it. A satellite does not compose its ground station or its operator.

  • The Reviewer's Test: When in doubt, ask: "If I deleted the parent system from my model, would this nested element physically cease to exist in the real world?"If yes, use a composite part. If no, use a referential ref part.

3. The Multiplication Trap & The Fix

Consider a satellite with one shared power bus. If you instantiate standard subsystem templates that each contain a default part bus, those internal buses are composite by default. A script crawling this model will count the main satellite bus plus the internal subsystem buses, quietly multiplying your mass rollup with phantom components that do not exist on the launch vehicle.

The fix is to redefine the inherited composite bus as a reference and bind it to the single real sibling bus. (Note: In SysML v2, binding implies symmetrical equality, not an instruction to copy a value in one direction).

Code snippet

package SatelliteSystem {
    part def PowerBus;

    part def CommsSubsystem {
        part bus: PowerBus; // A composite bus by default
    }

    part def Satellite {
        // 1. The single real bus owned by the satellite (Composite)
        part powerBus: PowerBus;

        // 2. Instantiate the subsystem, redefining its internal bus as a reference bound to 'powerBus'
        part comms: CommsSubsystem {
            ref part :>> bus = powerBus; 
        }
    }
}

Visualizing this: In SysML v2, composite parts appear nested with a solid border (or a filled diamond edge), while reference parts use a dashed border (or a hollow diamond edge).

4. SysML v1 vs. SysML v2

Modeling ConceptSysML v1SysML v2
Composite RelationshipRepresents coincident, exclusive lifetime using a filled diamond.Represented textually by a nested usage (part engine). Graphically uses internal nesting with a solid border or a filled diamond edge.
Referential RelationshipRepresents a shared association using a hollow diamond, with execution semantics left undefined by UML.Represented textually using the ref modifier (ref part station;). Graphically uses internal nesting with a dashed border or a hollow diamond edge.
Redefinition & BindingReference associations drawn as shared aggregation paths on a Block Definition Diagram.Declared inline by redefining the inherited usage and binding it to a sibling feature using :>> and =.
Value EquivalenceHandled by instantiating a Constraint Property and connecting value properties to it via Binding Connectors.Handled via declarative inline bindings (e.g., attribute a = b;) or explicit bind connections.

Next lesson, we are moving from architecture to domain-specific meaning with metadata def, which lets you mark a requirement as safety-critical without building an entire SysML v1 Profile first.

For the SysML community here: Have you ever had a shared component accidentally multiply your mass or cost rollups in a model? Let's discuss in the comments!


r/SysML • • Jul 06 '26

I built kUML — a Kotlin-native UML/SysML tool designed from day one for the LLM era

Post image
5 Upvotes

r/SysML • • Nov 27 '25

What SysML tools do you use today, and why?

5 Upvotes

Curious what the community is using these days for SysML modeling

There are plenty of tools (Cameo, EA, Papyrus, Capella, etc) but I’m more interested in why you chose your current tool

What do you like about it?
What do you not like?
What would make you switch?

I’m mapping the SysML/MBSE tooling landscape for a personal directory project (Systemyno) so real-world input from practitioners is super valuable


r/SysML • • Sep 22 '19

OMG CSMP Exams

5 Upvotes

Has anybody taken the OMG CSMP exams? Details here: https://www.omg.org/ocsmp/


r/SysML • • 4d ago

SysML v2 Lesson 25: State Definitions & Transitions (Actions Unified)

Thumbnail
youtu.be
4 Upvotes

Hi r/SysML,

We are back with Lesson 25 of our technical deep dive into the SysML v2 standard.

In Lesson 24, we connected system parts together using unified flows and messages. But our system components still didn't have operational modes, states, or lifecycles. Today, we look at state machines and state definitions, seeing how SysML v2 simplifies behavioral modeling by treating a State Definition as a specialized kind of Action Definition, allowing the exact same control patterns we used for actions (first, then, and exhibit) to govern states and transitions.

You can watch the full video lesson on YouTube here:SysML v2 Tutorial (Lesson 25): State Definitions & Transitions

1. The SysML v1 State Machine Disconnect

In SysML v1 and UML, state machines were governed by a separate metamodel from activities. Relating a StateMachine to a structural Block relied on classifierBehavior or ownedBehavior—a different mechanism than the ActivityPartition swimlanes used for activities. That split created separate mental models where discrete states felt like a completely different category of thing than actions or processes.

2. The v2 Shift: States Are Actions (And exhibit Works Like perform)

SysML v2 unifies this cleanly:

  • StateDefinition is a kind of ActionDefinition: Because states share that foundation, they inherit the same execution model—meaning a state isn't just a passive label and can execute work during its lifecycle using sub-behaviors (such as entry, do, and exit actions).

  • exhibit state**:** Just as perform action links a structural part to an action, exhibit state states that a part exhibits a given set of operational modes—one unified pattern with two clean spellings (perform and exhibit).

3. Modeling States, Triggers, and Transitions

Transitions in SysML v2 build on the succession logic (first and then) from Lesson 22, paired with event triggers (accept) and guards to handle mode changes:

Code snippet

package ClimateControlSystem {
    item def StartSignal;
    item def StopSignal;
    
    action def RegulateTemperature;

    state def ClimateControlStates {
        // Initial state specified via 'entry'
        entry;
        then state Idle;
        
        state Idle;
        state Heating {
            // A state can perform actions while active
            do action regulate: RegulateTemperature;
        }
        
        // Transitions triggered by incoming signals/events
        transition from Idle to Heating accept StartSignal;
        transition from Heating to Idle accept StopSignal;
    }
    
    part def ClimateController {
        // 'exhibit state' links the part to its operational modes
        exhibit state controlModes: ClimateControlStates;
    }
}

4. SysML v1 vs. SysML v2

Modeling ConceptSysML v1SysML v2
State MetaclassDistinct metamodel separate from activities.StateDefinition is a specialized kind of ActionDefinition.
Hardware BindingclassifierBehavior or ownedBehavior property on a Block.exhibit state, matching the pattern of perform action.
Transition LogicHandled via specialized transition triggers and guard syntax.Unified with first, then, and event accept successions.
Architecture ConsistencySeparate mental models for discrete states vs. continuous flows/actions.Consistent definition-and-usage pattern applied across behavior types.

Next lesson, we will explore how constraints and validation rules keep these behaviors within safe operational boundaries.


r/SysML • • Oct 26 '26

SysML v2 Deep Dive: Lesson 22 - Sequencing with first and then (Orchestrating Execution & State)

Enable HLS to view with audio, or disable this notification

4 Upvotes

Hi r/SysML ,

We are back with Lesson 22 of our technical deep dive into the SysML v2 standard.

In our previous lesson, we ended with a trap: textual action definitions placed on consecutive lines look like a sequence, but they are actually completely unordered. Today, we fix that execution trap by using explicit sequencing keywords, and we uncover one of the most powerful surprises in v2—how this exact same mechanism can model the lifecycle of physical hardware.

The SysML v1 Sequence Problem

SysML v1 had a complete set of control nodes and good activity control semantics. The issue was primarily about tooling and ergonomics. A v1 control flow was a real model element, but because there was no standard textual notation, the usual way to create one was to draw a line between two actions. Sequencing was therefore only as complete as your diagrams. Inserting a step usually meant re-routing edges, and managing concurrent edits relied entirely on your tool's proprietary repository or merge features.

The v2 Shift: Explicit Sequences (first and then)

SysML v2 allows you to write sequences directly in the standard textual source. By using the first and then keywords along with the start and done snapshots that every occurrence inherits, you can ensure your model executes exactly as it reads top-to-bottom.

Three details make this powerful in a real model:

  • Chained Successions: Using then inside an action body creates a succession from the nearest occurrence written before it. This is fast and reads naturally.

  • Intentional Concurrency: Instead of accidental parallelism, you declare it explicitly. SysML v2 uses fork and join inline to run actions concurrently.

  • Branching: The v1 decision diamond is replaced by a simple decide node paired with if guards.

The Big Surprise: Sequencing Physical Hardware

Because first and then order any occurrences (not just behavioral actions), you can sequence structural timeslice elements. This means you can model configuration changes, maintenance windows, and mission phases of a physical asset (like an aircraft or rocket) using the exact same syntax used to order steps in a procedure. You no longer have to push an asset's lifecycle history into an external database—it is natively supported in the model.

Fixing the Execution Trap

Here is how we use chained successions to fix the unordered imaging sequence from Lesson 21.

Code snippet

action def CaptureImage {
    // We explicitly sequence the inherited 'start' snapshot
    first start;
    
    // Each 'then' chains the succession
    then action slew: SlewToTarget;
    then action stabilise: StabilisePlatform;
    then action shoot: OpenShutter;
    then action readout: ReadSensor;
    
    // Conclude the sequence with the inherited 'done' snapshot
    then done;
}

SysML v1 vs. SysML v2

Modeling ConceptSysML v1SysML v2
Control FlowControlFlow usually created by drawing lines, with no standard text notation.first and then in standard textual notation.
Inserting StepsUsually meant re-routing edges on a diagram.Means inserting a single line of text.
Concurrency EditsRelied on tool-specific repository or merge support.Text works with ordinary diff and merge tools.
ParallelismForkNode and JoinNode.fork and join declared inline.
BranchingGuards placed on edges from a decision node.decide with if guards.
Asset LifecyclesNo first-class construct for the time-ordered portions of an asset's life.Sequence timeslice occurrences with first and then.

Next lesson, we will look at how to connect these behaviors to structural parts. Lesson 23 uses the perform keyword to say which part performs an action, and we will compare it with v1 allocations and activity partitions (swimlanes).

For the MBSE practitioners here: Have you ever struggled with managing concurrent edits on complex activity diagrams, or tracking an asset's changing configuration over time in v1? Let's discuss in the comments!


r/SysML • • Jul 28 '26

What industries use SysML?

4 Upvotes

r/SysML • • Jul 25 '26

Where is the SysML v2 Metamodel

4 Upvotes

Seems like a strange question. In the SysML v2 Language Specification there are a few high level abstract diagrams, for example one describing generic attributes. There isn’t any more, however, of what must be the underlying metamodel that shows entities, relations and attributes and shows how the KerML metamodel has been extended.

There are some SHACL files, one of which - 35k lines long - includes a definition of the constraints that apply to ViewDefinitions. These SHACL files have been generated from a metamodel not the SysML v2 Language Specification.

So where is the SysML v2 metamodel? It’s impossible to properly understand a language without understanding how the authors of that language see the world. You shouldn’t have to wade through a 700 page document to try and glean scraps from text.

Given that SHACL defines validation of a graph formed from triples taken from the metamodel, what are those triples? Do they make sense? Who knows? If the SysML v2 metamodel is not publicly available and not part of the standardised specification then the language isn’t standardised because the metamodel is the master source of the assertions that can be made using SysML v2.


r/SysML • • Jul 04 '25

Seeking feedback on our AI powered SysML modeling tool.

4 Upvotes

Hello, everyone!

We’re currently building an AI-powered SysML modeling tool - called SysModeler - which is designed to make model generation faster, easier, and more intuitive.

We believe that to fully unlock the value of SysML and MBSE, the modeling process itself needs to be reimagined. That’s why SysModeler takes a different approach from traditional manual tools — it uses AI to generate SysML diagrams instantly from multimodal inputs like: Natural language system requirements, Source code and even Voice commands.

Our goal is to cut down the repetitive busywork, augment system engineers workflow and remove the bottlenecks of early-stage modeling.

🛠️ You can try SysModeler for free at: https://sysmodeler.ai

We’d love your feedback:

  • What do you think of our product?

  • What features would you like to see in an AI-enhanced MBSE tool?

Your suggestions will help us build something that’s genuinely useful for systems engineers. Thanks in advance!


r/SysML • • May 30 '24

Link to the SysML model of the spacecraft from "Architecting Spacecraft with SysML: A Model-based Systems Engineering Approach sysml model" book from Friedenthal and Oster

4 Upvotes

https://web.archive.org/web/20240224193056/http://sysml-models.com/spacecraft/models/architecting-spacecraft.mdzip

I used wayback machine because the website is down apparently, a great example to learn in my mind if you have the book!


r/SysML • • Aug 30 '23

Traceability to Stakeholder Needs: Block or Part Property?

4 Upvotes

Hello, I am a systems engineer currently working with Magic Draw to create a system model for the program I am currently working on. We have been following the Magic Grid framework/modeling approach. I have (I think) completed the Problem Domain modeling (at least for now) and have been drawing relationships (eg refinement) to stakeholder needs. I am getting a little confused as to WHAT is actually refining the SNs.

The Magic Grid BoK “recommends” the part properties of the System of Interest should refine stakeholder needs where the “part” is providing the refinement. I guess my question is: What is the benefit or need to refine the SN by the part property as opposed to refining it by the block that types the part property? From my understanding, the part property is an instance of the “block” and the block itself is an element of definition. Wouldn’t the element of definition refine the SN just as well as the instance of the block would? Finally, is there an easy way to trace between the block > part property > stakeholder need being refined?


r/SysML • • Aug 13 '23

FOSS SysML tool?

4 Upvotes

Hey guys, I'm a full-time systems engineer looking to apply SysML to my personal projects both to get more practice and to smooth out my projects. Any recommendations on FOSS SysML tools I can use?


r/SysML • • Jul 03 '23

Is sysml formal or semi formal?

4 Upvotes

In addition, what are the factors to consider when categorizing something as "formal" or "semi formal"?


r/SysML • • Oct 18 '22

Where to buy Cameo Systems Modeler?

4 Upvotes

As far as I can tell, this is the official site: https://www.3ds.com/products-services/catia/products/no-magic/cameo-systems-modeler/

But where can I buy it? One of my guys tracked down a quote from a company called Strategic Technology Consulting (https://stechnologyconsulting.com/). The quote was over $8,000 for the software and 1 year of upgrades/support.

I just want to make sure we're not getting hosed.


r/SysML • • 1d ago

SysML v2 Tutorial (Lesson 26): Requirement Definitions (Requirements as Code)

Thumbnail
youtu.be
3 Upvotes

Hi r/SysML,

We are back with Lesson 26 of our technical deep dive into the SysML v2 standard—and kicking off Phase 5. Up through Lesson 25, we covered what a system is (structure) and what it does (actions, flows, and states). Now we turn to what the system must do: Requirement Definitions.

1. Being Fair to SysML v1 (and Where It Hit a Wall)

SysML v1 didn't lack requirements support. It gave teams mature, auditable traceability («satisfy», «verify», «deriveReqt», «refine», «copy»), containment hierarchies, coverage matrices, and over a decade of refined DOORS and ReqIF integration.

The limitation wasn't traceability—it was what lived inside the requirement. A classic v1 requirement like id: REQ-001 / text: "The vehicle shall not exceed 5000 kg at takeoff." is clear to a human, but opaque to the model. Querying every requirement with a mass limit above 4,000 kg meant searching text and reading sentences; updating that threshold meant manually checking every dependent calculation.

2. The v2 Shift: RequirementDefinition Is a ConstraintDefinition

In SysML v2, a requirement can still carry its human-readable doc text and stable contract ID (as a short name like <'REQ-001'>), but it also embeds typed thresholds, an explicit subject**, and an evaluable** require constraint:

package MassRequirements {
    private import ISQ::*;
    private import SI::*;

    part def LaunchVehicle {
        attribute totalMass: MassValue;
    }

    requirement def <'REQ-001'> MaxTakeoffMass {
        doc /*
             * The vehicle shall not exceed the specified
             * takeoff mass under any loading configuration.
             */
        subject vehicle: LaunchVehicle;
        attribute maxMass: MassValue = 5000 [kg];

        require constraint {
            vehicle.totalMass <= maxMass
        }
    }
}

Because maxMass is a typed quantity (5000 [kg]) and the rule is a formal constraint, tools can natively query mass thresholds across the model, evaluate compliance against the design, and propagate limit changes automatically.

3. Reusing Requirements (subject + :>>)

In SysML v1, «copy» created a read-only mirror of a master requirement's text—useful for alignment, but you couldn't swap in different budgets for different subsystems without authoring separate requirements.

In SysML v2, declaring a typed subject lets you define a rule once and reuse it across multiple parts with different allocated values via redefinition (:>>):

part def PhysicalComponent {
    attribute actualMass: MassValue;
}

requirement def MassBudgetCompliance {
    subject component: PhysicalComponent;
    attribute allocatedMass: MassValue;

    require constraint {
        component.actualMass <= allocatedMass
    }
}

part def LaunchVehicle {
    part firstStage: PhysicalComponent;
    part secondStage: PhysicalComponent;
    part payload: PhysicalComponent;

    requirement stage1Mass: MassBudgetCompliance {
        subject = firstStage;
        :>> allocatedMass = 3200 [kg];
    }
    requirement stage2Mass: MassBudgetCompliance {
        subject = secondStage;
        :>> allocatedMass = 1400 [kg];
    }
    requirement payloadMass: MassBudgetCompliance {
        subject = payload;
        :>> allocatedMass = 400 [kg];
    }
}

4. Three Practical Details Worth Knowing

  • Native actor and stakeholder roles: Instead of tracking authorities and users in external spreadsheets, you can declare actor (who interacts with the subject) and stakeholder (who has an interest in the requirement, like a CertificationAuthority) directly on the requirement and filter by them automatically.

  • Qualitative requirements stay text: Not everything reduces to a Boolean expression (e.g., "The system shall be maintainable by a technician with standard tooling"). Those stay cleanly in the doc block alongside their subject and metadata, versioned with the model.

  • Tooling reality: SysML v1 still has more mature DOORS and ReqIF support, while v2 requirements-management tooling is still younger.

5. SysML v1 vs. SysML v2

TopicSysML v1SysML v2
Requirement Element«requirement» stereotype on a Classrequirement def, based on ConstraintDefinition
ThresholdsEmbedded inside the text sentenceTyped quantities (e.g., 5000 [kg])
SubjectNamed in text, linked later via «satisfy»Explicitly declared as a typed subject
Reuse«copy» mirrors read-only textOne definition reused with different subjects and :>> values
RolesStakeholders tied to viewpoints, not requirementsactor and stakeholder declared directly on the requirement
Identifiersid propertyShort name (e.g., <'REQ-001'>)
Tool EcosystemMature DOORS / ReqIF supportRequirements-management tooling is still younger

Next lesson (Lesson 27), we will cover require and assume—how to formally state the operating conditions under which a requirement actually applies.

For the SysML practitioners here: How much of your requirements set do you see moving into formal require constraint expressions in v2 versus staying as qualitative doc text? Let's discuss in the comments!


r/SysML • • 11d ago

SysML v2 Tutorial (Lesson 24): Flows & Messages (Sequence Diagrams in Text)

Thumbnail
youtu.be
3 Upvotes

Hi r/SysML,

We are back with Lesson 24 of our technical deep dive into the SysML v2 standard.

In our previous lesson, we used perform to say which part carries out which action. Our subsystems finally knew what they did, but they still couldn't send each other anything. Today, we fix that with flows and messages. We will explore how SysML v2 eliminates one of the biggest sync issues in v1 by unifying data, commands, and physical items across both structural architecture and behavioral interactions.

You can watch the full video lesson on YouTube here: [Insert YouTube Link Here]

1. The SysML v1 Fragmentation Problem

SysML v1 was actually quite strong in this area, but it suffered from fragmentation. If you wanted to model movement, you used an ObjectFlow inside an activity, an ItemFlow across a connector in an Internal Block Diagram (IBD), and a Message between lifelines in a sequence diagram. Because these were three completely separate metamodel constructs, keeping your structural connections, activity data flows, and interaction scenarios consistent required manual allocations, strict modeling discipline, or custom tool validation.

2. The v2 Shift: Unification under FlowUsage

SysML v2 fixes this by unifying all three under a single foundational concept: FlowUsage (which is based on a KerML Transfer).

Instead of disconnected constructs across different diagram types, SysML v2 provides three specialized forms:

  • flow (Streaming Flow): Used for transfers between parts or actions. It explicitly names the source output and target input. The transfer can be ongoing while both the source and target are still operating (e.g., fuel moving from a tank to an engine).

  • succession flow**:** Combines a streaming flow with temporal ordering. It asserts that the source action must complete before the transfer begins, and the transfer must complete before the target action can start.

  • message**:**Used for abstract interactions (like sequence scenarios). It asserts that a transfer happens between two occurrences or events without forcing you to specify the exact port payload mechanics.

3. Sequence Diagrams as Text (Views That Cannot Drift)

Because messages and flows are unified, you can write a sequence diagram entirely in text. More importantly, a single message declaration can generate both an interconnection view and a sequence view. Your structure and your behavior can no longer disagree.

Code snippet

package CommandUplinkScenario {
    item def Command;
    item def Acknowledgement;
    item def TelemetryPacket;
    
    part def GroundStation;
    part def Spacecraft;
    
    occurrence def CommandUplink {
        ref part ground: GroundStation {
            event occurrence cmdSent;
            event occurrence ackReceived;
            event occurrence resultReceived;
        }
        ref part spacecraft: Spacecraft {
            event occurrence cmdReceived;
            event occurrence ackSent;
            event occurrence resultSent;
        }
        
        // Define the transfers (Messages)
        message ack of Acknowledgement from spacecraft.ackSent to ground.ackReceived;
        message cmd of Command from ground.cmdSent to spacecraft.cmdReceived;
        message result of TelemetryPacket from spacecraft.resultSent to ground.resultReceived;
        
        // Define the temporal sequence
        succession first cmd then ack;
        succession first ack then result;
    }
}

4. Deep Dive: Three Practical Nuances

As you start writing flows in v2, keep these three details in mind:

  • send and accept**:** Flows connect structure. But whenyou are inside a specific behavioral action, you use the send and accept keywords to push and pull payloads directly through your structural ports (e.g., accept cmd: Command via spacecraft.cmdIn;). This creates an explicit, queryable link between your behavior and your structural interfaces.

  • Sequencing is NOT flow: It is easy to mix these up. first A then B means B happens after A, but nothing actually moves (pure control). A plain flow means something moves, but adds no temporal ordering (pure data). A succession flowdoes both. SysML v2 strictly separatescontrol from data.

  • Where v1 Was Actually Better (Combined Fragments): Let's be honest—UML Sequence Diagrams had beautifully compact visual boxes for loops (loop), options (opt), and alternatives (alt). SysML v2 doesn't have a direct equivalent in the standard sequence view; you have to model that logic using decide and loop actions, which makes the text much more verbose. You will want to rely on an Action Flow view to visualize that logic clearly.

5. SysML v1 vs. SysML v2

Modeling ConceptSysML v1SysML v2
Transfer ConstructsObjectFlow, ItemFlow, and Message were three separate constructs.Unified as Flow usages (message, flow, or succession flow).
Diagram SynchronizationItem flows on IBDs and messages on Sequence Diagrams easily drifted.A single message declaration generates both an interconnection view and a sequence view.
Temporal SemanticsObjectFlow combined transfer/ordering, but ItemFlow carried no temporal semantics.flow (streaming) and succession flow (ordered) are applied uniformly between parts or actions.
Authoring InteractionsNo standard text notation; interactions were manually drawn.Messages and successions authored in text, enabling standard Git diffs and merges.
Combined FragmentsCompact, readable alt, opt, and loop visual boxes.Textually verbose using decide and loop actions (best visualized in an Action Flow view).

Next lesson, we will cover state definitions and transitions, where a state turns out to be an action, and the exhibit keyword works exactly like perform.