<commit_before>---

This work is licensed under the Creative Commons CC0 License

---

# Bring Back MC-3020 Persistence
### xtUML Project Implementation Note

### 1. Abstract

Persistence has fallen into disrepair.  This note documents fixing it and
bringing it up to date with the other features and source code of the model
compiler.

### 2. Document References

<a id="2.1"></a>2.1 [10116](https://support.onefact.net/issues/10351) Bring back MC-3020 persistence  
<a id="2.2"></a>2.2 [xtuml models assoc_unformal](https://github.com/xtuml/models/tree/master/VandMC_testing/mctest/assoc_unformal) `assoc_unformal` test model  
<a id="2.3"></a>2.3 [MC-3020 User Guide](https://xtuml.github.io/docs/mcug/) BridgePoint Model Compiler User Guide  

### 3. Background

Persistence of instances and links is a feature that was added to MC-3020
long ago.  The requirements at that time match the requirements for this
present work.  The first requirement is to persist instance data so that
it survives across power cycles (down and up).  The instances that are
present when power is removed are automatically restored when power returns.
Links between persistent instances are also saved and restored to and from<commit_msg>job:  #10351  Fixed typo in note.<commit_after>---

This work is licensed under the Creative Commons CC0 License

---

# Bring Back MC-3020 Persistence
### xtUML Project Implementation Note

### 1. Abstract

Persistence has fallen into disrepair.  This note documents fixing it and
bringing it up to date with the other features and source code of the model
compiler.

### 2. Document References

<a id="2.1"></a>2.1 [10351](https://support.onefact.net/issues/10351) Bring back MC-3020 persistence  
<a id="2.2"></a>2.2 [xtuml models assoc_unformal](https://github.com/xtuml/models/tree/master/VandMC_testing/mctest/assoc_unformal) `assoc_unformal` test model  
<a id="2.3"></a>2.3 [MC-3020 User Guide](https://xtuml.github.io/docs/mcug/) BridgePoint Model Compiler User Guide  

### 3. Background

Persistence of instances and links is a feature that was added to MC-3020
long ago.  The requirements at that time match the requirements for this
present work.  The first requirement is to persist instance data so that
it survives across power cycles (down and up).  The instances that are
present when power is removed are automatically restored when power returns.
Links between persistent instances are also saved and restored to and from
{'fraction_non_alphanumeric': 0.08813972380178717, 'fraction_numerical': 0.03614947197400487, 'mean_word_length': 4.366013071895424, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5757744', 'n_tokens_mistral': 760, 'n_tokens_neox': 701, 'n_words': 304}