Dymola Dynamic Modeling Laboratory. Dymola Release notes

Similar documents
FMI Kit for Simulink version by Dassault Systèmes

WinView. Getting Started Guide

Tutorial 3: Using the Waveform Viewer Introduces the basics of using the waveform viewer. Read Tutorial SIMPLIS Tutorials SIMPLIS provide a range of t

FMI WORKSHOP. INCOSE International Workshop, Los Angeles, CA, Contents. Introduction

The Mathcad Workspace 7

Logger Pro 3. Quick Reference

Dymola Dynamic Modeling Laboratory

Session 3 Introduction to SIMULINK

MapleSim User's Guide

Piping & Instrumentation Diagrams

Selective Space Structures Manual

Thermo Scientific. GRAMS Envision. Version 2.1. User Guide

OpenForms360 Validation User Guide Notable Solutions Inc.

Numbers Basics Website:

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Thermal Transient Test Installation and Operating Manual

Piping & Instrumentation Diagrams

GET TO KNOW FLEXPRO IN ONLY 15 MINUTES

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

Dymola Dynamic Modeling Laboratory. Dymola Release Notes

User's Guide. For CarChip and CarChip E/X 8210 & 8220

for Q-CHECKER Text version 15-Feb-16 4:49 PM

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010

Dymola Dynamic Modeling Laboratory

ChemSense Studio Client Version 3.0.7

Tutorial 1 Getting Started

AEMLog Users Guide. Version 1.01

Introduction to Excel 2007

4 TRANSFORMING OBJECTS

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

Importing Models from Physical Modeling. Tools Using the FMI Standard

Visual Dialogue User Guide. Version 6.0

Microsoft How to Series

motcom loganalyser User Manual

Impress Guide. Chapter 11 Setting Up and Customizing Impress

VeriStand. FMI to NI VeriStand Add-on. User Guide

Multichannel Data logging

SequencePro Data Analysis Application. User Guide

Insight: Measurement Tool. User Guide

Manual. empower charts 6.4

Electrical 3D Design & Documentation

3.2 Circle Charts Line Charts Gantt Chart Inserting Gantt charts Adjusting the date section...

Vensim PLE Quick Reference and Tutorial

Desktop Studio: Charts

Desktop Studio: Charts. Version: 7.3

Microsoft Excel 2010 Tutorial

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4

AEMLog users guide V User Guide - Advanced Engine Management 2205 West 126 th st Hawthorne CA,

ECDL Module 4 REFERENCE MANUAL

Excel Tutorial 1

Using the New Profile Editor

FMI Toolbox User's Guide 2.6.4

USER GUIDE. We hope you enjoy using the product, and please don t hesitate to send us questions or provide feedback at Thank You.

Getting Started with LabVIEW Virtual Instruments

Microsoft Excel 2010 Handout

Solo 4.6 Release Notes

INTRODUCTION TO THE MATLAB APPLICATION DESIGNER EXERCISES

News in RSA-RTE 10.2 updated for sprint Mattias Mohlin, May 2018

RK4. Version 3.0. (updated 12/1/2006) 2001, 2005, 2006 Tomas Co. Michigan Technological University Houghton, MI 49931

Quick Start Training Guide

Navigator Software User s Manual. User Manual. Navigator Software. Monarch Instrument Rev 0.98 May Page 1 of 17

Dymola Dynamic Modeling Laboratory

User Guide Product Design Version 1.7

Experiment 3. Getting Start with Simulink

DRAFT. Table of Contents About this manual... ix About CuteSITE Builder... ix. Getting Started... 1

Getting Started with the MapleSim FMI Connector

StruSoft StruXML Revit Add-In Manual: Using Revit FEM-Design link

Multi-Physics RecurDyn Style Interoperability

Adobe Acrobat Reader 4.05

file://c:\documents and Settings\degrysep\Local Settings\Temp\~hh607E.htm

A Guide to Quark Author Web Edition 2015

Testing and Diagnostics

W-E

L E S S O N 2 Background

End User Guide. 2.1 Getting Started Toolbar Right-click Contextual Menu Navigation Panels... 2

Flow Cytometry Analysis Software. Developed by scientists, for scientists. User Manual. Version Introduction:

Labview. Masood Ejaz

Sending image(s) to report Click Send Snapshot on any screen in Dolphin3D and choose the Send to Report option

IBM Rational Rhapsody Gateway Add On. User Guide

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows

Scheme Editor. Version 6.3. Manual Edition 1

MS Office for Engineers

Introducing Gupta Report Builder

Impress Guide Chapter 11 Setting Up and Customizing Impress

Process Eye Professional. Recall

N2KExtractor. Maretron Data Extraction Software User s Manual

AgWare ClickFORMS 7.0 Introductory Tutorial

2010 by Microtek International, Inc. All rights reserved.

Tetra4D Reviewer. Version 5.1. User Guide. Details on how to use Tetra4D Reviewer.

ezimagex2 User s Guide Version 1.0

Introduction to Simulink. The Use of Mathematic Simulations in Electrical Engineering

Adding Dynamics. Introduction

Heat Exchanger Efficiency

FMI to NI VeriStand & LabVIEW Add-on. User Guide

The American University in Cairo. Academic Computing Services. Word prepared by. Soumaia Ahmed Al Ayyat

