Skip to content

Instantly share code, notes, and snippets.


Dietmar Winkler dietmarw

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dietmarw on github.
  • I am dietmarw ( on keybase.
  • I have a public key ASBzKJB53BldshQ2JEbMTWlifvYI5zu8pSs0EAPCWGhI8Ao

To claim this, I am signing this object:

View gist:d9403c49425fcbd9f86c2ba36cc161b9
For equation
controller.BooleanExpression1.y = time > 2500;
found in class Modelica.Blocks.Interfaces, /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Blocks/ at line 82, and used in component controller.BooleanExpression1.
The expression "time > 2500" will generate a state event and not a time event.
This is not an error, but it slightly decreases performance and is unlikely to be intentional.
The only supported variants for time-events are "time>=expr" and "time<expr", where expr is a discrete-time expression.
You can turn off this warning by setting Advanced.PedanticModelica=false.
For equation
model test
annotation (Documentation(info="<html>
A = [1,2,3;
b = {10,22,12};
x = Matrices.solve(A,b);
dietmarw /
Created Jul 13, 2015
Removes a cell if "skip" is present in the metadata
#!/usr/bin/env python
"""strip outputs from an IPython Notebook
Opens a notebook, strips its output, and writes the outputless version to the original file.
Useful mainly as a git filter or pre-commit hook for users who don't want to track output in VCS.
This does mostly the same thing as the `Clear All Output` command in the notebook UI.
(based on:
  • some task
    • some task
  • some task
    • some task
      • some task
  • some task

Installation instructions of 32bit Dymola for Linux on a 64bit machine

Here the solution (it originates from Martin Sjölund of OM) wich I'm happy to share:

OK so I basically followed the following steps on my 64bit Ubuntu 13.10 bit machine.

Note: I got into trouble trying to get Dymola running with 32bit version of

dietmarw / Modelica.xml
Created Aug 14, 2012 — forked from pclary/Modelica.xml
Modelica syntax highlighting for Notepad++
View Modelica.xml
<UserLang name="Modelica" ext="mo">
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
<Keywords name="Delimiters">000000</Keywords>
<Keywords name="Folder+">function model for parfor block class connector record package</Keywords>