Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » am304
  • » Profile

Posts

Posts

Jan-18-13 13:54:43
Category: Programming

Hello,

I am trying to simulate the pendulum model in the user guide (release 1.9.0 beta), and am encountering the following issue:

Code:

record SimulationResult

    resultFile = "C:/DOCUME~1/ajpm/LOCALS~1/Temp/OpenModelica/MyPendulum3D_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'MyPendulum3D', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "warning | Error solving nonlinear system residualFunc2 (size 1) at time 1.3237
warning | Error solving nonlinear system residualFunc2 (size 1) at time 1.32375
warning | Error solving nonlinear system residualFunc2 (size 1) at time 1.32373
warning | Error solving nonlinear system residualFunc2 (size 1) at time 1.32373

etc...

The model itself is as per the user guide:

Code:

class MyPendulum3D "Planar Pendulum"

constant Real PI=3.141592653589793;
parameter Real m=1, g=9.81, L=5;
Real F;
Real x(start=5),y(start=0);
Real vx,vy;
equation
m*der(vx)=-(x/L)*F;
m*der(vy)=-(y/L)*F-m*g;
der(x)=vx;
der(y)=vy;
x^2+y^2=L^2;
end MyPendulum3D;

If I then try to add the 3D visulisation, it crashes in a similar manner to the one described in https://www.openmodelica.org/index.php/ … pic?id=817, even when changing the location of the SimpleVisual.PositionSize type commands to be just before the equation section.

Any suggestions?

Thanks,

Arnaud

Thanks for letting me know. I (wrongly it turns out) assumed that the user guide had been updated with the release since it specify the release version on the front page. I will just skip that section then.

Arnaud

Thanks, that now works. I have a different issue with Modelica.pltpkg, but I will create a different topic for this.

Thanks again,

Arnaud

Hi Adeel,

Thanks for your response. Here is my model, I think ti's the same as in the directory you mention:

Code:


model BouncingBall3D
import SimpleVisual.*;
SimpleVisual.PositionSize ball "color=red;shape=sphere;";
parameter Real e=0.7 "coefficient of restitution";
parameter Real g=9.81 "gravity acceleration";
Real h(start=10) "height of ball";
Real v "velocity of ball";
Boolean flying(start=true) "true, if ball is flying";
Boolean impact;
Real v_new;
equation
impact=h <= 0.0;
der(v)=if flying then -g else 0;
der(h)=v;
ball.size[1]=5;
ball.size[2]=5;
ball.size[3]=5;
ball.frame_a[1]=0;
ball.frame_a[2]=h+ball.size[2]/2;
ball.frame_a[3]=0;
when {h <= 0.0 and v <= 0.0,impact} then
v_new=if edge(impact) then -e*pre(v) else 0;
flying=v_new > 0;
reinit(v, v_new);
end when;
end BouncingBall3D;

Thanks,

Arnaud

Thanks. Why does the user guide then instructs to use loadLibrary? Anyway, even when using loadModel, I have issues:

Code:



loadModel(SimpleVisual)

true
OMC-ERROR:
"Notification: Modelica language version set to 2.x due to loading of MSL 2.2.1."

The model simulates, but when I try to launch the visualization with the visualize command, I get a Windows error like:

"OMVisualize.exe has encountered a problem and needs to close. We are sorry for the inconvenience".

When I click on the link for more information, it says:

"Error signature
AppName: omvisualize.exe
AppVer: 0.0.0.0
ModName: qtcore4.dll
ModVer: 4.8.0.0
Offset: 0005b413"

The full error report is as follows:

Code:


<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="OMVisualize.exe" FILTER="GRABMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="BreakProcess.exe" SIZE="341789" CHECKSUM="0x4FF0A16C" MODULE_TYPE="WIN32" PE_CHECKSUM="0x625D3" LINKER_VERSION="0x10000" LINK_DATE="10/19/2012 11:51:44" UPTO_LINK_DATE="10/19/2012 11:51:44" />
    <MATCHING_FILE NAME="fmigenerator.exe" SIZE="446596" CHECKSUM="0x671FE3D" MODULE_TYPE="WIN32" PE_CHECKSUM="0x77C12" LINKER_VERSION="0x10000" LINK_DATE="10/11/2012 11:58:03" UPTO_LINK_DATE="10/11/2012 11:58:03" />
    <MATCHING_FILE NAME="libgcc_s_dw2-1.dll" SIZE="43008" CHECKSUM="0x49DA9875" MODULE_TYPE="WIN32" PE_CHECKSUM="0x14E31" LINKER_VERSION="0x10000" LINK_DATE="06/23/2009 02:42:42" UPTO_LINK_DATE="06/23/2009 02:42:42" />
    <MATCHING_FILE NAME="libgomp-1.dll" SIZE="40448" CHECKSUM="0x4C5D2620" MODULE_TYPE="WIN32" PE_CHECKSUM="0xBB62" LINKER_VERSION="0x10000" LINK_DATE="06/23/2009 02:42:48" UPTO_LINK_DATE="06/23/2009 02:42:48" />
    <MATCHING_FILE NAME="libiconv-2.dll" SIZE="1059407" CHECKSUM="0xD5B244C6" BIN_FILE_VERSION="1.13.0.0" BIN_PRODUCT_VERSION="1.13.0.0" PRODUCT_VERSION="1.13" FILE_DESCRIPTION="LGPLed libiconv for Windows NT/2000/XP/Vista and Windows 95/98/ME" COMPANY_NAME="Free Software Foundation" PRODUCT_NAME="libiconv: character set conversion library" FILE_VERSION="1.13" ORIGINAL_FILENAME="iconv.dll" INTERNAL_NAME="iconv.dll" LEGAL_COPYRIGHT="Copyright (C) 1999-2007" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x10004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x10D0A8" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="1.13.0.0" UPTO_BIN_PRODUCT_VERSION="1.13.0.0" LINK_DATE="04/23/2009 12:03:32" UPTO_LINK_DATE="04/23/2009 12:03:32" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="libintl-8.dll" SIZE="122719" CHECKSUM="0xCBA4DCD8" MODULE_TYPE="WIN32" PE_CHECKSUM="0x2CEA6" LINKER_VERSION="0x10000" LINK_DATE="07/26/2009 00:02:07" UPTO_LINK_DATE="07/26/2009 00:02:07" />
    <MATCHING_FILE NAME="libOpenThreads.dll" SIZE="3818799" CHECKSUM="0x25F1D43D" MODULE_TYPE="WIN32" PE_CHECKSUM="0x3AF480" LINKER_VERSION="0x20004" LINK_DATE="01/23/2012 17:06:42" UPTO_LINK_DATE="01/23/2012 17:06:42" />
    <MATCHING_FILE NAME="libosg.dll" SIZE="10253605" CHECKSUM="0x24109E1B" MODULE_TYPE="WIN32" PE_CHECKSUM="0x9CD60E" LINKER_VERSION="0x20008" LINK_DATE="01/23/2012 17:08:28" UPTO_LINK_DATE="01/23/2012 17:08:28" />
    <MATCHING_FILE NAME="libosgDB.dll" SIZE="5426002" CHECKSUM="0x2A052E99" MODULE_TYPE="WIN32" PE_CHECKSUM="0x53A4FD" LINKER_VERSION="0x20008" LINK_DATE="01/23/2012 17:08:57" UPTO_LINK_DATE="01/23/2012 17:08:57" />
    <MATCHING_FILE NAME="libosgFX.dll" SIZE="3977544" CHECKSUM="0xF99E6527" MODULE_TYPE="WIN32" PE_CHECKSUM="0x3D90C6" LINKER_VERSION="0x20008" LINK_DATE="01/23/2012 17:11:24" UPTO_LINK_DATE="01/23/2012 17:11:24" />
    <MATCHING_FILE NAME="libosgGA.dll" SIZE="4357628" CHECKSUM="0xEE33B3F8" MODULE_TYPE="WIN32" PE_CHECKSUM="0x42B370" LINKER_VERSION="0x20008" LINK_DATE="01/23/2012 17:10:08" UPTO_LINK_DATE="01/23/2012 17:10:08" />
    <MATCHING_FILE NAME="libosgText.dll" SIZE="4419467" CHECKSUM="0xA14968DE" MODULE_TYPE="WIN32" PE_CHECKSUM="0x43D6A3" LINKER_VERSION="0x20008" LINK_DATE="01/23/2012 17:10:20" UPTO_LINK_DATE="01/23/2012 17:10:20" />
    <MATCHING_FILE NAME="libosgUtil.dll" SIZE="8522187" CHECKSUM="0x66536FF4" MODULE_TYPE="WIN32" PE_CHECKSUM="0x8282F0" LINKER_VERSION="0x20008" LINK_DATE="01/23/2012 17:09:49" UPTO_LINK_DATE="01/23/2012 17:09:49" />
    <MATCHING_FILE NAME="libosgViewer.dll" SIZE="5581874" CHECKSUM="0xF2198607" MODULE_TYPE="WIN32" PE_CHECKSUM="0x55A78F" LINKER_VERSION="0x20008" LINK_DATE="01/23/2012 17:10:46" UPTO_LINK_DATE="01/23/2012 17:10:46" />
    <MATCHING_FILE NAME="mico2313.dll" SIZE="9067201" CHECKSUM="0xE806BAE0" MODULE_TYPE="WIN32" PE_CHECKSUM="0x8AEB9E" LINKER_VERSION="0x10000" LINK_DATE="09/15/2011 15:32:48" UPTO_LINK_DATE="09/15/2011 15:32:48" />
    <MATCHING_FILE NAME="mingwm10.dll" SIZE="11362" CHECKSUM="0xAF835F59" MODULE_TYPE="WIN32" PE_CHECKSUM="0xEA04" LINKER_VERSION="0x10000" LINK_DATE="01/10/2009 19:32:37" UPTO_LINK_DATE="01/10/2009 19:32:37" />
    <MATCHING_FILE NAME="omc.exe" SIZE="48145159" CHECKSUM="0x68A31FA9" MODULE_TYPE="WIN32" PE_CHECKSUM="0x2DF1C9A" LINKER_VERSION="0x10000" LINK_DATE="10/19/2012 11:59:10" UPTO_LINK_DATE="10/19/2012 11:59:10" />
    <MATCHING_FILE NAME="OMEdit.exe" SIZE="2535424" CHECKSUM="0x2570CC95" MODULE_TYPE="WIN32" PE_CHECKSUM="0x272688" LINKER_VERSION="0x10000" LINK_DATE="10/19/2012 12:00:54" UPTO_LINK_DATE="10/19/2012 12:00:54" />
    <MATCHING_FILE NAME="omniDynamic416_rt.dll" SIZE="2933117" CHECKSUM="0x849F0818" MODULE_TYPE="WIN32" PE_CHECKSUM="0x2CEE56" LINKER_VERSION="0x10000" LINK_DATE="04/26/2012 11:55:58" UPTO_LINK_DATE="04/26/2012 11:55:58" />
    <MATCHING_FILE NAME="omniORB416_rt.dll" SIZE="2092073" CHECKSUM="0xCAF52069" MODULE_TYPE="WIN32" PE_CHECKSUM="0x20E044" LINKER_VERSION="0x10000" LINK_DATE="04/26/2012 11:52:01" UPTO_LINK_DATE="04/26/2012 11:52:01" />
    <MATCHING_FILE NAME="omniORB416_vc10_rt.dll" SIZE="1496064" CHECKSUM="0xE25C2989" BIN_FILE_VERSION="4.1.6.241" BIN_PRODUCT_VERSION="4.1.6.241" PRODUCT_VERSION="4.1.6.F1" FILE_DESCRIPTION="omniORB" COMPANY_NAME="omniORB open source project" PRODUCT_NAME="omniORB" FILE_VERSION="4.1.6.F1" ORIGINAL_FILENAME="omniORB416_vc10_rt.dll" INTERNAL_NAME="omniORB416_vc10_rt.dll" LEGAL_COPYRIGHT="Apasphere Ltd., AT&T Laboratories Cambridge, and others. Freely available under the terms of the GNU LGPL." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x0" VERFILETYPE="0x0" MODULE_TYPE="WIN32" PE_CHECKSUM="0x17C2F6" LINKER_VERSION="0x10006" UPTO_BIN_FILE_VERSION="4.1.6.241" UPTO_BIN_PRODUCT_VERSION="4.1.6.241" LINK_DATE="02/13/2012 00:33:57" UPTO_LINK_DATE="02/13/2012 00:33:57" VER_LANGUAGE="Language Neutral [0x0]" />
    <MATCHING_FILE NAME="omnithread34_rt.dll" SIZE="285317" CHECKSUM="0x3F8E070A" MODULE_TYPE="WIN32" PE_CHECKSUM="0x4A4A9" LINKER_VERSION="0x10000" LINK_DATE="04/26/2012 11:49:37" UPTO_LINK_DATE="04/26/2012 11:49:37" />
    <MATCHING_FILE NAME="omnithread34_vc10_rt.dll" SIZE="49152" CHECKSUM="0x6214A47" BIN_FILE_VERSION="3.4.241.0" BIN_PRODUCT_VERSION="4.1.6.241" PRODUCT_VERSION="4.1.6.F1" FILE_DESCRIPTION="omniORB" COMPANY_NAME="omniORB open source project" PRODUCT_NAME="omniORB" FILE_VERSION="3.4.F1" ORIGINAL_FILENAME="omnithread34_vc10_rt.dll" INTERNAL_NAME="omnithread34_vc10_rt.dll" LEGAL_COPYRIGHT="Apasphere Ltd., AT&T Laboratories Cambridge, and others. Freely available under the terms of the GNU LGPL." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x0" VERFILETYPE="0x0" MODULE_TYPE="WIN32" PE_CHECKSUM="0xDCAB" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="3.4.241.0" UPTO_BIN_PRODUCT_VERSION="4.1.6.241" LINK_DATE="02/13/2012 00:33:58" UPTO_LINK_DATE="02/13/2012 00:33:58" VER_LANGUAGE="Language Neutral [0x0]" />
    <MATCHING_FILE NAME="OMNotebook.exe" SIZE="2546176" CHECKSUM="0xCD4D21A" MODULE_TYPE="WIN32" PE_CHECKSUM="0x27ACB8" LINKER_VERSION="0x10000" LINK_DATE="10/19/2012 12:01:33" UPTO_LINK_DATE="10/19/2012 12:01:33" />
    <MATCHING_FILE NAME="OMOptim.exe" SIZE="3963904" CHECKSUM="0x2C09B7C2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x3CAAE7" LINKER_VERSION="0x10000" LINK_DATE="10/19/2012 12:03:49" UPTO_LINK_DATE="10/19/2012 12:03:49" />
    <MATCHING_FILE NAME="OMPlot.exe" SIZE="740864" CHECKSUM="0x48F0A6D3" MODULE_TYPE="WIN32" PE_CHECKSUM="0xC07FB" LINKER_VERSION="0x10000" LINK_DATE="10/19/2012 11:59:34" UPTO_LINK_DATE="10/19/2012 11:59:34" />
    <MATCHING_FILE NAME="OMShell.exe" SIZE="943104" CHECKSUM="0xD1ADF979" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF13F8" LINKER_VERSION="0x10000" LINK_DATE="10/19/2012 12:01:45" UPTO_LINK_DATE="10/19/2012 12:01:45" />
    <MATCHING_FILE NAME="OMVisualize.exe" SIZE="972302" CHECKSUM="0x71236F2C" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF773F" LINKER_VERSION="0x10000" LINK_DATE="10/19/2012 11:59:47" UPTO_LINK_DATE="10/19/2012 11:59:47" />
    <MATCHING_FILE NAME="phonon4.dll" SIZE="347136" CHECKSUM="0x3DF3C49E" BIN_FILE_VERSION="4.4.0.0" BIN_PRODUCT_VERSION="4.4.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.4.0.0" ORIGINAL_FILENAME="phonon4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x5949C" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.4.0.0" UPTO_BIN_PRODUCT_VERSION="4.4.0.0" LINK_DATE="12/12/2011 06:23:41" UPTO_LINK_DATE="12/12/2011 06:23:41" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="pthreadGC2.dll" SIZE="60273" CHECKSUM="0x6F962FE4" BIN_FILE_VERSION="2.8.0.0" BIN_PRODUCT_VERSION="2.8.0.0" PRODUCT_VERSION="2, 8, 0, 0" FILE_DESCRIPTION="POSIX Threads for Windows32 Library" COMPANY_NAME="Open Source Software community project" FILE_VERSION="2, 8, 0, 0" ORIGINAL_FILENAME="pthreadGC" INTERNAL_NAME="pthreadGC" LEGAL_COPYRIGHT="Copyright (C) Project contributors 1998-2004" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x11321" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="2.8.0.0" UPTO_BIN_PRODUCT_VERSION="2.8.0.0" LINK_DATE="12/22/2006 01:08:58" UPTO_LINK_DATE="12/22/2006 01:08:58" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="QtCore4.dll" SIZE="2843136" CHECKSUM="0xAE7BE62" BIN_FILE_VERSION="4.8.0.0" BIN_PRODUCT_VERSION="4.8.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.8.0.0" ORIGINAL_FILENAME="QtCore4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x2C2374" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.8.0.0" UPTO_BIN_PRODUCT_VERSION="4.8.0.0" LINK_DATE="12/12/2011 05:40:12" UPTO_LINK_DATE="12/12/2011 05:40:12" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="QtGui4.dll" SIZE="10135040" CHECKSUM="0x9BA16646" BIN_FILE_VERSION="4.8.0.0" BIN_PRODUCT_VERSION="4.8.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.8.0.0" ORIGINAL_FILENAME="QtGui4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x9B607C" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.8.0.0" UPTO_BIN_PRODUCT_VERSION="4.8.0.0" LINK_DATE="12/12/2011 06:05:16" UPTO_LINK_DATE="12/12/2011 06:05:16" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="QtNetwork4.dll" SIZE="1289728" CHECKSUM="0xC33389D5" BIN_FILE_VERSION="4.8.0.0" BIN_PRODUCT_VERSION="4.8.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.8.0.0" ORIGINAL_FILENAME="QtNetwork4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x14582E" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.8.0.0" UPTO_BIN_PRODUCT_VERSION="4.8.0.0" LINK_DATE="12/12/2011 05:43:19" UPTO_LINK_DATE="12/12/2011 05:43:19" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="QtOpenGL4.dll" SIZE="989184" CHECKSUM="0xFEAD0E9" BIN_FILE_VERSION="4.8.0.0" BIN_PRODUCT_VERSION="4.8.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.8.0.0" ORIGINAL_FILENAME="QtOpenGL4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xFE453" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.8.0.0" UPTO_BIN_PRODUCT_VERSION="4.8.0.0" LINK_DATE="12/12/2011 06:12:02" UPTO_LINK_DATE="12/12/2011 06:12:02" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="QtSvg4.dll" SIZE="373760" CHECKSUM="0x2D250D4E" BIN_FILE_VERSION="4.8.0.0" BIN_PRODUCT_VERSION="4.8.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.8.0.0" ORIGINAL_FILENAME="QtSvg4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x63364" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.8.0.0" UPTO_BIN_PRODUCT_VERSION="4.8.0.0" LINK_DATE="12/12/2011 06:25:03" UPTO_LINK_DATE="12/12/2011 06:25:03" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="QtWebKit4.dll" SIZE="20170240" CHECKSUM="0x9812BFB9" BIN_FILE_VERSION="4.9.0.0" BIN_PRODUCT_VERSION="4.9.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.9.0.0" ORIGINAL_FILENAME="QtWebKit4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x1347F39" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.9.0.0" UPTO_BIN_PRODUCT_VERSION="4.9.0.0" LINK_DATE="12/12/2011 09:07:10" UPTO_LINK_DATE="12/12/2011 09:07:10" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="QtXml4.dll" SIZE="399872" CHECKSUM="0x3AF71D88" BIN_FILE_VERSION="4.8.0.0" BIN_PRODUCT_VERSION="4.8.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.8.0.0" ORIGINAL_FILENAME="QtXml4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x70A1F" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.8.0.0" UPTO_BIN_PRODUCT_VERSION="4.8.0.0" LINK_DATE="12/12/2011 05:40:36" UPTO_LINK_DATE="12/12/2011 05:40:36" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="qwt5.dll" SIZE="802304" CHECKSUM="0x2D38B182" BIN_FILE_VERSION="5.2.1.0" BIN_PRODUCT_VERSION="5.2.1.0" FILE_DESCRIPTION="" COMPANY_NAME="" PRODUCT_NAME="qwt" FILE_VERSION="5.2.1.0" ORIGINAL_FILENAME="qwt5.dll" LEGAL_COPYRIGHT="" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xC96FB" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="5.2.1.0" UPTO_BIN_PRODUCT_VERSION="5.2.1.0" LINK_DATE="03/04/2011 12:22:50" UPTO_LINK_DATE="03/04/2011 12:22:50" />
    <MATCHING_FILE NAME="iconengines\qsvgicon4.dll" SIZE="98816" CHECKSUM="0x428F7888" BIN_FILE_VERSION="4.8.0.0" BIN_PRODUCT_VERSION="4.8.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.8.0.0" ORIGINAL_FILENAME="qsvgicon4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x22017" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.8.0.0" UPTO_BIN_PRODUCT_VERSION="4.8.0.0" LINK_DATE="12/12/2011 09:14:25" UPTO_LINK_DATE="12/12/2011 09:14:25" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
