Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Simple Heuristics Example for Solver and SimuLizar #100

Open
joehen opened this issue Nov 6, 2023 · 0 comments
Open

Test Simple Heuristics Example for Solver and SimuLizar #100

joehen opened this issue Nov 6, 2023 · 0 comments
Assignees

Comments

@joehen
Copy link

joehen commented Nov 6, 2023

  Test Step Expected Result
1 Start PCM and import project into workspace: Either choose File → New → Project… → New Palladio Project - Sirius → Next > → Enter any project name → Next > → Check “Create a Palladio project using one of the initiator templates.” and “Show advanced view (all examples).” → Choose “Palladio-Example-Models“ → “Simple Tactics Example” → Finish, or clone the "SimpleHeuristicsExample_Example" projects from GitHub and Import it to Eclipse: File → Import → Existing Projects into Workspace → Choose the correct root directory and the folder and click → Finish PCM IDE up and running, project available in workspace
2 Install the LQN solvers as described here https://sdq.kastel.kit.edu/wiki/PCM2LQN When opening the windows command line, calling "lqns" should return "lqns: Input from terminal is not allowed.".
3 If you use a non-Windows system, please update the "Output dir" property in the "Solver" tab of the PCM Solver launch configuration to a meaningful value.  
4 LQN: In the project, open the folder "run configs" and right-click on "Simple Tactics Example LQN.launch" and select "Run As"->"1 Simple Tactics Example LQN" The LQN Solver is started, the console provides some output, and result files are written to C:\lqn\SimpleHeuristicsExample_Example (or to the directory you provided)
5 Check LQN Solver results by opening the *.out file. Waiting time of UsageScenario_defaultUsageScenario_1_Task shall be 6.96752 (about line 434)Utilization of LinkingResource_aName_LAN_Task shall have a Total of 0.027Utilization of Server1_CPU_Task shall have a Total of 0.57143
6 SimuLizar: In the project, open the folder "run configs" and right-click on "Simple Tactics Example SimuLizar [...] .launch" and select "Run As"->"1 Simple Tactics Example SimuLizar [...]"  
7 Check SimuLizar response time results in the Experiments view:Export the repository to CSV (Button on the top of the Experiments view)Inspect the resulting CSV file “Usage_Scenario_defaultUsageScenario_Response_Time_Tuple” (for example with Excel). Number of observations of Sensor Response Time Tuple of Usage Scenario: defaultUsageScenario: 10000Mean of Sensor Response Time Tuple of Usage Scenario: defaultUsageScenario: 7.682983692571701
8 Check SimuLizar utilization results of server 1 The CPU shall be idle 42.3 % of the time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants