Neqsim root cause analysis

From equinor/neqsim · View interactive version

Neqsim root cause analysis is an AI agent skill from the GitHub repository equinor/neqsim. Oil and gas process troubleshooting for missing throughput, flowmeter bias and equipment faults. Combines reliability priors (IOGP/SINTEF, CCPS, IEEE 493, Lees, OREDA), historian evidence and NeqSim verification for Bayesian-style diagnosis. USE WHEN: diagnosing compressor trips, vibration, efficien

How to use this skill

Skill file

NeqSim Root Cause Analysis Skill

Systematic equipment-level root cause analysis integrating process simulation,

multi-source reliability data, plant historian time-series, and STID design conditions.

When to Use

Already-closed incident with a "document learning" ask

When the failure is already resolved and recorded (for example a closed Blalys whose

only open subtask is to document learning), do not re-derive the cause. Cite the

recorded cause, test it for consistency against the historian and alarm evidence

(consistent, contradicted or not testable), then deliver a consequence and learning

screening: capacity impact (for a derated driver use Compressor.getDriverLimitedEnvelope()),

the barrier or early indicator that would have shortened the outage, and the cost of

recurrence. Mark causal claims beyond the recorded cause as hypotheses.

Rapid Triage Mode (live disturbance)

A full RCA is a study. When the plant is still down and a response team needs a

direction within minutes, run the same framework in a reduced, explicitly labelled

mode rather than a different method:

| | Full RCA | Rapid triage |

|---|---|---|

| Prior | Multi-source reliability data | Reliability prior only, no source reconciliation |

| Likelihood | Full historian window, quality-screened | Last stable period to now, unscreened |

| Verification | NeqSim simulation of each hypothesis | Skipped; verification is deferred |

| Output | Ranked hypotheses with confidence | Top 3 candidates, confidence capped at MODERATE |

| Cause claim | Established when evidence supports it | NOT_DETERMINED unless a single candidate dominates |

Rules that make the reduced mode safe to act on:

  1. Label the mode in the output. A triage result must never be presented, or

later quoted, as a completed RCA.

  1. Cap the confidence. Without simulation verification the confidence ceiling is

MODERATE, regardless of how strongly the historian agrees.

  1. Time-box it. State the box up front. When it expires, report the ranking as it

stands plus what is still unknown — restoration decisions do not wait for cause.

  1. Report single-source dependence. If every piece of evidence for the leading

candidate comes from one instrument or one system, say so; that is the most common

way a triage conclusion turns out wrong.

  1. Promote, do not restart. When the plant is stable, re-run the same hypotheses

in full mode with simulation verification. Carry forward the case, hypotheses and

evidence identifiers. Recompute from the original priors and count each observation

once, including observations reused from rapid triage.

Rapid triage is the diagnose step of a live-disturbance response loop. The incident

coordination, phase gating, and restoration-option evaluation around it live in the

operations agents that call this skill.

Architecture Overview

The RCA framework uses a Bayesian-inspired three-stage methodology:

Prior (Reliability Data) × Likelihood (Historian) × Verification (Simulation) = Confidence

Reliability Data Sources

ReliabilityDataSource loads from multiple public databases automatically:

No commercial license is required for the default data.

Core Classes

| Class | Purpose |

|-------|---------|

| RootCauseAnalyzer | Main orchestrator — takes ProcessSystem + equipment name, runs full analysis |

| Symptom | Enum of 12 equipment symptoms (TRIP, HIGH_VIBRATION, etc.) |

| Hypothesis | Candidate root cause with expected signal fingerprints, evidence, prior/likelihood/verification scores |

| HypothesisGenerator | Generates candidate hypotheses from built-in libraries and reliability-data-adjusted priors per equipment type |

| EvidenceCollector | Analyzes historian/STID data and attaches only hypothesis-relevant supporting or contradictory evidence |

| DiagnosisCase | Captures equipment, window, provenance, process-model identity, context, and data quality |

| SimulationVerifier | Clones process and reports explicit status, KPI coverage, and magnitude-aware comparison |