Microsoft Office Excel

SAS Visual Analytics 8.2: Working with Report Content

LabVIEW Express VI Development Toolkit User Guide

HVAC Diagrams Preface What's New? Getting Started User Tasks

Microsoft PowerPoint 2007 Tutorial

Transcription:

Dymola Dynamic Modeling Laboratory Dymola Release notes Dymola 2014

The information in this document is subject to change without notice. Document version: 1 Copyright 1992-2013 by Dassault Systèmes AB. All rights reserved. Dymola is a registered trademark of Dassault Systèmes AB. Modelica is a registered trademark of the Modelica Association. Other product or brand names are trademarks or registered trademarks of their respective holders. Dassault Systèmes AB Ideon Science Park SE-223 70 Lund Sweden E-mail: Dymola.Support@3ds.com URL: http://www.dymola.com Phone: +46 46 2862500 Fax: +46 46 2862501

Contents 1 Important notes on Dymola... 5 2 About this booklet... 5 3 Dymola 2014... 6 3.1 Introduction... 6 3.1.1 Additions and improvements in Dymola... 6 3.1.2 New and updated libraries... 7 3.1.3 Limited Availability Features... 7 3.2 Developing a model... 8 3.2.1 Smart Connect... 8 3.2.2 State machine support... 11 3.2.3 Hiding graphical connections (LA)... 15 3.2.4 Modelica Text editor improvements... 18 3.2.5 Improved resources handling when copying/renaming a class... 19 3.2.6 Opening of files by dragging them into Dymola main window supported... 19 3.2.7 Find in diagram layer supported... 19 3.2.8 Minor improvements... 20 3.3 Simulating a model... 24 3.3.1 CVODE solver generally supported... 24 3.3.2 Plot window... 26 3.3.3 Scripting... 37 3.3.4 Minor improvements... 38 3.4 Installation... 39 3.4.1 Software requirements... 39 3.4.2 Improvement of C Compiler test... 40 3.4.3 Minor improvements... 41 3.5 Other Simulation Environments... 43 3.5.1 Dymola Matlab interface... 43 3.5.2 Real-time simulation... 43 3.5.3 FMI Support in Dymola... 44 3.5.4 Code and Model Export... 46 3.6 Advanced Modelica Support... 46 3.6.1 Synchronous Modelica... 46 3.6.2 State Machines... 46 3.6.3 Minor improvements... 46 3

4 3.7 New libraries... 47 3.7.1 Modelica_Synchronous library... 47 3.8 Updated libraries... 47 3.8.1 AirConditioning Library... 47 3.8.2 Engine Dynamics Library... 47 3.8.3 Hydraulics Library... 47 3.8.4 Hydro Power Library... 48 3.8.5 Liquid Cooling Library... 48 3.8.6 Optimization Library... 48 3.8.7 Pneumatics Library... 49 3.8.8 Thermal Power Library... 49 3.8.9 Vehicle Dynamics Library... 49 3.9 Documentation... 49

1 Important notes on Dymola Installation on Windows To translate models you must also install a supported Microsoft Visual Studio C++ compiler. The compiler is not distributed with Dymola. Note that free Microsoft compiler versions earlier than Microsoft Visual Studio Express 2008 are not supported (concerning full versions, some earlier versions are supported). Refer to section Software requirements on page 39 for more information. Administrator privileges are required for installation. 2 About this booklet This booklet covers Dymola 2014. The disposition is similar to the one in Dymola User Manual Volume 1 and 2; the same main headings are being used (except for, e.g., Libraries and Documentation). Dymola 2014 Release notes 5

3 Dymola 2014 3.1 Introduction 3.1.1 Additions and improvements in Dymola A number of improvements and additions have been implemented in Dymola 2014. In particular, Dymola 2014 provides Synchronous Modelica support, according to the Modelica Language version 3.3 (previously Limited Availability). State machine support, according to the Modelica Language version 3.3 (previously Limited Availability). SUNDIALS CVODE solver generally supported. Extended FMI support. o Support of FMI 2.0 beta 4. o Improved source code export in FMUs. o GUI for FMI settings. Modelica Text editor improvements. o Lookup supported in automatic code completion. o Regular expressions supported for Find dialog. Plot features o Fast Fourier Transform (FFT) available as signal operator. o Duplicate diagrams. o Configurable time unit on x-axis o Create tables from trajectories. o Show plot and its corresponding command in command window. Diagram layer improvements o Smart Connect; objects are intuitively connected by, e.g., placing connectors on top of each other. o Visibility handling of graphical connections (Limited Availability) o Find in diagram layer supported. o Rotate while dragging component. o Component changed to icon when outside valid area. Message window improvements o Arbitrary part of message can be copied. o Soft wrapping supported. Improved resources handling when copying/renaming a class. 6

C Compiler test improved. Opening files in Dymola by drag-and-drop into main window supported. 3.1.2 New and updated libraries New libraries The following libraries are new: Modelica_Synchronous (previously Limited Availability), version 0.91 For more information about the new libraries, please see section New libraries starting on page 47. Updated libraries The following libraries have been updated: AirConditioning Library, version 1.8.4 Engine Dynamics Library, version 1.1 Hydraulics Library, version 3.3.1 Hydro Power Library, version 2.2 Liquid Cooling Library, version 1.1 Optimization Library, version 2.2 Pneumatics Library, version 1.6 Thermal Power Library, version 1.6 Vehicle Dynamics Library, version 1.7.1 For more information about the updated libraries, please see the section Updated libraries starting on page 47. 3.1.3 Limited Availability Features This version of Dymola contains certain features which are labeled Limited Availability (LA). It means that the implementation might be partial, diagnostics partial, the testing is not complete, and no support/maintenance and only limited documentation is available. However, we provide them to you as early as possible in order for you learn about these features, plan for later use, and be able to give us your feedback. You typically need to set some switch to enable them. These features are planned to become Generally Available (GA) in the Dymola 2014 FD01 release. Please provide any feedback to Dymola.Support@3ds.com. The LA features are briefly described below and are marked (LA). Dymola 2014 Release notes 7

3.2 Developing a model 3.2.1 Smart Connect In Dymola 2014, Smart Connect is introduced to simplify connecting objects. The features are enabled by default, but can be disabled generally by setting the flag Advanced.SmartConnect=false. These features are also disabled when Connect Mode is not selected. Working with the features, Ctrl+Z, or Escape, are the general commands used to undo an action. Note that if a connection dialog is needed to connect, it is displayed automatically. Only one connection that requires the connection dialog is supported per operation. Smart connection By placing a connector on top of a matching connector of another component, a connection is automatically created between the two connectors. In the example below, a capacitor is dragged to fit the connector of a resistor. A short highlight is seen when the connection is created and connected; the result is seen when dragging the capacitor away. The color of the highlight indicates degree of success: Green: Connection succeeded. 8

Yellow: It is possible to create a connection, but not with smart connect. This is the case with, e.g., expandable connectors and array of connectors. Red: Connection not possible; e.g. connectors are not matching. Drop component on connection A component can be dropped on a connection for automatic connection. Splitting a connection when dropping a matching component is also supported, e.g., dropping a heating resistor on the connection of two resistors: will result in: Two highlights are seen when dropping the component, one for the connection to the right of the component, and one for the connections to the left of the component. The layout of the original connection is kept. Dropping on a vertical connection is also supported. The connection is split only if the relevant sub connectors of the dropped component match the connection (in the above example the positive and negative pin). Dymola 2014 Release notes 9

Start connection from connection / Connect to connection A connection can now be started from an existing connection, and a connection can be ended on an existing matching connection. To start a new connection from an existing connection, right-click the existing connection and select Start Connection from the context menu: The connect command is started and the connection can be created the normal way. To end a connection on an existing matching connection, just click on the wanted location on the existing connection when connecting. (The cursor will be displayed as a hand on the existing connection if connection is possible.) The resulting connection is quickly highlighted: 10

3.2.2 State machine support General State machines according to Modelica Language version 3.3 are supported. In order to write state machines using Modelica 3.3, please note the following properties: For variables that are common between different states, the inner/outer concept has to be used, or alternatively graphical connections. State machines are clocked. For more information, including examples what can be done when it comes to e.g. hierarchical state machines, conditional data flow and applications like cruise control, please see the relevant papers available by the command Help > Documentation, and the tutorial available by the command File > Demos > Modelica Synchronous Tutorial. Creating and simulating a simple state machine The below is a short description of the basic state machine editor features in Dymola; for more information see above. To create states and transitions in Dymola 2014 the corresponding commands have been added to the Drawing toolbar: The Create Local State command can also be given as Edit > Create Local State. The command will display a menu: The state name and state class name can be entered. Show text can be selected if the equations in the state should be visible in the step, without having to enter the Modelica Text layer of that step. Pressing OK will create the state, but with dashed outline, since it must have a transition to be defined as a state: Dymola 2014 Release notes 11

It can be dragged and resized like any other object. The step can now be opened by doubleclicking it in the package browser, and code can be inserted using the Modelica Text editor. The name of the state can be changed afterwards by double-clicking the state. To change the Show text setting afterwards to display equations, the corresponding annotation in the code annotation(diagram(graphics={text(textstring="%statename")})) can be changed to annotation(diagram(graphics={text(textstring="%statetext")})) When the state is created, the Transition Mode is activated automatically; enabling creation of transitions by dragging, like dragging connections. You start dragging from the border of the state. The initial state of a state machine is defined by creating a specific transition; dragging a transition from the step above, and right-click after having dragged just as small distance (without connecting to anything) will give: Selecting Create Initial State will give: This state is now initial state, and since it has a transition it is presented as a valid state. Drawing another state and dragging a transition connection between them, the following menu will be displayed: 12

The Condition is the condition that should be valid for the transition; it must be a Boolean expression. Immediate should be selected if the transition should fire when condition=true (this is called immediate transition ). If deselected, the transition will fire when previous(condition)=true (this is called delayed transition ). Reset should be selected if the target state (and states included in the target states, if any) should be reinitialized; i.e. included state machines are restarted in initial state and state variables are reset to their start values. Synchronize should be selected if all state machines within the source state must have reached their final state before the transition condition is tested for. Priority can be set to an integer corresponding to the priority; 1 is the highest priority. The font size can be set. Selecting i > 10 as condition, and deactivate Immediate will give when selecting OK: The transition is created as an arrow between the two states. It indicates the above selections The arrow direction is from the source state to the destination state. Dymola 2014 Release notes 13

The perpendicular bar of the transition is close to the destination state for an immediate transition, and close to the source state for a delayed transition. The arrow is filled for a reset transition, otherwise non-filled. A synchronize transition has an inverted fork at the source state. Priority is shown preceding the condition if not equal to 1 (e.g. 2: i>1). The transition can be created like any line, with corners that can be dragged; corners can be added and removed etc. Double-clicking the transition will display the menu above. Hierarchical state machines can easily be created by creating state machines in states. Having hierarchical state machines, the annotation annotation(showdiagram=true) that is set by default in new states is of importance. The default value is to display state machines inside a step. It is possible to select if enclosed steps should be displayed or not by right-clicking a step and ticking/unticking Show Diagram for each individual step: 14

Important: To enable the above selection, the mentioned annotation must be deleted in all states where this selection should be possible. (It is not sufficient to set the annotation to false, it overrides the menu anyway; the annotation must be deleted.) When simulating this model, a message will be displayed that since a clock is not defined; a default base clock with the period 1 second will be used; the period can be set using the variable browser: 3.2.3 Hiding graphical connections (LA) In Dymola 2014 the user can easily use the context menu to hide graphical connections, improving the display of the diagram layer. To use this feature, the user must set the flag Advanced.InvisibleConnections=true. The flag is by default false; the selection below is by default not shown in the context menu. Dymola 2014 Release notes 15

Unticking Visible will give the following: Selecting one stub will also select the other: 16

Hidden graphical connections can easily be displayed by setting Show hidden graphical objects reached by the command Edit > Options, in the Appearance tab. By default such objects are hidden. Accidental hiding is corrected using Edit > Undo (Ctrl+Z). Dymola 2014 Release notes 17

3.2.4 Modelica Text editor improvements Lookup supported in code completion The code completion now supports lookup in Modelica classes. When compiling e.g. Modelica.Math, the menu will only show functions within that library. Regular expressions supported in Find dialog The search engine used in the command Edit > Find, Edit > Replace, and the corresponding context menu entry Find and Replace is now enhanced to allow regular expressions. To use regular expressions, the checkbox Use regular expressions in the dialog box should be ticked. Special symbols in the regular expressions are: * Match everything.? Match any single character. {ab} Match characters a or b. {a-z} Match characters a through z. {^ab} Match any characters except a and b. E+ Match one or more occurrence of E. (ab cd) Match ab or cd. \d Match any digit. \w Match any digit or letter. ^ Match from start. $ Match at end. 18

3.2.5 Improved resources handling when copying/renaming a class When using the commands Rename or New > Duplicate Class, directories pointed to by LibraryDirectory and IncludeDirectory are copied, and the references are updated. Note that presently other resources (e.g. images) are not copied. 3.2.6 Opening of files by dragging them into Dymola main window supported Dymola files (.mo and.moe files) that are dragged into the Dymola main window are automatically opened like performing the command File > Load on the files. (For information about this new load command, please see Load command introduced on page 20.) 3.2.7 Find in diagram layer supported In Dymola 2014 the command Edit > Find can be used to search the diagram layer for components. In the example below, Rev is searched in the Robot model: Some features of this command: The search is recursive and automatic, i.e. you can start typing Rev and the list is automatically built, including components inside components etc. Dymola 2014 Release notes 19

The search first looks at local components, before looking at sub-components. The search is based on what is shown in the diagram layer when starting the search. Clicking on a result will select it, the diagram layer will be zoomed to display the result. This navigation does not influence the search, you can still select another component, or the In component button, or you can modify the search. 3.2.8 Minor improvements Load command introduced To be able to load a model without changing the current working directory, the command Load has been introduced. (Note the present possibility to set wanted working directory when opening Dymola using a shortcut with the preferred working directory as Start in.) Improvement of Split Model It is now possible to merge external connections if a submodel is created. This increases the simplification of a diagram. Having as a starting point selected the following: 20

Right-clicking and selecting Split Model from context menu, the following menu will appear: Keeping the default setting of Merge external connections will give the result: Dymola 2014 Release notes 21

Unticking the setting will give: Rotation while dragging supported Components can be rotated when dragging by using the arrow keys Left/Right or Ctrl+R. They can be zoomed using the arrow keys Up/Down. Improved display of components dragged into the diagram layer In Dymola 2014, a component dragged from the package browser to the diagram layer is immediately displayed, with exactly the location and size it will have, immediately when entering the diagram layer. Component changed to icon when outside valid area A component dragged from the component browser outside a valid area is indicated by an icon and a non-valid sign. 22

Copying of arbitrary text possible in Message window Any text part can now be selected (however not icons) and copied to the clipboard from the Messages window. Soft wrapping of text in Message window supported Soft wrapping of text in the Messages window is now supported. Improvement in propagation of parameters Propagation of parameters bound to other (local) parameters is now handled using hierarchical names of the resulting parameters. Note that this will cause issues if the local parameters are protected. In that case the default value has to be manually converted to a new scope. Controlling icons by parameters If a parameter expression is used as the second argument of DynamicSelect, and the expression can be evaluated, it is used also in Edit mode. First argument of DynamicSelect is used in case of failure. References to submodel parameters are also allowed. The feature can be disabled by setting Advanced.ActivateParameterValuesInDiagram=false. Displaying library-specific menus and toolbars in Dymola Library developers can now in their libraries include menus and toolbars that will be displayed in Dymola when opening the libraries. To do this, the annotation annotation( Dymola_containsMenu=true); must be present in the top level of the library (e.g. in package.mo). This causes all classes in the library to be searched for menu and toolbar annotations. Dymola 2014 Release notes 23

