Ask Your Question
0

I am using PSSE 36.1 version. while compiling user defined model code in environment manager I got the following error---

asked 2025-01-20 03:36:53 -0600

Nasika gravatar image

ifort /nologo /assume:bufferedio /traceback /libs:dll /threads /c /Qip /extend-source:132 /noaltparam /fpscomp:logicals /warn:declarations /warn:unused /warn:truncatedsource /Qdiag-disable:10448 /Qauto /iface:cvf /O2 /fpe:0 /Qprec /standard-semantics /include:"c:\program files\pti\psse36\36.1\PSSLIB" /object:"C:\Users\rtds.pssenvmgr\uexsobsolete.obj" /module:"C:\Users\rtds.pssenvmgr" "C:/Users/rtds/Desktop/UDM/PSSTest/uexs_obsolete.for"

C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(23): error #5102: Cannot open include file 'COMON4.INS' INCLUDE 'COMON4.INS' ! this is the global declaration --------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(44): error #6404: This name does not have a type, and must have an explicit type. [MODE] IF (MODE == 8) THEN ----------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(50): error #6410: This name has not been declared as an array or a function. [CONDSCRPT] CONDSCRPT(J) = 'TA (s), lead time constant' ---------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(51): error #6410: This name has not been declared as an array or a function. [CONDSCRPT] CONDSCRPT(J+1) = 'TB (s), lag time constant' ---------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(52): error #6410: This name has not been declared as an array or a function. [CONDSCRPT] CONDSCRPT(J+2) = 'K (pu), exciter gain' ---------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(53): error #6410: This name has not been declared as an array or a function. [CONDSCRPT] CONDSCRPT(J+3) = 'Te (s), exciter time constant' ---------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(54): error #6410: This name has not been declared as an array or a function. [CONDSCRPT] CONDSCRPT(J+4) = 'EMIN (pu), exciter minimum' ---------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(55): error #6410: This name has not been declared as an array or a function. [CONDSCRPT] CONDSCRPT(J+5) = 'EMAX (pu), exciter maximum' ---------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(58): error #6410: This name has not been declared as an array or a function. [STATEDSCRPT] STATEDSCRPT(K) ='First state of the block' ---------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(59): error #6410: This name has not been declared as an array or a function. [STATEDSCRPT] STATEDSCRPT(K+1) ='Second state of the block' ---------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(66): error #6404: This name does not have a type, and must have an explicit type. [STRTIN] J = STRTIN(1,SLOT) ! starting CON index ----------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(74): error #6404: This name does not have a type, and must have an explicit type. [NUMTRM] IB = NUMTRM(MC) ! bus sequence number -----------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsobsolete.for(88): error #6404: This name does not have a type, and must have an explicit type. [MIDTRM] IF ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2025-01-30 09:53:08 -0600

jconto gravatar image

PSSe 36.1 installation folder 'EXAMPLE' contains an 'old' & 'converted to VINDP' demo UDM file, UEXC. I was able to compile the converted UEXC on my set up:

PSS(R)E User Model Compile/Link - Environment Manager 10.0.3, Python 3.11.9 [x64] Fri Jan 24 12:36:57 2025

------------- PSS(R)E 36.1.0 Environment settings, EM 10.0.3, Py 3.11.9 [x64]

Fortran PATH paths (oneAPI 2024.2 - 19.2.978): c:\program files (x86)\intel\oneapi\compiler\2024.2\bin c:\program files (x86)\intel\oneapi\compiler\2024.2\bin

Visual Studio PATH paths (VS 2019): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64 C:\Program Files (x86)\windows kits\10\bin\10.0.19041.0\x64

Fortran LIB paths (oneAPI 2024.2 - 19.2.978): c:\program files (x86)\intel\oneapi\compiler\2024.2\lib

Visual Studio LIB paths (VS 2019): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\lib\x64 C:\Program Files (x86)\windows kits\10\Lib\10.0.19041.0\um\x64 C:\Program Files (x86)\windows kits\10\Lib\10.0.19041.0\ucrt\x64

Successfully added PSSE paths to local PATH and LIB environment.

------------- PSS(R)E 36.1.0 Environment settings, EM 10.0.3, Py 3.11.9 [x64]

Fortran PATH paths (oneAPI 2024.2 - 19.2.978): c:\program files (x86)\intel\oneapi\compiler\2024.2\bin c:\program files (x86)\intel\oneapi\compiler\2024.2\bin

Visual Studio PATH paths (VS 2019): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64 C:\Program Files (x86)\windows kits\10\bin\10.0.19041.0\x64