| RootCauseReport | Ranked output with JSON and text report generation |

Package Location

All classes in neqsim.process.diagnostics.

Quick Start

Java

// 1. Create analyzer with running process and target equipment
RootCauseAnalyzer rca = new RootCauseAnalyzer(processSystem, "Compressor-1");

// 2. Set the observed symptom
rca.setSymptom(Symptom.HIGH_VIBRATION);

// 3. Provide historian data (from tagreader or CSV)
Map<String, double[]> historianData = new HashMap<>();
historianData.put("vibration_mm_s", vibrationTimeSeries);
historianData.put("discharge_temp_C", tempTimeSeries);
historianData.put("power_kW", powerTimeSeries);
rca.setHistorianData(historianData, timestamps);

// 4. Set design limits from STID
rca.setDesignLimit("vibration_mm_s", Double.NaN, 7.1);
rca.setDesignLimit("discharge_temp_C", Double.NaN, 180.0);

// 5. Optionally provide STID design values
Map<String, String> stidData = new HashMap<>();
stidData.put("design_flow_kg_hr", "50000");
stidData.put("design_efficiency_pct", "82");
rca.setStidData(stidData);

// 6. Run analysis
RootCauseReport report = rca.analyze();

// 7. Get results
String textReport = report.toTextReport();
String json = report.toJson();
Hypothesis topCause = report.getTopHypothesis();

Python (Jupyter)

RootCauseAnalyzer = ns.JClass("neqsim.process.diagnostics.RootCauseAnalyzer")
Symptom = ns.JClass("neqsim.process.diagnostics.Symptom")

rca = RootCauseAnalyzer(process, "Compressor-1")
rca.setSymptom(Symptom.HIGH_VIBRATION)

# Convert numpy arrays to Java
from jpype import JArray, JDouble
historian = ns.HashMap()
historian.put("vibration_mm_s", JArray(JDouble)(vibration_data.tolist()))
rca.setHistorianData(historian, JArray(JDouble)(timestamps.tolist()))

report = rca.analyze()
print(str(report.toTextReport()))

Symptom Reference

| Symptom | Description | Related Categories |

|---------|-------------|-------------------|

| TRIP | Equipment trip/shutdown | MECHANICAL, CONTROL, EXTERNAL |

| HIGH_VIBRATION | Vibration above limits | MECHANICAL |

| SEAL_FAILURE | Seal leakage or failure | MECHANICAL |

| HIGH_TEMPERATURE | Temperature exceeding limits | MECHANICAL, PROCESS |

| LOW_EFFICIENCY | Performance below design | PROCESS, MECHANICAL |

| PRESSURE_DEVIATION | Unexpected pressure change | PROCESS, CONTROL |

| FLOW_DEVIATION | Unexpected flow change | PROCESS, CONTROL |

| HIGH_POWER | Power consumption above normal | PROCESS, MECHANICAL |

| SURGE_EVENT | Compressor surge | PROCESS, CONTROL |

| FOULING | Fouling or deposit buildup | PROCESS |

| ABNORMAL_NOISE | Unusual noise patterns | MECHANICAL |

| LIQUID_CARRYOVER | Liquid in gas outlet | PROCESS |

Built-in Hypothesis Libraries

Compressor

Pump

Separator

Heat Exchanger

Valve

Inventory balance for missing throughput

Use neqsim.process.diagnostics.ProcessBalanceDiagnosis or the optional

massBalance evidence block of runRootCauseAnalysis when a flow discrepancy

crosses a separator, export line, receiver or connected control volumes.

Check the sign and units of every meter against the P&ID, identify each shared

meter once, and align inventories (kg) and instantaneous rates (kg/s) on the

same equally spaced timestamps. Establish the inventory-change and healthy

meter error bounds from the measurement basis. Level, volumetric flow and

standard gas flow require conversion before use. Missing inventories, tags,

quality or uncertainty can make the balance inconclusive.

Give the root-cause agent the signed net inflow, accumulation, residual and

bound per volume, all candidate intervals and one independent check that would

distinguish the surviving explanations. Use the worked request, status