<EXE NAME="QtCore4.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="QtCore4.dll" SIZE="2843136" CHECKSUM="0xAE7BE62" BIN_FILE_VERSION="4.8.0.0" BIN_PRODUCT_VERSION="4.8.0.0" FILE_DESCRIPTION="C++ application development framework." COMPANY_NAME="Nokia Corporation and/or its subsidiary(-ies)" PRODUCT_NAME="Qt4" FILE_VERSION="4.8.0.0" ORIGINAL_FILENAME="QtCore4.dll" LEGAL_COPYRIGHT="Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x2C2374" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="4.8.0.0" UPTO_BIN_PRODUCT_VERSION="4.8.0.0" LINK_DATE="12/12/2011 05:40:12" UPTO_LINK_DATE="12/12/2011 05:40:12" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="kernel32.dll" SIZE="1010176" CHECKSUM="0xC1164B55" BIN_FILE_VERSION="5.2.3790.5069" BIN_PRODUCT_VERSION="5.2.3790.5069" PRODUCT_VERSION="5.2.3790.5069" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.2.3790.5069 (srv03_sp2_gdr.120928-0333)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x10423B" LINKER_VERSION="0x50002" UPTO_BIN_FILE_VERSION="5.2.3790.5069" UPTO_BIN_PRODUCT_VERSION="5.2.3790.5069" LINK_DATE="10/03/2012 07:26:16" UPTO_LINK_DATE="10/03/2012 07:26:16" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
</DATABASE>

