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

Cannot load library simpleVisual or pltpkg

Cannot load library simpleVisual or pltpkg

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

Re: Cannot load library simpleVisual or pltpkg

We don't have anything like loadLibrary, you must call,

Code:

loadModel(SimpleVisual)

Adeel.

Re: Cannot load library simpleVisual or pltpkg

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

Re: Cannot load library simpleVisual or pltpkg

Can you post you visualization model?

I tried BouncingBall3D model with the latest OpenModelica nightly build and it worked fine. You can find the BouncingBall3D model in $OPENMODELICAHOME/share/doc/omc/testmodels/visualize_3D_BouncingBall.mo

Adeel.

Re: Cannot load library simpleVisual or pltpkg

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

Re: Cannot load library simpleVisual or pltpkg

Move the SimpleVisual object declaration in the end,

Code:


model BouncingBall3D
import SimpleVisual.*;
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;
SimpleVisual.PositionSize ball "color=red;shape=sphere;";
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;

I have fixed the bug in r14814. But for now use the above model.

Adeel.

Re: Cannot load library simpleVisual or pltpkg

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

Thanks again,

Arnaud

Re: Cannot load library simpleVisual or pltpkg

Modelica.pltpkg is not part of the current OpenModelica. The users guide is not updated.
You have to download old OpenModelica if you want to use it. Perhaps version 1.6 or 1.7.

Adeel.

Re: Cannot load library simpleVisual or pltpkg

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

There are 0 guests and 0 other users also viewing this topic
You are here: