The saved xor1.y signal is high at 45 of 101 checkpoints and changes state between adjacent checkpoints 7 times. The first recorded change is from 0 at 0.75 s to 1 at 0.8 s.

What the reference test measures

The Buildings model named Xor comes from Lawrence Berkeley National Laboratory. The saved result covers simulation time 0 to 5 seconds. Industry Applied extracted 101 checkpoints for xor1.y and kept the original signed values. The regular output spacing is 0.05 seconds. The solver may take different internal steps.

The model definition identifies xor1 (Xor), booPul1 (Pulse), booPul2 (Pulse). These component names let a reader trace the plotted tags to their owning blocks before reproducing the result.

Settings to preserve when repeating the experiment

The published test declares booPul1.width = 0.5, booPul1.period = 1.5, booPul2.width = 0.5. Those numbers use the units and component definitions in the linked model. Start with the declared configuration when reproducing the reference result, then vary one setting at a time. Changing the input waveform and the component response in the same comparison makes it difficult to identify the source of a difference.

Reading the two channels

At 0 seconds, xor1.y is 0 and xor1.u1 is 1. Subtracting the second channel from the first gives -1 encoded state, the largest absolute separation on their common saved grid. The channels have distinct roles in the model, so this difference describes the two traces and is not a calibrated instrument error.

Exclusive-or disagreement. In the simulated Xor case, xor1.y ranges from 0 to 1 encoded state over 5 seconds.
Exclusive-or disagreement. In the simulated Xor case, xor1.y ranges from 0 to 1 encoded state over 5 seconds. Figure by Industry Applied.

Reproducing the largest recorded change

Between the stored points at 0.75 and 0.8 seconds, xor1.y changes from 0 to 1. Subtracting the earlier reading gives +1 encoded state. This interval contains the largest absolute point-to-point change in the saved primary channel. A faster excursion followed by recovery could fit entirely between the two records.

State changes are bracketed by saved output times. Counting high samples is not a pulse-width measurement. A brief transition between output points can be invisible in the saved Boolean trace.

Worked data

Simulation time (s)

xor1.y (state)

xor1.u1 (state)

0

0

1

0.75

0

1

0.8

1

0

1.25

1

0

2.5

1

0

3.75

1

1

5

1

1

Applying the result to an operating site

Exclusive-or asserts when the two states differ. That is useful for comparing sensor flags, but a timing offset between otherwise correct signals also produces disagreement. Align acquisition timestamps before concluding that one channel is faulty.

For an Australian monitoring project, write the intended sample interval, timestamp convention, tag units and missed-update policy into the acceptance record. Re-run this comparison on the installed signal path and retain the raw export so a later dashboard change can be checked against the same baseline.

Model and data sources

Model definition. Original numerical reference series. Simulation and plotting script. Source project. Download the worked checkpoints as CSV.

Cover photograph by ed br, via Pexels. The photograph illustrates the subject. Industry Applied produced the figure and calculations from the linked source.