Location: LBNL, Building 90, Room 3122

Date: Friday June 3, 2016, and Monday June 13, 2016.

Friday June 3

Part 0: Logistics (10-10:30am) Review Agenda (10 minutes)
  1. Be able to navigate Dymola, build your own model, incorporate libraries, understand capabilities
  2. Explain mix of guided/self-guided (can take breaks whenever want during self-guided)
Setup (20 minutes)
Get Dymola loaded and open with buildings library on everyone’s computer
Part 1: Navigating Dymola (10:30am-11:45am) Explore Modeling interface (20 minutes)
  1. Left Menu: Packages: view what you’ve already loaded.
  2. Scroll to Modelica.Thermal.HeatTransfer.Examples.TwoMasses
  3. Double click on each element to see what there is.
  4. Use top right menu bar options to change view. See equations. See info, use arrows to go up/down in hierarchy
  5. Test: can everyone get the equations page showing for mass2?
    Note that you didn’t have to isolate the dependent variable on the left hand side.
Running simulation: (20 minutes)
  1. Go to simulation tab
  2. Press simulate
  3. On left will be things you can display.
  4. Figure out how to plot temperatures of both masses as a function of time.
  5. Figure out how to change the capacity of mass 1 to 100, and what its temperature is at time 1 by resimulating the model.
  6. Right click on plot window. Change units to milliseconds
  7. Right click to show the results in a table window.
  8. Right click in the variable browser on the model name to export results to file.
Try yourself: (30 minutes)
  1. Open Modelica.Electrical.Analog.Examples.ShowVariableResistor.
  2. Open the parameter windows of the components and open the components.
  3. Simulate example.
  4. Plot various variables of interest.
Lunch (11:45-12:45)
Part 2: Make your own model (12:45-4:00) Questions from the morning (10 min)
Discuss how to create a new model (15 min)
  1. How this fits in with packages and libraries.
  2. Where things are stored
Making your own model (1 hr):
  1. Create a wind turbine that takes as input the wind speed and computes the generated power.
  2. Vectorize your turbine to create a wind turbine farm.
Build your own larger model: boiler (1.5 hr)
Follow instructions at: http://simulationresearch.lbl.gov/modelica/releases/latest/help/Buildings_Examples_Tutorial_Boiler.html
Part 3: Wrap up (4-4:30) Questions from afternoon (10 min)
Resources (10 min)
  1. http://simulationresearch.lbl.gov/modelica/userGuide/gettingStarted.html
  2. modelica-intro.pdf
Plan for the next half-day (10 min)
  1. You go home and try to use Modelica for your own purposes.
  2. We will not have a planned agenda. This will be like "office hours" where you can bring your own model and questions. We will use the time to debug, enhance and explore models and functionalities of Modelica.

Monday June 13, 2016

Part 4: Question, answer and hands-on training (1:00-4:00) Bring your own model and questions.
This time will be used to debug models and answer questions.


Prior to the workshop, install Dymola 2016 FD01 and the Modelica Buildings library as described below.

Dymola 2016 FD01


Install Dymola 2016 FD01 trial version from Dassault. The instructions to access the non-trial license for the training will be sent by email.

Install a C/C++ compiler such as Microsoft Visual Studio Express 2013 from Microsoft.


To install the Linux 64 bit version of Dymola, proceed as follows:

  1. Register at the link at Dassault.
  2. Download Dymola 64 bit.
  3. Follow the installation instructions.

Modelica Buildings library

To install the Buildings library version 3.0,

  1. download Buildings 3.0.0,
  2. unzip the file, and to test the installation after you updated the license as described in the email,
  3. open with Dymola the file Buildings 3.0.0/package.mo,
  4. open the model Buildings.Examples.Tutorial.SpaceCooling.System3, and
  5. select from the pull-down menu ‘‘Commands->Simulate and plot’’. This will simulate the model and generate a plot.


Dymola license

Some users had the error message ‘‘Error connecting to Dymola license server’’ when they were connected to VPN. If this is the case,

  1. disconnect from vpn, and
  2. in Dymola, enter the port number 27000 under ‘‘Help -> License -> Setup -> Port (optional).’’.

For the server name, please see the email as we are not allowed to share it publicly.

Failed compilation on Windows

Some users could not compile and simulate the example. If this is the case, try to adjust the path to your compiler under ‘‘Simulation-> Setup -> Compiler’’.

Site access

The workshop will be held onsite at LBNL, in building 90, room 3122.

All attendees will automatically be added to the LBNL security access list if they have registered for this workshop. We can only accommodate 15 registrants.

Berkeley Lab shuttle service

The Blue Route Shuttle takes you directly to building 90.

The Berkeley Lab Blue Route shuttle runs frequently from the Downtown Berkeley BART station to the lab (Uphill). It picks up passengers from various stops in downtown Berkeley. For locations, please refer to http://www2.lbl.gov/Workplace/Facilities/Support/Busses/off-site_blue.html#sched.

Note that the lab shuttle stop closest to BART is located at the corner of Addison Street and Shattuck Avenue, on the same side as (and next to) the Bank of America.

The shuttle stops will all be marked with the Berkeley Lab shuttle bus sign.

A site Map to the location is at http://www2.lbl.gov/Workplace/lab-site-map.html.

An interactive map to the location is at http://map.lbl.gov/#UMAP_2012091840117%7CBLD_2012092167088.

For detailed information including schedules, please see LBNL Shuttle Service at http://www2.lbl.gov/Workplace/Facilities/Support/Busses/off-site_blue.html#sched, or http://www.nextbus.com/#!/lbl/blue/up/bart.

Important: You are required to show a Shuttle Pass, along with a government issued photo ID (Drivers License or Passport) in order to access the lab.