Installing Windows Subsystem for Linux (WSL)

To support the generation of Functional Mock-up Units (FMUs) that contain executable code for both Windows and Linux platforms, you can install WSL on a Windows 11 computer.

If you have WSL installed, you can also perform noninteractive simulation of Dymola Behavior Modeling Modelica models using the WSL platform. An additional value is that you can (noninteractively) simulate, on Windows machines, Dymola Behavior Modeling Modelica models that contain FMUs that are only provided with the Linux binaries.

  1. In Windows, open a Command Prompt in Administrator mode. Install WSL and the default Linux Ubuntu by the following command:

    wsl --install -d Ubuntu
    Note: For a general description about installing WSL, see https://docs.microsoft.com/en-us/windows/wsl/install.

  2. You may be asked to restart your computer to complete the installation.
  3. Create your user account when prompted.
  4. Update your Linux system with the latest patches and install the C compiler and other tools that Dymola Behavior Modeling requires by the commands:

    sudo apt update
    sudo apt upgrade -y
    sudo apt install gcc g++ zip dos2unix

  5. To ensure that WSL can change file permissions, you must edit the file /etc/wsl.conf so it has the following two lines (or create that file if it does not exist):

    [automount]
    options = "metadata"

    Important: Restart WSL or restart the computer after any changes of this file.

What's Next
After installation, you must activate the use of WSL. You do this from Me > Preferences > App Preferences > 3D Modeling > Systems Modeling and Execution > Dymola Behavior Modeling , the Compiler tab. For more information, see Desktop Apps Preferences Guide: Compiler.