The package containing the menu and toolbar annotations must be located inside the library. An example of a menu created this way is the menu that will be displayed when opening the Optimization library version 2.2: The menu will disappear when performing File > Clear All or unloading the library. 3.3 Simulating a model 3.3.1 CVODE solver generally supported In Dymola 2014, the SUNDIALS CVODE solver with Backward Differentiation Formula (BDF) and Newton iteration is generally supported (it was previously available only when generating FMUs); it now included in the list of algorithms that can be selected by using the command Simulation > Setup, the General tab. 24

For further details about the solver, please visit https://computation.llnl.gov/casc/sundials/main.html Dymola 2014 Release notes 25

3.3.2 Plot window Signal operators: additions and improvements Fast Fourier Transform (FFT) available as signal operator In Dymola 2014 the Fast Fourier Transform (FFT) has been added to the list of signal operators, available using the context menu of a curve in the plot window. The resulting menu is: 26

The type of window can be selected: The default selection Rectangular gives equal weight to all points. Selecting More >>, the menu is extended: The Interval length gives together with the Horizontal range the Number of points. A new diagram is created when calling this operator: Dymola 2014 Release notes 27

The operator is also supported by scripting, the call for the above calculation is (freqpart, powers) = SignalOperators.Fourier.calculateFFT("CoupledClutches.mat", {"J1.w"}, 0, 1.2, 501, 1e+100, SignalOperators.Windows.Windowing.Rectangular); and the corresponding plot command that follow is plotarrays(freqpart, powers, legend={"j1.w"}, id=1); Note that the variables freqpart and powers are declared and available in the workspace after having executed the script for FFT. Calculation of a number of signal operators improved The following signal operators have been improved: Rectified Mean. RMS. AC Coupled RMS. Harmonics (now implemented using FFT). 28

Total Harmonic Distortion (now implemented using FFT). Additional selections for First Harmonic The signal operators First Harmonic now has the possibility to compute the period length by clicking the button Compute. Also, additional setup possibilities are displayed by selecting More >>. The displayed alternatives are similar to the FFT operator, but the Window selection is present here and not in the default menu. The figure below shows the menu with More >> activated to see all possibilities: The Interval length gives together with the Horizontal range the Number of points. Additional selections for Total Harmonic Distortion Dymola 2014 Release notes 29

The signal operators Total Harmonic Distortion now has the possibility to compute the period length by clicking the button Compute, and Number of harmonics can be entered. If the period is entered or computed, the limit for number of harmonics is displayed: Also, additional setup possibilities are displayed by selecting More >>. The displayed alternatives are similar to the FFT operator, but the Window selection is present here and not in the default menu. The figure below shows the menu with More >> activated to see all possibilities: The Interval length gives together with the Horizontal range the Number of points. Mathematical formulas for signal operators Min and max are omitted in this section. Aritmetic mean This operator computes the arithmetic mean of the curve on the selected range. It is computed with the following formula (trapezoid approximation): Mean(a) max a(x)dx min max = dx min n 1 i=1 a i + a i+1 2 (x i+1 x i ) max min 30

where n is the number of points of the curve in the selected range, and a i is the value of each of these points. Rectified mean This operator computes the average rectified mean of the curve on the selected range. It is computed by taking the mean-value of the absolute values: RMean(a) max a(x) dx min max dx = n 1 i=1 f(a i, a i+1 ) (x i+1 x i ) max min min The function f takes the average of the absolute values and if both values have the same sign it is just a 2 2 i + a i+1 a ; and if they have different sign: i +ai+1 = a 2 2 i +ai+1. The reason 2 2 a i a i+1 2( a i + a i+1 ) for the complex formula is to ensure that any piece-wise linear signal (including triangular waves) is correct. RMS In the case of a set of n values {x 1, x 2, x 3,, x n } representing the values of the point of the curve, the RMS (Root-mean-square) value is given by this formula: RMS(a) max a2 (x)dx min max dx min 2 2 + a i+1 2 = n 1 a i i=1 (x i+1 x i ) max min Note that for the important case of equidistantly sampled sine-signal (with arbitrary phase) this formula gives the exact result (below the Nyquist frequency, and if the simulated interval is a multiple of the period of the sine-signal). AC Coupled RMS This property is related to the standard deviation in the statistics and can be computed in two different ways (the first one is used to avoid numerical issues with round-off and overflow): ACRMS(a) = RMS a Mean(a) = RMS(a) 2 Mean(a) 2 Frequency-based computations: harmonics These are computed based on a windowed Fast Fourier Transform (FFT). The underlying FFT is a generalized FFT that can handle any input length, not only powers of 2. Windowed FFT means that the signal is pre-multiplied by a windowing-function; this is customary in signal-processing and gives better result for signals that are not actually periodic (e.g. addition of random noise or a slight trend). The FFT gives a decomposition of the signal as (computed efficiently). Dymola 2014 Release notes 31

