res = requests.put('{0}/fault_scenario'.format(url_modelica), json=faults)
works if X = 1 (code 200) but produces a 500 error from the emulator if X = 2 or X = 3. The emulator produces a lot of information in response to this, but the main issue seems to be
jmodelica0_1 | Error at line 7, column 100, in file './fmu/test.mo':jmodelica0_1 | Array size mismatch in modification of dt, expected size is [5] and size of binding expression is scalar
Using
faults['floorX_zonT'] = {'variable':'floorX_zonT_input'}
res = requests.put('{0}/fault_scenario'.format(url_modelica), json=faults)
works if X = 1 (code 200) but produces a 500 error from the emulator if X = 2 or X = 3. The emulator produces a lot of information in response to this, but the main issue seems to be
jmodelica0_1 | Error at line 7, column 100, in file './fmu/test.mo':
jmodelica0_1 | Array size mismatch in modification of dt, expected size is [5] and size of binding expression is scalar