SystemModeler Archive (.sma)
[Experimental]
Background & Context

-
- System model files that include model dependencies.
- File format created by Wolfram Research, Inc.
- Imported result data is represented as a SystemModel.
Import & Export

- See the following reference pages for full general information:
-
Import, Export import from or export to a file CloudImport, CloudExport import from or export to a cloud object ImportString, ExportString import from or export to a string ImportByteArray, ExportByteArray import from or export to a byte array
Import Elements

- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements
Options

- Export option:
-
"IncludedLibraries" Automatic libraries to include in file - Possible values for "IncludedLibraries" are:
-
Automatic automatically decide what to include None include no dependencies All include all dependencies "User" include dependencies not shipped with the system {lib1,lib2,…} include the explicit libraries libi
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Import a total model from an archive:
In[1]:=1

✖
https://wolfram.com/xid/0ev7ehu1-b4lvyk
Out[1]=1

Examine the model's equations:
In[2]:=2

✖
https://wolfram.com/xid/0ev7ehu1-ezrg2s
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0ev7ehu1-i0zv5r
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0ev7ehu1-ce1mfj
Out[4]=4

Export a model with dependencies:
In[1]:=1

✖
https://wolfram.com/xid/0ev7ehu1-ukfii1
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0ev7ehu1-evrc7w
Out[2]=2

Simulate for 10 seconds and plot the first stored plot in the model:
In[3]:=3

✖
https://wolfram.com/xid/0ev7ehu1-fz9neg
Out[3]=3

Clean up by deleting the new file and model:
In[4]:=4

✖
https://wolfram.com/xid/0ev7ehu1-pv7qdp
Export Options (1)
"IncludedLibraries" (1)
Export a model without any dependencies:
In[1]:=1

✖
https://wolfram.com/xid/0ev7ehu1-2ubor8
Out[1]=1

The resulting file size is typically small:
In[2]:=2

✖
https://wolfram.com/xid/0ev7ehu1-un0h5x
Out[2]=2

Including all dependencies, including system libraries, typically results in a large file:
In[3]:=3

✖
https://wolfram.com/xid/0ev7ehu1-7f3dbp
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0ev7ehu1-51mljh
Out[4]=4

In[5]:=5

✖
https://wolfram.com/xid/0ev7ehu1-cswq3h