The signed flow trace gives a net -9.714e-17 kg over 4 s, using the trapezoidal rule between saved samples. The smallest and largest reported rates are -2 kg/s and 2 kg/s. Check the positive flow direction in the model before using the sign to describe delivery or return.
The system being tested
Lawrence Berkeley National Laboratory publishes the Buildings test named PowerLaw_dp_DerivativeCheck2. The source file places it under Fluid, Flow Models. We used the 101 stored values for m_flow over the interval -2 to 2 seconds. This is a simulated test with specified inputs and boundaries.
The component declarations name m_flow (Mass Flow Rate), m_flow_comp (Mass Flow Rate), der_m_flow (Real), der_m_flow_comp (Real). The source declares k = 0.5, m_flow_turbulent = 0.1. These identifiers can be found in the linked model definition. Check how they connect to the plotted quantity before comparing it with a field meter or a differently named controller tag.
Compare the recorded channels
At 1.84 s, m_flow is 1.6928 kg/s and m_flow_comp is 1.6928 kg/s. Subtracting the second value from the first gives 4.768e-07 kg/s. This is their largest recorded absolute separation. A difference between an inlet and an outlet, or between a command and a response, need not be a measurement error.

Reproduce the calculation
Integrating the signed rate over 4 seconds gives a net 0 kg. This estimate averages neighbouring stored rates and multiplies by their time separation. Reverse flow reduces the net total. If a process requires gross throughput, calculate forward and reverse transfers separately at the appropriate boundary.
The worked table retains the first and last points, the primary maximum and minimum, the largest adjacent change and a spread of checkpoints across the run. Rounding is for presentation. Use the full linked reference series to repeat integrals or compare events between checkpoints. The archived sampling interval need not match the simulation solver’s internal step.
Worked data
Simulation time (s) | m_flow (kg/s) | m_flow_comp (kg/s) |
|---|---|---|
-2 | -2 | -2 |
-1.96 | -1.9208 | -1.9208 |
-1.2 | -0.72 | -0.72 |
-0.4 | -0.0790306 | -0.07903067 |
0.4 | 0.0790306 | 0.07903033 |
1.2 | 0.72 | 0.7199996 |
2 | 2 | 2 |
What to check on site
Identify which part of the system the selected output represents, and retain the surrounding boundary conditions. Compare the same event and operating duty in both records. Record the equipment configuration if a later change could alter the test result.
State the operating duty, measurement location and expected tolerance before evaluating a local trend. Re-run the comparison with the installed controls and instruments during a representative operating period. Retain the native units and the raw export so that a later change in software or presentation can be investigated.
Units in the source model
The component declarations identify the scale of the exported variables. In this run, m_flow_comp uses kg/s. Keep the exact channel name and unit together when exporting data to a historian. Read the component definition.
Data and source model
Published model and component definitions. Numerical reference series. Simulation and plot commands. Download the worked checkpoints in CSV format.

