Jianfeng,
Seems like there are some issues in your model. The error you are seeing ("FATAL : Invalid MODEL, missing MODEL root element”) shows that you are not running the main model file. You try to run the bvm on one of the objects (Kim_Account) in the model, not on the main model itself. Every Brahms model has or should have a main model file (normally a file with all the import statements for all concepts in the model). In the ATM model this is the AtmModel.b file.
1) You should run the AtmModel.bcc file. This should be the compiled model file.
2) However, I don’t see the AtmModel.bcc file in your build folder.
3) Also, I see .xml files in your source folder. How did they get there?
4) Did you use the Composer to build (i.e. compile) your model (as opposed to using the bc command on a command line)?
5) Did you try to use the Composer to run your model (as opposed to using the bvm command on the command line)?
Maarten.
> On May 11, 2016, at 7:37 PM, Jianfeng Chen <
jch...@ncsu.edu> wrote:
>
> Hello!
> I am a Brahms beginner. I want to run the ATM model example. I think I have compiled them correctly (with the help of composer). But when I run the model, nothing shows in the VM Log. Consequently, I run the model by command.
> The following is the error log. For convenient, I also attached the file tree in Atm Project.
> Anyone know how to solve this problem?
>
> Thanks very much!
>
>
> jianfeng:build/ $ bvm -cf /Applications/Brahms/AgentEnvironment/config/vm.cfg gov.nasa.arc.brahms.atm.Kim_Account [22:32:35]
> log4j:WARN No appenders could be found for logger (gov.nasa.arc.brahms.vm.bvm).
> log4j:WARN Please initialize the log4j system properly.
> INFO : Brahms Virtual Machine - Version: 5.2.16
> INFO : CI Interface - Version: 1.12.28
> INFO : Copyright (c) 1999-2012 NASA Ames Research Center. All Rights Reserved.
> INFO : Serial number: 31069553195769916 License expires: 05/08/2017
> INFO : Initializing virtual machine
> INFO : Logger created and initialized
> INFO : Starting event notifier
> FATAL : Invalid MODEL, missing MODEL root element
> gov.nasa.arc.brahms.vm.api.exceptions.ConceptFormatError: Invalid MODEL, missing MODEL root element
> at gov.nasa.arc.brahms.vm.controller.ModelLoader.defineModel(ModelLoader.java:236)
> at gov.nasa.arc.brahms.vm.controller.ModelLoader.loadModel(ModelLoader.java:85)
> at gov.nasa.arc.brahms.vm.controller.VMController.loadModel(VMController.java:912)
> at gov.nasa.arc.brahms.vm.bvm.initialize(bvm.java:257)
> at gov.nasa.arc.brahms.vm.bvm.initialize(bvm.java:195)
> at gov.nasa.arc.brahms.vm.bvm.<init>(bvm.java:99)
> at gov.nasa.arc.brahms.vm.bvm.main(bvm.java:79)
> jianfeng:build/ $
>
>
>
>
>
>
>
>
>
> jianfeng:final_source/ $ which bvm [22:31:00]
> /Applications/Brahms/AgentEnvironment/bin/bvm
> jianfeng:final_source/ $ which bc [22:31:02]
> /Applications/Brahms/AgentEnvironment/bin/bc
> jianfeng:final_source/ $ tree
> .
> ├── Account.bmd
> ├── AtmModel.bmd
> ├── build
> │ └── gov
> │ └── nasa
> │ └── arc
> │ └── brahms
> │ └── atm
> │ ├── Account.bcc
> │ ├── Alex_Account.bcc
> │ ├── Alex_Agent.bcc
> │ ├── Alex_BankCard.bcc
> │ ├── Alex_Cash.bcc
> │ ├── Atm.bcc
> │ ├── AtmGeography.bcc
> │ ├── BOA_to_from_BB.bcc
> │ ├── BOA_to_from_RB.bcc
> │ ├── Bancroft_Av_77.bcc
> │ ├── Bank.bcc
> │ ├── BankBranch.bcc
> │ ├── BankCard.bcc
> │ ├── Berkeley.bcc
> │ ├── Blakes_Diner.bcc
> │ ├── Boa_Atm.bcc
> │ ├── Boa_Bank.bcc
> │ ├── Campanile_Clock.bcc
> │ ├── Cash.bcc
> │ ├── Diner.bcc
> │ ├── Invoice.bcc
> │ ├── Kim_Account.bcc
> │ ├── Kim_Agent.bcc
> │ ├── Kim_BankCard.bcc
> │ ├── Kim_Cash.bcc
> │ ├── MyClock.bcc
> │ ├── Raleigh_Diner.bcc
> │ ├── Restaurant.bcc
> │ ├── SouthHall.bcc
> │ ├── SpH_to_from_BB.bcc
> │ ├── SpH_to_from_BOA.bcc
> │ ├── SpH_to_from_RB.bcc
> │ ├── SpH_to_from_WF.bcc
> │ ├── SpraulHall.bcc
> │ ├── StH_to_from_BB.bcc
> │ ├── StH_to_from_BOA.bcc
> │ ├── StH_to_from_RB.bcc
> │ ├── StH_to_from_WF.bcc
> │ ├── Student.bcc
> │ ├── Telegraph_Av_113.bcc
> │ ├── Telegraph_Av_2134.bcc
> │ ├── Telegraph_Av_2405.bcc
> │ ├── UCB.bcc
> │ ├── University.bcc
> │ ├── UniversityHall.bcc
> │ ├── WF_Atm.bcc
> │ ├── WF_Bank.bcc
> │ ├── WF_to_from_BB.bcc
> │ ├── WF_to_from_RB.bcc
> │ └── brahms.lic
> ├── gov
> │ └── nasa
> │ └── arc
> │ └── brahms
> │ └── atm
> │ ├── Account.b
> │ ├── Account.xml
> │ ├── Alex_Account.b
> │ ├── Alex_Account.xml
> │ ├── Alex_Agent.b
> │ ├── Alex_Agent.xml
> │ ├── Alex_BankCard.b
> │ ├── Alex_BankCard.xml
> │ ├── Alex_Cash.b
> │ ├── Alex_Cash.xml
> │ ├── Atm.b
> │ ├── Atm.xml
> │ ├── AtmGeography.b
> │ ├── AtmGeography.xml
> │ ├── AtmModel.b
> │ ├── AtmModel.xml
> │ ├── BOA_to_from_BB.xml
> │ ├── BOA_to_from_RB.xml
> │ ├── Bancroft_Av_77.xml
> │ ├── Bank.b
> │ ├── Bank.xml
> │ ├── BankBranch.xml
> │ ├── BankCard.b
> │ ├── BankCard.xml
> │ ├── Berkeley.xml
> │ ├── Blakes_Diner.b
> │ ├── Blakes_Diner.xml
> │ ├── Boa_Atm.b
> │ ├── Boa_Atm.xml
> │ ├── Boa_Bank.b
> │ ├── Boa_Bank.xml
> │ ├── Campanile_Clock.b
> │ ├── Campanile_Clock.xml
> │ ├── Cash.b
> │ ├── Cash.xml
> │ ├── Diner.b
> │ ├── Diner.xml
> │ ├── Invoice.b
> │ ├── Invoice.xml
> │ ├── Kim_Account.b
> │ ├── Kim_Account.xml
> │ ├── Kim_Agent.b
> │ ├── Kim_Agent.xml
> │ ├── Kim_BankCard.b
> │ ├── Kim_BankCard.xml
> │ ├── Kim_Cash.b
> │ ├── Kim_Cash.xml
> │ ├── MyClock.b
> │ ├── MyClock.xml
> │ ├── Raleigh_Diner.b
> │ ├── Raleigh_Diner.xml
> │ ├── Restaurant.xml
> │ ├── SouthHall.xml
> │ ├── SpH_to_from_BB.xml
> │ ├── SpH_to_from_BOA.xml
> │ ├── SpH_to_from_RB.xml
> │ ├── SpH_to_from_WF.xml
> │ ├── SpraulHall.xml
> │ ├── StH_to_from_BB.xml
> │ ├── StH_to_from_BOA.xml
> │ ├── StH_to_from_RB.xml
> │ ├── StH_to_from_WF.xml
> │ ├── Student.b
> │ ├── Student.xml
> │ ├── Telegraph_Av_113.xml
> │ ├── Telegraph_Av_2134.xml
> │ ├── Telegraph_Av_2405.xml
> │ ├── UCB.xml
> │ ├── University.xml
> │ ├── UniversityHall.xml
> │ ├── WF_Atm.b
> │ ├── WF_Atm.xml
> │ ├── WF_Bank.b
> │ ├── WF_Bank.xml
> │ ├── WF_to_from_BB.xml
> │ └── WF_to_from_RB.xml
> ├── ide_Account
> │ ├── activitymodel.backup.xml
> │ ├── activitymodel.xml
> │ ├── agentmodel.xml
> │ ├── conceptualobjectmodel.xml
> │ ├── geographymodel.xml
> │ └── objectmodel.xml
> └── lib
>
> 13 directories, 134 files
>
> --
> You received this message because you are subscribed to the Google Groups "Brahms Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
brahms-forum...@googlegroups.com.
> To post to this group, send email to
brahms...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/brahms-forum.
> For more options, visit
https://groups.google.com/d/optout.