Menu

Getting started

2023-12-12
2024-03-05
  • Elizabeth M

    Elizabeth M - 2023-12-12

    Hi, all. I'm new to GridLAB-D and am trying to figure out the very basic process of actually getting a model (glm file) to compile and run on my laptop. I'm using the most recent GridLAB-D verison and writing my code in Atom. I;m following a tutorial video on YouTube that goes through a a general example of a 4-bus IEEE network. In the command window, I type in >gridlabd samplemodel.glm, just to get a look at whether it compiles.

    I try to compile it in my command window but I keep getting this error:

    samplemodel.glm(20): expected object block starting {
    samplemodel.glm(20): load failed at or near 'object overh...'
    ERROR [INIT] : unable to load 'samplemodel.glm': No such file or directory
    FATAL [INIT] : shutdown after command line rejected

    I thought I downloaded all the resources that were available for Windows, but does this error mean there is some library of objects that I'm missing? Line 20 is when the first object is defined (overhead_line_conductor). I'm quite new to this whole process so really any advice is appreciated.

    thanks :)

     
    • Frank Tuffner

      Frank Tuffner - 2023-12-19

      Hello Elizabeth,

      Can you provide a link (or post) the IEEE 4-bus network file you're using? It sounds like there's a syntax error, but it is hard to tell what exactly is going on with that output. I do not think it is due to any missing libraries or anything like that - it looks like it is trying to run (so that's a good start!).

      If you can post a link to the video, that may be helpful too (just in case we have a mistake in it). I usually refer people to the GridLAB-D tutorial (and its files located here). There are older videos posted on this page which reference the files here.

      Hopefully that helps, but if you can post your "samplemodel.glm".

      -Frank

       
      • Abdullah Al Mamun

        Hi Dr. Tuffner,
        Thank you for these important link. I believe Elizabeth is referring to this video : Youtube

        I am also facing similar issue. Even when I am running pre-loaded IEEE-13.glm I am getting the following error message:

        "PS C:\1.MAMUN\gridlabd> gridlabd IEEE_13.glm --profile

        ERROR [INIT] : Module version 4.1 mismatch from core version 5.1
        IEEE_13.glm(11): module 'powerflow' load failed, No such file or directory
        IEEE_13.glm(11): load failed at or near 'module power...'
        ERROR [INIT] : unable to load 'IEEE_13.glm': No such file or directory
        FATAL [INIT] : shutdown after command line rejected
        PS C:\1.MAMUN\gridlabd> gridlabd --help
        "

        Could you please help me to debug the issues here? I think I properly installed Gridlab-D.
        I used WSL and installed Debian 12 and installed GridLab-D over there. It would be great if you could direct me to a step by step Gridlab-D installation process on a Windows machine. I am a beginner level linux user.

        Thank you.

        -Mamun

         
        • Frank Tuffner

          Frank Tuffner - 2024-03-04

          Hello Mamun,

          Apologies for the delay getting back to you.

          The YouTube sequence linked (it was in a message you deleted) is a set done by a third-party that was posted to YouTube - it wasn't an official GridLAB-D tutorial, so that may be why it has some oddities in it.

          We highly recommend users visit the official wiki, especially the GridLAB-D tutorial page.

          First off, that error looks like you have multiple versions of GridLAB-D installed. Since you mentioned a Debian install in WSL, I'm guessing you also have the standard Windows install (an earlier version) installed elsewhere. Unless you have a very specific need for this, we highly encourage you to only install a single version.

          I'm also a little confused by the use case. There is a Windows compiled version of v5.2 (and all previous versions) available on the releases page. Installing GridLAB-D under WSL certainly is an option, it just seems a little odd to not use the Windows installer if you're on a Windows machine. Given that you mentioned you're a beginning Linux user, I'd highly recommend using the Windows-native version, rather than the WSL version.

          With the Windows installer (and prior versions removed), it should properly be added to the environment so that the command you tried to run should work then (assuming the IEEE_13.glm is in the folder you are running it in).

          Hopefully that helps get things a little further along. If you still ahve questions, please let us know.

          -Frank

           
  • Abdullah Al Mamun

    Hi Dr. Tuffner,

    Thank you for your valuable reply and specially guiding me to the tutorial pages.

    Yes, you are correct. I had multiple versions of GridLAB-D installed. I have fixed the issue. Currently, I am using GridLAB-D in my ubuntu via Oracle VM Virtual Box and it is working fine. I can run the glm models now.

    Also thank you for pointing out about the windows installer. I don't know why I missed it but it is definitely a great alternative for me. In future, any problem arises, I would definitely reach out here.

    -Mamun

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.