Desk summary
- 01DO-331 defines model simulation as exercising a model’s behaviour with a model simulator, which may or may not execute code representative of the target code. Simulation is not testing: testing executes the real Executable Object Code (EOC).
- 02Simulation can be a formal means of compliance for some model verification objectives — compliance with the requirements above, accuracy and consistency, verifiability, algorithm accuracy (MB.6.8.1).
- 03When used for credit, simulation produces new verification data — simulation cases, procedures and results — and three new objectives apply in addition: cases correct, procedures correct, results correct and discrepancies explained (MB.A-3 MB8–MB10, MB.A-4 MB14–MB16, MB.A-7 MB10–MB12).
- 04Simulation cannot satisfy standards conformance, traceability, target compatibility or partitioning. DO-331 also opens only a narrow, heavily conditioned door (MB.6.8.2) to using simulation toward EOC testing objectives; testing on the target is never eliminated.
- 05If simulation results are relied on without other confirmation, the simulator is a verification tool and its qualification must be addressed under DO-330.
Intuition
Wind tunnel vs flight test
A wind-tunnel test on a scale model is real, repeatable, cheap evidence about the aerodynamic design — and nobody certifies an aircraft without flight test. Model simulation is the wind tunnel: excellent evidence that the design behaves as the requirements say, run thousands of times before the hardware exists. Testing the EOC on the target is the flight test: it is about the artifact that will actually fly, on the processor, compiler and RTOS that will actually run it.
Definitions and the line between simulation and testing
In DO-331’s glossary, model simulation is the activity of exercising a model’s behaviour using a model simulator, and a model simulator is a device, program or system that executes a model to demonstrate its behaviour for verification or validation — with an explicit note that the simulator may or may not be executing code representative of the target code. That note is the crux: an interpreted desktop simulation, a simulation running generated code compiled for the host (software-in-the-loop, SIL), and generated code running on a target-representative processor (processor-in-the-loop, PIL) give very different assurance about the eventual EOC.
Simulation versus testing
Model simulation
Testing
Simulation for verification of the model (MB.6.8.1)
The primary use DO-331 envisages is producing repeatable evidence that a model complies with the requirements it was developed from. Simulation can then be credited toward specific review-and-analysis objectives of the model. It is never sufficient on its own for the whole table: reviews and analyses complete the picture.
Where simulation can and cannot contribute (model verification)
| Objective family | Simulation can contribute? | Comment |
|---|---|---|
| Compliance with the requirements above the model | Yes | Requirements-based simulation cases; model coverage shows how complete they are |
| Accuracy and consistency | Yes, partly | Shows behaviour on exercised paths; complement with design-error analysis for overflow, division by zero, dead logic |
| Verifiability | Yes | Demonstrates each behaviour can be stimulated and observed |
| Algorithm accuracy | Yes | Comparison with analytical or reference results, especially at discontinuities |
| Architecture compatibility and consistency (design models) | Partly | Integration simulations of several components; review still needed |
| Compatibility with target computer | No | Requires target knowledge — review, analysis, target testing |
| Conformance to standards | No | Rule checking and review |
| Traceability | No | Trace data and review |
| Partitioning integrity | No | Review and analysis of the partitioning scheme |
Note
The additional objectives are additional
The annex notes attached to Tables MB.A-3 and MB.A-4 led some readers to think that reviewing simulation cases, procedures and results could stand in for the underlying objective. The SC-205/WG-71 topic paper FTP 1002 clarifies the opposite: when simulation is used as a means of compliance, the simulation objectives must be met in addition to the original objectives, and the reviews must show that the simulation really fulfils them.
Simulation cases, procedures and results
Simulation used for credit is treated exactly like testing in terms of data discipline. Simulation cases state the inputs, initial conditions, expected results and pass/fail criteria (including numerical tolerances), and trace to the requirements they verify. Simulation procedures state how to run them: harness, model and library versions, configuration set, simulator version and settings, stimulus files, plant or environment models if any. Simulation results record what happened, compared against expectations, with every discrepancy explained. These live in the verification cases and procedures and the verification results data, under configuration management.
Building a creditable simulation campaign
Plan the credit
In the SVP, name the objectives simulation will support, the models concerned, the simulator and its version, the environment, and the qualification decision for the simulator.
Write cases from requirements
Derive normal-range and robustness cases from the requirements above the model — never from the model structure. Include boundaries, mode transitions, failure responses and timing.
Define procedures and tolerances
Harness, stimulus, initial state, comparison tolerances with justification (why ±0.01 deg is acceptable), and the exact configuration.
Review cases and procedures
Independent review for correctness and requirement coverage — this is objective MB14/MB15 (or MB8/MB9 at HLR level).
Run and review results
Execute under CM, review results against expectations, explain every discrepancy (objective MB16 / MB10).
Measure model coverage
Analyse what the cases did not exercise and resolve each gap (Model Coverage Analysis).
Reuse on the target
Run the same cases as tests against the EOC (SIL, PIL, then target) so simulation and test evidence reinforce each other.
Worked example
Pitch-rate command step
Case: from trimmed level flight at a stated airspeed and altitude, apply a stick step equivalent to 5 deg/s pitch-rate command; expected: commanded rate limited to the HLR rate limit, rate onset shaping per the HLR filter, no overshoot of the surface command limit, integrator held within its clamp. Procedure: open-loop harness driving the control law design model with recorded sensor inputs (no plant model needed for a requirement stated at the law’s boundary), fixed step at the target rate, target data types, tolerance ±0.05 deg/s justified from the HLR. Result: time histories archived with the model checksum, reviewed, discrepancies explained.
Pitfall
Closed-loop ‘it flies nicely’ is not a simulation case
Engineering simulation with an aircraft model and a pilot stick is invaluable for design, but a time history judged ‘looks good’ is not a requirements-based simulation case. Credit needs stated expected results traceable to requirements and objective pass/fail criteria. If a plant model is part of the procedure, its fidelity becomes part of the argument and must be justified too.
Simulation toward EOC objectives (MB.6.8.2)
DO-331 also addresses using simulation in support of testing objectives (Table MB.A-6 for HLR compliance and robustness, Table MB.A-7 for test coverage). The conditions are demanding: the simulation must use the very same design model from which the source code and EOC were produced; the plans must state exactly which testing and coverage objectives, and which requirements, are claimed through simulation, recognising that some must be shown in the target environment; and the applicant must analyse and justify the equivalence of — and differences between — the simulation environment and the target environment, and between any code executed in simulation and the target EOC. If model coverage from such simulation is used toward structural coverage, the code used in simulation must be shown equivalent to the code built for the target.
Model-based development
The bottom line on EOC testing
Simulation does not replace testing of the Executable Object Code on the target. Compatibility of the EOC with the target computer can only be shown on the target, and everything that depends on the compiler, processor arithmetic, timing, memory, interrupts and the RTOS lives outside the model. Many programs — including the reference helicopter project, whose PSAC says simulation will not replace software integration, hardware/software integration or EOC testing — claim no EOC credit at all from simulation and instead reuse the simulation cases as target tests.
What the auditor looks for
Questions on simulation credit
Which objectives exactly are claimed by simulation, at which level (MB.A-3, MB.A-4, MB.A-6/7)? Where are the simulation cases, procedures and results, and who reviewed them? Was the simulated model identical (checksum) to the one used for code generation? What tolerances were used and why? Is the simulator qualified — and if not, what independent evidence confirms its results? What in the target environment is not represented, and where is it tested?
The simulator as a tool
A simulator whose results are used to satisfy an objective without being otherwise confirmed is a verification tool in DO-330 terms. Typically that is criteria 3 (it could fail to detect an error) and TQL-5; it rises to criteria 2 / TQL-4 at Levels A and B if its use also justifies reducing other verification or development activities. Some toolsets come with qualification kits for the simulation and test-execution engine. The alternative is to show that the simulator’s output is verified another way — most commonly, by executing the same cases as tests on the EOC and comparing results, so a simulator error would be exposed downstream. Whatever the choice, the plans must give the rationale.
Simulator qualification decision (illustrative)
| How simulation is used | Credit claimed | Simulator qualification |
|---|---|---|
| Design exploration and debugging | None | Not needed |
| Developing cases later run on target EOC; model coverage collected informally | None on the model | Not needed (reference-project approach) |
| Formal means of compliance for MB.A-4 compliance/algorithm objectives, results not otherwise confirmed | Yes, for those objectives | Verification tool — usually TQL-5 |
| Toward EOC testing or structural coverage objectives (MB.6.8.2) | Yes, for testing objectives | Qualification plus equivalence analysis of environments and code; agree with authority early |
Practitioner tip
Make the simulation configuration part of the baseline
Record simulator version, solver settings, configuration set, library versions, stimulus files and harnesses in the environment configuration index, and hash the model. When a finding appears three years later, you must be able to re-run the exact simulation that produced the credited result.
Self-check
A team simulates its design model on a desktop and wants to claim ‘EOC is compatible with the target computer’ (Table MB.A-6) from it. What is the right response?