interpretation and references in the RCA guide.

A single surviving signature depends on the declared topology and fault family.

Evidence Analysis Methods

Evidence is hypothesis-specific. Built-in hypotheses define expected signal

fingerprints such as vibration|bearing increasing, lubeOilPressure below

limit, demisterDp increasing, or antiSurgeValve not opening. Historian and

STID observations are matched by alias pattern. Matching observations become

supporting evidence; opposite observations become contradictory evidence;

unrelated trends are ignored instead of inflating all hypotheses.

Each evidence item includes:

Trend Analysis

Linear regression on time-series data. Reports slope, R-squared, and percent change.

Threshold Exceedance

Checks how many data points exceed design limits.

Rate-of-Change Detection

Identifies sudden step changes using 3-sigma detection on first differences.

Step changes produce STRONG evidence.

Correlation Analysis

Pearson correlation between all parameter pairs. Reports correlations with |r| > 0.7.

Correlation when a controller closes the loop

The most common way a historian correlation misleads is that **a control loop

already connects the two signals being correlated**. The loop guarantees a

correlation with exactly the sign the wrong hypothesis predicts, so the raw

number looks like confirmation of a mechanism that is not there.

1. Ask what the controller does before reading the correlation.

Write the loop down first: does the plant move B in response to A? If it does,

a correlation between A and B is expected under the null hypothesis and proves

nothing. Do not run the correlation at all until this question is answered.

2. Difference both series.

First differences remove a shared trend — seasonal, production ramp, or

instrument drift — which is the other manufacturer of spurious correlation.

What survives is genuine short-term coupling.

3. Use the sign of the lag to resolve direction.

This is the part that discriminates. Scan lags in both directions and ask

which signal leads:

| Pattern | Interpretation |

|---------|----------------|

| Driver leads by the physical transport time | The causal mechanism under test |

| Response leads the driver | The controller acting — the loop read backwards |

| Peak at zero lag only | Shared common cause, or sampling too coarse to separate |

| Flat across all lags | No coupling at the resolution available |

State the expected lag before looking. A transport short-circuit has a

transit time of minutes; a controller responds in seconds; a seasonal common

cause has no lag structure at all. If the observed peak does not sit where the

hypothesis requires, the hypothesis fails regardless of the correlation

magnitude.

Worked example. An investigation suspected that a warm discharge stream was

short-circuiting back to a cold intake, and correlated intake temperature

against discharge flow:

raw correlation, intake temperature vs discharge flow:   r = +0.37

Positive, moderate, right sign — it reads as confirmation. It is not. A

temperature controller opened the discharge valve when the intake ran warm, so

warm intake caused high flow rather than the reverse, and both series carried

the same seasonal ramp. Two mechanisms manufactured the correlation, neither of

them the hypothesis under test:

after differencing both series, every lag from -3 h to +3 h:   |r| < 0.10
                                                     peak:     r = +0.04

The hypothesis fails. The raw figure is dangerous precisely because it is

plausible rather than absurd.

A saturated controller is the mirror image of this failure: the loop that

acts fools the correlation, while a loop that has stopped acting lets

unchanged disturbances through and makes the process look like it has a new

external problem. Screen for it with neqsim-control-authority-screening

before accepting an external cause for "the controlled variable got worse".

STID Cross-Reference

Compares current (latest) values to STID design values.

Weather as Evidence (ambient/met-ocean conditions)

Some trips and performance shifts correlate with **weather at the equipment's

location**, not with anything in the historian: an air-cooler/fin-fan or a

gas-turbine driver losing margin on a hot day, a flare/dispersion or

fire-water-monitor case degraded by wind, a marine/topside motion event during

a storm, or a cold snap driving a hydrate/freeze-related valve or instrument

failure. When the hypothesis list includes an ambient-condition driver, pull

the historical weather for the equipment's location and the trip/event window

with the community neqsim-weather-data skill (WeatherDataService.get_historical

or the installation-weather-agent) and compare it against the equipment's

design/rated ambient envelope (ISO ambient for a gas turbine, design ambient

for an air cooler, etc.):

equipment's design/rated envelope (e.g. ambient above ISO plus derate margin).

for the site (compare against design_site_conditions's percentiles).

circumstantial evidence, not proof. Score it, do not promote it to a

confirmed cause without a NeqSim verification run (e.g. re-flash the gas

turbine or air cooler at the observed ambient condition and check the

predicted margin against what was actually seen).

separator/heat-exchanger/valve libraries above; add one as a custom

hypothesis (see Extending the Framework) when weather is a candidate driver.

Incident and Recurrence History (prior layer, not likelihood)

Records of earlier incidents on the same equipment, its sister equipment or the same

unit (company incident database, maintenance failure history, earlier RCA reports) say

how often a failure mode has occurred here. That is a reliability prior, so it

enters the prior stage of Prior × Likelihood × Verification, never the likelihood

(the current event's own signals) and never as a confirmed cause.

  1. Retrieve the history for the equipment tag, then the unit, over a stated window.

Use the installed incident-history evidence agent when the plugin provides one;

otherwise ask the user for the case list. Record no_access or not_applicable

in agent_workflow_plan.evidence_sources rather than silently skipping.

  1. Map each record to a hypothesis by failure mode (seal leak, bearing, fouling,

valve sticking, instrument fault, utility loss ...). Count only records that match

the failure mode, not every record on the unit. Keep the case numbers.

  1. Pass the counts to the analyzer before analyze():
rca.addIncidentHistoryPrior("Seal degradation", 3, "cases 1001, 1007, 1012");
rca.addIncidentHistoryPrior("Bearing", 1, "case 1020");

Each matching hypothesis prior is multiplied by 1 + 0.15 × count, capped at 1.75,

and a weak supporting evidence item with the case references is attached for the

audit trail. The likelihood score is not touched. Confidence is renormalised, so the

effect is relative. Unmatched names are logged, not applied.

  1. Rules that keep it honest:

failure mode and a comparable operating regime strengthen it; same unit alone does not.

cause as a hypothesis to test against the historian, not as the answer.

the likelihood term dominates once there is measured evidence.

(system coverage, reporting culture) in assumptions / data_gaps.

Simulation Verification

The verifier clones the process system, applies a perturbation matching each

hypothesis, runs the modified process, and compares both direction and normalized

response magnitude to the historian data pattern where a defensible KPI match exists.

Every likelihood and verification stage has an explicit EvaluationStatus:

UNKNOWN, EVALUATED, UNSUPPORTED, or FAILED. Unknown, unsupported, and failed

stages are neutral in confidence multiplication. An EVALUATED zero correctly drives

the raw hypothesis score to zero. Reports also expose verification coverage and

comparison count; do not present low-coverage verification as conclusive.

Perturbation Examples

| Hypothesis | Perturbation Applied |

|-----------|---------------------|

| Seal degradation | Reduce polytropic efficiency by 20% |

| Fouled impeller | Reduce polytropic efficiency by 15% |

| Surge condition | Reduce polytropic efficiency by 30% |

| Heat exchanger fouling | Increase outlet temperature by 10°C |

| Loss of cooling | Set outlet = inlet temperature |

Verification Score

The score (0-1) combines direction and the ratio of normalized simulated/observed

response magnitudes, then qualifies it by comparable-KPI coverage. Opposite directions

score zero. No defensible comparison yields UNKNOWN, not an invented midpoint score.

For operational decisions, attach a DiagnosisCase with the historian query/reference,

process-model ID and revision, operating mode, and known quality qualifications. It is

emitted in RootCauseReport.toJson() and MCP JSON.

Integration with Other Skills

| Skill | Integration |

|-------|------------|

| neqsim-autonomous-investigation | Upstream — when the symptom/driver is NOT given, run the observe→hypothesize→test loop and discover lead-lag relationships (RelationshipGraph) first, then feed the discovered candidate causes into RCA instead of a fixed symptom |

| neqsim-plant-data | Read historian data via tagreader API |

| neqsim-control-authority-screening | Rule out a saturated control valve before accepting an external cause for "the controlled variable got worse" |

| neqsim-heat-exchanger-fouling-assessment | Quantify exchanger degradation behind a cooling or duty shortfall hypothesis |

| enterprise-stid-document-retrieval (enterprise) | Retrieve STID design documents |

| neqsim-technical-document-reading | Extract design values from datasheets |

| neqsim-troubleshooting | Recovery strategies after diagnosis |

| neqsim-process-safety | Link RCA findings to barrier management |

| neqsim-pid-process-operations | P&ID context for equipment relationships |

| neqsim-weather-data (community) | Historical ambient temperature, wind and sea-state for the equipment's location and event window, when weather is a candidate driver |

When the symptom is unknown, do not ask the user "what should I look for?".

Chain neqsim-plant-data → neqsim-autonomous-investigation → this skill: the

investigation skill scans all tags for anomalies and lead-lag relationships, and

hands the candidate causes here for Bayesian scoring + simulation verification.

The one-call path is RootCauseAnalyzer.analyzeAutonomous() (or

analyzeAutonomous(tagToEquipment) to also classify relationships against the

flowsheet topology) — it infers the symptom with AnomalyScanner, discovers

relationships with RelationshipGraph, classifies them with CausalTopologyModel, and

adds matched anomaly/topology findings to hypothesis evidence before ranking. Ambiguous,

counter-flow, and common-cause edges remain visible but do not silently boost scores.

MCP Tool

Use runRootCauseAnalysis MCP tool for programmatic access:

{
  "tool": "runRootCauseAnalysis",
  "arguments": {
    "processJson": "{ ... NeqSim process JSON ... }",
    "equipmentName": "Compressor-1",
    "symptom": "HIGH_VIBRATION",
    "historianCsv": "timestamp,vibration,temperature\n0,3.5,150\n3600,3.8,152\n...",
    "designLimits": {"vibration": [null, 7.1], "temperature": [null, 180]},
    "simulationEnabled": true,
    "diagnosisCase": {
      "caseId": "trip-2026-07-19",
      "processModelId": "export-compression",
      "processModelRevision": "model-rev-7",
      "dataSources": {"PI": "query-id-42"}
    }
  }
}

Output Format

JSON Report Structure

{
  "equipment": "Compressor-1",
  "equipmentType": "compressor",
  "symptom": "HIGH_VIBRATION",
  "timestamp": "2026-06-15T10:30:00",
  "dataPointsAnalyzed": 2400,
  "parametersAnalyzed": 8,
  "diagnosisCase": {
    "caseId": "trip-2026-07-19",
    "equipmentName": "Compressor-1",
    "processModelId": "export-compression",
    "processModelRevision": "model-rev-7"
  },
  "summary": "Most likely root cause: Bearing wear (72.3% confidence)...",
  "hypotheses": [
    {
      "rank": 1,
      "name": "Bearing wear",
      "category": "MECHANICAL",
      "confidence": 0.7230,
      "confidenceScore": 0.7230,
      "priorProbability": 0.3000,
      "likelihoodScore": 0.8500,
      "verificationScore": 0.8500,
      "likelihoodStatus": "EVALUATED",
      "verificationStatus": "EVALUATED",
      "verificationCoverage": 0.75,
      "verificationComparisonCount": 3,
      "evidence": [
        {
          "parameter": "vibration_mm_s",
          "observation": "increasing trend...",
          "strength": "STRONG",
          "source": "historian-trend",
          "supporting": true,
          "weight": 3.0,
          "sourceReference": "PI:COMP-100-VIB"
        }
      ],
      "recommendedActions": ["Inspect bearings", "Check lubrication system", "Review vibration spectrum"]
    }
  ]
}

Extending the Framework

Custom Hypothesis Libraries

HypothesisGenerator gen = new HypothesisGenerator();

// Register custom hypotheses for a specific equipment type and symptom
gen.register("compressor", Symptom.HIGH_VIBRATION,
    new Hypothesis.Builder()
        .name("liquid_ingestion")
        .description("Liquid droplets entering compressor causing vibration")
        .category(Hypothesis.Category.PROCESS)
        .priorProbability(0.1)
        .addExpectedSignal("scrubberLevel|separatorLevel|level",
            Hypothesis.ExpectedBehavior.HIGH_LIMIT, 3.0,
            "High upstream scrubber level supports liquid ingestion")
        .addExpectedSignal("vibration|flowInstability", Hypothesis.ExpectedBehavior.STEP_CHANGE,
            2.5, "Liquid ingestion normally creates a sudden vibration/flow disturbance")
        .addAction("Check scrubber level")
        .addAction("Inspect inlet piping for liquid accumulation")
        .build());

RootCauseAnalyzer rca = new RootCauseAnalyzer(process, "Compressor-1");
rca.setHypothesisGenerator(gen);

Loading Evidence from CSV

EvidenceCollector collector = new EvidenceCollector();
collector.loadFromCsv("path/to/historian_export.csv");
// CSV format: timestamp, param1, param2, ...

Integrated Workflow: Tagreader + STID + NeqSim Simulation

The RCA framework is designed to consume data from three sources simultaneously.

Below is the canonical workflow combining all three.

Step 1: Retrieve Historian Data via Tagreader

Use the neqsim-plant-data skill to pull time-series from the plant historian

(OSIsoft PI or Aspen IP.21) and convert to the CSV format RCA expects.

# Python — pull tagreader data and format for RCA
import pandas as pd

# Tag mapping from STID/P&ID documentation
tag_map = {
    "VT-101.PV": "vibration_mm_s",
    "TT-101.PV": "discharge_temp_C",
    "PT-101.PV": "suction_pressure_bara",
    "FT-101.PV": "mass_flow_kg_hr",
    "JI-101.PV": "power_kW",
}

# Read from historian (tagreader API or CSV export)
df = pd.read_csv("historian_export.csv")
df = df.rename(columns=tag_map)

# Convert to CSV string for RCA input
historian_csv = df.to_csv(index=False)

Step 2: Extract STID Design Data

Use the enterprise-stid-document-retrieval (enterprise) and neqsim-technical-document-reading skills

to extract design limits and reference values from STID datasheets.

# STID data extracted from datasheet DS-K-101 rev.C
stid_data = {
    "designFlow_kg_hr": "50000",
    "designEfficiency_pct": "82",
    "designDischargePressure_bara": "45.0",
    "maxVibration_mm_s": "7.1",
    "maxDischargeTemp_C": "180",
    "bearingType": "tilting_pad",
    "lastInspectionDate": "2024-06-15",
    "tagreaderSource": "PI Web API: VT-101, TT-101, PT-101, FT-101, JI-101",
    "sourceReference": "STID DS-K-101 rev.C and PI trend 2025-06-01 to 2025-06-15",
}

Step 3: Build Process Model and Run RCA

import json

RootCauseRunner = ns.JClass("neqsim.mcp.runners.RootCauseRunner")

rca_input = {
    "processJson": json.dumps(process_json),
    "equipmentName": "Compressor-1",
    "symptom": "HIGH_VIBRATION",
    "historianCsv": historian_csv,
    "simulationEnabled": True,
    "designLimits": {
        "vibration_mm_s": [None, 7.1],
        "discharge_temp_C": [None, 180.0],
        "mass_flow_kg_hr": [40000, 60000],
    },
    "stidData": stid_data,
}

result = json.loads(str(RootCauseRunner.run(json.dumps(rca_input))))
print(f"Top cause: {result['hypotheses'][0]['name']} "
      f"({result['hypotheses'][0]['confidence']:.1%})")

Step 4: Trace Evidence Back to Source

Every evidence item in the RCA output carries a sourceReference field

linking to the original tagreader tag or STID document. This enables

auditable traceability from diagnosis to plant data:

hypothesis.evidence[0].sourceReference → "PI:VT-101.PV trend analysis"
hypothesis.evidence[1].sourceReference → "STID DS-K-101: design vibration limit 7.1 mm/s"

MCP Example Catalog

Three pre-built examples demonstrate the integration:

| Example | Equipment | Symptom | Data Sources |

|---------|-----------|---------|-------------|

| compressor-high-vibration | Compressor | HIGH_VIBRATION | PI historian, STID datasheet |

| separator-liquid-carryover | Separator | LIQUID_CARRYOVER | PI historian (demister dP, level), STID datasheet |

| hx-fouling | Heat Exchanger | FOULING | IP.21 historian (outlet temp, shell dP), vendor datasheet |

Access via MCP: neqsim://examples/root-cause/separator-liquid-carryover

Post-Trip Analysis: Detect → Trace → Restart

After the RCA framework identifies what went wrong, the post-trip analysis

classes answer three follow-up questions:

  1. What tripped? — TripEventDetector monitors process parameters against thresholds
  2. How did the failure propagate? — FailurePropagationTracer traces cascade through topology
  3. How do we restart? — RestartSequenceGenerator produces an optimised restart plan

Classes

| Class | Package | Purpose |

|-------|---------|---------|

| TripEvent | neqsim.process.diagnostics | Immutable data record for a detected trip (equipment, parameter, threshold, actual, severity) |

| TripEventDetector | neqsim.process.diagnostics | Monitors equipment parameters and fires TripEvent when thresholds are breached; supports high/low trips, deadband, first-trip-only mode |

| FailurePropagationTracer | neqsim.process.diagnostics | Uses ProcessTopologyAnalyzer + DependencyAnalyzer to BFS-trace how a failure cascades downstream/upstream; produces PropagationResult with PropagationStep list |

| RestartStep | neqsim.process.diagnostics.restart | Single step in a restart sequence (equipment, action, precondition, delay, priority) |

| RestartSequenceGenerator | neqsim.process.diagnostics.restart | Generates topologically-ordered restart plans with safety checks, root-cause verification, utility confirmation, equipment-specific ramp-up actions, and system verification |

Java Quick Start

// ── Step 1: Detect trip ──
TripEventDetector detector = new TripEventDetector(processSystem);
detector.addTripCondition("Compressor-1", "pressure", 150.0, true,
    TripEvent.Severity.HIGH);
List<TripEvent> trips = detector.check(simulationTime);

// ── Step 2: Trace propagation ──
FailurePropagationTracer tracer = new FailurePropagationTracer(processSystem);
FailurePropagationTracer.PropagationResult propagation = tracer.trace(trips.get(0));
String propagationSummary = propagation.toTextSummary();

// ── Step 3: Generate restart plan ──
RestartSequenceGenerator generator = new RestartSequenceGenerator(processSystem);
generator.setCustomRampUpTime("Compressor-1", 300.0);  // 5 min ramp-up
RestartSequenceGenerator.RestartPlan plan = generator.generate(propagation);
String restartPlanReport = plan.toTextReport();
String json = plan.toJson();

Python (Jupyter)

TripEventDetector = ns.JClass("neqsim.process.diagnostics.TripEventDetector")
TripEvent = ns.JClass("neqsim.process.diagnostics.TripEvent")
FailurePropagationTracer = ns.JClass("neqsim.process.diagnostics.FailurePropagationTracer")
RestartSequenceGenerator = ns.JClass("neqsim.process.diagnostics.restart.RestartSequenceGenerator")

detector = TripEventDetector(process)
detector.addTripCondition("Compressor-1", "pressure", 150.0, True, TripEvent.Severity.HIGH)
trips = detector.check(0.0)

tracer = FailurePropagationTracer(process)
propagation = tracer.trace(trips[0])
print(str(propagation.toTextSummary()))

generator = RestartSequenceGenerator(process)
plan = generator.generate(propagation)
print(str(plan.toTextReport()))

TripEventDetector Features

FailurePropagationTracer Features

RestartSequenceGenerator Features

Identified Dynamics from Plant Data (TimeSeriesAnalysis)

Two kinds of evidence from neqsim-dynamic-model-identification (community skill; equinor/TimeSeriesAnalysis through pythonnet) strengthen or weaken a hypothesis:

Worked example: NeqSim x TimeSeriesAnalysis notebook.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.