The frequency-based computations are based on a number of equidistantly sampled points; the distance between the points should correspond to the Output interval length in the simulation setup. The FFT can also be used to compute the period/frequency of the first harmonic; a simple formula is added here to take the period corresponding to the highest amplitude in the FFT (excluding the DC-component). (Amplitude of) First harmonic The amplitude of the first harmonic is the amplitude of the sine-signal of the given period (the given period should correspond to the base-frequency of the signal); in electrical applications the frequency/period of the signal is normally known. Note that the corresponding block in Modelica.Blocks has an output called rms which is the rms-value=amplitude/sqrt(2)). For a periodic signal the amplitude of the first harmonic can exceed the amplitude of the underlying signal. Total harmonic distortion The THD used here is called amplitude ratio THD on Wikipedia (and measures how distorted the signal is compared to an ideal sine-signal): THD = 2 i=2 u i In practice the sum is always truncated due to the sampling, and to get comparable result independent of number of points stored the sum could be truncated before the sampling limit. FFT See frequency-based computations above. Slew rate The slew rate operator computes the maximum derivative value on the specified interval. u 1 32

Duplicate diagram A plot diagram, with content, can be copied to a new plot window by the command Show In > Duplicate Diagram in the context menu of the diagram. Dymola 2014 Release notes 33

Configurable time unit on x-axis The time unit of the x-axis can now be selected by the command Time Unit in the context menu of the plot window: The default is seconds. If the selected time unit differs from seconds, the time unit will be displayed in the legend of the x-axis. 34

Create tables from trajectories The trajectories in a plot diagram can be copied to a new table window by the command Show In > Table Window in the context menu of a diagram. The result is Dymola 2014 Release notes 35

Insert plot and its corresponding command in command window The plot and corresponding command can be inserted in the command window by the command Show In > Command Window in the context menu of a plot diagram. The result in the Command window of the above will be: 36

3.3.3 Scripting help command available In Dymola 2014 the documentation of built-in functions can be displayed using the command help, (e.g. help importfmu). The old command document("importfmu") can still be used also. Scripting of signal operators improved Signal operator value output from script function In Dymola 2014 values are output when using scripting commands for signal operators. An example: Dymola 2014 Release notes 37

Scripting support for First Harmonic and Total Harmonic Distortion The new built-in function plotsignaloperatorharmonic supports the signal operators First Harmonic and Total Harmonic Distortion. An example: plotsignaloperatorharmonic("j1.w", SignalOperator.FirstHarmonic, 0.8, 1.2, 0.2, 1e-3, SignalOperators.Windows.Windowing.Rectangular, 1); = 0.2670388297648008 (If Total Harmonic Distortion should be calculated, SignalOperator.FirstHarmonic above is to be exchanged with SignalOperator.THD.) Note, the package SignalOperators must be present in the package browser to be able to execute the plotsignaloperatorharmonic function. The package can be opened by e.g. import SignalOperators. Scripting support for FFT Please see above, the section Fast Fourier Transform (FFT) available as signal operator starting on page 26. FMI 2.0 beta 4 supported by scripting Please see corresponding section below. 3.3.4 Minor improvements Changed command in Animation window Previously Alt+Select was used to set rotation center on selected component, now this is done using the context menu of the object: 38

Name change in Linear Systems Analysis menu The command Transfer functions has been renamed to Bode Plot. Improved display of variable selections in variable browser In Dymola 2014, variable selections are displayed by italics if they are not part of the currently active simulation results in the variable browser. 3.4 Installation 3.4.1 Software requirements Hardware requirements At least 1 GB RAM At least 400 MB disc space Hardware recommendations At present, it is recommended to have a system with an Intel Core 2 Duo processor or better, with at least 2 MB of L2 cache. Memory speed and cache size are key parameters to achieve maximum simulation performance. A dual processor will be enough; the simulation itself uses only one execution thread so there is no need for a quad processor. Memory size may be significant for translating big models and plotting large result files, but the simulation itself does not require so much memory. Recommended memory size is 2-4 GB of RAM for 32-bit architecture and 3-6 GB of RAM for 64-bit architecture. Dymola 2014 Release notes 39

Software requirements Microsoft Windows On Windows, Dymola 2014 is supported, as 32 or 64 bit application, on Microsoft Windows XP, Windows Vista and Windows 7. Since Dymola does not use any features supported only by specific editions of Windows ( Home, Professional, Enterprise etc.); all such editions are thus supported if the main version is supported. For the Windows platform, Microsoft C/C++ compiler must be installed separately. The following compilers are supported for Dymola 2014 on Windows: Free editions: Visual Studio 2008 Express Edition (9.0) Visual C++ 2010 Express (10.0) Professional editions: Visual Studio 2005 (8.0) Visual Studio 2008 (9.0) Visual Studio 2010 (10.0) Linux On Linux, Dymola 2014 is supported on Red Hat Enterprise 5.1 with gcc version 4.1.1, and compatible systems (32 bit). Please note that you have to use the Optimization library version 2.x or higher to use multicriteria design optimization on Linux; the older Design.Optimization package does not support multi-criteria design optimization on Linux. There is no native Dymola 64 bit application for Linux. 3.4.2 Improvement of C Compiler test The test of the C compiler that is available by clicking the button Test compiler in the Compiler tab, reached by the command Simulation > Setup, has been improved. A small Modelica program is compiled and executed to test the complier, both for 32 and 64 bit Dymola. Messages will be displayed on success or failure. 40

