version = 4.2

//
// Saved by sw version: 2025.1 SP1
//

model "standalone" {
    configuration {
        hil_device = "HIL101"
        hil_configuration_id = 1
        simulation_method = exact
        simulation_time_step = auto
        simulation_discret_scaling = 1.0
        dsp_timer_periods = 100e-6, 50e-3
        ss_calc_method = "systematic elimination"
        enb_pole_shift = True
        enb_gds_oversampling = True
        show_modes = False
        device_ao_limit_enable = False
        reset_analog_outputs_on_sim_stop = True
        reset_analog_outputs_on_sim_stop_mode = Offset values
        reset_digital_outputs_on_sim_stop = True
        vhil_adio_loopback = False
        cpl_stb = False
        enb_dep_sw_detect = False
        code_section = "internal memory"
        data_section = "internal memory"
        sys_sp_rate_1 = 0.0001
        sys_sp_rate_2 = 0.05
        sys_real_type_precision = "default"
        user_real_type_precision = "default"
        sys_cpu_optimization = "high"
        user_cpu_optimization = "high"
        user_cpu_part_option = "default"
        matrix_based_reduction = True
        cpl_dynamics_analysis = False
        export_ss_to_pickle = False
        ground_scope_core = False
        dss_num_tol = 1e-15
        cce_platform = "generic"
        cce_use_relative_names = False
        cce_type_mapping_real = "double"
        cce_type_mapping_uint = "unsigned int"
        cce_type_mapping_int = "int"
        cce_platform = "generic"
        cce_use_relative_names = False
        cce_type_mapping_real = "double"
        cce_type_mapping_uint = "unsigned int"
        cce_type_mapping_int = "int"
        cce_term_var_location = "local"
        cce_directory = ""
        cce_custom_type_int = ""
        cce_custom_type_uint = ""
        cce_custom_type_real = ""
        tunable_params = "component defined"
        sp_compiler_type = "C compiler"
        sig_stim = "off"
        export_resource_list = ""
        export_dependency_list = ""
        excluded_resource_list = ""
        excluded_component_from_locking_list = ""
        export_out_file = ""
        export_lock_top_level = True
        export_encrypt_library = True
        export_encrypt_resources = True
        solver_type = "DAE"
        integration_method = "BDF"
        max_sim_step = 1e-4
        simulation_time = 1.0
        abs_tol = 1e-3
        rel_tol = 1e-3
        init_sim_step = 1e-6
        r_on_sw = 1e-3
        v_on_diode = 0.2
        data_sampling_rate = 0
        feedthrough_validation_error_level = error
    }

    component Subsystem Root {
        component "core/Inductor" L1 {
            inductance = "0.1828"
        }
        [
            position = 8128, 8144
        ]

        component "core/Variable Resistor" RL1 {
            inductance = "1e-15"
        }
        [
            position = 8128, 8064
            size = 64, 48
        ]

        component "core/SCADA Input" resistance {
            unit = ""
        }
        [
            position = 8316, 7848
        ]

        component "core/Single Phase Power Meter" "Single Phase Power Meter1" {
        }
        [
            position = 8424, 7792
            size = 48, 48
        ]

        component "core/Voltage Measurement" Va1 {
            sig_output = "True"
        }
        [
            position = 8132, 7948
            size = 64, 32
        ]

        component "core/Current Measurement" Ia1 {
            sig_output = "True"
        }
        [
            position = 8288, 8064
            rotation = down
            scale = -1, 1
            size = 64, 32
        ]

        component "core/Probe" P {
        }
        [
            position = 8604, 7716
        ]

        component "core/Probe" Q {
        }
        [
            position = 8604, 7792
        ]

        component "core/Probe" S {
        }
        [
            position = 8604, 7868
        ]

        component "core/Ground" gnd1 {
        }
        [
            position = 8520, 8128
            rotation = right
            scale = -1, 1
        ]

        component "core/Three Phase Voltage Source" Vs1 {
            init_frequency = "60"
            init_rms_value = "2401*0.9777"
        }
        [
            position = 7912, 8208
            size = 62, 256
        ]

        component "core/Resistor" R1 {
            resistance = "50"
        }
        [
            position = 8028, 8208
        ]

        component "core/Resistor" R2 {
            resistance = "50"
        }
        [
            position = 8028, 8304
        ]

        component "core/Ground" gnd2 {
        }
        [
            position = 8132, 8232
        ]

        component "core/Ground" gnd3 {
        }
        [
            position = 8140, 8324
        ]

        component "core/Voltage Measurement" Va2 {
            sig_output = "True"
        }
        [
            position = 8548, 8228
            size = 64, 32
        ]

        component "core/Current Measurement" Ia2 {
            sig_output = "True"
        }
        [
            position = 8300, 8144
            rotation = down
            scale = -1, 1
            size = 64, 32
        ]

        component "core/Single Phase Power Meter" "Single Phase Power Meter2" {
        }
        [
            position = 8544, 8360
            size = 48, 48
        ]

        component "core/Probe" P1 {
        }
        [
            position = 8724, 8284
        ]

        component "core/Probe" Q1 {
        }
        [
            position = 8724, 8360
        ]

        component "core/Probe" S1 {
        }
        [
            position = 8724, 8436
        ]

        junction Junction8 pe
        [
            position = 8036, 8112
        ]

        junction Junction9 pe
        [
            position = 8448, 8128
        ]

        junction Junction10 pe
        [
            position = 8068, 8064
        ]

        junction Junction11 pe
        [
            position = 8200, 8064
        ]

        junction Junction12 pe
        [
            position = 8416, 8144
        ]

        junction Junction14 pe
        [
            position = 8236, 8144
        ]

        junction Junction15 pe
        [
            position = 8032, 8144
        ]

        connect resistance.out RL1.In as Connection7
        connect P.in "Single Phase Power Meter1.P" as Connection24
        connect Q.in "Single Phase Power Meter1.Q" as Connection25
        connect S.in "Single Phase Power Meter1.S" as Connection26
        connect R1.p_node Vs1.b_node as Connection51
        connect R2.p_node Vs1.c_node as Connection52
        connect gnd2.node R1.n_node as Connection53
        connect gnd3.node R2.n_node as Connection54
        connect Va1.out "Single Phase Power Meter1.Va" as Connection59
        connect Ia1.out "Single Phase Power Meter1.Ia" as Connection60
        connect Vs1.a_node Junction8 as Connection68
        [
            breakpoints = 7960, 8112
        ]
        connect Ia1.n_node Junction9 as Connection73
        connect Junction9 gnd1.node as Connection74
        connect Junction8 Junction10 as Connection76
        [
            breakpoints = 8036, 8112; 8036, 8064
        ]
        connect Junction10 RL1.p_node as Connection77
        connect Va1.p_node Junction10 as Connection78
        connect Ia1.p_node Junction11 as Connection79
        connect Junction11 RL1.n_node as Connection80
        connect Va1.n_node Junction11 as Connection81
        connect Junction12 Junction9 as Connection83
        connect Vs1.n_node Junction12 as Connection84
        [
            breakpoints = 8416, 8400; 8416, 8400
        ]
        connect L1.n_node Junction14 as Connection88
        connect Va2.n_node Junction14 as Connection90
        connect L1.p_node Junction15 as Connection92
        [
            breakpoints = 8080, 8144
        ]
        connect Junction15 Junction8 as Connection93
        connect Va2.p_node Junction15 as Connection94
        connect Junction14 Ia2.p_node as Connection95
        connect Ia2.n_node Junction12 as Connection96
        connect P1.in "Single Phase Power Meter2.P" as Connection97
        connect Q1.in "Single Phase Power Meter2.Q" as Connection98
        connect S1.in "Single Phase Power Meter2.S" as Connection99
        connect Ia2.out "Single Phase Power Meter2.Ia" as Connection100
        connect Va2.out "Single Phase Power Meter2.Va" as Connection101
    }

    default {
        "core/Inductor" {
            signal_access = "inherit"
            inductance = "1e-3"
            initial_current = "0.0"
            pole_shift_ignore = "False"
            visible = "True"
        }

        "core/Probe" {
            signal_access = "inherit"
            addr = "0"
            override_signal_name = "False"
            signal_name = ""
            signal_type = "generic"
            streaming_en = "False"
            streaming_er_idx = "0"
            execution_rate = "inherit"
        }

        "core/Resistor" {
            resistance = "1"
            param_set = ""
        }

        "core/SCADA Input" {
            signal_access = "inherit"
            addr = "0"
            format = "real"
            override_signal_name = "False"
            signal_name = ""
            signal_type = "real"
            min = "-1e6"
            max = "1e6"
            def_value = "0"
            unit = " "
            execution_rate = "100e-6"
        }

        "core/Current Measurement" {
            signal_access = "inherit"
            bw_limit = "False"
            frequency = "10e3"
            comparator_enable = "False"
            operator = "greater"
            threshold = "0"
            cmp_abs_value = "False"
            feed_forward = "false"
            sig_output = "False"
            sig_output_filt_and_full_bw = "False"
            execution_rate = "100e-6"
            addr = "0"
            nd_msr_estimation = "false"
            dev_cpl_msr = "false"
            host_device = "0"
            output_to_device = "0"
            dev_cpl_index = "0"
            dev_cpl_var_nb = "0"
            visible = "True"
            override_signal_name = "False"
            signal_name = ""
        }

        "core/Single Phase Power Meter" {
            op_mode = "Fixed frequency"
            frequency = "50.0"
            period_timeout = "0.5"
            zero_crossing_calc_filter = "500.0"
            execution_rate = "inherit"
        }

        "core/Three Phase Voltage Source" {
            init_rms_value = "0.0"
            init_frequency = "50.0"
            init_phase = "0.0"
        }

        "core/Variable Resistor" {
            inductance = "1e-3"
            initial_current = "0.0"
            hide_int_meas = "False"
        }

        "core/Voltage Measurement" {
            signal_access = "inherit"
            bw_limit = "False"
            frequency = "10e3"
            comparator_enable = "False"
            operator = "greater"
            threshold = "0"
            cmp_abs_value = "False"
            feed_forward = "false"
            sig_output = "False"
            sig_output_filt_and_full_bw = "False"
            execution_rate = "100e-6"
            addr = "0"
            nd_msr_estimation = "false"
            dev_cpl_msr = "false"
            host_device = "0"
            output_to_device = "0"
            dev_cpl_index = "0"
            dev_cpl_var_nb = "0"
            visible = "True"
            override_signal_name = "False"
            signal_name = ""
        }
    }
}