Fortran LIB paths (oneAPI 2024.2 - 19.2.978): c:\program files (x86)\intel\oneapi\compiler\2024.2\lib

Visual Studio LIB paths (VS 2019): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\lib\x64 C:\Program Files (x86)\windows kits\10\Lib\10.0.19041.0\um\x64 C:\Program Files (x86)\windows kits\10\Lib\10.0.19041.0\ucrt\x64

Successfully added PSSE paths to local PATH and LIB environment.

------------- PSS(R)E 36.1.0 Environment settings, EM 10.0.3, Py 3.11.9 [x64]

Fortran PATH paths (oneAPI 2024.2 - 19.2.978): c:\program files (x86)\intel\oneapi\compiler\2024.2\bin c:\program files (x86)\intel\oneapi\compiler\2024.2\bin

Visual Studio PATH paths (VS 2019): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64 C:\Program Files (x86)\windows kits\10\bin\10.0.19041.0\x64

Fortran LIB paths (oneAPI 2024.2 - 19.2.978): c:\program files (x86)\intel\oneapi\compiler\2024.2\lib

Visual Studio LIB paths (VS 2019): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29 ... (more)

edit flag offensive delete link more
0

answered 2025-01-21 00:27:13 -0600

Nasika gravatar image

Thank you for your quick response, after using the Converter option and compiling I got the below error..

-C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(23): error #7012: The module file cannot be read. Its format requires a more recent F90 compiler. [PSSDM] USE PSSDM -- C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(23): error #7012: The module file cannot be read. Its format requires a more recent F90 compiler. [PSSDM] USE PSSDM ! this is the global declaration ----------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(44): error #6404: This name does not have a type, and must have an explicit type. [GETMODE] IF (GETMODE() == 8) THEN ----------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(66): error #6404: This name does not have a type, and must have an explicit type. [GETSTRTIN] J = GETSTRTIN(1,SLOT) ! starting CON index ----------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(74): error #6404: This name does not have a type, and must have an explicit type. [GETNUMTRM] IB = GETNUMTRM(MC) ! bus sequence number -----------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(88): error #6404: This name does not have a type, and must have an explicit type. [GETMIDTRM] IF (GETMIDTRM()) RETURN ! model is not ready for Mid-term simulation -------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(88): error #6341: A logical data type is required in this context. [GETMIDTRM] IF (GETMIDTRM()) RETURN ! model is not ready for Mid-term simulation -------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(93): error #6404: This name does not have a type, and must have an explicit type. [GETVREF] VINP = GETVREF(MC) - GETETERM(MC) + GETVOTHSG(MC) + GETVUEL(MC) + ----------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(93): error #6404: This name does not have a type, and must have an explicit type. [GETETERM] VINP = GETVREF(MC) - GETETERM(MC) + GETVOTHSG(MC) + GETVUEL(MC) + -------------------------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(93): error #6404: This name does not have a type, and must have an explicit type. [GETVOTHSG] VINP = GETVREF(MC) - GETETERM(MC) + GETVOTHSG(MC) + GETVUEL(MC) + -----------------------------------------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(93): error #6404: This name does not have a type, and must have an explicit type. [GETVUEL] VINP = GETVREF(MC) - GETETERM(MC) + GETVOTHSG(MC) + GETVUEL(MC) + ----------------------------------------------------------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(94): error #6404: This name does not have a type, and must have an explicit type. [GETVOEL] & GETVOEL(MC) ----------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexsvindp.for(95): error #6404: This name does not have a type, and must have an explicit type. [LDLGMODE2] VOUT = LDLGMODE2(1.0, ! lead-lag block gain ----------------^ C:/Users/rtds/Desktop/UDM/PSSTest/uexs ... (more)

edit flag offensive delete link more

Comments

The answer is in the first line: "The module file cannot be read. Its format requires a more recent F90 compiler."

perolofl gravatar imageperolofl ( 2025-01-21 05:47:25 -0600 )edit
0

answered 2025-01-20 07:09:49 -0600

perolofl gravatar image

updated 2025-01-20 07:12:49 -0600

A dynamic model written for rev 35 must be converted to the new rev 36 format. Use option "VINDP Model Code Converter" found at the top of the Environment Manager window for the conversion.

For example "include comon4.ins" is replaced with "use pssdm" and all internal variables are now reached via API's. Variabel MODE is replaced with GET_MODE() etc.

See also this post.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2025-01-20 03:36:53 -0600

Seen: 2,549 times

Last updated: Jan 30