This is reproducible, not just a one-off.

Thanks,

Arnaud

Hello,

I am going through the user's guide (), and ma having similar problems the ones decribed in this https://www.openmodelica.org/index.php/ … =728 topic. I am also using OpenModelica 1.9.0 Beta and users guide version 2012-09-14.  My issue is that I cannot seem to be able to load the library SimpleVisual:

Code:

loadLibrary(Modelica.SimpleVisual)


OMC-ERROR:
"Error: Class loadLibrary not found in scope <global scope> (looking for a function or record)."

simulate(BouncingBall3D, startTime= 0, stopTime = 5)

record SimulationResult
    resultFile = "",
    simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'BouncingBall3D', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "Simulation failed for model: BouncingBall3D
[<interactive>:3:1-3:57:writable] Error: Class SimpleVisual.PositionSize not found in scope BouncingBall3D.
Error: Error occurred while flattening model BouncingBall3D
",
    timeFrontend = 0.0,
    timeBackend = 0.0,
    timeSimCode = 0.0,
    timeTemplates = 0.0,
    timeCompile = 0.0,
    timeSimulation = 0.0,
    timeTotal = 0.0
end SimulationResult;

I have tried with OMNotebook and OMShell to no avail. The file is physically present though in C:\OpenModelica1.9.0\lib\omlibrary.

I am also having similar problems with pltpkg (just trying to follow what's in the user's guide).

Any suggestions?

Thanks,

Arnaud

Perfect, thank you very much!

Maybe this should be included in the users' guide?

Arnaud

Hello,

I am trying to learn Modelica and OpenModelica, and so far I have been using OMNotebook with DrModelica. Today, I tried OMShell (following what's in the user's guide), but when I type a plot command, nothing happens:

Code:

>> simulate(dcmotor,startTime=0.0,stopTime=10.0)

record SimulationResult
    resultFile = "C:/OpenModelica1.9.0/share/doc/omc/testmodels/dcmotor_res.mat",
    simulationOptions = "startTime = 0.0, stopTime = 10.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'dcmotor', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
    messages = "",
    timeFrontend = 0.582961521645908,
    timeBackend = 0.0231669108783379,
    timeSimCode = 0.00703217867075285,
    timeTemplates = 0.0601325028739686,
    timeCompile = 2.24850392996875,
    timeSimulation = 0.168091475313203,
    timeTotal = 3.08999132571318
end SimulationResult;

>> plot({load.w,load.phi})
{"_omc_PlotResult","C:/OpenModelica1.9.0/share/doc/omc/testmodels/dcmotor_res.mat","Plot by OpenModelica","true","true","plot","false","false","time","","0.0","0.0","0.0","0.0","load.w","load.phi"}

