LoadProfileGenerator icon indicating copy to clipboard operation
LoadProfileGenerator copied to clipboard

Generating load profile in linux, libraries required

Open brunorigal opened this issue 3 years ago • 5 comments

Hi, tanks for this nice software I would like to run the software in linux. I did the chmod command you suggested in a closed issue. However, once it is done, how can I run the software? Does it need Wine?

brunorigal avatar Nov 12 '21 08:11 brunorigal

Got it, it just needs dotnet

brunorigal avatar Nov 12 '21 08:11 brunorigal

But now when I run:

./simengine2 LaunchJsonParallel -d /home/user/household_config.json -ar /home/user/results/

I get the following error:

~/garbage/load_sim » ./simengine2 LaunchJsonParallel -d /home/user/garbage/load_generator_configs/res.json -ar /home/bruno/garbage/load_results                                           134 ↵ bruno@brg5
Command line:
LaunchJsonParallel
-d
/home/user/garbage/load_generator_configs/res.json
-ar
/home/bruno/garbage/load_results
Starting...
Initializing the logger
I Logfile path: (null), Logging to file: False, Severity: Debug, LogFileIndex: JsonParallelCalculationStarter
L Logfile path: (null), Logging to file: True, Severity: Debug, LogFileIndex: JsonParallelCalculationStarter
Starting (no thread name) #1: ParallelJsonLauncher.LaunchParallel
L Logfile path: (null), Logging to file: True, Severity: Debug, LogFileIndex: JsonParallelCalculationStarter
Reading options
Json Directory: /home/bruno/garbage/load_generator_configs/res.json
Maximum number of calculations to perform before quitting: -1
Number of cores to use: -1
Search in the subdirectories for files: False
Archiving folder is /home/user/garbage/load_results
Unhandled exception. Automation.ResultFiles.LPGException: simulationengine.exe was not found in the directory /home/bruno/garbage/load_sim
   at SimulationEngineLib.HouseJobProcessor.ParallelJsonLauncher.LaunchParallelInternal(ParallelJsonLauncherOptions options)
   at SimulationEngineLib.HouseJobProcessor.ParallelJsonLauncher.LaunchParallel(ParallelJsonLauncherOptions options)
   at SimulationEngineLib.CommandProcessor.LaunchJsonParallel(ParallelJsonLauncherOptions args)
--- End of stack trace from previous location ---
   at PowerArgs.ArgAction.Invoke()
   at PowerArgs.Args.<>c__DisplayClass17_1.<InvokeAction>b__3()
   at PowerArgs.Args.Execute[T](Func`1 argsProcessingCode)
   at PowerArgs.Args.<>c__DisplayClass17_0.<InvokeAction>b__2(String[] a)
   at PowerArgs.REPL.DriveREPL[T](TabCompletion t, Func`2 eval, String[] args, Func`1 defaultEval)
   at PowerArgs.Args.InvokeAction(CommandLineArgumentsDefinition definition, String[] args)
   at SimulationEngineLib.MainSimEngine.RunOptionProcessing(String connectionString, String[] args, String exename)
   at SimulationEngineLib.MainSimEngine.Run(String[] args, String exename)
   at SimEngine2.Program.Main(String[] args)
[1]    16961 abort (core dumped)  ./simengine2 LaunchJsonParallel -d 

brunorigal avatar Nov 12 '21 08:11 brunorigal

The parallel running is not implemented in Linux, because for Linux there are very good tools to automate that already. This needs to be better documented though, so thanks for pointing that out.

Look for example at https://www.gnu.org/software/parallel/ This can be easily used together with the LPG.

noah80 avatar Nov 12 '21 11:11 noah80

Great it works well. Do you have some documentation concerning the simulation parameters files?

brunorigal avatar Nov 23 '21 09:11 brunorigal

There is this: https://loadprofilegenerator.de/calculatinglargenumbers/

It's a bit outdated though.

noah80 avatar Dec 07 '21 07:12 noah80