Hi Zoltán,
SSC Version 209 goes with SAM 2018.11.11 r4, which is quite old compared to the current SSC 280 for SAM 2022.11.21 r3. We have done a lot of work on the battery model between those two versions, so upgrading will require some effort to remove some old variables and add new ones.
Attached are three files that I hope will help you with the upgrade:
inputs-ssc280.txt contains the required inputs for the 'battery' module in SSC 280, arranged in alphabetical order.
inputs-zoltan.txt contains the inputs from your "fail-linux.lk" script, also arranged in alphabetical order. You can use a text comparison tool to see what variables have changed between versions.
battery-ssc280.lk is an LK script for SDKtool that sets inputs and runs the 'battery' module for SSC 280.
I'm not sure what is causing the errors when you make calls to SSC from Ruby. The 'inverter_model' input is not an input to the 'battery' module in SSC 280, so that issue may be moot. You should be able to assign an integer value of 0, 1, or 2 to 'battery_replacement_option'.
I was able to run your linux-fail.lk script in SDKtool (the version that comes with SAM 2018.11.11 r4) on Linux Mint 21.1 from the command line with
I do see the GTK errors, but they do not prevent the application from running.
Best regards,
Paul.