and nothing happens. Similarly, when I try to double-click (using Windows XP) on OMPlot.exe, nothing happens either.

I was able to plot OK in OMNotebook.

Many thanks in advance,

Arnaud

adeas wrote:

Hi Arnaud,

When you install without admin rights, you won't get any option from installer to choose "install for me or install for all users".
If you are not admin you are always installing for yourself only.

You should get an OpenModelica folder in your start menu.

Can you check if the environment variables are set for you or not? Run set command in cmd and see the results. The result list should have OPENMODELICAHOME and OPENMODELICALIBRARY.

Adeel.

Thanks, but the point is I am not allowed to install anything, whether I have admin rights or not, IT has to do it (using their admin log in). The environment variables were definitely not set and there was no OpenModelica folder in my start menu. I created a user variable (can't create system variables) for OPENMODELICAHOME and that now seems to work. What should OPENMODELICALIBRARY be set to? I don't have that one.

Thanks again for your help,

Arnaud

sjoelund.se wrote:

There should be some pdf's that come with the windows builds. Try to look in share/doc/omc/. OMEdit knows where to look for its documentation (F1, or Help->User manual).

Thanks, much appreciated.


adrpo wrote:

Hi,

Try install only for me, not for all users and it should work even with a non-admin user.

Cheers,
Adrian Pop/

Thanks. I am not technically allowed to install anything on my machine. IT has to vet and install everything.

Arnaud

Hello,

I am brand new to OpenModelica, got IT to download and install v1.9.0 beta 2 on my machine (Windows XP) as I don't have admin rights. The first thing I noticed is that there weren't any shortcuts created on my desktop or a program group in the start menu. So I created my own shortcuts on the desktop to OMEdit, OMNotebook, OMPlot and OMVisualize (from C:\OpenModelica1.9.0\bin). I assume it's OK to do that.

When I tried to double-click on OMEdit, I got the following error message:
"Could not find environment variable OPENMODELICAHOME. Please make sure OpenModelica is installed properly"

Because I don't have admin rights, I can't create any system variables, but I created a user variable OPENMODELICAHOME and set it to C:\OpenModelica1.9.0. That seemed to fix the problem. I am also able to open OMNotebook. I haven't tried the other programs.

I can't seem to find any documentation for OpenModelica (at least in that release). Is there a user guide or a getting started guide available? I am aware of DrModelica, which I intend to go through. Are there any other resources?

Thanks in advance,

Arnaud

  • Index
  • » Users
  • » am304
  • » Profile
You are here: