Chapter 4. Working with Models

Table of Contents

1. Introduction to models
1.1. The different model objects in JModelica.org
2. Compilation
2.1. Simple FMU-ME compilation example
2.2. Simple FMU-CS compilation example
2.3. Compiling from libraries
2.4. Compiler settings
2.4.1. compile_fmu arguments
2.4.2. Compiler options
2.5. Compiling in a separate process
2.6. Compilation in more detail
2.6.1. Creating a compiler
2.6.2. Source tree generation and flattening
2.6.3. Code generation
3. Loading models
3.1. The FMU
3.2. Loading an FMU
3.3. Transferring an OptimizationProblem
4. Changing model parameters
4.1. Setting and getting parameters
5. Debugging models
5.1. Compiler logging
5.2. Runtime logging
5.2.1. Setting log level
5.2.2. Interpreting logs from FMUs produced by JModelica.org
5.3. Getting HTML diagnostics