3.4.3 Minor improvements Checking out license options from a license server improved In Dymola 2014 the check-out of the Model Management option can be disabled. By default, the option is not checked out. The setting corresponds to the flag Advanced.EnableModelManagement=false The setting is saved between sessions. Warning of license expiration During the last 30 days before expiration, a warning message that the license will soon expire will be displayed like a water mark in all models. Some examples: Dymola 2014 Release notes 41

42

3.5 Other Simulation Environments 3.5.1 Dymola Matlab interface Compatibility The Dymola Simulink interface now supports Matlab releases from R2008a (ver. 7.6) up to R2012b (ver. 8.0). Only Visual Studio C++ compilers are supported to generate the DymolaBlock S-function. The LCC compiler is not supported. All encrypted files in the Dymola/Mfiles folder are now p-coded with the most recent version. Thus, it is no longer necessary to switch off warnings about old p-code version. The line below can be removed from the Matlab startup script: warning('off', 'MATLAB:oldPfileVersion'); 3.5.2 Real-time simulation Compatibility dspace Dymola 2014 generated code has been verified for compatibility with the following combinations of dspace and Matlab releases on the DS1005 and DS1006 platforms dspace Release 6.2 (RTI 6.1) with Matlab R2008a dspace Release 6.3 (RTI 6.2) with Matlab R2008b dspace Release 6.4 (RTI 6.3) with Matlab R2009a dspace Release 6.6 (RTI 6.5) with Matlab R2010a dspace Release 7.0 (RTI 6.6) with Matlab R2009bSP1 and R2010bSP1 dspace Release 7.1 (RTI 6.7) with Matlab R2011a dspace Release 7.2 (RTI 6.8) with Matlab R2011b dspace Release 7.3 (RTI 6.9) with Matlab R2011b and R2012a dspace Release 7.4 (RTI 6.9.1) with Matlab R2011b, R2012a, and R2012b The selection of supported dspace releases focuses on releases that introduce support for a new Matlab release and dspace releases that introduce a new version of a cross-compiler tool. In addition, we always support the three latest dspace releases with the three latest Matlab releases. Although not officially supported, it is likely that other combinations should work as well. Compatibility xpc Target Compatibility with Matlab xpc Target has been verified for all Matlab releases that are supported by the Dymola Simulink interface, which means R2008a (xpc Target ver. 3.4) to R2012b (xpc Target ver. 5.3). Only Microsoft Visual C compilers have been tested. Dymola 2014 Release notes 43

3.5.3 FMI Support in Dymola Support for FMI 2.0 beta 4 All mandatory features are supported in FMI 2.0 Beta 4. The optional (in the sense that they have associated capability flags) features not supported are: FMUs can only be instantiated once per process. The internal FMU state cannot be serialized. fmidostep cannot run asynchronously, i.e. fmipending is never returned. The Files > Import > FMU commands and script function importfmu accepts FMUs created according to FMI 2.0 Beta 4 Model Exchange specification. Current supported features are the same as for FMI 1.0. When exporting, the version to be generated can be set in the FMI tab using the command Simulation > Setup, see figure below. When using scripting, the built-in function translatemodelfmu now has a new string argument fmiversion that controls the FMI version ("1" or "2") of the FMU. The default is "1". Use of export option visible in the generated FMU In Dymola 2014 the generated FMU contains information telling if it has been generated without the binary export option. In that case, the following text is generated in the XML file: generationtool="dymola Version 2014 (64-bit), 2013-02-21 (requires license to execute)" Improved source code export in FMUs Handling multiple FMUs In Dymola 2014 an extra source file, all.c, is provided; it includes all other C files. This file is needed to compile all FMUs source code as one unit, which in turn is required because the demand that all internal functions and symbols needs to be static to be able to combine several source code FMUs. The only disadvantage compiling this file instead of the separate C files, is that any modification in any source code file requires re-compilation of everything. Improved GUI for FMI settings The previous FMI Export tab has been renamed and extended. General FMI settings are now collected in the FMI tab, available with the command Simulation > Setup, the FMI tab: 44

Both FMI import settings and FMI export settings are now included. Concerning the Preferred type group for import, the preferred import type is only relevant if the imported FMU supports both model exchange and co-simulation. Otherwise this setting is silently ignored. Import of FMU files by dragging them into Dymola main window supported. FMU files (.fmu) that are dragged into the Dymola main window are automatically imported like performing the command File > Import > FMU on the file. Dymola 2014 Release notes 45

Location of imported FMU selectable Importing an FMU, the location (package) to import it to can be selected using the input string parameter packagename in the built-in function importfmu. The package must be open in Dymola when importing. Note that presently this functionality is only available using scripting. 3.5.4 Code and Model Export Code and model export template available on Linux The template project StandAloneDymosim that describes how to interface models exported with Binary Model Export or Source Code Generation to standard integration routines, to build stand-alone applications, is now also available on Linux. 3.6 Advanced Modelica Support 3.6.1 Synchronous Modelica The synchronous features of Modelica 3.3 are supported. References to papers describing these features are available using the command Help > Documentation. A tutorial is also available using the command Help > Demos > Synchronous Tutorial. The tutorial relates to the papers and presentations mentioned. 3.6.2 State Machines The State Machines of Modelica 3.3 are supported. References to papers describing these features are available using the command Help > Documentation. A tutorial is also available using the command Help > Demos > Synchronous Tutorial. The tutorial relates to the papers and presentations mentioned. 3.6.3 Minor improvements Quoted identifiers containing dot supported Quoted identifiers containing dot are now supported, including Class and component names Hierarchical modifiers Variable browser Import Derivative names It is recommended to avoid using embedded dot for top-level classes; the file names will not be nice. 46

3.7 New libraries 3.7.1 Modelica_Synchronous library The library Modelica_Synchronous is a Modelica package to precisely define and synchronize sampled data systems with different sampling rates. The library has elements to define periodic clocks and event clocks that trigger elements to sample, sub-sample, supersample, or shift-sample partitions synchronously. Optionally, quantization effects, computational delay or noise can be simulated. Continuous-time equations can be automatically discretized and utilized in a sampled data system. The sample rate of a partition needs to be defined at one location only. All Modelica libraries designed so far for sampled systems, such as Modelica.Blocks.Discrete or Modelica_LinearSystems2.Controller are becoming obsolete and instead Modelica_Synchronous should be utilized instead. 3.8 Updated libraries 3.8.1 AirConditioning Library A minor version, 1.8.4, has been released, with some robustness improvements and component modifications. 3.8.2 Engine Dynamics Library Version 1.1 is a major update of the Engine Dynamics Library. Several new components have been added to facilitate creation of engine systems with very few states. Such models may be desirable in order to improve simulation speed of desktop simulations and SIL applications, and are suitable to linearize in case the model should be used for model based control system development. The new components are: A set of new components that assumes quasi-static temperature and positive flow rate. Specialized turbo components that use a custom rotational connector including only the angular velocity and cut torque. An engine template using the simplified components. Other new components have been added as well, and other improvements have been made. Conversion from older models can be made automatically. 3.8.3 Hydraulics Library A minor version, 3.3.1, has been released, with minor improvements. Dymola 2014 Release notes 47

3.8.4 Hydro Power Library Hydro Power Library version 2.2 contains several major improvements. The largest change is the introduction of the system component System_HPL. A system component is now needed in each model to provide system-wide settings, such as modeling assumptions and default values. The system settings are propagated to the fluid models using the inner/outer mechanism. Model assumptions such as constant temperature or steady-state initialization can now be turned on/off globally instead of having to modify all components locally. A major speedup has been obtained by a more efficient friction implementation. Other improvements are improved documentation, new icon visualization, more descriptive model names, and new visualizer objects. Models not older than of version HydroPlant 2.0.4 can be automatically converted. Older plants may need some manual conversion. 3.8.5 Liquid Cooling Library Version 1.1 of the Liquid Cooling library is a major release. Several new internal flow components have been added with geometry based flow resistance models; e.g. straight pipes, bend, orifice plate, intake, junction combining/dividing components. Other new components have been added as well. Medium property models for several liquid phase coolants and refrigerants have been added. The concentration can be set to any value between zero and the eutectic point for the given mixture and is valid between the freezing point and boiling point of the fluid. Templates and examples that illustrate how to create simple automotive heat exchanger stack models are available. Other features and improvements are implemented as well. Conversion of older models can be done automatically. Note that users of the table based, fixed water glycol mixtures will be converted to medium models using IIF reference data. 3.8.6 Optimization Library A new major version 2.2 of the library is available. The following have been implemented: Advanced parallel simulation runs: o Parallel Multi simulation. o Parallel simulation on a distributed Linux cluster. o Simulation package to use parallel simulations independently of optimization runs. Extended task Trajectory Optimization: o Support of free end time problems. o Start and end conditions (also derivatives) of control functions. o Separate additional tuners (e.g. initial values of states). Improved Optimization algorithms: o Genetic algorithm uses parallel simulation runs. 48

o o Simplex method can handle equality constraints. Improved Pattern search algorithm. The version is backward compatible to optimization setups of versions 2.0 and 2.1. A menu for some of the most frequent optimization functions is automatically displayed in Dymola when opening the library: 3.8.7 Pneumatics Library Version 1.6 of the Pneumatics Library is a minor release, with documentation inserted in the library as html files from the previous manual, and some library additions, like mass flow rate source. 3.8.8 Thermal Power Library Version 1.6 is a major release of Thermal Power library. Several major improvements have been implemented. New pressure boundary models have been added, as well as new flow boundary models. New HeatExchanger packages have been created. Level visualization, temperature visualization, added sensors, improved documentation and more is available for a number of components. A number of components have been renamed. Conversion from older models can be made automatically. 3.8.9 Vehicle Dynamics Library A minor maintenance version 1.7.1 has been released. Some example experiments have been improved by using the Modelon.DataAccess package. Animation view commands have been added to many experiments to modify the animation view in the active animation window. 3.9 Documentation In the software distribution of Dymola 2014 Dymola User Manuals of version March 2013 will be present; these manuals include all relevant features/improvements of Dymola 2014 presented in the Release notes. Limited Availability (LA) features are not included. Dymola 2014 Release notes 49