Model {
  Name			  "EXTENSIONwithfuellcell"
  Version		  7.4
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.2745"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "windows-1252"
  SaveDefaultBlockParams  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  MaxMDLFileLineLength	  120
  Created		  "Tue Sep 23 10:59:12 2008"
  Creator		  "cbhende"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "Noavaran"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sun Nov 25 10:23:13 2018"
  RTWModifiedTimeStamp	  465042191
  ModelVersionFormat	  "1.%<AutoIncrement:2745>"
  ConfigurationManager	  "None"
  SampleTimeColors	  off
  SampleTimeAnnotations	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowSignalResolutionIcons on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  SimulationMode	  "normal"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  CovForceBlockReductionOff on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  CovModelRefEnable	  "Off"
  CovExternalEMLEnable	  off
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigDurationFloating "auto"
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock on
  BufferReuse		  on
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.6.0"
      Array {
	Type			"Handle"
	Dimension		8
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.6.0"
	  StartTime		  "0.0"
	  StopTime		  "6"
	  AbsTol		  "auto"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ZcThreshold		  "auto"
	  ConsecutiveZCsStepRelTol "10*128*eps"
	  MaxConsecutiveZCs	  "1000"
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  MaxConsecutiveMinStep	  "1"
	  RelTol		  "2e-3"
	  SolverMode		  "Auto"
	  Solver		  "ode15s"
	  SolverName		  "ode15s"
	  ShapePreserveControl	  "DisableAll"
	  ZeroCrossControl	  "DisableAll"
	  ZeroCrossAlgorithm	  "Nonadaptive"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  InsertRTBMode		  "Whenever possible"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.6.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveCompleteFinalSimState off
	  SaveFormat		  "StructureWithTime"
	  SaveOutput		  off
	  SaveState		  off
	  SignalLogging		  off
	  InspectSignalLogs	  off
	  SaveTime		  off
	  ReturnWorkspaceOutputs  off
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  ReturnWorkspaceOutputsName "out"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.6.0"
	  Array {
	    Type		    "Cell"
	    Dimension		    4
	    Cell		    "ZeroExternalMemoryAtStartup"
	    Cell		    "ZeroInternalMemoryAtStartup"
	    Cell		    "NoFixptDivByZeroProtection"
	    Cell		    "OptimizeModelRefInitCode"
	    PropName		    "DisabledProps"
	  }
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  InlineParams		  on
	  UseIntDivNetSlope	  off
	  InlineInvariantSignals  off
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnhancedBackFolding	  off
	  StrengthReduction	  off
	  EnforceIntegerDowncast  off
	  ExpressionFolding	  on
	  BooleansAsBitfields	  off
	  EnableMemcpy		  on
	  MemcpyThreshold	  64
	  PassReuseOutputArgsAs	  "Structure reference"
	  ExpressionDepthLimit	  2147483647
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  on
	  EfficientMapNaN2IntZero on
	  OptimizeModelRefInitCode off
	  LifeSpan		  "inf"
	  BufferReusableBoundary  on
	  SimCompilerOptimization "Off"
	  AccelVerboseBuild	  off
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.6.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  SignalRangeChecking	  "none"
	  ReadBeforeWriteMsg	  "UseLocalSettings"
	  WriteAfterWriteMsg	  "UseLocalSettings"
	  WriteAfterReadMsg	  "UseLocalSettings"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  SaveWithDisabledLinksMsg "warning"
	  SaveWithParameterizedLinksMsg	"warning"
	  CheckSSInitialOutputMsg on
	  UnderspecifiedInitializationDetection	"Classic"
	  MergeDetectMultiDrivingBlocksExec "none"
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "UseLocalSettings"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  TimeAdjustmentMsg	  "none"
	  MaxConsecutiveZCsMsg	  "error"
	  SolverPrmCheckMsg	  "warning"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "error"
	  MultiTaskCondExecSysMsg "error"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  SigSpecEnsureSampleTimeMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterUnderflowMsg	  "none"
	  ParameterPrecisionLossMsg "warning"
	  ParameterTunabilityLossMsg "warning"
	  FixptConstUnderflowMsg  "none"
	  FixptConstOverflowMsg	  "none"
	  FixptConstPrecisionLossMsg "none"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "warning"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	  StateNameClashWarn	  "warning"
	  SimStateInterfaceChecksumMismatchMsg "warning"
	  StrictBusMsg		  "Warning"
	  LoggingUnavailableSignals "error"
	  BlockIODiagnostic	  "none"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.6.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "32-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "Specified"
	  TargetUnknown		  off
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.6.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.SFSimCC {
	  $ObjectID		  8
	  Version		  "1.6.0"
	  SFSimEnableDebug	  on
	  SFSimOverflowDetection  on
	  SFSimEcho		  on
	  SimBlas		  on
	  SimCtrlC		  on
	  SimExtrinsic		  on
	  SimIntegrity		  on
	  SimUseLocalCustomCode	  off
	  SimBuildMode		  "sf_incremental_build"
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  9
	  Version		  "1.6.0"
	  Array {
	    Type		    "Cell"
	    Dimension		    2
	    Cell		    "IncludeHyperlinkInReport"
	    Cell		    "GenerateTraceInfo"
	    PropName		    "DisabledProps"
	  }
	  SystemTargetFile	  "grt.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  GenerateMakefile	  on
	  TemplateMakefile	  "grt_default_tmf"
	  GenerateReport	  off
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ConfigAtBuild		  off
	  RTWUseLocalCustomCode	  off
	  RTWUseSimCustomCode	  off
	  IncludeHyperlinkInReport off
	  LaunchReport		  off
	  TargetLang		  "C"
	  IncludeBusHierarchyInRTWFileBlockHierarchyMap	off
	  IncludeERTFirstTime	  off
	  GenerateTraceInfo	  off
	  GenerateTraceReport	  off
	  GenerateTraceReportSl	  off
	  GenerateTraceReportSf	  off
	  GenerateTraceReportEml  off
	  GenerateCodeInfo	  off
	  RTWCompilerOptimization "Off"
	  CheckMdlBeforeBuild	  "Off"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      10
	      Version		      "1.6.0"
	      Array {
		Type			"Cell"
		Dimension		16
		Cell			"IgnoreCustomStorageClasses"
		Cell			"InsertBlockDesc"
		Cell			"SFDataObjDesc"
		Cell			"SimulinkDataObjDesc"
		Cell			"DefineNamingRule"
		Cell			"SignalNamingRule"
		Cell			"ParamNamingRule"
		Cell			"InlinedPrmAccess"
		Cell			"CustomSymbolStr"
		Cell			"CustomSymbolStrGlobalVar"
		Cell			"CustomSymbolStrType"
		Cell			"CustomSymbolStrField"
		Cell			"CustomSymbolStrFcn"
		Cell			"CustomSymbolStrBlkIO"
		Cell			"CustomSymbolStrTmpVar"
		Cell			"CustomSymbolStrMacro"
		PropName		"DisabledProps"
	      }
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses on
	      IgnoreTestpoints	      off
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement off
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      MangleLength	      1
	      CustomSymbolStrGlobalVar "$R$N$M"
	      CustomSymbolStrType     "$N$R$M"
	      CustomSymbolStrField    "$N$M"
	      CustomSymbolStrFcn      "$R$N$M$F"
	      CustomSymbolStrFcnArg   "rt$I$N$M"
	      CustomSymbolStrBlkIO    "rtb_$N$M"
	      CustomSymbolStrTmpVar   "$N$M"
	      CustomSymbolStrMacro    "$R$N$M"
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	      UseSimReservedNames     off
	    }
	    Simulink.GRTTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      11
	      Version		      "1.6.0"
	      Array {
		Type			"Cell"
		Dimension		15
		Cell			"IncludeMdlTerminateFcn"
		Cell			"CombineOutputUpdateFcns"
		Cell			"SuppressErrorStatus"
		Cell			"ERTCustomFileBanners"
		Cell			"GenerateSampleERTMain"
		Cell			"GenerateTestInterfaces"
		Cell			"ModelStepFunctionPrototypeControlCompliant"
		Cell			"MultiInstanceERTCode"
		Cell			"PurelyIntegerCode"
		Cell			"SupportNonFinite"
		Cell			"SupportComplex"
		Cell			"SupportAbsoluteTime"
		Cell			"SupportContinuousTime"
		Cell			"SupportNonInlinedSFcns"
		Cell			"PortableWordSizes"
		PropName		"DisabledProps"
	      }
	      TargetFcnLib	      "ansi_tfl_table_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      TargetFunctionLibrary   "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      ERTMultiwordTypeDef     "System defined"
	      ERTMultiwordLength      256
	      MultiwordLength	      2048
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      GenerateTestInterfaces  off
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      ParMdlRefBuildCompliant on
	      CompOptLevelCompliant   on
	      IncludeMdlTerminateFcn  on
	      GeneratePreprocessorConditionals "Disable all"
	      CombineOutputUpdateFcns off
	      SuppressErrorStatus     off
	      ERTFirstTimeCompliant   off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    off
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      on
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   on
	      SupportNonInlinedSFcns  on
	      SupportVariableSizeSignals off
	      EnableShiftOperators    on
	      ParenthesesLevel	      "Nominal"
	      PortableWordSizes	      off
	      ModelStepFunctionPrototypeControlCompliant off
	      CPPClassGenCompliant    off
	      AutosarCompliant	      off
	      UseMalloc		      off
	      ExtMode		      off
	      ExtModeStaticAlloc      off
	      ExtModeTesting	      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTransport	      0
	      ExtModeMexFile	      "ext_comm"
	      ExtModeIntrfLevel	      "Level1"
	      RTWCAPISignals	      off
	      RTWCAPIParams	      off
	      RTWCAPIStates	      off
	      GenerateASAP2	      off
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      CurrentDlgPage	      "Solver"
      ConfigPrmDlgPosition    " [ 72, 69, 952, 699 ] "
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
    BlockRotation	    0
    BlockMirror		    off
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    UseDisplayTextAsClickCallback off
  }
  LineDefaults {
    FontName		    "Arial"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  BlockParameterDefaults {
    Block {
      BlockType		      BusCreator
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      BusSelector
      OutputAsBus	      off
    }
    Block {
      BlockType		      Clock
      DisplayTime	      off
    }
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      SamplingMode	      "Sample based"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "fixdt(1,16,0)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Inherit from 'Constant value'"
      LockScale		      off
      SampleTime	      "inf"
      FramePeriod	      "inf"
    }
    Block {
      BlockType		      DataTypeConversion
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit via back propagation"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Inherit via back propagation"
      LockScale		      off
      ConvertRealWorld	      "Real World Value (RWV)"
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      Derivative
      LinearizePole	      "inf"
    }
    Block {
      BlockType		      DigitalClock
      SampleTime	      "1"
    }
    Block {
      BlockType		      DiscreteIntegrator
      IntegratorMethod	      "Integration: Forward Euler"
      gainval		      "1.0"
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      InitialConditionMode    "State and output"
      SampleTime	      "1"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      IgnoreLimit	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      Display
      Format		      "short"
      Decimation	      "10"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParamMin		      "[]"
      ParamMax		      "[]"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "fixdt(1,16,0)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "[]"
      ParamDataTypeStr	      "Inherit: Same as input"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      HitCross
      HitCrossingOffset	      "0"
      HitCrossingDirection    "either"
      ShowOutputPort	      on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      VarSizeSig	      "Inherit"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
    }
    Block {
      BlockType		      Integrator
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      IgnoreLimit	      off
      ZeroCross		      on
      ContinuousStateAttributes	"''"
    }
    Block {
      BlockType		      Logic
      Operator		      "AND"
      Inputs		      "2"
      IconShape		      "rectangular"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimization)"
      LogicDataType	      "uint(8)"
      OutDataTypeStr	      "Inherit: Logical (see Configuration Parameters: Optimization)"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Lookup
      Table		      " rand(1,10)-0.5"
      LookUpMeth	      "Interpolation-Extrapolation"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
      LUTDesignTableMode      "Redesign Table"
      LUTDesignDataSource     "Block Dialog"
      LUTDesignFunctionName   "sqrt(x)"
      LUTDesignUseExistingBP  on
      LUTDesignRelError	      "0.01"
      LUTDesignAbsError	      "1e-6"
    }
    Block {
      BlockType		      Math
      Operator		      "exp"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      IntermediateResultsDataTypeStr "Inherit: Inherit via internal rule"
      AlgorithmType	      "Newton-Raphson"
      Iterations	      "3"
    }
    Block {
      BlockType		      Memory
      X0		      "0"
      InheritSampleTime	      off
      LinearizeMemory	      off
      LinearizeAsDelay	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      VarSizeSig	      "Inherit"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      SignalType	      "auto"
      SamplingMode	      "auto"
      SourceOfInitialOutputValue "Dialog"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      PMIOPort
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimization)"
      LogicDataType	      "uint(8)"
      OutDataTypeStr	      "Inherit: Logical (see Configuration Parameters: Optimization)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Relay
      OnSwitchValue	      "eps"
      OffSwitchValue	      "eps"
      OnOutputValue	      "1"
      OffOutputValue	      "0"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "All ports same datatype"
      OutDataType	      "fixdt(1,16,0)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: All ports same datatype"
      LockScale		      off
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as input"
      LockScale		      off
      RndMeth		      "Floor"
    }
    Block {
      BlockType		      Scope
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Selector
      NumberOfDimensions      "1"
      IndexMode		      "One-based"
      InputPortWidth	      "-1"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      CheckFcnCallInpInsideContextMsg off
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      AccumDataTypeStr	      "Inherit: Inherit via internal rule"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      ContinuousStateAttributes	"''"
      Realization	      "auto"
    }
    Block {
      BlockType		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
  }
  System {
    Name		    "EXTENSIONwithfuellcell"
    Location		    [2, 75, 1347, 690]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    SIDHighWatermark	    542
    Block {
      BlockType		      SubSystem
      Name		      "100Vdc \nDC/DC Converter1"
      SID		      487
      Ports		      [0, 0, 0, 0, 0, 2, 2]
      Position		      [320, 463, 385, 572]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"100Vdc \nDC/DC Converter1"
	Location		[2, 74, 1022, 707]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Sum
	  Name			  "Add"
	  SID			  488
	  Ports			  [2, 1]
	  Position		  [820, 97, 850, 128]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^-10"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "CBus"
	  SID			  489
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [356, 155, 384, 225]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Series RLC Branch"
	  SourceType		  "Series RLC Branch"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "__new0"
	  RConnTagsString	  "__new0"
	  BranchType		  "RC"
	  Resistance		  "0.2"
	  Inductance		  "1e-3"
	  SetiL0		  off
	  InitialCurrent	  "0"
	  Capacitance		  "7500e-6"
	  Setx0			  on
	  InitialVoltage	  "100"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Chopper"
	  SID			  490
	  Ports			  [1, 0, 0, 0, 0, 2, 1]
	  Position		  [225, 15, 290, 125]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "SPSdrives Converter"
	  MaskDescription	  "This model implements an average-value buck converter.\"Duty Cycle\" contains the duty cycle of "
	  "the internal IGBT device."
	  MaskPromptString	  "Snubber resistance Rs (Ohms):|Snubber capacitance Cs (F):|Ron (Ohms):|Forward voltages [Device "
	  "Vf(V), Diode Vd (V)]|[Tf(s), Tt(s)]:|Converter type:"
	  MaskStyleString	  "edit,edit,edit,edit,edit,popup(Rectifier|Inverter)"
	  MaskTunableValueString  "off,off,off,off,off,off"
	  MaskCallbackString	  "|||||"
	  MaskEnableString	  "off,off,off,off,off,on"
	  MaskVisibilityString	  "off,off,off,off,off,off"
	  MaskToolTipString	  "on,on,on,on,on,on"
	  MaskVariables		  "SnubberResistance=&1;SnubberCapacitance=&2;Ron=&3;ForwardVoltages=&4;IGBTParameters=&5;converterT"
	  "ype=@6;"
	  MaskDisplay		  "plot(0,0,100,100,[39 39 23.8],[71 28 28],[44 56 49.6 56 52.8 56 61 61],[39.2 33.6 32.8 33.6 40.8 33"
	  ".6 30 12.4],[44 44 44 61 61],[28 71 60 66.4 90],[75 67 83 75 67 83 75 75],[54 42 42 54 54 54 54 66],[61 75 75],[24 "
	  "24 42],[75 75 61],[66,76,76])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "10e3|inf|1e-3|[1.3,1.3]|[0,0]|Inverter"
	  System {
	    Name		    "Chopper"
	    Location		    [309, 240, 1073, 683]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Duty Cycle"
	      SID		      491
	      Position		      [45, 23, 75, 37]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Average-value\narmature voltage"
	      SID		      492
	      Position		      [310, 24, 385, 56]
	      FontSize		      12
	      Expr		      "u(1)*u(2)"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Average-value\nsource current"
	      SID		      493
	      Position		      [310, 205, 390, 235]
	      BlockMirror	      on
	      FontSize		      12
	      Expr		      "u(1)*u(2)"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Controlled Current Source"
	      SID		      494
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [150, 240, 190, 285]
	      BlockRotation	      270
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      FontSize		      12
	      SourceBlock	      "powerlib/Electrical\nSources/Controlled Current Source"
	      SourceType	      "Controlled Current Source"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Initialize	      on
	      Source_Type	      "AC"
	      Amplitude		      "0"
	      Phase		      "0"
	      Frequency		      "0"
	      Measurements	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Controlled Voltage Source"
	      SID		      495
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [510, 27, 550, 83]
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      FontSize		      12
	      SourceBlock	      "powerlib/Electrical\nSources/Controlled Voltage Source"
	      SourceType	      "Controlled Voltage Source"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Initialize	      on
	      Source_Type	      "AC"
	      Amplitude		      "0"
	      Phase		      "0"
	      Frequency		      "0"
	      Measurements	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Current Measurement"
	      SID		      496
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 1, 1]
	      Position		      [570, 45, 600, 65]
	      NamePlacement	      "alternate"
	      ShowName		      off
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Current Measurement"
	      SourceType	      "Current Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory"
	      SID		      497
	      Position		      [445, 25, 475, 55]
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory1"
	      SID		      498
	      Position		      [210, 205, 240, 235]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      SID		      499
	      Ports		      [2, 1]
	      Position		      [285, 21, 290, 59]
	      ShowName		      off
	      FontSize		      12
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      SID		      500
	      Ports		      [2, 1]
	      Position		      [420, 200, 425, 240]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      ShowName		      off
	      FontSize		      12
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector"
	      SID		      501
	      Ports		      [1, 1]
	      Position		      [150, 14, 190, 46]
	      InputPortWidth	      "2"
	      IndexOptions	      "Index vector (dialog)"
	      Indices		      "[1]"
	      OutputSizes	      "1"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Voltage Measurement1"
	      SID		      502
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [215, 253, 240, 277]
	      ShowName		      off
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "A"
	      SID		      503
	      Position		      [710, 53, 740, 67]
	      BlockMirror	      on
	      FontSize		      12
	      Port		      "1"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "+"
	      SID		      504
	      Position		      [45, 188, 75, 202]
	      FontSize		      12
	      Port		      "2"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "-"
	      SID		      505
	      Position		      [45, 323, 75, 337]
	      FontSize		      12
	      Port		      "3"
	      Side		      "Left"
	    }
	    Line {
	      SrcBlock		      "Memory"
	      SrcPort		      1
	      DstBlock		      "Controlled Voltage Source"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Average-value\narmature voltage"
	      SrcPort		      1
	      DstBlock		      "Memory"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Average-value\narmature voltage"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      Points		      [200, 330; 0, -60]
	      DstBlock		      "Voltage Measurement1"
	      DstPort		      LConn2
	      Branch {
		ConnectType		"SRC_DEST"
		Points			[170, 330; 30, 0]
		Branch {
		  ConnectType		  "SRC_SRC"
		  DstBlock		  "Controlled Current Source"
		  DstPort		  RConn1
		}
		Branch {
		  ConnectType		  "SRC_DEST"
		  SrcBlock		  "-"
		  SrcPort		  RConn1
		  Points		  [80, 0]
		}
	      }
	      Branch {
		ConnectType		"SRC_DEST"
		SrcBlock		"Controlled Voltage Source"
		SrcPort			LConn1
		Points			[-40, 0; 0, 260; -255, 0]
	      }
	    }
	    Line {
	      LineType		      "Connection"
	      Points		      [180, 195; 0, 30]
	      DstBlock		      "Controlled Current Source"
	      DstPort		      LConn1
	      Branch {
		ConnectType		"SRC_SRC"
		Points			[20, 0]
		DstBlock		"Voltage Measurement1"
		DstPort			LConn1
	      }
	      Branch {
		ConnectType		"SRC_DEST"
		SrcBlock		"+"
		SrcPort			RConn1
		Points			[90, 0]
	      }
	    }
	    Line {
	      SrcBlock		      "Voltage Measurement1"
	      SrcPort		      1
	      Points		      [5, 0; 0, -215]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Duty Cycle"
	      SrcPort		      1
	      DstBlock		      "Selector"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Controlled Voltage Source"
	      SrcPort		      RConn1
	      DstBlock		      "Current Measurement"
	      DstPort		      LConn1
	    }
	    Line {
	      SrcBlock		      "Mux1"
	      SrcPort		      1
	      DstBlock		      "Average-value\nsource current"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Current Measurement"
	      SrcPort		      1
	      Points		      [10, 0; 0, 180]
	      DstBlock		      "Mux1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Average-value\nsource current"
	      SrcPort		      1
	      DstBlock		      "Memory1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Memory1"
	      SrcPort		      1
	      Points		      [-45, 0]
	      DstBlock		      "Controlled Current Source"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "A"
	      SrcPort		      RConn1
	      DstBlock		      "Current Measurement"
	      DstPort		      RConn1
	    }
	    Line {
	      SrcBlock		      "Selector"
	      SrcPort		      1
	      Points		      [60, 0]
	      Branch {
		DstBlock		"Mux"
		DstPort			1
	      }
	      Branch {
		Points			[0, 170; 185, 0]
		DstBlock		"Mux1"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  SID			  506
	  Position		  [585, 170, 615, 200]
	  Value			  "100"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Current controller\nDISCRETE1"
	  SID			  507
	  Ports			  [2, 1]
	  Position		  [675, 120, 750, 175]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "PI controller"
	  MaskDescription	  "Proportional-Integral Speed Controller"
	  MaskPromptString	  "Proportional gain (Kp)|Integral gain (Ki)|Sample time (s) :"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVariables		  "Kp=@1;Ki=@2;Ts=@3;"
	  MaskDisplay		  "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],[45,60])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.0005|0.15|1e-3"
	  System {
	    Name		    "Current controller\nDISCRETE1"
	    Location		    [296, 97, 961, 363]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "UBus"
	      SID		      508
	      Position		      [25, 48, 55, 62]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Uref"
	      SID		      509
	      Position		      [25, 83, 55, 97]
	      FontSize		      12
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "Ctrl sat."
	      SID		      510
	      Position		      [380, 50, 400, 70]
	      FontSize		      12
	      UpperLimit	      "0.95"
	      LowerLimit	      "-0.95"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DiscreteIntegrator
	      Name		      "Discrete-Time\nIntegrator"
	      SID		      511
	      Ports		      [1, 1]
	      Position		      [195, 53, 270, 97]
	      ShowName		      off
	      FontSize		      12
	      IntegratorMethod	      "Integration: Trapezoidal"
	      ExternalReset	      "none"
	      InitialConditionSource  "internal"
	      SampleTime	      "Ts"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      LimitOutput	      on
	      UpperSaturationLimit    "0.95"
	      LowerSaturationLimit    "-0.95"
	      ICPrevOutput	      "DiscIntNeverNeededParam"
	      ICPrevScaledInput	      "DiscIntNeverNeededParam"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Integral gain"
	      SID		      512
	      Position		      [145, 61, 170, 89]
	      FontSize		      12
	      Gain		      "Ki"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Proportional gain"
	      SID		      513
	      Position		      [145, 26, 175, 54]
	      NamePlacement	      "alternate"
	      FontSize		      12
	      Gain		      "Kp"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      SID		      514
	      Ports		      [2, 1]
	      Position		      [95, 64, 110, 86]
	      ShowName		      off
	      FontSize		      12
	      Inputs		      "+-"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      SID		      515
	      Ports		      [2, 1]
	      Position		      [335, 21, 345, 94]
	      ShowName		      off
	      FontSize		      12
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Ec"
	      SID		      516
	      Position		      [435, 53, 465, 67]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Proportional gain"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Integral gain"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nIntegrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"Integral gain"
		DstPort			1
	      }
	      Branch {
		Points			[0, -35]
		DstBlock		"Proportional gain"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "UBus"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Uref"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nIntegrator"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Ctrl sat."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Ctrl sat."
	      SrcPort		      1
	      DstBlock		      "Ec"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Current controller\nDISCRETE2"
	  SID			  517
	  Ports			  [2, 1]
	  Position		  [720, 245, 795, 300]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "PI controller"
	  MaskDescription	  "Proportional-Integral Speed Controller"
	  MaskPromptString	  "Proportional gain (Kp)|Integral gain (Ki)|Sample time (s) :"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVariables		  "Kp=@1;Ki=@2;Ts=@3;"
	  MaskDisplay		  "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],[45,60])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.0005|0.15|1e-3"
	  System {
	    Name		    "Current controller\nDISCRETE2"
	    Location		    [296, 97, 961, 363]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Pref"
	      SID		      518
	      Position		      [25, 48, 55, 62]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Ppv"
	      SID		      519
	      Position		      [25, 83, 55, 97]
	      FontSize		      12
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "Ctrl sat."
	      SID		      520
	      Position		      [380, 50, 400, 70]
	      FontSize		      12
	      UpperLimit	      "0.95"
	      LowerLimit	      "-0.95"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DiscreteIntegrator
	      Name		      "Discrete-Time\nIntegrator"
	      SID		      521
	      Ports		      [1, 1]
	      Position		      [195, 53, 270, 97]
	      ShowName		      off
	      FontSize		      12
	      IntegratorMethod	      "Integration: Trapezoidal"
	      ExternalReset	      "none"
	      InitialConditionSource  "internal"
	      SampleTime	      "Ts"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      LimitOutput	      on
	      UpperSaturationLimit    "0.95"
	      LowerSaturationLimit    "-0.95"
	      ICPrevOutput	      "DiscIntNeverNeededParam"
	      ICPrevScaledInput	      "DiscIntNeverNeededParam"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Integral gain"
	      SID		      522
	      Position		      [145, 61, 170, 89]
	      FontSize		      12
	      Gain		      "Ki"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Proportional gain"
	      SID		      523
	      Position		      [145, 26, 175, 54]
	      NamePlacement	      "alternate"
	      FontSize		      12
	      Gain		      "Kp"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      SID		      524
	      Ports		      [2, 1]
	      Position		      [95, 64, 110, 86]
	      ShowName		      off
	      FontSize		      12
	      Inputs		      "+-"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      SID		      525
	      Ports		      [2, 1]
	      Position		      [335, 21, 345, 94]
	      ShowName		      off
	      FontSize		      12
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Delta Ec"
	      SID		      526
	      Position		      [435, 53, 465, 67]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Ctrl sat."
	      SrcPort		      1
	      DstBlock		      "Delta Ec"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Ctrl sat."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nIntegrator"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Ppv"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Pref"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, -35]
		DstBlock		"Proportional gain"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Integral gain"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Integral gain"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nIntegrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Proportional gain"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Duty Cycles"
	  SID			  527
	  Ports			  [1, 1]
	  Position		  [865, 94, 910, 136]
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Duty Cycles"
	    Location		    [264, 423, 654, 545]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Ec"
	      SID		      528
	      Position		      [15, 23, 45, 37]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      SID		      529
	      Ports		      [2, 1]
	      Position		      [205, 41, 235, 99]
	      Inputs		      "+-"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortNumber		1
		Name			"IGBT 2"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      BusCreator
	      Name		      "Bus\nCreator2"
	      SID		      530
	      Ports		      [2, 1]
	      Position		      [295, 21, 300, 59]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      SID		      531
	      Position		      [155, 40, 185, 70]
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Duty Cycle"
	      SID		      532
	      Position		      [70, 12, 110, 48]
	      FontSize		      12
	      Expr		      "0.5*(u[1]+1)"
	      Port {
		PortNumber		1
		Name			"IGBT I"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "dc"
	      SID		      533
	      Position		      [320, 33, 350, 47]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      Name		      "IGBT I"
	      SrcBlock		      "Duty Cycle"
	      SrcPort		      1
	      Points		      [10, 0; 10, 0]
	      Branch {
		Points			[0, 55]
		DstBlock		"Add"
		DstPort			2
	      }
	      Branch {
		Labels			[-1, 1]
		DstBlock		"Bus\nCreator2"
		DstPort			1
	      }
	    }
	    Line {
	      Name		      "IGBT 2"
	      Labels		      [-1, 1]
	      SrcBlock		      "Add"
	      SrcPort		      1
	      Points		      [0, -20]
	      DstBlock		      "Bus\nCreator2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Add"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Ec"
	      SrcPort		      1
	      DstBlock		      "Duty Cycle"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bus\nCreator2"
	      SrcPort		      1
	      DstBlock		      "dc"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  From
	  Name			  "From"
	  SID			  534
	  Position		  [600, 286, 640, 314]
	  GotoTag		  "Ppv1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "L"
	  SID			  535
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [110, 56, 180, 84]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Series RLC Branch"
	  SourceType		  "Series RLC Branch"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "__new0"
	  RConnTagsString	  "__new0"
	  BranchType		  "L"
	  Resistance		  "0.3"
	  Inductance		  "500e-6"
	  SetiL0		  off
	  InitialCurrent	  "0"
	  Capacitance		  "100e-6"
	  Setx0			  off
	  InitialVoltage	  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Timer"
	  SID			  536
	  Ports			  [0, 1]
	  Position		  [590, 223, 640, 277]
	  DialogController	  "POWERSYS.PowerSysDialog"
	  FontName		  "Verdana"
	  FontSize		  11
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "Timer"
	  MaskDescription	  "Generates a signal changing at specified times.    \n                                           "
	  "                                 \nIf a signal value is not specified at time zero, the output is kept at 0 until t"
	  "he first specified transition time."
	  MaskHelp		  "web(psbhelp)"
	  MaskPromptString	  "Time (s):|Amplitude:"
	  MaskStyleString	  "edit,edit"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskToolTipString	  "on,on"
	  MaskVariables		  "t=@1;e=@2;"
	  MaskInitialization	  "tt=t;\nsv=e;\nif isempty(tt) | isempty(sv)\n	% probably during the load process when under a "
	  "masked block.\n	tt=0;\n	sv=1;\nend\n%\nif length(sv) ~= length(tt),\n   Erreur.message = 'The vectors specifying th"
	  "e time and amplitude pairs must have the same length.';\n   Erreur.identifier = 'SimPowerSystems:TimerBlock:Paramet"
	  "erError';\n   powericon('psberror',Erreur.message,Erreur.identifier,'NoUiwait');\nend\nif tt(1)~=0,\n   tt=[0 tt];\n"
	  "   sv=[~sv(1) sv];\nend\nn=length(tt);\nvec_dt=[tt,0]-[0,tt] ;\nvec_dt=vec_dt(2:n);\nif any(vec_dt<=0)\n   Erreur.m"
	  "essage = 'All transition times must be in increasing order.';\n   Erreur.identifier = 'SimPowerSystems:TimerBlock:P"
	  "arameterError';\n   powericon('psberror',Erreur.message,Erreur.identifier,'NoUiwait');\nend\ntv=[-1,tt(1),reshape(r"
	  "epmat(reshape(tt(2:end),1,length(tt)-1),2,1),1,2*length(tt)-2),tt(end)+1];\n%sv=(sv(:)'~=0);\nopv=[sv(1),reshape(re"
	  "pmat(sv(1:end-1),2,1),1,2*length(sv)-2),sv(end),sv(end)];\n\npower_initmask();\n"
	  MaskDisplay		  "plot( tv(2:end-1), opv(2:end-1) )"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[ 0  1]|[1 1 ]"
	  System {
	    Name		    "Timer"
	    Location		    [459, 463, 905, 676]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    SIDHighWatermark	    6
	    Block {
	      BlockType		      Clock
	      Name		      "Clock"
	      SID		      1
	      Position		      [50, 40, 70, 60]
	      FontName		      "Comic Sans MS"
	      Decimation	      "10"
	    }
	    Block {
	      BlockType		      Derivative
	      Name		      "Derivative"
	      SID		      2
	      Position		      [265, 86, 290, 114]
	    }
	    Block {
	      BlockType		      HitCross
	      Name		      "Hit \nCrossing"
	      SID		      4
	      Ports		      [1]
	      Position		      [325, 85, 355, 115]
	      ShowOutputPort	      off
	    }
	    Block {
	      BlockType		      Lookup
	      Name		      "Look-Up\nTable"
	      SID		      5
	      Position		      [110, 34, 235, 66]
	      FontName		      "Comic Sans MS"
	      InputValues	      "tv"
	      Table		      "opv"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      SID		      6
	      Position		      [305, 43, 335, 57]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Clock"
	      SrcPort		      1
	      DstBlock		      "Look-Up\nTable"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Look-Up\nTable"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"Out"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Derivative"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Derivative"
	      SrcPort		      1
	      DstBlock		      "Hit \nCrossing"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  SID			  537
	  Position		  [510, 117, 570, 153]
	  Denominator		  "[0.001 1]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Voltage Measurement"
	  SID			  538
	  Ports			  [0, 1, 0, 0, 0, 2]
	  Position		  [450, 123, 475, 147]
	  ShowName		  off
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  FontName		  "Verdana"
	  FontSize		  11
	  SourceBlock		  "powerlib/Measurements/Voltage Measurement"
	  SourceType		  "Voltage Measurement"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  PhasorSimulation	  off
	  OutputType		  "Complex"
	  PSBequivalent		  "0"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "+"
	  SID			  539
	  Tag			  "PMCPort"
	  Position		  [490, 61, 520, 79]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  Port			  "1"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "-"
	  SID			  540
	  Tag			  "PMCPort"
	  Position		  [495, 271, 525, 289]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  Port			  "2"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "+ input"
	  SID			  541
	  Tag			  "PMCPort"
	  Position		  [15, 61, 45, 79]
	  NamePlacement		  "alternate"
	  Port			  "3"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "-input"
	  SID			  542
	  Tag			  "PMCPort"
	  Position		  [15, 271, 45, 289]
	  NamePlacement		  "alternate"
	  Port			  "4"
	  Side			  "Left"
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Current controller\nDISCRETE1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Duty Cycles"
	  SrcPort		  1
	  Points		  [40, 0; 0, -80]
	  DstBlock		  "Chopper"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Voltage Measurement"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [30, 0; 0, -25]
	  DstBlock		  "Current controller\nDISCRETE1"
	  DstPort		  2
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "+ input"
	  SrcPort		  RConn1
	  DstBlock		  "L"
	  DstPort		  RConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Chopper"
	  SrcPort		  RConn1
	  DstBlock		  "L"
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  Points		  [370, 70; 0, 70]
	  DstBlock		  "CBus"
	  DstPort		  LConn1
	  Branch {
	    ConnectType		    "SRC_SRC"
	    DstBlock		    "Chopper"
	    DstPort		    LConn1
	  }
	  Branch {
	    ConnectType		    "SRC_DEST"
	    Points		    [425, 70; -55, 0]
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "+"
	      SrcPort		      RConn1
	      Points		      [-50, 0]
	    }
	    Branch {
	      ConnectType	      "SRC_SRC"
	      Points		      [0, 60]
	      DstBlock		      "Voltage Measurement"
	      DstPort		      LConn1
	    }
	  }
	}
	Line {
	  LineType		  "Connection"
	  Points		  [305, 280; 0, -175]
	  DstBlock		  "Chopper"
	  DstPort		  LConn2
	  Branch {
	    ConnectType		    "SRC_DEST"
	    Points		    [370, 280; -65, 0]
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "CBus"
	      SrcPort		      RConn1
	      Points		      [0, 40]
	    }
	    Branch {
	      ConnectType	      "SRC_DEST"
	      Points		      [425, 280; -55, 0]
	      Branch {
		ConnectType		"SRC_DEST"
		SrcBlock		"-"
		SrcPort			RConn1
		Points			[-55, 0]
	      }
	      Branch {
		ConnectType		"SRC_SRC"
		Points			[0, -140]
		DstBlock		"Voltage Measurement"
		DstPort			LConn2
	      }
	    }
	  }
	  Branch {
	    ConnectType		    "SRC_DEST"
	    SrcBlock		    "-input"
	    SrcPort		    RConn1
	    Points		    [245, 0]
	  }
	}
	Line {
	  SrcBlock		  "Timer"
	  SrcPort		  1
	  Points		  [55, 0; 0, 10]
	  DstBlock		  "Current controller\nDISCRETE2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From"
	  SrcPort		  1
	  Points		  [60, 0]
	  DstBlock		  "Current controller\nDISCRETE2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Current controller\nDISCRETE2"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  DstBlock		  "Duty Cycles"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Current controller\nDISCRETE1"
	  SrcPort		  1
	  Points		  [0, -45]
	  DstBlock		  "Add"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "100Vdc \nDC/DC Converter3"
      SID		      431
      Ports		      [0, 0, 0, 0, 0, 2, 2]
      Position		      [190, 85, 280, 265]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"100Vdc \nDC/DC Converter3"
	Location		[2, 74, 1022, 707]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Sum
	  Name			  "Add"
	  SID			  432
	  Ports			  [2, 1]
	  Position		  [820, 97, 850, 128]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^-10"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "CBus"
	  SID			  433
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [356, 155, 384, 225]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Series RLC Branch"
	  SourceType		  "Series RLC Branch"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "__new0"
	  RConnTagsString	  "__new0"
	  BranchType		  "RC"
	  Resistance		  "0.2"
	  Inductance		  "1e-3"
	  SetiL0		  off
	  InitialCurrent	  "0"
	  Capacitance		  "7500e-6"
	  Setx0			  on
	  InitialVoltage	  "100"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Chopper"
	  SID			  434
	  Ports			  [1, 0, 0, 0, 0, 2, 1]
	  Position		  [225, 15, 290, 125]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "SPSdrives Converter"
	  MaskDescription	  "This model implements an average-value buck converter.\"Duty Cycle\" contains the duty cycle of "
	  "the internal IGBT device."
	  MaskPromptString	  "Snubber resistance Rs (Ohms):|Snubber capacitance Cs (F):|Ron (Ohms):|Forward voltages [Device "
	  "Vf(V), Diode Vd (V)]|[Tf(s), Tt(s)]:|Converter type:"
	  MaskStyleString	  "edit,edit,edit,edit,edit,popup(Rectifier|Inverter)"
	  MaskTunableValueString  "off,off,off,off,off,off"
	  MaskCallbackString	  "|||||"
	  MaskEnableString	  "off,off,off,off,off,on"
	  MaskVisibilityString	  "off,off,off,off,off,off"
	  MaskToolTipString	  "on,on,on,on,on,on"
	  MaskVariables		  "SnubberResistance=&1;SnubberCapacitance=&2;Ron=&3;ForwardVoltages=&4;IGBTParameters=&5;converterT"
	  "ype=@6;"
	  MaskDisplay		  "plot(0,0,100,100,[39 39 23.8],[71 28 28],[44 56 49.6 56 52.8 56 61 61],[39.2 33.6 32.8 33.6 40.8 33"
	  ".6 30 12.4],[44 44 44 61 61],[28 71 60 66.4 90],[75 67 83 75 67 83 75 75],[54 42 42 54 54 54 54 66],[61 75 75],[24 "
	  "24 42],[75 75 61],[66,76,76])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "10e3|inf|1e-3|[1.3,1.3]|[0,0]|Inverter"
	  System {
	    Name		    "Chopper"
	    Location		    [309, 240, 1073, 683]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Duty Cycle"
	      SID		      435
	      Position		      [45, 23, 75, 37]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Average-value\narmature voltage"
	      SID		      436
	      Position		      [310, 24, 385, 56]
	      FontSize		      12
	      Expr		      "u(1)*u(2)"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Average-value\nsource current"
	      SID		      437
	      Position		      [310, 205, 390, 235]
	      BlockMirror	      on
	      FontSize		      12
	      Expr		      "u(1)*u(2)"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Controlled Current Source"
	      SID		      438
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [150, 240, 190, 285]
	      BlockRotation	      270
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      FontSize		      12
	      SourceBlock	      "powerlib/Electrical\nSources/Controlled Current Source"
	      SourceType	      "Controlled Current Source"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Initialize	      on
	      Source_Type	      "AC"
	      Amplitude		      "0"
	      Phase		      "0"
	      Frequency		      "0"
	      Measurements	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Controlled Voltage Source"
	      SID		      439
	      Ports		      [1, 0, 0, 0, 0, 1, 1]
	      Position		      [510, 27, 550, 83]
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      FontSize		      12
	      SourceBlock	      "powerlib/Electrical\nSources/Controlled Voltage Source"
	      SourceType	      "Controlled Voltage Source"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Initialize	      on
	      Source_Type	      "AC"
	      Amplitude		      "0"
	      Phase		      "0"
	      Frequency		      "0"
	      Measurements	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Current Measurement"
	      SID		      440
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 1, 1]
	      Position		      [570, 45, 600, 65]
	      NamePlacement	      "alternate"
	      ShowName		      off
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Current Measurement"
	      SourceType	      "Current Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory"
	      SID		      441
	      Position		      [445, 25, 475, 55]
	    }
	    Block {
	      BlockType		      Memory
	      Name		      "Memory1"
	      SID		      442
	      Position		      [210, 205, 240, 235]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      SID		      443
	      Ports		      [2, 1]
	      Position		      [285, 21, 290, 59]
	      ShowName		      off
	      FontSize		      12
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      SID		      444
	      Ports		      [2, 1]
	      Position		      [420, 200, 425, 240]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      ShowName		      off
	      FontSize		      12
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector"
	      SID		      445
	      Ports		      [1, 1]
	      Position		      [150, 14, 190, 46]
	      InputPortWidth	      "2"
	      IndexOptions	      "Index vector (dialog)"
	      Indices		      "[1]"
	      OutputSizes	      "1"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Voltage Measurement1"
	      SID		      446
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [215, 253, 240, 277]
	      ShowName		      off
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "A"
	      SID		      447
	      Position		      [710, 53, 740, 67]
	      BlockMirror	      on
	      FontSize		      12
	      Port		      "1"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "+"
	      SID		      448
	      Position		      [45, 188, 75, 202]
	      FontSize		      12
	      Port		      "2"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "-"
	      SID		      449
	      Position		      [45, 323, 75, 337]
	      FontSize		      12
	      Port		      "3"
	      Side		      "Left"
	    }
	    Line {
	      SrcBlock		      "Memory"
	      SrcPort		      1
	      DstBlock		      "Controlled Voltage Source"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Average-value\narmature voltage"
	      SrcPort		      1
	      DstBlock		      "Memory"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Average-value\narmature voltage"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      Points		      [200, 330; 0, -60]
	      DstBlock		      "Voltage Measurement1"
	      DstPort		      LConn2
	      Branch {
		ConnectType		"SRC_DEST"
		Points			[170, 330; 30, 0]
		Branch {
		  ConnectType		  "SRC_SRC"
		  DstBlock		  "Controlled Current Source"
		  DstPort		  RConn1
		}
		Branch {
		  ConnectType		  "SRC_DEST"
		  SrcBlock		  "-"
		  SrcPort		  RConn1
		  Points		  [80, 0]
		}
	      }
	      Branch {
		ConnectType		"SRC_DEST"
		SrcBlock		"Controlled Voltage Source"
		SrcPort			LConn1
		Points			[-40, 0; 0, 260; -255, 0]
	      }
	    }
	    Line {
	      LineType		      "Connection"
	      Points		      [180, 195; 0, 30]
	      DstBlock		      "Controlled Current Source"
	      DstPort		      LConn1
	      Branch {
		ConnectType		"SRC_SRC"
		Points			[20, 0]
		DstBlock		"Voltage Measurement1"
		DstPort			LConn1
	      }
	      Branch {
		ConnectType		"SRC_DEST"
		SrcBlock		"+"
		SrcPort			RConn1
		Points			[90, 0]
	      }
	    }
	    Line {
	      SrcBlock		      "Voltage Measurement1"
	      SrcPort		      1
	      Points		      [5, 0; 0, -215]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Duty Cycle"
	      SrcPort		      1
	      DstBlock		      "Selector"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Controlled Voltage Source"
	      SrcPort		      RConn1
	      DstBlock		      "Current Measurement"
	      DstPort		      LConn1
	    }
	    Line {
	      SrcBlock		      "Mux1"
	      SrcPort		      1
	      DstBlock		      "Average-value\nsource current"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Current Measurement"
	      SrcPort		      1
	      Points		      [10, 0; 0, 180]
	      DstBlock		      "Mux1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Average-value\nsource current"
	      SrcPort		      1
	      DstBlock		      "Memory1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Memory1"
	      SrcPort		      1
	      Points		      [-45, 0]
	      DstBlock		      "Controlled Current Source"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "A"
	      SrcPort		      RConn1
	      DstBlock		      "Current Measurement"
	      DstPort		      RConn1
	    }
	    Line {
	      SrcBlock		      "Selector"
	      SrcPort		      1
	      Points		      [60, 0]
	      Branch {
		DstBlock		"Mux"
		DstPort			1
	      }
	      Branch {
		Points			[0, 170; 185, 0]
		DstBlock		"Mux1"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  SID			  450
	  Position		  [585, 170, 615, 200]
	  Value			  "100"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Current controller\nDISCRETE1"
	  SID			  451
	  Ports			  [2, 1]
	  Position		  [675, 120, 750, 175]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "PI controller"
	  MaskDescription	  "Proportional-Integral Speed Controller"
	  MaskPromptString	  "Proportional gain (Kp)|Integral gain (Ki)|Sample time (s) :"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVariables		  "Kp=@1;Ki=@2;Ts=@3;"
	  MaskDisplay		  "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],[45,60])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.0005|0.15|1e-3"
	  System {
	    Name		    "Current controller\nDISCRETE1"
	    Location		    [296, 97, 961, 363]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "UBus"
	      SID		      452
	      Position		      [25, 48, 55, 62]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Uref"
	      SID		      453
	      Position		      [25, 83, 55, 97]
	      FontSize		      12
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "Ctrl sat."
	      SID		      454
	      Position		      [380, 50, 400, 70]
	      FontSize		      12
	      UpperLimit	      "0.95"
	      LowerLimit	      "-0.95"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DiscreteIntegrator
	      Name		      "Discrete-Time\nIntegrator"
	      SID		      455
	      Ports		      [1, 1]
	      Position		      [195, 53, 270, 97]
	      ShowName		      off
	      FontSize		      12
	      IntegratorMethod	      "Integration: Trapezoidal"
	      ExternalReset	      "none"
	      InitialConditionSource  "internal"
	      SampleTime	      "Ts"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      LimitOutput	      on
	      UpperSaturationLimit    "0.95"
	      LowerSaturationLimit    "-0.95"
	      ICPrevOutput	      "DiscIntNeverNeededParam"
	      ICPrevScaledInput	      "DiscIntNeverNeededParam"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Integral gain"
	      SID		      456
	      Position		      [145, 61, 170, 89]
	      FontSize		      12
	      Gain		      "Ki"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Proportional gain"
	      SID		      457
	      Position		      [145, 26, 175, 54]
	      NamePlacement	      "alternate"
	      FontSize		      12
	      Gain		      "Kp"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      SID		      458
	      Ports		      [2, 1]
	      Position		      [95, 64, 110, 86]
	      ShowName		      off
	      FontSize		      12
	      Inputs		      "+-"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      SID		      459
	      Ports		      [2, 1]
	      Position		      [335, 21, 345, 94]
	      ShowName		      off
	      FontSize		      12
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Ec"
	      SID		      460
	      Position		      [435, 53, 465, 67]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Proportional gain"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Integral gain"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nIntegrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"Integral gain"
		DstPort			1
	      }
	      Branch {
		Points			[0, -35]
		DstBlock		"Proportional gain"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "UBus"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Uref"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nIntegrator"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Ctrl sat."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Ctrl sat."
	      SrcPort		      1
	      DstBlock		      "Ec"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Current controller\nDISCRETE2"
	  SID			  461
	  Ports			  [2, 1]
	  Position		  [720, 245, 795, 300]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "PI controller"
	  MaskDescription	  "Proportional-Integral Speed Controller"
	  MaskPromptString	  "Proportional gain (Kp)|Integral gain (Ki)|Sample time (s) :"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVariables		  "Kp=@1;Ki=@2;Ts=@3;"
	  MaskDisplay		  "plot(0,0,100,100,[35,35,65],[70,30,30],[35,65],[45,60])"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.0005|0.15|1e-3"
	  System {
	    Name		    "Current controller\nDISCRETE2"
	    Location		    [296, 97, 961, 363]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Pref"
	      SID		      462
	      Position		      [25, 48, 55, 62]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Ppv"
	      SID		      463
	      Position		      [25, 83, 55, 97]
	      FontSize		      12
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "Ctrl sat."
	      SID		      464
	      Position		      [380, 50, 400, 70]
	      FontSize		      12
	      UpperLimit	      "0.95"
	      LowerLimit	      "-0.95"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DiscreteIntegrator
	      Name		      "Discrete-Time\nIntegrator"
	      SID		      465
	      Ports		      [1, 1]
	      Position		      [195, 53, 270, 97]
	      ShowName		      off
	      FontSize		      12
	      IntegratorMethod	      "Integration: Trapezoidal"
	      ExternalReset	      "none"
	      InitialConditionSource  "internal"
	      SampleTime	      "Ts"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      LimitOutput	      on
	      UpperSaturationLimit    "0.95"
	      LowerSaturationLimit    "-0.95"
	      ICPrevOutput	      "DiscIntNeverNeededParam"
	      ICPrevScaledInput	      "DiscIntNeverNeededParam"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Integral gain"
	      SID		      466
	      Position		      [145, 61, 170, 89]
	      FontSize		      12
	      Gain		      "Ki"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Proportional gain"
	      SID		      467
	      Position		      [145, 26, 175, 54]
	      NamePlacement	      "alternate"
	      FontSize		      12
	      Gain		      "Kp"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      SID		      468
	      Ports		      [2, 1]
	      Position		      [95, 64, 110, 86]
	      ShowName		      off
	      FontSize		      12
	      Inputs		      "+-"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      SID		      469
	      Ports		      [2, 1]
	      Position		      [335, 21, 345, 94]
	      ShowName		      off
	      FontSize		      12
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Delta Ec"
	      SID		      470
	      Position		      [435, 53, 465, 67]
	      FontSize		      12
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Ctrl sat."
	      SrcPort		      1
	      DstBlock		      "Delta Ec"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Ctrl sat."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nIntegrator"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Ppv"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Pref"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, -35]
		DstBlock		"Proportional gain"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Integral gain"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Integral gain"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nIntegrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Proportional gain"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Duty Cycles"
	  SID			  471
	  Ports			  [1, 1]
	  Position		  [865, 94, 910, 136]
	  FontSize		  12
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Duty Cycles"
	    Location		    [264, 423, 654, 545]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Ec"
	      SID		      472
	      Position		      [15, 23, 45, 37]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Add"
	      SID		      473
	      Ports		      [2, 1]
	      Position		      [205, 41, 235, 99]
	      Inputs		      "+-"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^-10"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortNumber		1
		Name			"IGBT 2"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      BusCreator
	      Name		      "Bus\nCreator2"
	      SID		      474
	      Ports		      [2, 1]
	      Position		      [295, 21, 300, 59]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      SID		      475
	      Position		      [155, 40, 185, 70]
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Duty Cycle"
	      SID		      476
	      Position		      [70, 12, 110, 48]
	      FontSize		      12
	      Expr		      "0.5*(u[1]+1)"
	      Port {
		PortNumber		1
		Name			"IGBT I"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "dc"
	      SID		      477
	      Position		      [320, 33, 350, 47]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      Name		      "IGBT I"
	      SrcBlock		      "Duty Cycle"
	      SrcPort		      1
	      Points		      [10, 0; 10, 0]
	      Branch {
		Points			[0, 55]
		DstBlock		"Add"
		DstPort			2
	      }
	      Branch {
		Labels			[-1, 1]
		DstBlock		"Bus\nCreator2"
		DstPort			1
	      }
	    }
	    Line {
	      Name		      "IGBT 2"
	      Labels		      [-1, 1]
	      SrcBlock		      "Add"
	      SrcPort		      1
	      Points		      [0, -20]
	      DstBlock		      "Bus\nCreator2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Add"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Ec"
	      SrcPort		      1
	      DstBlock		      "Duty Cycle"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Bus\nCreator2"
	      SrcPort		      1
	      DstBlock		      "dc"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  From
	  Name			  "From"
	  SID			  478
	  Position		  [600, 286, 640, 314]
	  GotoTag		  "Ppv"
	}
	Block {
	  BlockType		  Reference
	  Name			  "L"
	  SID			  479
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [110, 56, 180, 84]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Series RLC Branch"
	  SourceType		  "Series RLC Branch"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "__new0"
	  RConnTagsString	  "__new0"
	  BranchType		  "L"
	  Resistance		  "0.3"
	  Inductance		  "500e-6"
	  SetiL0		  off
	  InitialCurrent	  "0"
	  Capacitance		  "100e-6"
	  Setx0			  off
	  InitialVoltage	  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Timer"
	  SID			  480
	  Ports			  [0, 1]
	  Position		  [590, 223, 640, 277]
	  DialogController	  "POWERSYS.PowerSysDialog"
	  FontName		  "Verdana"
	  FontSize		  11
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "Timer"
	  MaskDescription	  "Generates a signal changing at specified times.    \n                                           "
	  "                                 \nIf a signal value is not specified at time zero, the output is kept at 0 until t"
	  "he first specified transition time."
	  MaskHelp		  "web(psbhelp)"
	  MaskPromptString	  "Time (s):|Amplitude:"
	  MaskStyleString	  "edit,edit"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskToolTipString	  "on,on"
	  MaskVariables		  "t=@1;e=@2;"
	  MaskInitialization	  "tt=t;\nsv=e;\nif isempty(tt) | isempty(sv)\n	% probably during the load process when under a "
	  "masked block.\n	tt=0;\n	sv=1;\nend\n%\nif length(sv) ~= length(tt),\n   Erreur.message = 'The vectors specifying th"
	  "e time and amplitude pairs must have the same length.';\n   Erreur.identifier = 'SimPowerSystems:TimerBlock:Paramet"
	  "erError';\n   powericon('psberror',Erreur.message,Erreur.identifier,'NoUiwait');\nend\nif tt(1)~=0,\n   tt=[0 tt];\n"
	  "   sv=[~sv(1) sv];\nend\nn=length(tt);\nvec_dt=[tt,0]-[0,tt] ;\nvec_dt=vec_dt(2:n);\nif any(vec_dt<=0)\n   Erreur.m"
	  "essage = 'All transition times must be in increasing order.';\n   Erreur.identifier = 'SimPowerSystems:TimerBlock:P"
	  "arameterError';\n   powericon('psberror',Erreur.message,Erreur.identifier,'NoUiwait');\nend\ntv=[-1,tt(1),reshape(r"
	  "epmat(reshape(tt(2:end),1,length(tt)-1),2,1),1,2*length(tt)-2),tt(end)+1];\n%sv=(sv(:)'~=0);\nopv=[sv(1),reshape(re"
	  "pmat(sv(1:end-1),2,1),1,2*length(sv)-2),sv(end),sv(end)];\n\npower_initmask();\n"
	  MaskDisplay		  "plot( tv(2:end-1), opv(2:end-1) )"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[ 0  1]|[1 1 ]"
	  System {
	    Name		    "Timer"
	    Location		    [459, 463, 888, 676]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    SIDHighWatermark	    6
	    Block {
	      BlockType		      Clock
	      Name		      "Clock"
	      SID		      1
	      Position		      [50, 40, 70, 60]
	      FontName		      "Comic Sans MS"
	      Decimation	      "10"
	    }
	    Block {
	      BlockType		      Derivative
	      Name		      "Derivative"
	      SID		      2
	      Position		      [265, 86, 290, 114]
	    }
	    Block {
	      BlockType		      Goto
	      Name		      "Goto"
	      SID		      3
	      Position		      [320, 170, 360, 200]
	      GotoTag		      "Ppvref"
	      TagVisibility	      "global"
	    }
	    Block {
	      BlockType		      HitCross
	      Name		      "Hit \nCrossing"
	      SID		      4
	      Ports		      [1]
	      Position		      [325, 85, 355, 115]
	      ShowOutputPort	      off
	    }
	    Block {
	      BlockType		      Lookup
	      Name		      "Look-Up\nTable"
	      SID		      5
	      Position		      [110, 34, 235, 66]
	      FontName		      "Comic Sans MS"
	      InputValues	      "tv"
	      Table		      "opv"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      SID		      6
	      Position		      [305, 43, 335, 57]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Clock"
	      SrcPort		      1
	      DstBlock		      "Look-Up\nTable"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Look-Up\nTable"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"Out"
		DstPort			1
	      }
	      Branch {
		Points			[0, 50]
		Branch {
		  DstBlock		  "Derivative"
		  DstPort		  1
		}
		Branch {
		  Points		  [0, 85]
		  DstBlock		  "Goto"
		  DstPort		  1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Derivative"
	      SrcPort		      1
	      DstBlock		      "Hit \nCrossing"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  SID			  481
	  Position		  [510, 117, 570, 153]
	  Denominator		  "[0.001 1]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Voltage Measurement"
	  SID			  482
	  Ports			  [0, 1, 0, 0, 0, 2]
	  Position		  [450, 123, 475, 147]
	  ShowName		  off
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  FontName		  "Verdana"
	  FontSize		  11
	  SourceBlock		  "powerlib/Measurements/Voltage Measurement"
	  SourceType		  "Voltage Measurement"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  PhasorSimulation	  off
	  OutputType		  "Complex"
	  PSBequivalent		  "0"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "+"
	  SID			  483
	  Tag			  "PMCPort"
	  Position		  [490, 61, 520, 79]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  Port			  "1"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "-"
	  SID			  484
	  Tag			  "PMCPort"
	  Position		  [495, 271, 525, 289]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  Port			  "2"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "+ input"
	  SID			  485
	  Tag			  "PMCPort"
	  Position		  [15, 61, 45, 79]
	  NamePlacement		  "alternate"
	  Port			  "3"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "-input"
	  SID			  486
	  Tag			  "PMCPort"
	  Position		  [15, 271, 45, 289]
	  NamePlacement		  "alternate"
	  Port			  "4"
	  Side			  "Left"
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Current controller\nDISCRETE1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Duty Cycles"
	  SrcPort		  1
	  Points		  [40, 0; 0, -80]
	  DstBlock		  "Chopper"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Voltage Measurement"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [30, 0; 0, -25]
	  DstBlock		  "Current controller\nDISCRETE1"
	  DstPort		  2
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "+ input"
	  SrcPort		  RConn1
	  DstBlock		  "L"
	  DstPort		  RConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Chopper"
	  SrcPort		  RConn1
	  DstBlock		  "L"
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  Points		  [370, 70; 0, 70]
	  DstBlock		  "CBus"
	  DstPort		  LConn1
	  Branch {
	    ConnectType		    "SRC_SRC"
	    DstBlock		    "Chopper"
	    DstPort		    LConn1
	  }
	  Branch {
	    ConnectType		    "SRC_DEST"
	    Points		    [425, 70; -55, 0]
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "+"
	      SrcPort		      RConn1
	      Points		      [-50, 0]
	    }
	    Branch {
	      ConnectType	      "SRC_SRC"
	      Points		      [0, 60]
	      DstBlock		      "Voltage Measurement"
	      DstPort		      LConn1
	    }
	  }
	}
	Line {
	  LineType		  "Connection"
	  Points		  [305, 280; 0, -175]
	  DstBlock		  "Chopper"
	  DstPort		  LConn2
	  Branch {
	    ConnectType		    "SRC_DEST"
	    Points		    [370, 280; -65, 0]
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "CBus"
	      SrcPort		      RConn1
	      Points		      [0, 40]
	    }
	    Branch {
	      ConnectType	      "SRC_DEST"
	      Points		      [425, 280; -55, 0]
	      Branch {
		ConnectType		"SRC_DEST"
		SrcBlock		"-"
		SrcPort			RConn1
		Points			[-55, 0]
	      }
	      Branch {
		ConnectType		"SRC_SRC"
		Points			[0, -140]
		DstBlock		"Voltage Measurement"
		DstPort			LConn2
	      }
	    }
	  }
	  Branch {
	    ConnectType		    "SRC_DEST"
	    SrcBlock		    "-input"
	    SrcPort		    RConn1
	    Points		    [245, 0]
	  }
	}
	Line {
	  SrcBlock		  "Timer"
	  SrcPort		  1
	  Points		  [55, 0; 0, 10]
	  DstBlock		  "Current controller\nDISCRETE2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From"
	  SrcPort		  1
	  Points		  [60, 0]
	  DstBlock		  "Current controller\nDISCRETE2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Current controller\nDISCRETE2"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  DstBlock		  "Duty Cycles"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Current controller\nDISCRETE1"
	  SrcPort		  1
	  Points		  [0, -45]
	  DstBlock		  "Add"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "18e3"
      SID		      1
      Ports		      [0, 0, 0, 0, 0, 3]
      Position		      [1394, 370, 1446, 435]
      BlockRotation	      270
      BlockMirror	      on
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Three-Phase\nParallel RLC Load"
      SourceType	      "Three-Phase Parallel RLC Load"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "A|B|C"
      Configuration	      "Y (grounded)"
      NominalVoltage	      "385"
      NominalFrequency	      "50"
      ActivePower	      "4.0e3"
      InductivePower	      "0"
      CapacitivePower	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "3-phase \nInstantaneous \nActive & Reactive Power"
      SID		      2
      Ports		      [2, 1]
      Position		      [1305, 41, 1355, 94]
      BlockMirror	      on
      NamePlacement	      "alternate"
      LibraryVersion	      "1.608"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib_extras/Measurements/3-phase \nInstantaneous \nActive & Reactive Power"
      SourceType	      "3-phase instantaneous active and reactive power"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
    }
    Block {
      BlockType		      Reference
      Name		      "3000"
      SID		      3
      Ports		      [0, 0, 0, 0, 0, 3]
      Position		      [1284, 380, 1336, 445]
      BlockRotation	      270
      BlockMirror	      on
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Three-Phase\nParallel RLC Load"
      SourceType	      "Three-Phase Parallel RLC Load"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "A|B|C"
      Configuration	      "Y (grounded)"
      NominalVoltage	      "385"
      NominalFrequency	      "50"
      ActivePower	      "10000"
      InductivePower	      "0"
      CapacitivePower	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "BL"
      SID		      4
      Ports		      [0, 0, 0, 0, 0, 3, 3]
      Position		      [1185, 178, 1190, 242]
      BackgroundColor	      "black"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Three-Phase\nV-I Measurement"
      SourceType	      "Three-Phase VI Measurement"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      VoltageMeasurement      "phase-to-ground"
      SetLabelV		      on
      LabelV		      "Vabc_BL"
      Vpu		      off
      CurrentMeasurement      "yes"
      SetLabelI		      on
      LabelI		      "Iabc_BL"
      Ipu		      off
      Pbase		      "100e6"
      Vbase		      "500e3"
      OutputType	      "Magnitude"
      PhasorSimulation	      off
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Battery and DC-DC converter"
      SID		      5
      Ports		      [2, 3, 0, 0, 0, 0, 2]
      Position		      [550, 404, 625, 586]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Battery and DC-DC converter"
	Location		[2, 74, 1022, 707]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "S2"
	  SID			  6
	  Position		  [330, 103, 360, 117]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "S1"
	  SID			  7
	  Position		  [340, 263, 370, 277]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "200 volts, 6.5 Ah\n Ni-MH battery "
	  SID			  8
	  Ports			  [0, 1, 0, 0, 0, 2]
	  Position		  [165, 224, 235, 306]
	  BlockMirror		  on
	  LibraryVersion	  "1.946"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "electricdrivelib/Extra Sources/Battery"
	  SourceType		  "Battery"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  BatType		  "Nickel-Metal-Hydride"
	  ShowDetailedParameters  off
	  NomV			  "300"
	  NomQ			  "6.5"
	  SOC			  "60"
	  PresetModel		  on
	  MaxQ			  "7"
	  FullV			  "353.3898"
	  Dis_rate		  "1.3"
	  R			  "0.46154"
	  Normal_OP		  "6.25"
	  expZone		  "[325.4237           1.3]"
	  Dis_Char		  off
	  current		  "[6.5 13 32.5]"
	  Units			  "Time"
	  Batt_Tr		  "30"
	}
	Block {
	  BlockType		  Reference
	  Name			  "3"
	  SID			  9
	  Ports			  [1, 1]
	  Position		  [38, 135, 62, 170]
	  BlockRotation		  270
	  LibraryVersion	  "1.288"
	  SourceBlock		  "dsparch4/Analog\nFilter Design"
	  SourceType		  "Analog Filter Design"
	  method		  "Butterworth"
	  filttype		  "Lowpass"
	  N			  "8"
	  Wlo			  "pi*50"
	  Whi			  "80"
	  Rp			  "2"
	  Rs			  "40"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Breaker"
	  SID			  10
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [396, 45, 424, 85]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  ShowName		  off
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  FontName		  "Verdana"
	  FontSize		  11
	  SourceBlock		  "powerlib/Elements/Breaker"
	  SourceType		  "Breaker"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  BreakerResistance	  "0.01"
	  InitialState		  "1"
	  SnubberResistance	  "1e6"
	  SnubberCapacitance	  "inf"
	  SwitchingTimes	  "[15 ]"
	  External		  off
	  Measurements		  "None"
	  MoreParameters	  off
	  NoBreakLoop		  off
	}
	Block {
	  BlockType		  BusSelector
	  Name			  "Bus\nSelector1"
	  SID			  11
	  Ports			  [1, 3]
	  Position		  [140, 228, 145, 302]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  ShowName		  off
	  OutputSignals		  "Voltage (V),SOC (%),Current (A)"
	  Port {
	    PortNumber		    1
	    Name		    "<Voltage (V)>"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	  Port {
	    PortNumber		    2
	    Name		    "<SOC (%)>"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	  Port {
	    PortNumber		    3
	    Name		    "<Current (A)>"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Diode"
	  SID			  12
	  Ports			  [0, 1, 0, 0, 0, 1, 1]
	  Position		  [460, 130, 500, 185]
	  BlockRotation		  270
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Power\nElectronics/Diode"
	  SourceType		  "Diode"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  Ron			  "0.001 "
	  Lon			  "0"
	  Vf			  "0.8"
	  IC			  "0"
	  UseSnubber		  off
	  Rs			  "500"
	  Cs			  "250e-9"
	  Measurements		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Diode1"
	  SID			  13
	  Ports			  [0, 1, 0, 0, 0, 1, 1]
	  Position		  [460, 260, 500, 315]
	  BlockRotation		  270
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Power\nElectronics/Diode"
	  SourceType		  "Diode"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  Ron			  "0.001 "
	  Lon			  "0"
	  Vf			  "0.8"
	  IC			  "0"
	  UseSnubber		  off
	  Rs			  "500"
	  Cs			  "250e-9"
	  Measurements		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "IL6"
	  SID			  14
	  Ports			  [0, 1, 0, 0, 0, 1, 1]
	  Position		  [275, 213, 300, 237]
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Measurements/Current Measurement"
	  SourceType		  "Current Measurement"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  PhasorSimulation	  off
	  OutputType		  "Complex"
	  PSBequivalent		  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "L3"
	  SID			  15
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [325, 218, 365, 242]
	  NamePlacement		  "alternate"
	  AttributesFormatString  "\\n"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Series RLC Branch"
	  SourceType		  "Series RLC Branch"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "__new0"
	  RConnTagsString	  "__new0"
	  BranchType		  "L"
	  Resistance		  "1.0"
	  Inductance		  "5e-3"
	  SetiL0		  off
	  InitialCurrent	  "0"
	  Capacitance		  "1.0"
	  Setx0			  off
	  InitialVoltage	  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product6"
	  SID			  16
	  Ports			  [2, 1]
	  Position		  [120, 107, 150, 138]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Q1"
	  SID			  17
	  Ports			  [1, 1, 0, 0, 0, 1, 1]
	  Position		  [380, 135, 420, 190]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Power\nElectronics/IGBT"
	  SourceType		  "IGBT"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  Ron			  "0.001"
	  Lon			  "0"
	  Vf			  "1"
	  Tf			  "1e-6"
	  Tt			  "2e-6"
	  IC			  "0"
	  Rs			  "1e5"
	  Cs			  "inf"
	  Measurements		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Q2"
	  SID			  18
	  Ports			  [1, 1, 0, 0, 0, 1, 1]
	  Position		  [380, 290, 420, 345]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Power\nElectronics/IGBT"
	  SourceType		  "IGBT"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  Ron			  "0.001"
	  Lon			  "0"
	  Vf			  "1"
	  Tf			  "1e-6"
	  Tt			  "2e-6"
	  IC			  "0"
	  Rs			  "1e5"
	  Cs			  "inf"
	  Measurements		  on
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope4"
	  SID			  19
	  Ports			  [2]
	  Position		  [45, 228, 75, 277]
	  BlockMirror		  on
	  BackgroundColor	  "green"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [270, 325, 799, 604]
	  Open			  off
	  NumInputPorts		  "2"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	    axes2		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.1"
	  YMin			  "316.866~80.0001"
	  YMax			  "316.88~80.0001"
	  SaveName		  "V2X1"
	  DataFormat		  "Array"
	  LimitDataPoints	  off
	  SampleInput		  on
	  SampleTime		  "10e-6"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope5"
	  SID			  20
	  Ports			  [2]
	  Position		  [25, 53, 55, 102]
	  BlockMirror		  on
	  BackgroundColor	  "green"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [445, 449, 974, 728]
	  Open			  off
	  NumInputPorts		  "2"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	    axes2		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.1"
	  YMin			  "-12.8~310"
	  YMax			  "-11.8~370"
	  SaveName		  "V2X2"
	  DataFormat		  "Array"
	  LimitDataPoints	  off
	  SampleInput		  on
	  SampleTime		  "10e-6"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "+"
	  SID			  21
	  Tag			  "PMCPort"
	  Position		  [365, 16, 395, 34]
	  FontName		  "Verdana"
	  FontSize		  11
	  Port			  "1"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "-"
	  SID			  22
	  Tag			  "PMCPort"
	  Position		  [575, 381, 605, 399]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  FontName		  "Verdana"
	  FontSize		  11
	  Port			  "2"
	  Side			  "Right"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Ibat"
	  SID			  23
	  Position		  [340, 178, 370, 192]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "SOC"
	  SID			  24
	  Position		  [155, 173, 185, 187]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Bp"
	  SID			  25
	  Position		  [190, 118, 220, 132]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "IL6"
	  SrcPort		  LConn1
	  Points		  [-10, 0]
	  DstBlock		  "200 volts, 6.5 Ah\n Ni-MH battery "
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  Points		  [410, 390; -145, 0; 0, -105; -15, 0]
	  DstBlock		  "200 volts, 6.5 Ah\n Ni-MH battery "
	  DstPort		  LConn2
	  Branch {
	    ConnectType		    "SRC_DEST"
	    SrcBlock		    "Q2"
	    SrcPort		    RConn1
	    Points		    [0, 30]
	  }
	  Branch {
	    ConnectType		    "SRC_DEST"
	    Points		    [480, 390; -70, 0]
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "-"
	      SrcPort		      RConn1
	      Points		      [-80, 0]
	    }
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "Diode1"
	      SrcPort		      LConn1
	      Points		      [0, 60]
	    }
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "+"
	  SrcPort		  RConn1
	  DstBlock		  "Breaker"
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Breaker"
	  SrcPort		  RConn1
	  Points		  [0, 15]
	  Branch {
	    ConnectType		    "DEST_DEST"
	    SrcBlock		    "Diode"
	    SrcPort		    RConn1
	    Points		    [-80, 0]
	  }
	  Branch {
	    ConnectType		    "DEST_SRC"
	    DstBlock		    "Q1"
	    DstPort		    LConn1
	  }
	}
	Line {
	  LineType		  "Connection"
	  Points		  [415, 245; 0, 30; -5, 0]
	  DstBlock		  "Q2"
	  DstPort		  LConn1
	  Branch {
	    ConnectType		    "SRC_DEST"
	    SrcBlock		    "Diode1"
	    SrcPort		    RConn1
	    Points		    [-75, 0]
	  }
	  Branch {
	    ConnectType		    "SRC_DEST"
	    Points		    [415, 230; 0, 15]
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "L3"
	      SrcPort		      RConn1
	      Points		      [35, 0]
	    }
	    Branch {
	      ConnectType	      "SRC_DEST"
	      Points		      [415, 205; 0, 20; 0, 5]
	      Branch {
		ConnectType		"SRC_SRC"
		Points			[65, 0]
		DstBlock		"Diode"
		DstPort			LConn1
	      }
	      Branch {
		ConnectType		"SRC_DEST"
		SrcBlock		"Q1"
		SrcPort			RConn1
		Points			[5, 0]
	      }
	    }
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "L3"
	  SrcPort		  LConn1
	  DstBlock		  "IL6"
	  DstPort		  RConn1
	}
	Line {
	  SrcBlock		  "200 volts, 6.5 Ah\n Ni-MH battery "
	  SrcPort		  1
	  DstBlock		  "Bus\nSelector1"
	  DstPort		  1
	}
	Line {
	  Name			  "<Voltage (V)>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector1"
	  SrcPort		  1
	  Points		  [-40, 0]
	  Branch {
	    DstBlock		    "Scope4"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -35; -10, 0; 0, -75]
	    Branch {
	      DstBlock		      "Product6"
	      DstPort		      2
	    }
	    Branch {
	      Points		      [0, -65]
	      DstBlock		      "Scope5"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  Name			  "<SOC (%)>"
	  Labels		  [0, 0]
	  SrcBlock		  "Bus\nSelector1"
	  SrcPort		  2
	  Points		  [-25, 0]
	  Branch {
	    DstBlock		    "Scope4"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -85]
	    DstBlock		    "SOC"
	    DstPort		    1
	  }
	}
	Line {
	  Name			  "<Current (A)>"
	  Labels		  [0, 0; 4, 0]
	  SrcBlock		  "Bus\nSelector1"
	  SrcPort		  3
	  Points		  [-60, 0; 0, 20; -25, 0]
	  DstBlock		  "3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product6"
	  SrcPort		  1
	  DstBlock		  "Bp"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "S2"
	  SrcPort		  1
	  Points		  [25, 0]
	  DstBlock		  "Q1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "S1"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Q2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "IL6"
	  SrcPort		  1
	  Points		  [0, -35]
	  DstBlock		  "Ibat"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "3"
	  SrcPort		  1
	  Points		  [0, -15; 25, 0]
	  Branch {
	    DstBlock		    "Product6"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -25]
	    DstBlock		    "Scope5"
	    DstPort		    2
	  }
	}
	Annotation {
	  Position		  [347, 76]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Battery/electrolyzer\n controller"
      SID		      26
      Ports		      [3, 3]
      Position		      [565, 290, 640, 340]
      BlockMirror	      on
      FontSize		      12
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Battery/electrolyzer\n controller"
	Location		[242, 145, 1165, 637]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Vdc"
	  SID			  27
	  Position		  [15, 168, 45, 182]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "SOC"
	  SID			  28
	  Position		  [35, 293, 65, 307]
	  NamePlacement		  "alternate"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ibat"
	  SID			  29
	  Position		  [260, 193, 290, 207]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  SID			  30
	  Position		  [15, 85, 45, 115]
	  ShowName		  off
	  Value			  "640"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  SID			  31
	  Position		  [95, 335, 125, 365]
	  ShowName		  off
	  Value			  ".8"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant3"
	  SID			  32
	  Position		  [175, 513, 205, 537]
	  ShowName		  off
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant4"
	  SID			  33
	  Position		  [180, 655, 210, 685]
	  ShowName		  off
	  Value			  ".8"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type \nConversion"
	  SID			  34
	  Position		  [425, 125, 455, 145]
	  OutDataTypeMode	  "boolean"
	  OutDataTypeStr	  "boolean"
	  RndMeth		  "Simplest"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete\nPI Controller"
	  SID			  35
	  Ports			  [1, 1]
	  Position		  [205, 113, 240, 157]
	  AncestorBlock		  "powerlib_extras/Discrete \nControl Blocks/Discrete\nPI Controller"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "Discrete PI Controller"
	  MaskDescription	  "This block implements a discrete PI controller."
	  MaskHelp		  "This block is part of a subset of blocks in the Extras library that does not have documentation associ"
	  "ated with it, other than the block mask description."
	  MaskPromptString	  "Proportional gain (Kp):|Integral gain (Ki):|Output limits: [ Upper   Lower ]|Output initial val"
	  "ue:|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVariables		  "Kp=@1;Ki=@2;Par_Limits=@3;Init=@4;Ts=@5;"
	  MaskInitialization	  "UpperLimit=Par_Limits(1);\nLowerLimit=Par_Limits(2);\npower_initmask();"
	  MaskDisplay		  "disp('PI');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "2|120|[100  -100]|0|20e-6"
	  System {
	    Name		    "Discrete\nPI Controller"
	    Location		    [227, 270, 994, 618]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    SIDHighWatermark	    7
	    Block {
	      BlockType		      Inport
	      Name		      "Error"
	      SID		      1
	      Position		      [100, 183, 130, 197]
	      FontSize		      12
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DiscreteIntegrator
	      Name		      "Discrete-Time\nIntegrator"
	      SID		      2
	      Ports		      [1, 1]
	      Position		      [365, 171, 425, 209]
	      ShowName		      off
	      IntegratorMethod	      "Integration: Forward Euler"
	      ExternalReset	      "none"
	      InitialConditionSource  "internal"
	      InitialCondition	      "Init"
	      SampleTime	      "Ts"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      LimitOutput	      on
	      UpperSaturationLimit    "UpperLimit"
	      LowerSaturationLimit    "LowerLimit"
	      ICPrevOutput	      "DiscIntNeverNeededParam"
	      ICPrevScaledInput	      "DiscIntNeverNeededParam"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Kp4"
	      SID		      3
	      Position		      [225, 124, 260, 156]
	      ShowName		      off
	      Gain		      "Kp"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Kp5"
	      SID		      4
	      Position		      [230, 174, 265, 206]
	      ShowName		      off
	      Gain		      "Ki"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "Saturation2"
	      SID		      5
	      Position		      [565, 150, 590, 180]
	      NamePlacement	      "alternate"
	      ShowName		      off
	      UpperLimit	      "UpperLimit"
	      LowerLimit	      "LowerLimit"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum6"
	      SID		      6
	      Ports		      [2, 1]
	      Position		      [490, 114, 520, 221]
	      ShowName		      off
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      SID		      7
	      Position		      [630, 158, 660, 172]
	      FontSize		      12
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Saturation2"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nIntegrator"
	      SrcPort		      1
	      DstBlock		      "Sum6"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Kp4"
	      SrcPort		      1
	      DstBlock		      "Sum6"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Kp5"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nIntegrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum6"
	      SrcPort		      1
	      DstBlock		      "Saturation2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Error"
	      SrcPort		      1
	      Points		      [65, 0]
	      Branch {
		DstBlock		"Kp5"
		DstPort			1
	      }
	      Branch {
		Points			[0, -50]
		DstBlock		"Kp4"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete\nPI Controller1"
	  SID			  36
	  Ports			  [1, 1]
	  Position		  [265, 458, 300, 502]
	  AncestorBlock		  "powerlib_extras/Discrete \nControl Blocks/Discrete\nPI Controller"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "Discrete PI Controller"
	  MaskDescription	  "This block implements a discrete PI controller."
	  MaskHelp		  "This block is part of a subset of blocks in the Extras library that does not have documentation associ"
	  "ated with it, other than the block mask description."
	  MaskPromptString	  "Proportional gain (Kp):|Integral gain (Ki):|Output limits: [ Upper   Lower ]|Output initial val"
	  "ue:|Sample time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVariables		  "Kp=@1;Ki=@2;Par_Limits=@3;Init=@4;Ts=@5;"
	  MaskInitialization	  "UpperLimit=Par_Limits(1);\nLowerLimit=Par_Limits(2);\npower_initmask();"
	  MaskDisplay		  "disp('PI');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "60|550|[1  -1]|0|20e-6"
	  System {
	    Name		    "Discrete\nPI Controller1"
	    Location		    [227, 270, 994, 618]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    SIDHighWatermark	    7
	    Block {
	      BlockType		      Inport
	      Name		      "Error"
	      SID		      1
	      Position		      [100, 183, 130, 197]
	      FontSize		      12
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DiscreteIntegrator
	      Name		      "Discrete-Time\nIntegrator"
	      SID		      2
	      Ports		      [1, 1]
	      Position		      [365, 171, 425, 209]
	      ShowName		      off
	      IntegratorMethod	      "Integration: Forward Euler"
	      ExternalReset	      "none"
	      InitialConditionSource  "internal"
	      InitialCondition	      "Init"
	      SampleTime	      "Ts"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      LimitOutput	      on
	      UpperSaturationLimit    "UpperLimit"
	      LowerSaturationLimit    "LowerLimit"
	      ICPrevOutput	      "DiscIntNeverNeededParam"
	      ICPrevScaledInput	      "DiscIntNeverNeededParam"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Kp4"
	      SID		      3
	      Position		      [225, 124, 260, 156]
	      ShowName		      off
	      Gain		      "Kp"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Kp5"
	      SID		      4
	      Position		      [230, 174, 265, 206]
	      ShowName		      off
	      Gain		      "Ki"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "Saturation2"
	      SID		      5
	      Position		      [565, 150, 590, 180]
	      NamePlacement	      "alternate"
	      ShowName		      off
	      UpperLimit	      "UpperLimit"
	      LowerLimit	      "LowerLimit"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum6"
	      SID		      6
	      Ports		      [2, 1]
	      Position		      [490, 114, 520, 221]
	      ShowName		      off
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      SID		      7
	      Position		      [630, 158, 660, 172]
	      FontSize		      12
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Saturation2"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nIntegrator"
	      SrcPort		      1
	      DstBlock		      "Sum6"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Kp4"
	      SrcPort		      1
	      DstBlock		      "Sum6"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Kp5"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nIntegrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum6"
	      SrcPort		      1
	      DstBlock		      "Saturation2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Error"
	      SrcPort		      1
	      Points		      [65, 0]
	      Branch {
		DstBlock		"Kp5"
		DstPort			1
	      }
	      Branch {
		Points			[0, -50]
		DstBlock		"Kp4"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  SID			  37
	  Position		  [135, 465, 165, 495]
	  ShowName		  off
	  Gain			  "1/640"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  SID			  38
	  Position		  [110, 285, 135, 315]
	  ShowName		  off
	  Gain			  "1/100"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain2"
	  SID			  39
	  Position		  [135, 595, 160, 625]
	  ShowName		  off
	  Gain			  "1/100"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator2"
	  SID			  40
	  Ports			  [2, 1]
	  Position		  [485, 494, 520, 601]
	  ShowName		  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator3"
	  SID			  41
	  Ports			  [1, 1]
	  Position		  [520, 125, 555, 145]
	  ShowName		  off
	  Operator		  "NOT"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux4"
	  SID			  42
	  Ports			  [2, 1]
	  Position		  [575, 398, 580, 442]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product2"
	  SID			  43
	  Ports			  [2, 1]
	  Position		  [640, 127, 670, 158]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Ramp_generator"
	  SID			  44
	  Ports			  [0, 1]
	  Position		  [300, 516, 350, 544]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Ramp_generator"
	    Location		    [438, 455, 850, 624]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Constant
	      Name		      "Constant3"
	      SID		      45
	      Position		      [195, 73, 220, 97]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      ShowName		      off
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DiscreteIntegrator
	      Name		      "Discrete-Time\nIntegrator1"
	      SID		      46
	      Ports		      [2, 1]
	      Position		      [110, 20, 145, 60]
	      ShowName		      off
	      IntegratorMethod	      "Integration: Forward Euler"
	      ExternalReset	      "rising"
	      InitialConditionSource  "internal"
	      SampleTime	      "20e-6"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      ICPrevOutput	      "DiscIntNeverNeededParam"
	      ICPrevScaledInput	      "DiscIntNeverNeededParam"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator1"
	      SID		      47
	      Ports		      [2, 1]
	      Position		      [150, 68, 170, 92]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      ShowName		      off
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay1"
	      SID		      48
	      Position		      [105, 70, 130, 90]
	      BlockMirror	      on
	      NamePlacement	      "alternate"
	      ShowName		      off
	      SampleTime	      "20e-6"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "fc"
	      SID		      49
	      Position		      [30, 15, 60, 45]
	      ShowName		      off
	      Value		      "10000"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "ramp_out"
	      SID		      50
	      Position		      [210, 33, 240, 47]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Unit Delay1"
	      SrcPort		      1
	      Points		      [-15, 0; 0, -30]
	      DstBlock		      "Discrete-Time\nIntegrator1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator1"
	      SrcPort		      1
	      DstBlock		      "Unit Delay1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant3"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nIntegrator1"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		DstBlock		"ramp_out"
		DstPort			1
	      }
	      Branch {
		Points			[0, 35]
		DstBlock		"Relational\nOperator1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "fc"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nIntegrator1"
	      DstPort		      1
	    }
	    Annotation {
	      Name		      "Carrier Freq"
	      Position		      [42, 53]
	    }
	  }
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  SID			  51
	  Ports			  [2, 1]
	  Position		  [400, 459, 430, 541]
	  ShowName		  off
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator1"
	  SID			  52
	  Ports			  [2, 1]
	  Position		  [220, 292, 250, 323]
	  ShowName		  off
	  Operator		  "<="
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator3"
	  SID			  53
	  Ports			  [2, 1]
	  Position		  [270, 595, 300, 655]
	  ShowName		  off
	  Operator		  ">"
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay"
	  SID			  54
	  Position		  [370, 120, 400, 150]
	  ShowName		  off
	  OnSwitchValue		  "2"
	  OffSwitchValue	  "-2"
	  OutDataTypeMode	  "Inherit via back propagation"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via back propagation"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope2"
	  SID			  55
	  Ports			  [1]
	  Position		  [650, 14, 685, 56]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [738, 279, 1185, 775]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "1"
	  YMin			  "-5.5"
	  YMax			  "4"
	  SaveName		  "psbbridges_str2"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope4"
	  SID			  56
	  Ports			  [2]
	  Position		  [800, 301, 835, 354]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [286, 94, 733, 590]
	  Open			  off
	  NumInputPorts		  "2"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	    axes2		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.7             "
	  YMin			  "-1~0"
	  YMax			  "1~1"
	  SaveName		  "psbbridges_str6"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope5"
	  SID			  57
	  Ports			  [4]
	  Position		  [640, 408, 675, 477]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [620, 137, 1067, 632]
	  Open			  off
	  NumInputPorts		  "4"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	    axes2		    "%<SignalLabel>"
	    axes3		    "%<SignalLabel>"
	    axes4		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.1"
	  YMin			  "-0.5~-1~-0.003~-1"
	  YMax			  "1~1~0.004~1"
	  SaveName		  "psbbridges_str7"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope7"
	  SID			  58
	  Ports			  [1]
	  Position		  [875, 69, 910, 111]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [738, 266, 1185, 762]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "1"
	  YMin			  "-1"
	  YMax			  "1"
	  SaveName		  "psbbridges_str3"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope8"
	  SID			  59
	  Ports			  [3]
	  Position		  [725, 54, 760, 106]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [211, 235, 658, 731]
	  Open			  off
	  NumInputPorts		  "3"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	    axes2		    "%<SignalLabel>"
	    axes3		    "%<SignalLabel>"
	  }
	  TimeRange		  "3"
	  YMin			  "32.5~0.95~0.95"
	  YMax			  "60~1.05~1.05"
	  SaveName		  "psbbridges_str5"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  SID			  60
	  Ports			  [2, 1]
	  Position		  [105, 125, 125, 145]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "+-"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  SID			  61
	  Ports			  [2, 1]
	  Position		  [295, 120, 325, 150]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  SID			  62
	  Ports			  [2, 1]
	  Position		  [215, 470, 235, 490]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "plot1"
	  SID			  63
	  Ports			  [2]
	  Position		  [490, 612, 520, 663]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [1, 48, 1367, 727]
	  Open			  off
	  NumInputPorts		  "2"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	    axes2		    "%<SignalLabel>"
	  }
	  YMin			  "0.95~0.76"
	  YMax			  "1.05~0.84"
	  SaveToWorkspace	  on
	  SaveName		  "ScopeData25"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleInput		  on
	  SampleTime		  "100e-6"
	}
	Block {
	  BlockType		  Outport
	  Name			  "S1"
	  SID			  64
	  Position		  [790, 198, 820, 212]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "S2"
	  SID			  65
	  Position		  [750, 138, 780, 152]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Gate"
	  SID			  66
	  Position		  [565, 523, 595, 537]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Discrete\nPI Controller"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Sum1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -70]
	    DstBlock		    "Scope8"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Discrete\nPI Controller"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Vdc"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [45, 0]
	    DstBlock		    "Sum"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [-50, 0; 0, 305]
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	}
	Line {
	  Labels		  [0, 0]
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [65, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relay"
	  SrcPort		  1
	  DstBlock		  "Data Type \nConversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ibat"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    Points		    [0, -100]
	    DstBlock		    "Scope2"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Relay"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Data Type \nConversion"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 60; 100, 0]
	    Branch {
	      Points		      [0, 0; 0, -100]
	      DstBlock		      "Scope8"
	      DstPort		      3
	    }
	    Branch {
	      Points		      [0, 40; 95, 0; 50, 0]
	      Branch {
		Points			[0, -30]
		DstBlock		"S1"
		DstPort			1
	      }
	      Branch {
		Points			[0, 105]
		DstBlock		"Scope4"
		DstPort			2
	      }
	    }
	  }
	  Branch {
	    Points		    [10, 0]
	    Branch {
	      Points		      [5, 0; 0, -20; 55, 0; 0, -35]
	      DstBlock		      "Scope8"
	      DstPort		      2
	    }
	    Branch {
	      DstBlock		      "Logical\nOperator3"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SOC"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 310]
	    DstBlock		    "Gain2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Relational\nOperator1"
	  SrcPort		  1
	  Points		  [360, 0; 0, -160]
	  DstBlock		  "Product2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [75, 0]
	  DstBlock		  "Relational\nOperator1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Logical\nOperator3"
	  SrcPort		  1
	  DstBlock		  "Product2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  Points		  [45, 0]
	  Branch {
	    Points		    [0, -55]
	    DstBlock		    "Scope7"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [10, 0]
	    Branch {
	      DstBlock		      "S2"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 170]
	      DstBlock		      "Scope4"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  Points		  [10, 0; 0, -5]
	  Branch {
	    Points		    [0, 25]
	    DstBlock		    "Logical\nOperator2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -55; 180, 0]
	    DstBlock		    "Scope5"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Constant3"
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Sum2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    DstBlock		    "Discrete\nPI Controller1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -30]
	    DstBlock		    "Scope5"
	    DstPort		    3
	  }
	}
	Line {
	  SrcBlock		  "Ramp_generator"
	  SrcPort		  1
	  Points		  [0, -10; 15, 0]
	  Branch {
	    DstBlock		    "Relational\nOperator"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -90]
	    DstBlock		    "Mux4"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Mux4"
	  SrcPort		  1
	  DstBlock		  "Scope5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete\nPI Controller1"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    DstBlock		    "Relational\nOperator"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -70]
	    DstBlock		    "Mux4"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Sum2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator3"
	  SrcPort		  1
	  Points		  [80, 0]
	  Branch {
	    DstBlock		    "plot1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -50]
	    DstBlock		    "Logical\nOperator2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Gain2"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    Points		    [0, 90; 305, 0]
	    DstBlock		    "plot1"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Constant4"
	  SrcPort		  1
	  Points		  [20, 0; 0, -30]
	  DstBlock		  "Relational\nOperator3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Logical\nOperator2"
	  SrcPort		  1
	  Points		  [10, 0; 0, -20; 10, 0]
	  Branch {
	    DstBlock		    "Gate"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -65]
	    DstBlock		    "Scope5"
	    DstPort		    4
	  }
	}
      }
    }
    Block {
      BlockType		      BusCreator
      Name		      "Bus\nCreator1"
      SID		      67
      Ports		      [4, 1]
      Position		      [1105, 447, 1110, 548]
      ShowName		      off
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      BusCreator
      Name		      "Bus\nCreator2"
      SID		      68
      Ports		      [2, 1]
      Position		      [885, 396, 890, 434]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      BusSelector
      Name		      "Bus\nSelector"
      SID		      378
      Ports		      [1, 3]
      Position		      [170, 367, 175, 443]
      ShowName		      off
      OutputSignals	      "p_H2,p_H20,p_O2"
      Port {
	PortNumber		1
	Name			"<p_H2>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		2
	Name			"<p_H20>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		3
	Name			"<p_O2>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "C1"
      SID		      69
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [807, 215, 833, 240]
      BlockRotation	      270
      BlockMirror	      on
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Parallel RLC Branch"
      SourceType	      "Parallel RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
      RConnTagsString	      "__new0"
      BranchType	      "C"
      Resistance	      "1.0"
      Inductance	      "1.0"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "2200e-06*2"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "C2"
      SID		      70
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [807, 145, 833, 170]
      BlockRotation	      270
      BlockMirror	      on
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Parallel RLC Branch"
      SourceType	      "Parallel RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
      RConnTagsString	      "__new0"
      BranchType	      "C"
      Resistance	      "1.0"
      Inductance	      "1.0"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "2200e-06*2"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Control of\n Inverter"
      SID		      71
      Ports		      [0, 3, 0, 0, 0, 3]
      Position		      [970, 74, 1020, 136]
      BlockMirror	      on
      NamePlacement	      "alternate"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Control of\n Inverter"
	Location		[2, 82, 1348, 715]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "Discrete\nPWM Generator1"
	  SID			  72
	  Ports			  [1, 1]
	  Position		  [690, 191, 760, 219]
	  NamePlacement		  "alternate"
	  AncestorBlock		  "powerlib_extras/Discrete \nControl Blocks/Discrete\nPWM Generator"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "Discrete PWM Generator"
	  MaskDescription	  "This discrete block generates pulses for carrier-based PWM (Pulse Width Modulation), self-commut"
	  "ated IGBTs,GTOs or FETs bridges.\n\nDepending on the number of bridge arms selected in the \"Generator Mode\" param"
	  "eter, the block can be used either for single-phase or three-phase PWM control.\n\n "
	  MaskHelp		  "The output pulses are a vector (with values=0 or 1). Depending on the selected \"Generator Mode\", the"
	  " output vector contains:\nFor a 1-arm  bridge: Two pulses. Pulse 1 is for the upper switch and pulse 2 is for the l"
	  "ower switch.\nFor a 2-arm  bridge: Four pulses. Pulses 1 and 3 are respectively for the upper switches of the first"
	  " and second arm. Pulses 2 and 4 are for the lower switches.\nFor a 3-arm  bridge: Six pulses. Pulses 1,3 and 5 are "
	  "respectively for the upper switches of the first,second and third arm. Pulses 2,4 and 6 are for the lower switches."
	  "\nFor double 3-arm bridges: Twelve pulses.The first six pulses (pulses 1 to 6) must be sent to the first 3-arm brid"
	  "ge and the last six (pulses 7 to 12) to the second 3-arm bridge.\n\nBy selecting \"Internal generation\" you can ca"
	  "n control the modulation index m, frequency and phase of the output voltage  from the internal parameters (m, Freq "
	  "and Phase). Otherwise, external signals are used for pulse generation. The width of the input vector must be 1 for "
	  "single phase bridges ( 1-arm or 2-arm)  and 3 for 3-phase bridges  (single or double bridge)."
	  MaskPromptString	  "Generator Mode|Carrier frequency (Hz):|Sample time:|Internal generation of modulating signal(s)"
	  "|Modulation index  (0<m<1) :|Frequency of output voltage (Hz)|Phase of output voltage (degrees)"
	  MaskStyleString	  "popup(1-arm  bridge (2 pulses)|2-arm  bridge (4 pulses)|3-arm  bridge (6 pulses)|Double 3-arm  b"
	  "ridges (12 pulses)),edit,edit,checkbox,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on,on,on"
	  MaskCallbackString	  "|||powericon('psbcallbacks',gcb,'Discrete PWM Generator',[]);|||"
	  MaskEnableString	  "on,on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,off,off,off"
	  MaskToolTipString	  "on,on,on,on,on,on,on"
	  MaskVariables		  "GeneratorMode=@1;Fc=@2;Ts=@3;Internal=@4;mIndex=@5;Freq=@6;Phase=@7;"
	  MaskInitialization	  "powericon('psbcallbacks',gcb,'Discrete PWM Generator');\nif Freq==0\n    Phase=90;\nend\nswit"
	  "ch GeneratorMode\ncase 1,\n    Internal_Phase=0;\n   Signal_PortWidth=1;\n   Select1_Elements=[1 2];\n   Select1_Po"
	  "rtWidth=2;\n   Select3_Elements=[1 2];\n   Select3_PortWidth=4;\ncase 2,\n    Internal_Phase=0;\n    Signal_PortWid"
	  "th=1;\n    Select1_Elements=[1 2];\n    Select1_PortWidth=2;\n    Select3_Elements=[1 2 3 4];\n    Select3_PortWidt"
	  "h=4;\ncase 3,\n    Internal_Phase=[0 -2*pi/3 2*pi/3];\n    Signal_PortWidth=3;\n    Select1_Elements=[1 4 2 5 3 6];"
	  "\n    Select1_PortWidth=6;\n   Select3_Elements=[1 2 3 4 5 6];\n   Select3_PortWidth=12;\ncase 4,\n    Internal_Pha"
	  "se=[0 -2*pi/3 2*pi/3];\n    Signal_PortWidth=3;\n    Select1_Elements=[1 4 2 5 3 6];\n    Select1_PortWidth=6;\n   "
	  "Select3_Elements=[1 2 3 4 5 6 7 8 9 10 11 12];\n   Select3_PortWidth=12;\nend\npower_initmask();"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "3-arm  bridge (6 pulses)|4000|20e-6|off|0.4|60|0"
	  System {
	    Name		    "Discrete\nPWM Generator1"
	    Location		    [42, 233, 997, 807]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    SIDHighWatermark	    27
	    Block {
	      BlockType		      Inport
	      Name		      "Uref"
	      SID		      1
	      Position		      [70, 363, 100, 377]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "BL4"
	      SID		      2
	      Ports		      [1, 1]
	      Position		      [625, 269, 655, 291]
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Operator		      "NOT"
	      Inputs		      "1"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "BL5"
	      SID		      3
	      Ports		      [1, 1]
	      Position		      [625, 374, 655, 396]
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Operator		      "NOT"
	      Inputs		      "1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      SID		      4
	      Position		      [35, 275, 155, 305]
	      ShowName		      off
	      Value		      "Internal_Phase"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      SID		      5
	      Position		      [295, 329, 340, 351]
	      ShowName		      off
	      Value		      "Internal"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "Data Type \nConversion"
	      SID		      6
	      Position		      [862, 355, 888, 375]
	      BlockRotation	      270
	      BlockMirror	      on
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      OutDataTypeMode	      "double"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "double"
	    }
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "Data Type \nConversion1"
	      SID		      7
	      Position		      [565, 240, 585, 260]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      OutDataTypeMode	      "boolean"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "boolean"
	    }
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "Data Type \nConversion2"
	      SID		      8
	      Position		      [565, 345, 585, 365]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      OutDataTypeMode	      "boolean"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "boolean"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      SID		      9
	      Position		      [100, 149, 165, 191]
	      ShowName		      off
	      Gain		      "2*pi*Freq"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain2"
	      SID		      10
	      Position		      [110, 211, 160, 249]
	      ShowName		      off
	      Gain		      "pi/180"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain3"
	      SID		      11
	      Position		      [450, 325, 485, 355]
	      ShowName		      off
	      Gain		      "-1"
	      ParameterDataType	      "sfix(16)"
	      ParameterScaling	      "2^0"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      SID		      12
	      Ports		      [2, 1]
	      Position		      [690, 235, 695, 295]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      SID		      13
	      Ports		      [2, 1]
	      Position		      [690, 340, 695, 400]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux2"
	      SID		      14
	      Ports		      [2, 1]
	      Position		      [795, 285, 800, 345]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      SID		      15
	      Ports		      [2, 1]
	      Position		      [310, 198, 340, 242]
	      ShowName		      off
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      SID		      16
	      Ports		      [2, 1]
	      Position		      [515, 222, 545, 273]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator1"
	      SID		      17
	      Ports		      [2, 1]
	      Position		      [515, 327, 545, 378]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select1A"
	      SID		      18
	      Ports		      [1, 1]
	      Position		      [725, 249, 755, 281]
	      InputPortWidth	      "Select1_PortWidth"
	      IndexOptions	      "Index vector (dialog)"
	      Indices		      "Select1_Elements"
	      OutputSizes	      "1"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select1B"
	      SID		      19
	      Ports		      [1, 1]
	      Position		      [725, 354, 755, 386]
	      InputPortWidth	      "Select1_PortWidth"
	      IndexOptions	      "Index vector (dialog)"
	      Indices		      "Select1_Elements"
	      OutputSizes	      "1"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select3"
	      SID		      20
	      Ports		      [1, 1]
	      Position		      [830, 299, 860, 331]
	      InputPortWidth	      "Select3_PortWidth"
	      IndexOptions	      "Index vector (dialog)"
	      Indices		      "Select3_Elements"
	      OutputSizes	      "1"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      SID		      21
	      Ports		      [3, 1]
	      Position		      [200, 138, 235, 322]
	      ShowName		      off
	      Inputs		      "+++"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Triangle"
	      SID		      22
	      Ports		      [0, 1]
	      Position		      [450, 420, 480, 450]
	      LibraryVersion	      "1.762"
	      SourceBlock	      "simulink/Sources/Repeating\nSequence"
	      SourceType	      "Repeating table"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      rep_seq_t		      "[0 1/Fc/4 3/Fc/4 1/Fc]"
	      rep_seq_y		      "[0 -1 1 0]"
	    }
	    Block {
	      BlockType		      Trigonometry
	      Name		      "Trigonometric\nFunction"
	      SID		      23
	      Ports		      [1, 1]
	      Position		      [255, 217, 285, 243]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "m3"
	      SID		      24
	      Position		      [35, 220, 75, 240]
	      ShowName		      off
	      Value		      "Phase"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "m4"
	      SID		      25
	      Position		      [35, 110, 75, 130]
	      ShowName		      off
	      Value		      "mIndex"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      DigitalClock
	      Name		      "t"
	      SID		      26
	      Position		      [30, 159, 65, 181]
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Pulses"
	      SID		      27
	      Position		      [890, 398, 920, 412]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Mux2"
	      SrcPort		      1
	      DstBlock		      "Select3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Select1B"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Mux2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Select1A"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Mux2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux1"
	      SrcPort		      1
	      DstBlock		      "Select1B"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Select1A"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "BL5"
	      SrcPort		      1
	      DstBlock		      "Mux1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "BL4"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Gain3"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Triangle"
	      SrcPort		      1
	      Points		      [10, 0; 0, -70]
	      Branch {
		DstBlock		"Relational\nOperator1"
		DstPort			2
	      }
	      Branch {
		Points			[0, -105]
		DstBlock		"Relational\nOperator"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      Points		      [15, 0; 0, 90; 15, 0]
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      Points		      [30, 0]
	    }
	    Line {
	      SrcBlock		      "Uref"
	      SrcPort		      1
	      Points		      [315, 0; 0, -30; 10, 0]
	      Branch {
		Points			[0, -105]
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Gain3"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Trigonometric\nFunction"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Trigonometric\nFunction"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "m4"
	      SrcPort		      1
	      Points		      [215, 0]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "m3"
	      SrcPort		      1
	      DstBlock		      "Gain2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain2"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "t"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Select3"
	      SrcPort		      1
	      Points		      [10, 0]
	      DstBlock		      "Data Type \nConversion"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Data Type \nConversion"
	      SrcPort		      1
	      DstBlock		      "Pulses"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "Data Type \nConversion1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Data Type \nConversion1"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, 30]
		DstBlock		"BL4"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Mux"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator1"
	      SrcPort		      1
	      DstBlock		      "Data Type \nConversion2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Data Type \nConversion2"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, 30]
		DstBlock		"BL5"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Mux1"
		DstPort			1
	      }
	    }
	    Annotation {
	      Name		      "Pierre Giroux, Gilbert Sybille\nPower System Laboratory, IREQ\nHydro-Quebec"
	      Position		      [100, 52]
	    }
	    Annotation {
	      Name		      "PWM Generator "
	      Position		      [104, 19]
	      FontSize		      14
	      FontWeight	      "bold"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "MI Controller"
	  SID			  73
	  Ports			  [1, 1]
	  Position		  [540, 175, 630, 235]
	  ShowName		  off
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "MI Controller"
	    Location		    [2, 82, 1185, 739]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Vabc"
	      SID		      74
	      Position		      [100, 183, 130, 197]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      SID		      75
	      Position		      [180, 309, 215, 331]
	      ShowName		      off
	      Value		      "1/222"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant4"
	      SID		      76
	      Position		      [280, 304, 315, 326]
	      ShowName		      off
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      SID		      77
	      Ports		      [1, 3]
	      Position		      [155, 171, 160, 209]
	      BackgroundColor	      "black"
	      ShowName		      off
	      Outputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux1"
	      SID		      78
	      Ports		      [1, 3]
	      Position		      [540, 159, 545, 221]
	      BackgroundColor	      "black"
	      ShowName		      off
	      Outputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Discrete\nPI Controller"
	      SID		      79
	      Ports		      [1, 1]
	      Position		      [480, 172, 525, 218]
	      LibraryVersion	      "1.608"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib_extras/Discrete \nControl Blocks/Discrete\nPI Controller"
	      SourceType	      "Discrete PI Controller"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Kp		      "1.6"
	      Ki		      "36"
	      Par_Limits	      "[1.5 -1]"
	      Init		      "0"
	      Ts		      "20e-6"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Discrete\nVirtual PLL\n50 Hz"
	      SID		      80
	      Ports		      [0, 3]
	      Position		      [125, 374, 185, 446]
	      LibraryVersion	      "1.608"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib_extras/Discrete \nControl Blocks/Discrete\nVirtual PLL"
	      SourceType	      "Discrete Virtual PLL"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Freq		      "50"
	      Phase		      "0"
	      Ts		      "20e-6"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux2"
	      SID		      81
	      Ports		      [3, 1]
	      Position		      [825, 183, 830, 247]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux3"
	      SID		      82
	      Ports		      [3, 1]
	      Position		      [455, 163, 460, 227]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux7"
	      SID		      83
	      Ports		      [3, 1]
	      Position		      [345, 41, 350, 109]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "Powers11"
	      SID		      84
	      Ports		      [1]
	      Position		      [410, 52, 450, 98]
	      BackgroundColor	      "green"
	      Floating		      off
	      Location		      [421, 204, 1075, 483]
	      Open		      off
	      NumInputPorts	      "1"
	      List {
		ListType		AxesTitles
		axes1			"%<SignalLabel>"
	      }
	      YMin		      "452"
	      YMax		      "465"
	      SaveName		      "ScopeData6"
	      DataFormat	      "StructureWithTime"
	      LimitDataPoints	      off
	      SampleInput	      on
	      SampleTime	      "100e-6"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      SID		      85
	      Ports		      [2, 1]
	      Position		      [615, 137, 645, 168]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product1"
	      SID		      86
	      Ports		      [2, 1]
	      Position		      [615, 202, 645, 233]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product2"
	      SID		      87
	      Ports		      [2, 1]
	      Position		      [620, 282, 650, 313]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product4"
	      SID		      88
	      Ports		      [2, 1]
	      Position		      [290, 122, 320, 153]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product5"
	      SID		      89
	      Ports		      [2, 1]
	      Position		      [290, 172, 320, 203]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product6"
	      SID		      90
	      Ports		      [2, 1]
	      Position		      [295, 222, 325, 253]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem"
	      SID		      91
	      Ports		      [1, 3]
	      Position		      [215, 377, 280, 443]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Subsystem"
		Location		[46, 392, 892, 784]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "sin_cos"
		  SID			  92
		  Position		  [25, 45, 45, 65]
		  IconDisplay		  "Port number"
		  PortDimensions	  "2"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux"
		  SID			  93
		  Ports			  [1, 2]
		  Position		  [70, 28, 75, 77]
		  ShowName		  off
		  Outputs		  "2"
		  Port {
		    PortNumber		    1
		    Name		    "sin(wt)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		  Port {
		    PortNumber		    2
		    Name		    "cos(wt)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Fcn
		  Name			  "Fcn2"
		  SID			  94
		  Position		  [560, 122, 625, 148]
		  ShowName		  off
		  Expr			  "1*u[1]"
		}
		Block {
		  BlockType		  Fcn
		  Name			  "Fcn4"
		  SID			  95
		  Position		  [560, 170, 630, 200]
		  ShowName		  off
		  Expr			  "1*u[3]"
		}
		Block {
		  BlockType		  Fcn
		  Name			  "Fcn5"
		  SID			  96
		  Position		  [560, 215, 630, 245]
		  ShowName		  off
		  Expr			  "1*u[5]"
		}
		Block {
		  BlockType		  Constant
		  Name			  "K1"
		  SID			  97
		  Position		  [55, 145, 80, 165]
		  ShowName		  off
		  Value			  "0.5"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Constant
		  Name			  "K2"
		  SID			  98
		  Position		  [40, 184, 90, 206]
		  ShowName		  off
		  Value			  "sqrt(3)/2"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux2"
		  SID			  99
		  Ports			  [6, 1]
		  Position		  [455, 68, 460, 302]
		  ShowName		  off
		  Inputs		  "6"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  SID			  100
		  Ports			  [2, 1]
		  Position		  [190, 138, 220, 162]
		  ShowName		  off
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product1"
		  SID			  101
		  Ports			  [2, 1]
		  Position		  [190, 178, 220, 202]
		  ShowName		  off
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product2"
		  SID			  102
		  Ports			  [2, 1]
		  Position		  [185, 283, 215, 307]
		  ShowName		  off
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product3"
		  SID			  103
		  Ports			  [2, 1]
		  Position		  [185, 243, 215, 267]
		  ShowName		  off
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  SID			  104
		  Ports			  [2, 1]
		  Position		  [240, 129, 260, 211]
		  ShowName		  off
		  Inputs		  "--"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  Port {
		    PortNumber		    1
		    Name		    "sin(wt-2pi/3)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  SID			  105
		  Ports			  [2, 1]
		  Position		  [235, 234, 255, 316]
		  ShowName		  off
		  Inputs		  "-+"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  Port {
		    PortNumber		    1
		    Name		    "cos(wt-2pi/3)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum2"
		  SID			  106
		  Ports			  [2, 1]
		  Position		  [320, 231, 340, 264]
		  ShowName		  off
		  Inputs		  "--"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  Port {
		    PortNumber		    1
		    Name		    "sin(wt+2pi/3)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum3"
		  SID			  107
		  Ports			  [2, 1]
		  Position		  [320, 337, 340, 368]
		  ShowName		  off
		  Inputs		  "--"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		  Port {
		    PortNumber		    1
		    Name		    "cos(wt+2pi/3)"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Va"
		  SID			  108
		  Position		  [685, 128, 715, 142]
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Vb"
		  SID			  109
		  Position		  [690, 173, 720, 187]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Vc"
		  SID			  110
		  Position		  [690, 223, 720, 237]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Line {
		  SrcBlock		  "sin_cos"
		  SrcPort		  1
		  DstBlock		  "Demux"
		  DstPort		  1
		}
		Line {
		  Name			  "sin(wt)"
		  FontSize		  10
		  SrcBlock		  "Demux"
		  SrcPort		  1
		  Points		  [85, 0]
		  Branch {
		    Points		    [0, 105]
		    Branch {
		    DstBlock		    "Product"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 145]
		    Branch {
		    DstBlock		    "Product2"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 40; 140, 0]
		    DstBlock		    "Sum2"
		    DstPort		    2
		    }
		    }
		  }
		  Branch {
		    Labels		    [-1, 1]
		    Points		    [185, 0; 0, 45]
		    DstBlock		    "Mux2"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product1"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Product3"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product2"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  Name			  "cos(wt+2pi/3)"
		  FontSize		  10
		  Labels		  [3, 0]
		  SrcBlock		  "Sum3"
		  SrcPort		  1
		  Points		  [15, 0; 0, -70]
		  DstBlock		  "Mux2"
		  DstPort		  6
		}
		Line {
		  Name			  "sin(wt+2pi/3)"
		  FontSize		  10
		  Labels		  [-1, 1]
		  SrcBlock		  "Sum2"
		  SrcPort		  1
		  Points		  [95, 0]
		  DstBlock		  "Mux2"
		  DstPort		  5
		}
		Line {
		  SrcBlock		  "K1"
		  SrcPort		  1
		  Points		  [45, 0]
		  Branch {
		    DstBlock		    "Product"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 105]
		    DstBlock		    "Product3"
		    DstPort		    2
		  }
		}
		Line {
		  SrcBlock		  "K2"
		  SrcPort		  1
		  Points		  [20, 0]
		  Branch {
		    DstBlock		    "Product1"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 105]
		    DstBlock		    "Product2"
		    DstPort		    2
		  }
		}
		Line {
		  Name			  "sin(wt-2pi/3)"
		  FontSize		  10
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [40, 0]
		  Branch {
		    Labels		    [-1, 1]
		    Points		    [135, 0]
		    DstBlock		    "Mux2"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "Sum2"
		    DstPort		    1
		  }
		}
		Line {
		  Name			  "cos(wt-2pi/3)"
		  FontSize		  10
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [20, 0]
		  Branch {
		    Labels		    [-1, 1]
		    Points		    [0, -70]
		    DstBlock		    "Mux2"
		    DstPort		    4
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "Sum3"
		    DstPort		    1
		  }
		}
		Line {
		  Name			  "cos(wt)"
		  FontSize		  10
		  SrcBlock		  "Demux"
		  SrcPort		  2
		  Points		  [65, 0]
		  Branch {
		    Points		    [0, 120]
		    Branch {
		    Points		    [0, 65]
		    Branch {
		    Points		    [0, 110]
		    DstBlock		    "Sum3"
		    DstPort		    2
		    }
		    Branch {
		    DstBlock		    "Product3"
		    DstPort		    1
		    }
		    }
		    Branch {
		    DstBlock		    "Product1"
		    DstPort		    1
		    }
		  }
		  Branch {
		    Labels		    [-1, 1]
		    Points		    [160, 0; 0, 60]
		    DstBlock		    "Mux2"
		    DstPort		    2
		  }
		}
		Line {
		  SrcBlock		  "Mux2"
		  SrcPort		  1
		  Points		  [40, 0]
		  Branch {
		    Points		    [0, 0]
		    Branch {
		    Points		    [0, -50]
		    DstBlock		    "Fcn2"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 0]
		    DstBlock		    "Fcn4"
		    DstPort		    1
		    }
		  }
		  Branch {
		    Points		    [0, 45]
		    DstBlock		    "Fcn5"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Fcn2"
		  SrcPort		  1
		  DstBlock		  "Va"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Fcn4"
		  SrcPort		  1
		  Points		  [20, 0; 0, -5]
		  DstBlock		  "Vb"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Fcn5"
		  SrcPort		  1
		  DstBlock		  "Vc"
		  DstPort		  1
		}
		Annotation {
		  Position		  [194, 233]
		}
		Annotation {
		  Position		  [204, 203]
		}
		Annotation {
		  Position		  [199, 318]
		}
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      SID		      111
	      Ports		      [2, 1]
	      Position		      [375, 133, 400, 162]
	      ShowName		      off
	      Inputs		      "-+"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      SID		      112
	      Ports		      [2, 1]
	      Position		      [375, 178, 400, 207]
	      ShowName		      off
	      Inputs		      "-+"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum3"
	      SID		      113
	      Ports		      [2, 1]
	      Position		      [375, 228, 400, 257]
	      ShowName		      off
	      Inputs		      "-+"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vab1"
	      SID		      114
	      Ports		      [1, 1]
	      Position		      [185, 219, 220, 241]
	      LibraryVersion	      "1.608"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
	      SourceType	      "Discrete RMS value"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Freq		      "50"
	      Mag_Init		      "0"
	      Ts		      "20e-6"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vab5"
	      SID		      115
	      Ports		      [1, 1]
	      Position		      [180, 179, 215, 201]
	      LibraryVersion	      "1.608"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
	      SourceType	      "Discrete RMS value"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Freq		      "50"
	      Mag_Init		      "0"
	      Ts		      "20e-6"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vab6"
	      SID		      116
	      Ports		      [1, 1]
	      Position		      [185, 129, 220, 151]
	      LibraryVersion	      "1.608"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
	      SourceType	      "Discrete RMS value"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Freq		      "50"
	      Mag_Init		      "0"
	      Ts		      "20e-6"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Vabc_inv"
	      SID		      117
	      Position		      [1035, 268, 1065, 282]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      "Mux2"
	      SrcPort		      1
	      Points		      [135, 0; 0, 60]
	      DstBlock		      "Vabc_inv"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      Points		      [80, 0; 0, 40]
	      DstBlock		      "Mux2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product1"
	      SrcPort		      1
	      Points		      [80, 0; 0, -5]
	      DstBlock		      "Mux2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product2"
	      SrcPort		      1
	      Points		      [75, 0; 0, -65]
	      DstBlock		      "Mux2"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Vab5"
	      SrcPort		      1
	      Points		      [0, -5; 15, 0]
	      Branch {
		Points			[0, -110]
		DstBlock		"Mux7"
		DstPort			2
	      }
	      Branch {
		Points			[40, 0]
		DstBlock		"Product5"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Vab1"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, -135]
		DstBlock		"Mux7"
		DstPort			3
	      }
	      Branch {
		DstBlock		"Product6"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Constant4"
	      SrcPort		      1
	      Points		      [25, 0; 0, -65; 10, 0]
	      Branch {
		DstBlock		"Sum3"
		DstPort			2
	      }
	      Branch {
		Points			[0, -50]
		Branch {
		  DstBlock		  "Sum2"
		  DstPort		  2
		}
		Branch {
		  Points		  [0, -45]
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      Points		      [10, 0; 0, 25]
	      DstBlock		      "Mux3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Vabc"
	      SrcPort		      1
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      Points		      [5, 0]
	      DstBlock		      "Vab6"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      DstBlock		      "Vab5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      3
	      Points		      [5, 0]
	      DstBlock		      "Vab1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Mux3"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum3"
	      SrcPort		      1
	      Points		      [35, 0]
	      DstBlock		      "Mux3"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Mux3"
	      SrcPort		      1
	      DstBlock		      "Discrete\nPI Controller"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Discrete\nPI Controller"
	      SrcPort		      1
	      Points		      [0, -5]
	      DstBlock		      "Demux1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      1
	      Points		      [15, 0; 0, -25]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      2
	      Points		      [15, 0; 0, 20]
	      DstBlock		      "Product1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      3
	      Points		      [5, 0; 0, 80]
	      DstBlock		      "Product2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product4"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product5"
	      SrcPort		      1
	      Points		      [0, -5]
	      DstBlock		      "Sum2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product6"
	      SrcPort		      1
	      Points		      [0, -5]
	      DstBlock		      "Sum3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Vab6"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		Points			[5, 0; 0, -85]
		DstBlock		"Mux7"
		DstPort			1
	      }
	      Branch {
		Points			[50, 0]
		DstBlock		"Product4"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Mux7"
	      SrcPort		      1
	      DstBlock		      "Powers11"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Discrete\nVirtual PLL\n50 Hz"
	      SrcPort		      2
	      DstBlock		      "Subsystem"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem"
	      SrcPort		      1
	      Points		      [90, 0; 0, -115; 200, 0; 0, -115]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Subsystem"
	      SrcPort		      2
	      Points		      [105, 0; 0, -130; 200, 0; 0, -55]
	      DstBlock		      "Product1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Subsystem"
	      SrcPort		      3
	      Points		      [115, 0; 0, -125]
	      DstBlock		      "Product2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      Points		      [35, 0; 0, -75]
	      Branch {
		DstBlock		"Product6"
		DstPort			2
	      }
	      Branch {
		Points			[0, -50]
		Branch {
		  DstBlock		  "Product5"
		  DstPort		  2
		}
		Branch {
		  Points		  [0, -50]
		  DstBlock		  "Product4"
		  DstPort		  2
		}
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem1"
	  SID			  118
	  Ports			  [0, 3, 0, 0, 0, 3]
	  Position		  [375, 243, 435, 337]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Subsystem1"
	    Location		    [-36, 132, 1232, 768]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Reference
	      Name		      "Ground4"
	      SID		      119
	      Ports		      [0, 0, 0, 0, 0, 1]
	      Position		      [184, 380, 206, 405]
	      BlockRotation	      270
	      BlockMirror	      on
	      ShowName		      off
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      FontName		      "Verdana"
	      FontSize		      11
	      SourceBlock	      "powerlib/Elements/Ground"
	      SourceType	      "Ground"
	      PhysicalDomain	      "powersysdomain"
	      SubClassName	      "unknown"
	      LeftPortType	      "p1"
	      RightPortType	      "p1"
	      LConnTagsString	      "a"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      SID		      120
	      Ports		      [3, 1]
	      Position		      [330, 481, 335, 539]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux2"
	      SID		      121
	      Ports		      [3, 1]
	      Position		      [380, 366, 385, 424]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux7"
	      SID		      122
	      Ports		      [3, 1]
	      Position		      [325, 251, 330, 309]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vab"
	      SID		      123
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [220, 448, 245, 472]
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vab1"
	      SID		      124
	      Ports		      [1, 1]
	      Position		      [300, 384, 335, 406]
	      LibraryVersion	      "1.608"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
	      SourceType	      "Discrete RMS value"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Freq		      "50"
	      Mag_Init		      "0"
	      Ts		      "20e-6"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vab2"
	      SID		      125
	      Ports		      [1, 1]
	      Position		      [300, 424, 335, 446]
	      LibraryVersion	      "1.608"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
	      SourceType	      "Discrete RMS value"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Freq		      "50"
	      Mag_Init		      "0"
	      Ts		      "20e-6"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vab5"
	      SID		      126
	      Ports		      [1, 1]
	      Position		      [300, 344, 335, 366]
	      LibraryVersion	      "1.608"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
	      SourceType	      "Discrete RMS value"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Freq		      "50"
	      Mag_Init		      "0"
	      Ts		      "20e-6"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vbc"
	      SID		      127
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [220, 498, 245, 522]
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Vca"
	      SID		      128
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [220, 538, 245, 562]
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "a"
	      SID		      129
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [220, 218, 245, 242]
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "b"
	      SID		      130
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [220, 268, 245, 292]
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "c"
	      SID		      131
	      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
	      Ports		      [0, 1, 0, 0, 0, 2]
	      Position		      [220, 308, 245, 332]
	      AttributesFormatString  "\\n"
	      LibraryVersion	      "1.1845"
	      DialogController	      "POWERSYS.PowerSysDialog"
	      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
	      SourceType	      "Voltage Measurement"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      PhasorSimulation	      off
	      OutputType	      "Magnitude"
	      PSBequivalent	      "0"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "A"
	      SID		      132
	      Position		      [75, 218, 105, 232]
	      Port		      "1"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "B"
	      SID		      133
	      Position		      [100, 268, 130, 282]
	      Port		      "2"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "C"
	      SID		      134
	      Position		      [75, 308, 105, 322]
	      Port		      "3"
	      Side		      "Left"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Vph"
	      SID		      135
	      Position		      [380, 273, 410, 287]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "VL-L"
	      SID		      136
	      Position		      [375, 503, 405, 517]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Vph_rms"
	      SID		      137
	      Position		      [425, 388, 455, 402]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Ground4"
	      SrcPort		      LConn1
	      Points		      [0, -40]
	      Branch {
		ConnectType		"DEST_SRC"
		DstBlock		"c"
		DstPort			LConn2
	      }
	      Branch {
		ConnectType		"DEST_SRC"
		Points			[0, -40]
		Branch {
		  ConnectType		  "DEST_SRC"
		  DstBlock		  "b"
		  DstPort		  LConn2
		}
		Branch {
		  ConnectType		  "DEST_SRC"
		  Points		  [0, -50]
		  DstBlock		  "a"
		  DstPort		  LConn2
		}
	      }
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "A"
	      SrcPort		      RConn1
	      Points		      [55, 0]
	      Branch {
		ConnectType		"DEST_SRC"
		DstBlock		"a"
		DstPort			LConn1
	      }
	      Branch {
		ConnectType		"DEST_SRC"
		Points			[0, 230]
		Branch {
		  ConnectType		  "DEST_SRC"
		  DstBlock		  "Vab"
		  DstPort		  LConn1
		}
		Branch {
		  ConnectType		  "DEST_SRC"
		  Points		  [0, 100]
		  DstBlock		  "Vca"
		  DstPort		  LConn2
		}
	      }
	    }
	    Line {
	      SrcBlock		      "a"
	      SrcPort		      1
	      Points		      [35, 0]
	      Branch {
		Points			[20, 0; 0, 30]
		DstBlock		"Mux7"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Vab5"
		DstPort			1
	      }
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "B"
	      SrcPort		      RConn1
	      Points		      [15, 0]
	      Branch {
		ConnectType		"DEST_SRC"
		DstBlock		"b"
		DstPort			LConn1
	      }
	      Branch {
		ConnectType		"DEST_SRC"
		Points			[0, 190]
		Branch {
		  ConnectType		  "DEST_SRC"
		  DstBlock		  "Vab"
		  DstPort		  LConn2
		}
		Branch {
		  ConnectType		  "DEST_SRC"
		  Points		  [0, 40]
		  DstBlock		  "Vbc"
		  DstPort		  LConn1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "b"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		DstBlock		"Mux7"
		DstPort			2
	      }
	      Branch {
		Points			[0, 115]
		DstBlock		"Vab1"
		DstPort			1
	      }
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "C"
	      SrcPort		      RConn1
	      Points		      [15, 0]
	      Branch {
		ConnectType		"DEST_SRC"
		DstBlock		"c"
		DstPort			LConn1
	      }
	      Branch {
		ConnectType		"DEST_SRC"
		Points			[0, 200]
		Branch {
		  ConnectType		  "DEST_SRC"
		  DstBlock		  "Vbc"
		  DstPort		  LConn2
		}
		Branch {
		  ConnectType		  "DEST_SRC"
		  Points		  [0, 30]
		  DstBlock		  "Vca"
		  DstPort		  LConn1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "c"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[50, 0]
		DstBlock		"Mux7"
		DstPort			3
	      }
	      Branch {
		Points			[0, 115]
		DstBlock		"Vab2"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Mux7"
	      SrcPort		      1
	      DstBlock		      "Vph"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Vab"
	      SrcPort		      1
	      Points		      [45, 0; 0, 30]
	      DstBlock		      "Mux1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Vbc"
	      SrcPort		      1
	      DstBlock		      "Mux1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Vca"
	      SrcPort		      1
	      Points		      [45, 0; 0, -20]
	      DstBlock		      "Mux1"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Mux1"
	      SrcPort		      1
	      DstBlock		      "VL-L"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Vab5"
	      SrcPort		      1
	      Points		      [10, 0; 0, 20]
	      DstBlock		      "Mux2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Vab1"
	      SrcPort		      1
	      DstBlock		      "Mux2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Vab2"
	      SrcPort		      1
	      Points		      [10, 0; 0, -20]
	      DstBlock		      "Mux2"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Mux2"
	      SrcPort		      1
	      DstBlock		      "Vph_rms"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay4"
	  SID			  138
	  Position		  [795, 185, 815, 225]
	  ShowName		  off
	  SampleTime		  "20e-6"
	}
	Block {
	  BlockType		  Scope
	  Name			  "VL-L"
	  SID			  139
	  Ports			  [1]
	  Position		  [545, 307, 585, 353]
	  BackgroundColor	  "green"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [102, 265, 1117, 762]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.4"
	  YMin			  "-700"
	  YMax			  "700"
	  SaveToWorkspace	  on
	  SaveName		  "Vabc_line"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleInput		  on
	  SampleTime		  "100e-6"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Vph_rms"
	  SID			  140
	  Ports			  [1]
	  Position		  [745, 347, 785, 393]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [102, 265, 1117, 762]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.4"
	  YMin			  "220.9"
	  YMax			  "223.2"
	  SaveToWorkspace	  on
	  SaveName		  "Vabc_rms"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleInput		  on
	  SampleTime		  "100e-6"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "C"
	  SID			  141
	  Position		  [265, 348, 295, 362]
	  Port			  "1"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "B"
	  SID			  142
	  Position		  [320, 283, 350, 297]
	  Port			  "2"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "A"
	  SID			  143
	  Position		  [270, 203, 300, 217]
	  Port			  "3"
	  Side			  "Left"
	}
	Block {
	  BlockType		  Outport
	  Name			  "VL"
	  SID			  144
	  Position		  [740, 278, 770, 292]
	  NamePlacement		  "alternate"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Vp"
	  SID			  145
	  Position		  [720, 458, 750, 472]
	  NamePlacement		  "alternate"
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Pulses"
	  SID			  146
	  Position		  [845, 198, 875, 212]
	  NamePlacement		  "alternate"
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Unit Delay4"
	  SrcPort		  1
	  DstBlock		  "Pulses"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete\nPWM Generator1"
	  SrcPort		  1
	  DstBlock		  "Unit Delay4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "MI Controller"
	  SrcPort		  1
	  DstBlock		  "Discrete\nPWM Generator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subsystem1"
	  SrcPort		  1
	  Points		  [40, 0; 0, -55]
	  DstBlock		  "MI Controller"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Subsystem1"
	  SrcPort		  2
	  Points		  [80, 0]
	  Branch {
	    Points		    [0, 40]
	    DstBlock		    "VL-L"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [170, 0; 0, -5]
	    DstBlock		    "VL"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Subsystem1"
	  SrcPort		  3
	  Points		  [40, 0; 0, 50; 185, 0]
	  Branch {
	    DstBlock		    "Vph_rms"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 95]
	    DstBlock		    "Vp"
	    DstPort		    1
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "A"
	  SrcPort		  RConn1
	  Points		  [0, 50]
	  DstBlock		  "Subsystem1"
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "B"
	  SrcPort		  RConn1
	  DstBlock		  "Subsystem1"
	  DstPort		  LConn2
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "C"
	  SrcPort		  RConn1
	  Points		  [0, -35]
	  DstBlock		  "Subsystem1"
	  DstPort		  LConn3
	}
	Annotation {
	  Name			  "Control of Inverter"
	  Position		  [553, 79]
	  FontSize		  20
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Current Measurement1"
      SID		      379
      Ports		      [0, 1, 0, 0, 0, 1, 1]
      Position		      [275, 398, 300, 422]
      ForegroundColor	      "red"
      ShowName		      off
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Current Measurement"
      SourceType	      "Current Measurement"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux2"
      SID		      147
      Ports		      [1, 2]
      Position		      [1190, 51, 1195, 89]
      BlockMirror	      on
      BackgroundColor	      "black"
      NamePlacement	      "alternate"
      ShowName		      off
      Outputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete \nMean value2"
      SID		      148
      Ports		      [1, 1]
      Position		      [1230, 51, 1280, 89]
      BlockMirror	      on
      NamePlacement	      "alternate"
      LibraryVersion	      "1.608"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib_extras/Discrete\nMeasurements/Discrete \nMean value"
      SourceType	      "Discrete Mean value"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Freq		      "50"
      Vinit		      "0"
      Ts		      "20e-6"
    }
    Block {
      BlockType		      Reference
      Name		      "FW Diode1"
      SID		      149
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [355, 275, 395, 330]
      BlockRotation	      270
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Power\nElectronics/Diode"
      SourceType	      "Diode"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Ron		      "0.01"
      Lon		      "0"
      Vf		      "0.8"
      IC		      "0"
      UseSnubber	      off
      Rs		      "100"
      Cs		      "0.1e-6"
      Measurements	      off
    }
    Block {
      BlockType		      From
      Name		      "From"
      SID		      150
      Position		      [1005, 459, 1050, 481]
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Bp"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      From
      Name		      "From1"
      SID		      151
      Position		      [1005, 509, 1050, 531]
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Wp"
    }
    Block {
      BlockType		      From
      Name		      "From2"
      SID		      152
      Position		      [1005, 564, 1050, 586]
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Sp"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      From
      Name		      "From3"
      SID		      153
      Position		      [1005, 409, 1050, 431]
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Lp"
    }
    Block {
      BlockType		      From
      Name		      "From7"
      SID		      154
      Position		      [1385, 45, 1440, 65]
      BlockMirror	      on
      NamePlacement	      "alternate"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Vabc_BL"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      From
      Name		      "From8"
      SID		      155
      Position		      [1385, 70, 1440, 90]
      BlockMirror	      on
      NamePlacement	      "alternate"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "Iabc_BL"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      SID		      156
      Position		      [825, 415, 855, 445]
      ParameterDataTypeMode   "Inherit via internal rule"
      ParameterDataType	      "sfix(16)"
      ParameterScaling	      "2^0"
      ParamDataTypeStr	      "Inherit: Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Goto
      Name		      "Goto"
      SID		      157
      Position		      [645, 485, 685, 505]
      GotoTag		      "Bp"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto10"
      SID		      380
      Position		      [160, 486, 185, 504]
      BlockMirror	      on
      NamePlacement	      "alternate"
      ShowName		      off
      GotoTag		      "V_DC"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto4"
      SID		      158
      Position		      [1115, 48, 1165, 72]
      BlockMirror	      on
      NamePlacement	      "alternate"
      GotoTag		      "Lp"
      TagVisibility	      "local"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground1"
      SID		      159
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [829, 210, 851, 235]
      BlockRotation	      270
      BlockMirror	      on
      ShowName		      off
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      FontName		      "Verdana"
      FontSize		      11
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Reference
      Name		      "IGBT2"
      SID		      161
      Ports		      [1, 0, 0, 0, 0, 1, 1]
      Position		      [519, 135, 561, 185]
      BlockRotation	      270
      BlockMirror	      on
      NamePlacement	      "alternate"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Power\nElectronics/IGBT"
      SourceType	      "IGBT"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Ron		      "0.001"
      Lon		      "0"
      Vf		      "1"
      Tf		      "1e-6"
      Tt		      "2e-6"
      IC		      "0"
      Rs		      "1e5"
      Cs		      "inf"
      Measurements	      off
    }
    Block {
      BlockType		      Reference
      Name		      "IL1"
      SID		      162
      Ports		      [0, 1, 0, 0, 0, 1, 1]
      Position		      [725, 98, 750, 122]
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Current Measurement"
      SourceType	      "Current Measurement"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "IL3"
      SID		      163
      Ports		      [0, 1, 0, 0, 0, 1, 1]
      Position		      [650, 518, 675, 542]
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Current Measurement"
      SourceType	      "Current Measurement"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "IL7"
      SID		      164
      Ports		      [0, 1, 0, 0, 0, 1, 1]
      Position		      [1120, 167, 1150, 198]
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Current Measurement"
      SourceType	      "Current Measurement"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "L3"
      SID		      165
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [528, 215, 552, 245]
      BlockRotation	      270
      BlockMirror	      on
      AttributesFormatString  "\\n"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Series RLC Branch"
      SourceType	      "Series RLC Branch"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "__new0"
      RConnTagsString	      "__new0"
      BranchType	      "R"
      Resistance	      "19"
      Inductance	      "2e-3"
      SetiL0		      off
      InitialCurrent	      "0"
      Capacitance	      "1.0"
      Setx0		      off
      InitialVoltage	      "0"
      Measurements	      "None"
    }
    Block {
      BlockType		      SubSystem
      Name		      "LC Filter"
      SID		      166
      Ports		      [0, 0, 0, 0, 0, 3, 3]
      Position		      [965, 173, 1015, 247]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"LC Filter"
	Location		[500, 106, 1195, 437]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Reference
	  Name			  "2 mH "
	  SID			  167
	  Ports			  [0, 0, 0, 0, 0, 3, 3]
	  Position		  [100, 50, 155, 100]
	  AttributesFormatString  "\\n"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Three-Phase\nSeries RLC Branch"
	  SourceType		  "Three-Phase Series RLC Branch"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "A|B|C"
	  RConnTagsString	  "A|B|C"
	  BranchType		  "L"
	  Resistance		  "1.0"
	  Inductance		  "36e-4"
	  Capacitance		  "1.0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Ground"
	  SID			  168
	  Ports			  [0, 0, 0, 0, 0, 1]
	  Position		  [194, 255, 216, 280]
	  BlockRotation		  270
	  BlockMirror		  on
	  ShowName		  off
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Ground"
	  SourceType		  "Ground"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "a"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Ground1"
	  SID			  169
	  Ports			  [0, 0, 0, 0, 0, 1]
	  Position		  [234, 255, 256, 280]
	  BlockRotation		  270
	  BlockMirror		  on
	  ShowName		  off
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Ground"
	  SourceType		  "Ground"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "a"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Ground2"
	  SID			  170
	  Ports			  [0, 0, 0, 0, 0, 1]
	  Position		  [279, 255, 301, 280]
	  BlockRotation		  270
	  BlockMirror		  on
	  ShowName		  off
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Ground"
	  SourceType		  "Ground"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "a"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Three-Phase\nSeries RLC Branch"
	  SID			  171
	  Ports			  [0, 0, 0, 0, 0, 3, 3]
	  Position		  [217, 155, 263, 225]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  AttributesFormatString  "\\n"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Three-Phase\nSeries RLC Branch"
	  SourceType		  "Three-Phase Series RLC Branch"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "A|B|C"
	  RConnTagsString	  "A|B|C"
	  BranchType		  "C"
	  Resistance		  ".1"
	  Inductance		  "1e-3"
	  Capacitance		  "6.85e-6"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "A"
	  SID			  172
	  Position		  [25, 28, 55, 42]
	  Port			  "1"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "B"
	  SID			  173
	  Position		  [25, 68, 55, 82]
	  Port			  "2"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "C"
	  SID			  174
	  Position		  [20, 108, 50, 122]
	  Port			  "3"
	  Side			  "Left"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "A "
	  SID			  175
	  Position		  [385, 28, 415, 42]
	  BlockMirror		  on
	  Port			  "4"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "B "
	  SID			  176
	  Position		  [385, 68, 415, 82]
	  BlockMirror		  on
	  Port			  "5"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "C "
	  SID			  177
	  Position		  [385, 108, 415, 122]
	  BlockMirror		  on
	  Port			  "6"
	  Side			  "Right"
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "B"
	  SrcPort		  RConn1
	  DstBlock		  "2 mH "
	  DstPort		  LConn2
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "A"
	  SrcPort		  RConn1
	  Points		  [0, 25]
	  DstBlock		  "2 mH "
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "C"
	  SrcPort		  RConn1
	  Points		  [10, 0; 0, -25]
	  DstBlock		  "2 mH "
	  DstPort		  LConn3
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "2 mH "
	  SrcPort		  RConn1
	  Points		  [55, 0]
	  Branch {
	    ConnectType		    "DEST_SRC"
	    Points		    [105, 0; 0, -25]
	    DstBlock		    "A "
	    DstPort		    RConn1
	  }
	  Branch {
	    ConnectType		    "DEST_SRC"
	    DstBlock		    "Three-Phase\nSeries RLC Branch"
	    DstPort		    LConn1
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "2 mH "
	  SrcPort		  RConn2
	  Points		  [75, 0]
	  Branch {
	    ConnectType		    "DEST_SRC"
	    DstBlock		    "B "
	    DstPort		    RConn1
	  }
	  Branch {
	    ConnectType		    "DEST_SRC"
	    Points		    [0, 65]
	    DstBlock		    "Three-Phase\nSeries RLC Branch"
	    DstPort		    LConn2
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "2 mH "
	  SrcPort		  RConn3
	  Points		  [90, 0]
	  Branch {
	    ConnectType		    "DEST_SRC"
	    Points		    [70, 0; 0, 25]
	    DstBlock		    "C "
	    DstPort		    RConn1
	  }
	  Branch {
	    ConnectType		    "DEST_SRC"
	    Points		    [0, 50]
	    DstBlock		    "Three-Phase\nSeries RLC Branch"
	    DstPort		    LConn3
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Ground"
	  SrcPort		  LConn1
	  Points		  [0, -5; 20, 0]
	  DstBlock		  "Three-Phase\nSeries RLC Branch"
	  DstPort		  RConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Ground1"
	  SrcPort		  LConn1
	  DstBlock		  "Three-Phase\nSeries RLC Branch"
	  DstPort		  RConn2
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Ground2"
	  SrcPort		  LConn1
	  Points		  [0, -5; -35, 0]
	  DstBlock		  "Three-Phase\nSeries RLC Branch"
	  DstPort		  RConn3
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Mean Value1"
      SID		      178
      Ports		      [1, 1]
      Position		      [715, 505, 745, 545]
      LibraryVersion	      "1.608"
      DialogController	      "POWERSYS.PowerSysDialog"
      FontName		      "Verdana"
      FontSize		      11
      SourceBlock	      "powerlib_extras/Measurements/Mean Value"
      SourceType	      "Mean value"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Period		      "1/110"
    }
    Block {
      BlockType		      Reference
      Name		      "Mean Value3"
      SID		      179
      Ports		      [1, 1]
      Position		      [770, 50, 800, 90]
      LibraryVersion	      "1.608"
      DialogController	      "POWERSYS.PowerSysDialog"
      FontName		      "Verdana"
      FontSize		      11
      SourceBlock	      "powerlib_extras/Measurements/Mean Value"
      SourceType	      "Mean value"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Period		      "1/110"
    }
    Block {
      BlockType		      Reference
      Name		      "Measure"
      SID		      180
      Ports		      [0, 2, 0, 0, 0, 3, 3]
      Position		      [1220, 164, 1260, 256]
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Three-Phase\nV-I Measurement"
      SourceType	      "Three-Phase VI Measurement"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      VoltageMeasurement      "phase-to-ground"
      SetLabelV		      off
      LabelV		      "V1"
      Vpu		      off
      CurrentMeasurement      "yes"
      SetLabelI		      off
      LabelI		      "I1"
      Ipu		      off
      Pbase		      "5.5e3"
      Vbase		      "385"
      OutputType	      "Magnitude"
      PhasorSimulation	      off
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "PWM \nIGBT Inverter1"
      SID		      181
      Ports		      [1, 0, 0, 0, 0, 3, 2]
      Position		      [870, 144, 935, 251]
      BlockMirror	      on
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Power\nElectronics/Universal Bridge"
      SourceType	      "Universal Bridge"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Arms		      "3"
      SnubberResistance	      "5000"
      SnubberCapacitance      "inf"
      Device		      "IGBT / Diodes"
      Ron		      "1e-3"
      Lon		      "0"
      ForwardVoltages	      "[  0.0  0.0  ]"
      ForwardVoltage	      ".8"
      GTOparameters	      "[ 1e-6 ,1e-6 ]"
      IGBTparameters	      "[ 1e-6 , 2e-6 ]"
      Measurements	      "Device currents"
      Measurements_2	      "None"
      converterType	      "Rectifier"
    }
    Block {
      BlockType		      SubSystem
      Name		      "SOFC"
      SID		      381
      Ports		      [1, 1, 0, 0, 0, 0, 2]
      Position		      [55, 366, 135, 594]
      DropShadow	      on
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      MaskType		      "Solid Oxide Fuel Cell Model"
      MaskDescription	      "This block models a Solid Oxide Fuel Cell.\nThe model assumes the following:\n\ni.   The "
      "fuel cell gases are ideal\nii.  Only one pressure is defined in the interior of the electrodes\niii. The fuel ce"
      "ll temperature is invariant\niv.  Nernst's equation applies.\n\nThe model is taken from:\n\nY. Zhu and K. Tomsov"
      "ic, 'Development of models for analyzing the load-following performance of microturbines and fuel cells', Electr"
      "ic Power Systems Research, 62, 2002, 1-11."
      MaskPromptString	      "Absolute temperature (K)|Initial current (A)|Faraday's constant (C/kmol)|Universal gas c"
      "onstant J/(kmol K)|Ideal standard potential (V)|Number of cells in series|Maximum, minimal and optimal fuel util"
      "ization|Valve molar constant for hydrogen, water and oxygen (kmol/(s atm)|Response time for hydrogen, water and "
      "oxygen flow (s)|Ohmic loss per cell (ohms)|Electrical response time (s)|Fuel processor response time (s)|Ratio o"
      "f hydrogen to oxygen"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "||||||||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on,on,on,on"
      MaskVariables	      "T=@1;I_FC_0=@2;F=@3;R=@4;E0=@5;N0=@6;U=@7;K=@8;taus=@9;r_ohm=@10;tau_e=@11;tau_f=@12;r_HO=@"
      "13;"
      MaskInitialization      "U_max=U(1);\nU_min=U(2);\nU_opt=U(3);\n\nK_H2=K(1);\nK_H2O=K(2);\nK_O2=K(3);\n\nK_r=N0/"
      "4/F;\n\nq_H2_0=2*K_r/U_opt*I_FC_0;\n\np_H2_0=1/K_H2*(q_H2_0-2*K_r*I_FC_0);\n\np_H2O_0=1/K_H2O*2*K_r*I_FC_0;\n\np"
      "_O2_0=1/K_O2*(1/r_HO*q_H2_0-K_r*I_FC_0);\n\ntau_H2=taus(1);\ntau_H2O=taus(2);\ntau_O2=taus(3);\n\nV_Nernst_0=N0*"
      "R*T/2/F*log(p_H2_0*sqrt(p_O2_0)/p_H2O_0);"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskPortRotate	      "default"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1273|100|96.487e6|8314|1.18|450|[0.9 0.8 0.85]|[8.43e-4 2.81e-4 2.52e-3]|[26.1 78.3 2.91]"
      "|3.2813e-004|0.8|5|1.145"
      System {
	Name			"SOFC"
	Location		[2, 82, 1331, 715]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "IDC"
	  SID			  382
	  Position		  [32, 70, 48, 85]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  Port {
	    PortNumber		    1
	    Name		    "I_DC"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/K_H20"
	  SID			  383
	  Position		  [103, 430, 137, 460]
	  BlockRotation		  270
	  BlockMirror		  on
	  Gain			  "1/K_H2O"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Te1"
	  SID			  384
	  Position		  [900, 354, 960, 396]
	  ShowName		  off
	  Gain			  "R*T/2/F"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Te2"
	  SID			  385
	  Position		  [320, 214, 380, 256]
	  ShowName		  off
	  Gain			  "1/tau_f"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "q_H2_dot"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Te3"
	  SID			  386
	  Position		  [205, 334, 265, 376]
	  ShowName		  off
	  Gain			  "1/K_H2"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Te4"
	  SID			  387
	  Position		  [370, 485, 450, 525]
	  ShowName		  off
	  Gain			  "1/tau_H2O"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "p_H20_dot"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Te5"
	  SID			  388
	  Position		  [370, 331, 445, 379]
	  ShowName		  off
	  Gain			  "1/tau_H2"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "p_H2_dot"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Te6"
	  SID			  389
	  Position		  [370, 630, 450, 670]
	  ShowName		  off
	  Gain			  "1/tau_O2"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "p_O2_dot"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Te7"
	  SID			  390
	  Position		  [980, 355, 1015, 395]
	  ShowName		  off
	  Gain			  "N0"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "V_Nernst"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/Te9"
	  SID			  391
	  Position		  [165, 629, 225, 671]
	  ShowName		  off
	  Gain			  "1/K_O2"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/r_HO1"
	  SID			  392
	  Position		  [58, 560, 92, 590]
	  BlockRotation		  270
	  BlockMirror		  on
	  Gain			  "1/r_HO"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "2K_r"
	  SID			  393
	  Position		  [65, 338, 105, 372]
	  NamePlacement		  "alternate"
	  Gain			  "2*K_r"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "2K_r1"
	  SID			  394
	  Position		  [22, 425, 58, 455]
	  BlockRotation		  270
	  BlockMirror		  on
	  ShowName		  off
	  Gain			  "K_r"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "2Kr/Uopt"
	  SID			  395
	  Position		  [237, 165, 273, 190]
	  BlockRotation		  270
	  BlockMirror		  on
	  Gain			  "2*K_r/U_opt"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  BusCreator
	  Name			  "Bus\nCreator"
	  SID			  396
	  Ports			  [6, 1]
	  Position		  [1095, 445, 1100, 615]
	  ShowName		  off
	  Inputs		  "6"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Reference
	  Name			  "E0"
	  SID			  397
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [1175, 330, 1195, 365]
	  BlockRotation		  270
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Electrical\nSources/DC Voltage Source"
	  SourceType		  "DC Voltage Source"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  Amplitude		  "E0*N0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  From
	  Name			  "From"
	  SID			  398
	  Position		  [975, 594, 1035, 616]
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "V_Nernst"
	}
	Block {
	  BlockType		  From
	  Name			  "From1"
	  SID			  399
	  Position		  [59, 490, 91, 520]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "q_H2"
	}
	Block {
	  BlockType		  From
	  Name			  "From2"
	  SID			  400
	  Position		  [995, 444, 1035, 466]
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "I_DC"
	}
	Block {
	  BlockType		  From
	  Name			  "From3"
	  SID			  401
	  Position		  [995, 474, 1035, 496]
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "q_H2"
	}
	Block {
	  BlockType		  From
	  Name			  "From4"
	  SID			  402
	  Position		  [995, 504, 1035, 526]
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "p_H2"
	}
	Block {
	  BlockType		  From
	  Name			  "From5"
	  SID			  403
	  Position		  [985, 535, 1035, 555]
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "p_H2O"
	}
	Block {
	  BlockType		  From
	  Name			  "From6"
	  SID			  404
	  Position		  [995, 564, 1035, 586]
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "p_O2"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto"
	  SID			  405
	  Position		  [645, 225, 685, 245]
	  ShowName		  off
	  GotoTag		  "q_H2"
	  TagVisibility		  "local"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto1"
	  SID			  406
	  Position		  [630, 290, 670, 310]
	  ShowName		  off
	  GotoTag		  "p_H2"
	  TagVisibility		  "local"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto2"
	  SID			  407
	  Position		  [735, 478, 790, 502]
	  ShowName		  off
	  GotoTag		  "p_H2O"
	  TagVisibility		  "local"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto3"
	  SID			  408
	  Position		  [735, 638, 790, 662]
	  ShowName		  off
	  GotoTag		  "p_O2"
	  TagVisibility		  "local"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto4"
	  SID			  409
	  Position		  [1110, 361, 1165, 389]
	  ShowName		  off
	  GotoTag		  "V_Nernst"
	  TagVisibility		  "local"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto5"
	  SID			  410
	  Position		  [290, 120, 330, 140]
	  ShowName		  off
	  GotoTag		  "I_DC"
	  TagVisibility		  "local"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  SID			  411
	  Ports			  [1, 1]
	  Position		  [430, 220, 460, 250]
	  ShowName		  off
	  InitialCondition	  "q_H2_0"
	  Port {
	    PortNumber		    1
	    Name		    "q_H2"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator1"
	  SID			  412
	  Ports			  [1, 1]
	  Position		  [530, 340, 560, 370]
	  ShowName		  off
	  InitialCondition	  "p_H2_0"
	  Port {
	    PortNumber		    1
	    Name		    "p_H2"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator2"
	  SID			  413
	  Ports			  [1, 1]
	  Position		  [530, 490, 560, 520]
	  ShowName		  off
	  InitialCondition	  "p_H2O_0"
	  Port {
	    PortNumber		    1
	    Name		    "p_H20"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator3"
	  SID			  414
	  Ports			  [1, 1]
	  Position		  [535, 635, 565, 665]
	  ShowName		  off
	  InitialCondition	  "p_O2_0"
	  Port {
	    PortNumber		    1
	    Name		    "p_O2"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction"
	  SID			  415
	  Ports			  [1, 1]
	  Position		  [650, 570, 680, 600]
	  BlockRotation		  270
	  ShowName		  off
	  Operator		  "sqrt"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction1"
	  SID			  416
	  Ports			  [1, 1]
	  Position		  [840, 348, 875, 402]
	  ShowName		  off
	  Operator		  "log"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Nernst"
	  SID			  417
	  Ports			  [1, 0, 0, 0, 0, 1, 1]
	  Position		  [1157, 255, 1193, 300]
	  BlockRotation		  270
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Electrical\nSources/Controlled Voltage Source"
	  SourceType		  "Controlled Voltage Source"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  Initialize		  on
	  Source_Type		  "AC"
	  Amplitude		  "V_Nernst_0"
	  Phase			  "0"
	  Frequency		  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  SID			  418
	  Ports			  [3, 1]
	  Position		  [780, 345, 805, 405]
	  ShowName		  off
	  Inputs		  "*/*"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  SID			  419
	  Ports			  [2, 1]
	  Position		  [245, 225, 265, 245]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  SID			  420
	  Ports			  [2, 1]
	  Position		  [155, 345, 175, 365]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "+-|"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum3"
	  SID			  421
	  Ports			  [2, 1]
	  Position		  [300, 345, 320, 365]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "p_H2_dot"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum4"
	  SID			  422
	  Ports			  [2, 1]
	  Position		  [285, 640, 305, 660]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum5"
	  SID			  423
	  Ports			  [2, 1]
	  Position		  [300, 495, 320, 515]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum6"
	  SID			  424
	  Ports			  [2, 1]
	  Position		  [20, 625, 95, 640]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "-+"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "q_O2"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "ohmic loss"
	  SID			  425
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [1164, 165, 1186, 215]
	  BlockRotation		  270
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Elements/Series RLC Branch"
	  SourceType		  "Series RLC Branch"
	  PhysicalDomain	  "powersysdomain"
	  SubClassName		  "unknown"
	  LeftPortType		  "p1"
	  RightPortType		  "p1"
	  LConnTagsString	  "__new0"
	  RConnTagsString	  "__new0"
	  BranchType		  "R"
	  Resistance		  "r_ohm*N0"
	  Inductance		  "1.0"
	  SetiL0		  off
	  InitialCurrent	  "0"
	  Capacitance		  "1.0"
	  Setx0			  off
	  InitialVoltage	  "0"
	  Measurements		  "None"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "VDC+"
	  SID			  426
	  Position		  [1160, 125, 1190, 140]
	  BlockRotation		  270
	  BlockMirror		  on
	  Port			  "1"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "VC-"
	  SID			  427
	  Position		  [1170, 390, 1200, 405]
	  BlockRotation		  270
	  Port			  "2"
	  Side			  "Right"
	}
	Block {
	  BlockType		  Outport
	  Name			  "m"
	  SID			  428
	  Position		  [1135, 523, 1165, 537]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  Name			  "q_H2_dot"
	  Labels		  [1, 1]
	  SrcBlock		  "1/Te2"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  Name			  "p_H2"
	  Labels		  [0, 0]
	  SrcBlock		  "Integrator1"
	  SrcPort		  1
	  Points		  [0, 0; 35, 0]
	  Branch {
	    Points		    [0, 60; -290, 0]
	    DstBlock		    "Sum3"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -55]
	    DstBlock		    "Goto1"
	    DstPort		    1
	  }
	}
	Line {
	  Name			  "p_H20_dot"
	  Labels		  [1, 1]
	  SrcBlock		  "1/Te4"
	  SrcPort		  1
	  DstBlock		  "Integrator2"
	  DstPort		  1
	}
	Line {
	  Name			  "p_H20"
	  Labels		  [0, 0]
	  SrcBlock		  "Integrator2"
	  SrcPort		  1
	  Points		  [60, 0]
	  Branch {
	    Points		    [0, 55; -315, 0]
	    DstBlock		    "Sum5"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -130]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [95, 0]
	    DstBlock		    "Goto2"
	    DstPort		    1
	  }
	}
	Line {
	  Name			  "p_O2_dot"
	  Labels		  [1, 1]
	  SrcBlock		  "1/Te6"
	  SrcPort		  1
	  DstBlock		  "Integrator3"
	  DstPort		  1
	}
	Line {
	  Name			  "p_O2"
	  Labels		  [0, 0]
	  SrcBlock		  "Integrator3"
	  SrcPort		  1
	  Points		  [5, 0; 50, 0]
	  Branch {
	    Points		    [0, 60; -330, 0]
	    DstBlock		    "Sum4"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [40, 0]
	    Branch {
	      DstBlock		      "Math\nFunction"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "Goto3"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "2Kr/Uopt"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "1/Te2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  DstBlock		  "1/Te3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/Te3"
	  SrcPort		  1
	  DstBlock		  "Sum3"
	  DstPort		  1
	}
	Line {
	  Name			  "p_H2_dot"
	  Labels		  [0, 0]
	  SrcBlock		  "1/Te5"
	  SrcPort		  1
	  DstBlock		  "Integrator1"
	  DstPort		  1
	}
	Line {
	  Name			  "p_H2_dot"
	  SrcBlock		  "Sum3"
	  SrcPort		  1
	  DstBlock		  "1/Te5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum5"
	  SrcPort		  1
	  DstBlock		  "1/Te4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/K_H20"
	  SrcPort		  1
	  Points		  [0, 40]
	  DstBlock		  "Sum5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum4"
	  SrcPort		  1
	  DstBlock		  "1/Te6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "2K_r"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Sum2"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "1/K_H20"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Math\nFunction"
	  SrcPort		  1
	  Points		  [0, -170]
	  DstBlock		  "Product"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Math\nFunction1"
	  SrcPort		  1
	  DstBlock		  "1/Te1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/Te1"
	  SrcPort		  1
	  DstBlock		  "1/Te7"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/Te9"
	  SrcPort		  1
	  DstBlock		  "Sum4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/r_HO1"
	  SrcPort		  1
	  DstBlock		  "Sum6"
	  DstPort		  2
	}
	Line {
	  Name			  "q_O2"
	  Labels		  [0, 0]
	  SrcBlock		  "Sum6"
	  SrcPort		  1
	  Points		  [0, 5]
	  DstBlock		  "1/Te9"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "2K_r1"
	  SrcPort		  1
	  DstBlock		  "Sum6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From1"
	  SrcPort		  1
	  DstBlock		  "1/r_HO1"
	  DstPort		  1
	}
	Line {
	  Name			  "I_DC"
	  Labels		  [0, 1]
	  SrcBlock		  "IDC"
	  SrcPort		  1
	  Points		  [0, 40]
	  Branch {
	    Points		    [0, 5; 0, 220]
	    Branch {
	      DstBlock		      "2K_r1"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "2K_r"
	      DstPort		      1
	    }
	  }
	  Branch {
	    Points		    [215, 0]
	    Branch {
	      DstBlock		      "2Kr/Uopt"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "Goto5"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  Name			  "V_Nernst"
	  Labels		  [0, 0]
	  SrcBlock		  "1/Te7"
	  SrcPort		  1
	  Points		  [65, 0]
	  Branch {
	    Points		    [0, -50; 80, 0]
	    DstBlock		    "Nernst"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Goto4"
	    DstPort		    1
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "E0"
	  SrcPort		  RConn1
	  DstBlock		  "Nernst"
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "Nernst"
	  SrcPort		  RConn1
	  DstBlock		  "ohmic loss"
	  DstPort		  RConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "VDC+"
	  SrcPort		  RConn1
	  DstBlock		  "ohmic loss"
	  DstPort		  LConn1
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "VC-"
	  SrcPort		  RConn1
	  DstBlock		  "E0"
	  DstPort		  LConn1
	}
	Line {
	  SrcBlock		  "Bus\nCreator"
	  SrcPort		  1
	  DstBlock		  "m"
	  DstPort		  1
	}
	Line {
	  Name			  "q_H2"
	  Labels		  [0, 0]
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [120, 0]
	  Branch {
	    DstBlock		    "Goto"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 60; -330, 0]
	    Branch {
	      Points		      [-90, 0]
	      DstBlock		      "Sum2"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	  }
	}
	Line {
	  SrcBlock		  "From2"
	  SrcPort		  1
	  DstBlock		  "Bus\nCreator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From3"
	  SrcPort		  1
	  DstBlock		  "Bus\nCreator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "From4"
	  SrcPort		  1
	  DstBlock		  "Bus\nCreator"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "From5"
	  SrcPort		  1
	  DstBlock		  "Bus\nCreator"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "From6"
	  SrcPort		  1
	  DstBlock		  "Bus\nCreator"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "From"
	  SrcPort		  1
	  DstBlock		  "Bus\nCreator"
	  DstPort		  6
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope5"
      SID		      429
      Ports		      [3]
      Position		      [220, 368, 245, 442]
      BackgroundColor	      "green"
      ShowName		      off
      Floating		      off
      Location		      [5, 48, 1033, 727]
      Open		      off
      NumInputPorts	      "3"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      TimeRange		      "1               "
      YMin		      "0.0732365~0.789159~0.057367"
      YMax		      "0.0732415~0.789175~0.057375"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Three-Phase Breaker4"
      SID		      182
      Ports		      [0, 0, 0, 0, 0, 3, 3]
      Position		      [1389, 280, 1451, 335]
      BlockRotation	      270
      ShowName		      off
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Elements/Three-Phase Breaker"
      SourceType	      "Three-Phase Breaker"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      InitialState	      "open"
      SwitchA		      on
      SwitchB		      on
      SwitchC		      on
      SwitchTimes	      "[4 5]"
      External		      off
      BreakerResistance	      "0.001"
      SnubberResistance	      "1e6"
      SnubberCapacitance      "inf"
      Measurements	      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Vab1"
      SID		      183
      Ports		      [1, 1]
      Position		      [1040, 334, 1075, 356]
      BlockMirror	      on
      NamePlacement	      "alternate"
      LibraryVersion	      "1.608"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib_extras/Discrete\nMeasurements/Discrete \nRMS value"
      SourceType	      "Discrete RMS value"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Freq		      "50"
      Mag_Init		      "0"
      Ts		      "20e-6"
    }
    Block {
      BlockType		      Reference
      Name		      "Vab_load1"
      SID		      184
      Tag		      "PoWeRsYsTeMmEaSuReMeNt"
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [725, 176, 755, 209]
      BlockMirror	      on
      NamePlacement	      "alternate"
      AttributesFormatString  "\\n"
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
      SourceType	      "Voltage Measurement"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      PhasorSimulation	      off
      OutputType	      "Magnitude"
      PSBequivalent	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Vdc"
      SID		      185
      Ports		      [1]
      Position		      [830, 272, 870, 318]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [489, 138, 1015, 417]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "635.8"
      YMax		      "637.2"
      SaveName		      "ScopeData8"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleInput	      on
      SampleTime	      "100e-6"
    }
    Block {
      BlockType		      Reference
      Name		      "Voltage Measurement1"
      SID		      430
      Ports		      [0, 1, 0, 0, 0, 2]
      Position		      [210, 483, 235, 507]
      BlockMirror	      on
      NamePlacement	      "alternate"
      ShowName		      off
      LibraryVersion	      "1.1845"
      DialogController	      "POWERSYS.PowerSysDialog"
      SourceBlock	      "powerlib/Measurements/Voltage Measurement"
      SourceType	      "Voltage Measurement"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      PhasorSimulation	      off
      OutputType	      "Complex"
      PSBequivalent	      "0"
      Port {
	PortNumber		1
	Name			"V_DC"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "out 1"
      SID		      221
      Ports		      [1]
      Position		      [915, 392, 955, 438]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [489, 138, 1015, 417]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "0"
      YMax		      "140"
      SaveName		      "ScopeData30"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleInput	      on
      SampleTime	      "100e-6"
    }
    Block {
      BlockType		      Scope
      Name		      "out 2"
      SID		      222
      Ports		      [1]
      Position		      [1145, 477, 1185, 523]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [489, 138, 1015, 417]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "0"
      YMax		      "13000"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleInput	      on
      SampleTime	      "100e-6"
    }
    Block {
      BlockType		      Scope
      Name		      "out 3"
      SID		      223
      Ports		      [1]
      Position		      [1285, 112, 1325, 158]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [489, 138, 1015, 417]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.04"
      YMin		      "-350"
      YMax		      "350"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleInput	      on
      SampleTime	      "100e-6"
    }
    Block {
      BlockType		      Scope
      Name		      "out 4"
      SID		      224
      Ports		      [1]
      Position		      [785, 502, 825, 548]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [489, 138, 1015, 417]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "0"
      YMax		      "140"
      SaveName		      "ScopeData7"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleInput	      on
      SampleTime	      "100e-6"
    }
    Block {
      BlockType		      Scope
      Name		      "out 5"
      SID		      225
      Ports		      [1]
      Position		      [1420, 167, 1460, 213]
      BackgroundColor	      "green"
      Floating		      off
      Location		      [489, 138, 1015, 417]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.04"
      YMin		      "-22.5"
      YMax		      "22.5"
      SaveName		      "ScopeData4"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleInput	      on
      SampleTime	      "100e-6"
    }
    Block {
      BlockType		      Scope
      Name		      "out 6"
      SID		      226
      Ports		      [2]
      Position		      [885, 29, 925, 76]
      BlockMirror	      on
      BackgroundColor	      "green"
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [489, 138, 1015, 417]
      Open		      off
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      YMin		      "0~-5"
      YMax		      "140~5"
      SaveName		      "ScopeData11"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleInput	      on
      SampleTime	      "100e-6"
    }
    Block {
      BlockType		      Reference
      Name		      "powergui"
      SID		      227
      Ports		      []
      Position		      [140, 30, 206, 69]
      Priority		      "1"
      LibraryVersion	      "1.1845"
      UserDataPersistent      on
      UserData		      "DataTag0"
      FontName		      "Verdana"
      SourceBlock	      "powerlib/powergui"
      SourceType	      "PSB option menu block"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimulationMode	      "Discrete"
      SampleTime	      "20e-6"
      frequency		      "60"
      SPID		      off
      DisableSnubberDevices   off
      DisableRonSwitches      off
      DisableVfSwitches	      off
      SwTol		      "0"
      Interpol		      off
      frequencyindice	      "0"
      echomessages	      off
      HookPort		      off
      DisplayEquations	      off
      FunctionMessages	      off
      EnableUseOfTLC	      off
      x0status		      "blocks"
      RestoreLinks	      "warning"
      Frange		      "[0:2:500]"
      Ylog		      off
      Xlog		      on
      ShowGrid		      off
      save		      off
      variable		      "ZData"
      structure		      "Generator_Terminal"
      ZoomFFT		      off
      StartTime		      "0.0"
      cycles		      "1"
      DisplayStyle	      "1"
      fundamental	      "50"
      FreqAxis		      off
      MaxFrequency	      "4000"
      frequencyindicesteady   "1"
      RmsSteady		      "1"
      display		      off
      Ts		      "0"
      methode		      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "pv"
      SID		      228
      Ports		      [0, 0, 0, 0, 0, 0, 2]
      Position		      [55, 78, 120, 282]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"pv"
	Location		[2, 82, 1006, 715]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "11*2=666 V"
	  SID			  229
	  Ports			  [1, 0, 0, 0, 0, 0, 2]
	  Position		  [500, 355, 565, 450]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "11*2=666 V"
	    Location		    [407, 266, 797, 687]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      SID		      230
	      Position		      [25, 208, 55, 222]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Solar"
	      SID		      231
	      Ports		      [1, 0, 0, 0, 0, 0, 4]
	      Position		      [80, 31, 145, 399]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Solar"
		Location		[435, 155, 735, 793]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  SID			  232
		  Position		  [15, 188, 45, 202]
		  IconDisplay		  "Port number"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "Subsystem1"
		  SID			  233
		  Ports			  [1, 0, 0, 0, 0, 0, 2]
		  Position		  [105, 164, 145, 226]
		  MinAlgLoopOccurrences	  off
		  PropExecContextOutsideSubsystem off
		  RTWSystemCode		  "Auto"
		  FunctionWithSeparateData off
		  Opaque		  off
		  RequestExecContextInheritance	off
		  MaskHideContents	  off
		  System {
		    Name		    "Subsystem1"
		    Location		    [63, 100, 1075, 712]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "In1"
		    SID			    234
		    Position		    [25, 123, 55, 137]
		    IconDisplay		    "Port number"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Current Measurement"
		    SID			    235
		    Ports		    [0, 1, 0, 0, 0, 1, 1]
		    Position		    [325, 78, 350, 102]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Measurements/Current Measurement"
		    SourceType		    "Current Measurement"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    PhasorSimulation	    off
		    OutputType		    "Complex"
		    PSBequivalent	    "0"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Insolation to \ncurrent gain"
		    SID			    236
		    Position		    [105, 105, 145, 155]
		    Gain		    "8.01/1000"
		    ParameterDataTypeMode   "Inherit via internal rule"
		    ParameterDataType	    "sfix(16)"
		    ParameterScaling	    "2^0"
		    ParamDataTypeStr	    "Inherit: Inherit via internal rule"
		    OutDataTypeMode	    "Inherit via internal rule"
		    OutDataType		    "sfix(16)"
		    OutScaling		    "2^0"
		    OutDataTypeStr	    "Inherit: Inherit via internal rule"
		    SaturateOnIntegerOverflow off
		    SampleTime		    "20e-6"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "Scope"
		    SID			    237
		    Ports		    [1]
		    Position		    [430, 244, 460, 276]
		    Floating		    off
		    Location		    [5, 52, 1285, 993]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    TimeRange		    "0.4"
		    YMin		    "332.825"
		    YMax		    "333.3"
		    SaveName		    "ScopeData10"
		    DataFormat		    "StructureWithTime"
		    SampleTime		    "0"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "Scope1"
		    SID			    238
		    Ports		    [1]
		    Position		    [485, 69, 515, 101]
		    Floating		    off
		    Location		    [5, 52, 1285, 993]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    TimeRange		    "0.4"
		    YMin		    "7.53385"
		    YMax		    "7.5347"
		    SaveName		    "ScopeData5"
		    DataFormat		    "StructureWithTime"
		    SampleTime		    "0"
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "Subsystem"
		    SID			    239
		    Ports		    [1, 0, 0, 0, 0, 0, 2]
		    Position		    [200, 100, 240, 160]
		    NamePlacement	    "alternate"
		    MinAlgLoopOccurrences   off
		    PropExecContextOutsideSubsystem off
		    RTWSystemCode	    "Auto"
		    FunctionWithSeparateData off
		    Opaque		    off
		    RequestExecContextInheritance off
		    MaskHideContents	    off
		    System {
		    Name		    "Subsystem"
		    Location		    [165, 133, 823, 403]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "irrad"
		    SID			    240
		    Position		    [108, 220, 122, 250]
		    BlockRotation	    270
		    IconDisplay		    "Port number"
		    OutDataType		    "fixdt(1, 16)"
		    OutScaling		    "2^0"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Controlled Current Source"
		    SID			    241
		    Ports		    [1, 0, 0, 0, 0, 1, 1]
		    Position		    [106, 155, 144, 190]
		    BlockRotation	    270
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Electrical\nSources/Controlled Current Source"
		    SourceType		    "Controlled Current Source"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    Initialize		    on
		    Source_Type		    "AC"
		    Amplitude		    "0"
		    Phase		    "0"
		    Frequency		    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Diode"
		    SID			    242
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [345, 140, 385, 180]
		    BlockRotation	    270
		    BlockMirror		    on
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Power\nElectronics/Diode"
		    SourceType		    "Diode"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    Ron			    "0.001"
		    Lon			    "0"
		    Vf			    "406"
		    IC			    "0"
		    UseSnubber		    off
		    Rs			    "500"
		    Cs			    "250e-9"
		    Measurements	    off
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Series RLC Branch"
		    SID			    243
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [495, 96, 565, 124]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Elements/Series RLC Branch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    BranchType		    "R"
		    Resistance		    "0.005*11"
		    Inductance		    "1e-3"
		    SetiL0		    off
		    InitialCurrent	    "0"
		    Capacitance		    "1e-6"
		    Setx0		    off
		    InitialVoltage	    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Series RLC Branch1"
		    SID			    244
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [443, 140, 467, 180]
		    BlockRotation	    270
		    BlockMirror		    on
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Elements/Series RLC Branch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    BranchType		    "R"
		    Resistance		    "550"
		    Inductance		    "1e-3"
		    SetiL0		    off
		    InitialCurrent	    "0"
		    Capacitance		    "1e-6"
		    Setx0		    off
		    InitialVoltage	    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "+"
		    SID			    245
		    Tag			    "PMCPort"
		    Position		    [595, 101, 625, 119]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    FontName		    "Verdana"
		    FontSize		    11
		    Port		    "1"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "-"
		    SID			    246
		    Tag			    "PMCPort"
		    Position		    [555, 196, 585, 214]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    FontName		    "Verdana"
		    FontSize		    11
		    Port		    "2"
		    Side		    "Right"
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Controlled Current Source"
		    SrcPort		    LConn1
		    Points		    [230, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [0, 0]
		    DstBlock		    "Diode"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "DEST_DEST"
		    Points		    [455, 205; -90, 0]
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "-"
		    SrcPort		    RConn1
		    Points		    [-85, 0]
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "Series RLC Branch1"
		    SrcPort		    RConn1
		    Points		    [0, 10]
		    }
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Diode"
		    SrcPort		    LConn1
		    Points		    [0, -10]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [-240, 0]
		    DstBlock		    "Controlled Current Source"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [90, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    DstBlock		    "Series RLC Branch1"
		    DstPort		    LConn1
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [0, -5]
		    DstBlock		    "Series RLC Branch"
		    DstPort		    LConn1
		    }
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "+"
		    SrcPort		    RConn1
		    DstBlock		    "Series RLC Branch"
		    DstPort		    RConn1
		    }
		    Line {
		    SrcBlock		    "irrad"
		    SrcPort		    1
		    DstBlock		    "Controlled Current Source"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Voltage Measurement"
		    SID			    247
		    Ports		    [0, 1, 0, 0, 0, 2]
		    Position		    [370, 248, 395, 272]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Measurements/Voltage Measurement"
		    SourceType		    "Voltage Measurement"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    PhasorSimulation	    off
		    OutputType		    "Complex"
		    PSBequivalent	    "0"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "+"
		    SID			    248
		    Position		    [410, 108, 440, 122]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    Port		    "1"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "-"
		    SID			    249
		    Position		    [410, 138, 440, 152]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    Port		    "2"
		    Side		    "Right"
		    }
		    Line {
		    SrcBlock		    "Current Measurement"
		    SrcPort		    1
		    DstBlock		    "Scope1"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Current Measurement"
		    SrcPort		    RConn1
		    Points		    [15, 0; 0, 20]
		    DstBlock		    "+"
		    DstPort		    RConn1
		    }
		    Line {
		    SrcBlock		    "Voltage Measurement"
		    SrcPort		    1
		    DstBlock		    "Scope"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "In1"
		    SrcPort		    1
		    DstBlock		    "Insolation to \ncurrent gain"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    Points		    [355, 145; 0, 120]
		    DstBlock		    "Voltage Measurement"
		    DstPort		    LConn2
		    Branch {
		    ConnectType		    "SRC_SRC"
		    DstBlock		    "Subsystem"
		    DstPort		    RConn2
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "-"
		    SrcPort		    RConn1
		    Points		    [-40, 0]
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    Points		    [265, 115; 0, -25; 45, 0]
		    DstBlock		    "Current Measurement"
		    DstPort		    LConn1
		    Branch {
		    ConnectType		    "SRC_SRC"
		    DstBlock		    "Subsystem"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "Voltage Measurement"
		    SrcPort		    LConn1
		    Points		    [-80, 0; 0, -140; -10, 0]
		    }
		    }
		    Line {
		    SrcBlock		    "Insolation to \ncurrent gain"
		    SrcPort		    1
		    DstBlock		    "Subsystem"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "Subsystem5"
		  SID			  250
		  Ports			  [1, 0, 0, 0, 0, 0, 2]
		  Position		  [110, 44, 150, 106]
		  MinAlgLoopOccurrences	  off
		  PropExecContextOutsideSubsystem off
		  RTWSystemCode		  "Auto"
		  FunctionWithSeparateData off
		  Opaque		  off
		  RequestExecContextInheritance	off
		  MaskHideContents	  off
		  System {
		    Name		    "Subsystem5"
		    Location		    [63, 100, 1075, 712]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "In1"
		    SID			    251
		    Position		    [25, 123, 55, 137]
		    IconDisplay		    "Port number"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Current Measurement"
		    SID			    252
		    Ports		    [0, 1, 0, 0, 0, 1, 1]
		    Position		    [325, 78, 350, 102]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Measurements/Current Measurement"
		    SourceType		    "Current Measurement"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    PhasorSimulation	    off
		    OutputType		    "Complex"
		    PSBequivalent	    "0"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Insolation to \ncurrent gain"
		    SID			    253
		    Position		    [105, 105, 145, 155]
		    Gain		    "8.01/1000"
		    ParameterDataTypeMode   "Inherit via internal rule"
		    ParameterDataType	    "sfix(16)"
		    ParameterScaling	    "2^0"
		    ParamDataTypeStr	    "Inherit: Inherit via internal rule"
		    OutDataTypeMode	    "Inherit via internal rule"
		    OutDataType		    "sfix(16)"
		    OutScaling		    "2^0"
		    OutDataTypeStr	    "Inherit: Inherit via internal rule"
		    SaturateOnIntegerOverflow off
		    SampleTime		    "20e-6"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "Scope"
		    SID			    254
		    Ports		    [1]
		    Position		    [430, 244, 460, 276]
		    Floating		    off
		    Location		    [5, 52, 1285, 993]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    TimeRange		    "0.4"
		    YMin		    "332.825"
		    YMax		    "333.3"
		    SaveName		    "ScopeData10"
		    DataFormat		    "StructureWithTime"
		    SampleTime		    "0"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "Scope1"
		    SID			    255
		    Ports		    [1]
		    Position		    [485, 69, 515, 101]
		    Floating		    off
		    Location		    [5, 52, 1285, 993]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    TimeRange		    "0.4"
		    YMin		    "7.53385"
		    YMax		    "7.5347"
		    SaveName		    "ScopeData5"
		    DataFormat		    "StructureWithTime"
		    SampleTime		    "0"
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "Subsystem"
		    SID			    256
		    Ports		    [1, 0, 0, 0, 0, 0, 2]
		    Position		    [200, 100, 240, 160]
		    NamePlacement	    "alternate"
		    MinAlgLoopOccurrences   off
		    PropExecContextOutsideSubsystem off
		    RTWSystemCode	    "Auto"
		    FunctionWithSeparateData off
		    Opaque		    off
		    RequestExecContextInheritance off
		    MaskHideContents	    off
		    System {
		    Name		    "Subsystem"
		    Location		    [165, 133, 823, 403]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "irrad"
		    SID			    257
		    Position		    [108, 220, 122, 250]
		    BlockRotation	    270
		    IconDisplay		    "Port number"
		    OutDataType		    "fixdt(1, 16)"
		    OutScaling		    "2^0"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Controlled Current Source"
		    SID			    258
		    Ports		    [1, 0, 0, 0, 0, 1, 1]
		    Position		    [106, 155, 144, 190]
		    BlockRotation	    270
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Electrical\nSources/Controlled Current Source"
		    SourceType		    "Controlled Current Source"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    Initialize		    on
		    Source_Type		    "AC"
		    Amplitude		    "0"
		    Phase		    "0"
		    Frequency		    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Diode"
		    SID			    259
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [345, 140, 385, 180]
		    BlockRotation	    270
		    BlockMirror		    on
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Power\nElectronics/Diode"
		    SourceType		    "Diode"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    Ron			    "0.001"
		    Lon			    "0"
		    Vf			    "406"
		    IC			    "0"
		    UseSnubber		    off
		    Rs			    "500"
		    Cs			    "250e-9"
		    Measurements	    off
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Series RLC Branch"
		    SID			    260
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [495, 96, 565, 124]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Elements/Series RLC Branch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    BranchType		    "R"
		    Resistance		    "0.005*11"
		    Inductance		    "1e-3"
		    SetiL0		    off
		    InitialCurrent	    "0"
		    Capacitance		    "1e-6"
		    Setx0		    off
		    InitialVoltage	    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Series RLC Branch1"
		    SID			    261
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [443, 140, 467, 180]
		    BlockRotation	    270
		    BlockMirror		    on
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Elements/Series RLC Branch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    BranchType		    "R"
		    Resistance		    "550"
		    Inductance		    "1e-3"
		    SetiL0		    off
		    InitialCurrent	    "0"
		    Capacitance		    "1e-6"
		    Setx0		    off
		    InitialVoltage	    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "+"
		    SID			    262
		    Tag			    "PMCPort"
		    Position		    [595, 101, 625, 119]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    FontName		    "Verdana"
		    FontSize		    11
		    Port		    "1"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "-"
		    SID			    263
		    Tag			    "PMCPort"
		    Position		    [555, 196, 585, 214]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    FontName		    "Verdana"
		    FontSize		    11
		    Port		    "2"
		    Side		    "Right"
		    }
		    Line {
		    SrcBlock		    "irrad"
		    SrcPort		    1
		    DstBlock		    "Controlled Current Source"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "+"
		    SrcPort		    RConn1
		    DstBlock		    "Series RLC Branch"
		    DstPort		    RConn1
		    }
		    Line {
		    LineType		    "Connection"
		    Points		    [455, 115; 0, -5; 25, 0]
		    DstBlock		    "Series RLC Branch"
		    DstPort		    LConn1
		    Branch {
		    ConnectType		    "SRC_SRC"
		    DstBlock		    "Series RLC Branch1"
		    DstPort		    LConn1
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    Points		    [365, 115; 90, 0]
		    Branch {
		    ConnectType		    "SRC_SRC"
		    Points		    [-240, 0]
		    DstBlock		    "Controlled Current Source"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "Diode"
		    SrcPort		    LConn1
		    Points		    [0, -10]
		    }
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Series RLC Branch1"
		    SrcPort		    RConn1
		    Points		    [0, 10]
		    Branch {
		    ConnectType		    "DEST_DEST"
		    SrcBlock		    "-"
		    SrcPort		    RConn1
		    Points		    [-85, 0]
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [-90, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [0, 0]
		    DstBlock		    "Diode"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "DEST_DEST"
		    SrcBlock		    "Controlled Current Source"
		    SrcPort		    LConn1
		    Points		    [230, 0]
		    }
		    }
		    }
		    }
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Voltage Measurement"
		    SID			    264
		    Ports		    [0, 1, 0, 0, 0, 2]
		    Position		    [370, 248, 395, 272]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Measurements/Voltage Measurement"
		    SourceType		    "Voltage Measurement"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    PhasorSimulation	    off
		    OutputType		    "Complex"
		    PSBequivalent	    "0"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "+"
		    SID			    265
		    Position		    [410, 108, 440, 122]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    Port		    "1"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "-"
		    SID			    266
		    Position		    [410, 138, 440, 152]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    Port		    "2"
		    Side		    "Right"
		    }
		    Line {
		    SrcBlock		    "Insolation to \ncurrent gain"
		    SrcPort		    1
		    DstBlock		    "Subsystem"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Voltage Measurement"
		    SrcPort		    LConn1
		    Points		    [-80, 0; 0, -140; -10, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    DstBlock		    "Subsystem"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [0, -25]
		    DstBlock		    "Current Measurement"
		    DstPort		    LConn1
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "-"
		    SrcPort		    RConn1
		    Points		    [-40, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    DstBlock		    "Subsystem"
		    DstPort		    RConn2
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    DstBlock		    "Voltage Measurement"
		    DstPort		    LConn2
		    }
		    }
		    Line {
		    SrcBlock		    "In1"
		    SrcPort		    1
		    DstBlock		    "Insolation to \ncurrent gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Voltage Measurement"
		    SrcPort		    1
		    DstBlock		    "Scope"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Current Measurement"
		    SrcPort		    RConn1
		    Points		    [15, 0; 0, 20]
		    DstBlock		    "+"
		    DstPort		    RConn1
		    }
		    Line {
		    SrcBlock		    "Current Measurement"
		    SrcPort		    1
		    DstBlock		    "Scope1"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "1"
		  SID			  267
		  Tag			  "PMCPort"
		  Position		  [255, 51, 285, 69]
		  BlockMirror		  on
		  FontName		  "Verdana"
		  FontSize		  11
		  Port			  "1"
		  Side			  "Right"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "2"
		  SID			  268
		  Tag			  "PMCPort"
		  Position		  [210, 81, 240, 99]
		  BlockMirror		  on
		  FontName		  "Verdana"
		  FontSize		  11
		  Port			  "2"
		  Side			  "Right"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "3"
		  SID			  269
		  Tag			  "PMCPort"
		  Position		  [235, 171, 265, 189]
		  BlockMirror		  on
		  FontName		  "Verdana"
		  FontSize		  11
		  Port			  "3"
		  Side			  "Right"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "4"
		  SID			  270
		  Tag			  "PMCPort"
		  Position		  [195, 201, 225, 219]
		  BlockMirror		  on
		  FontName		  "Verdana"
		  FontSize		  11
		  Port			  "4"
		  Side			  "Right"
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "3"
		  SrcPort		  RConn1
		  DstBlock		  "Subsystem1"
		  DstPort		  RConn1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "4"
		  SrcPort		  RConn1
		  DstBlock		  "Subsystem1"
		  DstPort		  RConn2
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "1"
		  SrcPort		  RConn1
		  DstBlock		  "Subsystem5"
		  DstPort		  RConn1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "2"
		  SrcPort		  RConn1
		  DstBlock		  "Subsystem5"
		  DstPort		  RConn2
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  Points		  [25, 0]
		  Branch {
		    DstBlock		    "Subsystem1"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, -120]
		    DstBlock		    "Subsystem5"
		    DstPort		    1
		  }
		}
	      }
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Conn1"
	      SID		      271
	      Position		      [345, 118, 375, 132]
	      BlockMirror	      on
	      Port		      "1"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Conn2"
	      SID		      272
	      Position		      [355, 313, 385, 327]
	      BlockMirror	      on
	      Port		      "2"
	      Side		      "Right"
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Solar"
	      SrcPort		      RConn1
	      Points		      [154, 0; 0, 45]
	      DstBlock		      "Conn1"
	      DstPort		      RConn1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Solar"
	      SrcPort		      RConn3
	      Points		      [81, 0; 0, -90]
	      DstBlock		      "Solar"
	      DstPort		      RConn2
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Solar"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Conn2"
	      SrcPort		      RConn1
	      Points		      [-15, 0; 0, -10; -84, 0; 0, 40]
	      DstBlock		      "Solar"
	      DstPort		      RConn4
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "11*2=666V"
	  SID			  273
	  Ports			  [1, 0, 0, 0, 0, 0, 2]
	  Position		  [495, 210, 560, 305]
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "11*2=666V"
	    Location		    [407, 266, 797, 687]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      SID		      274
	      Position		      [25, 208, 55, 222]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Solar"
	      SID		      275
	      Ports		      [1, 0, 0, 0, 0, 0, 4]
	      Position		      [80, 31, 145, 399]
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      System {
		Name			"Solar"
		Location		[435, 155, 735, 793]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  SID			  276
		  Position		  [15, 188, 45, 202]
		  IconDisplay		  "Port number"
		  OutDataType		  "fixdt(1, 16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "11= Vmpp=336V, \nVoc=406V"
		  SID			  277
		  Ports			  [1, 0, 0, 0, 0, 0, 2]
		  Position		  [110, 44, 150, 106]
		  MinAlgLoopOccurrences	  off
		  PropExecContextOutsideSubsystem off
		  RTWSystemCode		  "Auto"
		  FunctionWithSeparateData off
		  Opaque		  off
		  RequestExecContextInheritance	off
		  MaskHideContents	  off
		  System {
		    Name		    "11= Vmpp=336V, \nVoc=406V"
		    Location		    [63, 100, 1075, 712]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "In1"
		    SID			    278
		    Position		    [25, 123, 55, 137]
		    IconDisplay		    "Port number"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Current Measurement"
		    SID			    279
		    Ports		    [0, 1, 0, 0, 0, 1, 1]
		    Position		    [325, 78, 350, 102]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Measurements/Current Measurement"
		    SourceType		    "Current Measurement"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    PhasorSimulation	    off
		    OutputType		    "Complex"
		    PSBequivalent	    "0"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Insolation to \ncurrent gain"
		    SID			    280
		    Position		    [105, 105, 145, 155]
		    Gain		    "8.01/1000"
		    ParameterDataTypeMode   "Inherit via internal rule"
		    ParameterDataType	    "sfix(16)"
		    ParameterScaling	    "2^0"
		    ParamDataTypeStr	    "Inherit: Inherit via internal rule"
		    OutDataTypeMode	    "Inherit via internal rule"
		    OutDataType		    "sfix(16)"
		    OutScaling		    "2^0"
		    OutDataTypeStr	    "Inherit: Inherit via internal rule"
		    SaturateOnIntegerOverflow off
		    SampleTime		    "20e-6"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "Scope"
		    SID			    281
		    Ports		    [1]
		    Position		    [430, 244, 460, 276]
		    Floating		    off
		    Location		    [5, 52, 1285, 993]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    TimeRange		    "0.4"
		    YMin		    "332.825"
		    YMax		    "333.3"
		    SaveName		    "ScopeData10"
		    DataFormat		    "StructureWithTime"
		    SampleTime		    "0"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "Scope1"
		    SID			    282
		    Ports		    [1]
		    Position		    [485, 69, 515, 101]
		    Floating		    off
		    Location		    [5, 52, 1285, 993]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    TimeRange		    "0.4"
		    YMin		    "7.53385"
		    YMax		    "7.5347"
		    SaveName		    "ScopeData5"
		    DataFormat		    "StructureWithTime"
		    SampleTime		    "0"
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "Subsystem"
		    SID			    283
		    Ports		    [1, 0, 0, 0, 0, 0, 2]
		    Position		    [200, 100, 240, 160]
		    NamePlacement	    "alternate"
		    MinAlgLoopOccurrences   off
		    PropExecContextOutsideSubsystem off
		    RTWSystemCode	    "Auto"
		    FunctionWithSeparateData off
		    Opaque		    off
		    RequestExecContextInheritance off
		    MaskHideContents	    off
		    System {
		    Name		    "Subsystem"
		    Location		    [165, 133, 823, 403]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "irrad"
		    SID			    284
		    Position		    [108, 220, 122, 250]
		    BlockRotation	    270
		    IconDisplay		    "Port number"
		    OutDataType		    "fixdt(1, 16)"
		    OutScaling		    "2^0"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Controlled Current Source"
		    SID			    285
		    Ports		    [1, 0, 0, 0, 0, 1, 1]
		    Position		    [106, 155, 144, 190]
		    BlockRotation	    270
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Electrical\nSources/Controlled Current Source"
		    SourceType		    "Controlled Current Source"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    Initialize		    on
		    Source_Type		    "AC"
		    Amplitude		    "0"
		    Phase		    "0"
		    Frequency		    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Diode"
		    SID			    286
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [345, 140, 385, 180]
		    BlockRotation	    270
		    BlockMirror		    on
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Power\nElectronics/Diode"
		    SourceType		    "Diode"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    Ron			    "0.001"
		    Lon			    "0"
		    Vf			    "406"
		    IC			    "0"
		    UseSnubber		    off
		    Rs			    "500"
		    Cs			    "250e-9"
		    Measurements	    off
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Series RLC Branch"
		    SID			    287
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [495, 96, 565, 124]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Elements/Series RLC Branch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    BranchType		    "R"
		    Resistance		    "0.005*11"
		    Inductance		    "1e-3"
		    SetiL0		    off
		    InitialCurrent	    "0"
		    Capacitance		    "1e-6"
		    Setx0		    off
		    InitialVoltage	    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Series RLC Branch1"
		    SID			    288
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [443, 140, 467, 180]
		    BlockRotation	    270
		    BlockMirror		    on
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Elements/Series RLC Branch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    BranchType		    "R"
		    Resistance		    "550"
		    Inductance		    "1e-3"
		    SetiL0		    off
		    InitialCurrent	    "0"
		    Capacitance		    "1e-6"
		    Setx0		    off
		    InitialVoltage	    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "+"
		    SID			    289
		    Tag			    "PMCPort"
		    Position		    [595, 101, 625, 119]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    FontName		    "Verdana"
		    FontSize		    11
		    Port		    "1"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "-"
		    SID			    290
		    Tag			    "PMCPort"
		    Position		    [555, 196, 585, 214]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    FontName		    "Verdana"
		    FontSize		    11
		    Port		    "2"
		    Side		    "Right"
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Controlled Current Source"
		    SrcPort		    LConn1
		    Points		    [230, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [0, 0]
		    DstBlock		    "Diode"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "DEST_DEST"
		    Points		    [455, 205; -90, 0]
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "-"
		    SrcPort		    RConn1
		    Points		    [-85, 0]
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "Series RLC Branch1"
		    SrcPort		    RConn1
		    Points		    [0, 10]
		    }
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Diode"
		    SrcPort		    LConn1
		    Points		    [0, -10]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [-240, 0]
		    DstBlock		    "Controlled Current Source"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [90, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    DstBlock		    "Series RLC Branch1"
		    DstPort		    LConn1
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [0, -5]
		    DstBlock		    "Series RLC Branch"
		    DstPort		    LConn1
		    }
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "+"
		    SrcPort		    RConn1
		    DstBlock		    "Series RLC Branch"
		    DstPort		    RConn1
		    }
		    Line {
		    SrcBlock		    "irrad"
		    SrcPort		    1
		    DstBlock		    "Controlled Current Source"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Voltage Measurement"
		    SID			    291
		    Ports		    [0, 1, 0, 0, 0, 2]
		    Position		    [370, 248, 395, 272]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Measurements/Voltage Measurement"
		    SourceType		    "Voltage Measurement"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    PhasorSimulation	    off
		    OutputType		    "Complex"
		    PSBequivalent	    "0"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "+"
		    SID			    292
		    Position		    [410, 108, 440, 122]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    Port		    "1"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "-"
		    SID			    293
		    Position		    [410, 138, 440, 152]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    Port		    "2"
		    Side		    "Right"
		    }
		    Line {
		    SrcBlock		    "Current Measurement"
		    SrcPort		    1
		    DstBlock		    "Scope1"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Current Measurement"
		    SrcPort		    RConn1
		    Points		    [15, 0; 0, 20]
		    DstBlock		    "+"
		    DstPort		    RConn1
		    }
		    Line {
		    SrcBlock		    "Voltage Measurement"
		    SrcPort		    1
		    DstBlock		    "Scope"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "In1"
		    SrcPort		    1
		    DstBlock		    "Insolation to \ncurrent gain"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    Points		    [355, 145; 0, 120]
		    DstBlock		    "Voltage Measurement"
		    DstPort		    LConn2
		    Branch {
		    ConnectType		    "SRC_SRC"
		    DstBlock		    "Subsystem"
		    DstPort		    RConn2
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "-"
		    SrcPort		    RConn1
		    Points		    [-40, 0]
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    Points		    [265, 115; 0, -25; 45, 0]
		    DstBlock		    "Current Measurement"
		    DstPort		    LConn1
		    Branch {
		    ConnectType		    "SRC_SRC"
		    DstBlock		    "Subsystem"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "Voltage Measurement"
		    SrcPort		    LConn1
		    Points		    [-80, 0; 0, -140; -10, 0]
		    }
		    }
		    Line {
		    SrcBlock		    "Insolation to \ncurrent gain"
		    SrcPort		    1
		    DstBlock		    "Subsystem"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "11=336V, 406 V"
		  SID			  294
		  Ports			  [1, 0, 0, 0, 0, 0, 2]
		  Position		  [105, 164, 145, 226]
		  MinAlgLoopOccurrences	  off
		  PropExecContextOutsideSubsystem off
		  RTWSystemCode		  "Auto"
		  FunctionWithSeparateData off
		  Opaque		  off
		  RequestExecContextInheritance	off
		  MaskHideContents	  off
		  System {
		    Name		    "11=336V, 406 V"
		    Location		    [63, 100, 1075, 712]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "In1"
		    SID			    295
		    Position		    [25, 123, 55, 137]
		    IconDisplay		    "Port number"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Current Measurement"
		    SID			    296
		    Ports		    [0, 1, 0, 0, 0, 1, 1]
		    Position		    [325, 78, 350, 102]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Measurements/Current Measurement"
		    SourceType		    "Current Measurement"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    PhasorSimulation	    off
		    OutputType		    "Complex"
		    PSBequivalent	    "0"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Insolation to \ncurrent gain"
		    SID			    297
		    Position		    [105, 105, 145, 155]
		    Gain		    "8.01/1000"
		    ParameterDataTypeMode   "Inherit via internal rule"
		    ParameterDataType	    "sfix(16)"
		    ParameterScaling	    "2^0"
		    ParamDataTypeStr	    "Inherit: Inherit via internal rule"
		    OutDataTypeMode	    "Inherit via internal rule"
		    OutDataType		    "sfix(16)"
		    OutScaling		    "2^0"
		    OutDataTypeStr	    "Inherit: Inherit via internal rule"
		    SaturateOnIntegerOverflow off
		    SampleTime		    "20e-6"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "Scope"
		    SID			    298
		    Ports		    [1]
		    Position		    [430, 244, 460, 276]
		    Floating		    off
		    Location		    [5, 52, 1285, 993]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    TimeRange		    "0.4"
		    YMin		    "332.825"
		    YMax		    "333.3"
		    SaveName		    "ScopeData10"
		    DataFormat		    "StructureWithTime"
		    SampleTime		    "0"
		    }
		    Block {
		    BlockType		    Scope
		    Name		    "Scope1"
		    SID			    299
		    Ports		    [1]
		    Position		    [485, 69, 515, 101]
		    Floating		    off
		    Location		    [5, 52, 1285, 993]
		    Open		    off
		    NumInputPorts	    "1"
		    List {
		    ListType		    AxesTitles
		    axes1		    "%<SignalLabel>"
		    }
		    TimeRange		    "0.4"
		    YMin		    "7.53385"
		    YMax		    "7.5347"
		    SaveName		    "ScopeData5"
		    DataFormat		    "StructureWithTime"
		    SampleTime		    "0"
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "Subsystem"
		    SID			    300
		    Ports		    [1, 0, 0, 0, 0, 0, 2]
		    Position		    [200, 100, 240, 160]
		    NamePlacement	    "alternate"
		    MinAlgLoopOccurrences   off
		    PropExecContextOutsideSubsystem off
		    RTWSystemCode	    "Auto"
		    FunctionWithSeparateData off
		    Opaque		    off
		    RequestExecContextInheritance off
		    MaskHideContents	    off
		    System {
		    Name		    "Subsystem"
		    Location		    [165, 133, 823, 403]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "A4"
		    PaperUnits		    "centimeters"
		    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
		    TiledPageScale	    1
		    ShowPageBoundaries	    off
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "irrad"
		    SID			    301
		    Position		    [108, 220, 122, 250]
		    BlockRotation	    270
		    IconDisplay		    "Port number"
		    OutDataType		    "fixdt(1, 16)"
		    OutScaling		    "2^0"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Controlled Current Source"
		    SID			    302
		    Ports		    [1, 0, 0, 0, 0, 1, 1]
		    Position		    [106, 155, 144, 190]
		    BlockRotation	    270
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Electrical\nSources/Controlled Current Source"
		    SourceType		    "Controlled Current Source"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    Initialize		    on
		    Source_Type		    "AC"
		    Amplitude		    "0"
		    Phase		    "0"
		    Frequency		    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Diode"
		    SID			    303
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [345, 140, 385, 180]
		    BlockRotation	    270
		    BlockMirror		    on
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Power\nElectronics/Diode"
		    SourceType		    "Diode"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    Ron			    "0.001"
		    Lon			    "0"
		    Vf			    "406"
		    IC			    "0"
		    UseSnubber		    off
		    Rs			    "500"
		    Cs			    "250e-9"
		    Measurements	    off
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Series RLC Branch"
		    SID			    304
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [495, 96, 565, 124]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Elements/Series RLC Branch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    BranchType		    "R"
		    Resistance		    "0.005*11"
		    Inductance		    "1e-3"
		    SetiL0		    off
		    InitialCurrent	    "0"
		    Capacitance		    "1e-6"
		    Setx0		    off
		    InitialVoltage	    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Series RLC Branch1"
		    SID			    305
		    Ports		    [0, 0, 0, 0, 0, 1, 1]
		    Position		    [443, 140, 467, 180]
		    BlockRotation	    270
		    BlockMirror		    on
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Elements/Series RLC Branch"
		    SourceType		    "Series RLC Branch"
		    PhysicalDomain	    "powersysdomain"
		    SubClassName	    "unknown"
		    LeftPortType	    "p1"
		    RightPortType	    "p1"
		    LConnTagsString	    "__new0"
		    RConnTagsString	    "__new0"
		    BranchType		    "R"
		    Resistance		    "550"
		    Inductance		    "1e-3"
		    SetiL0		    off
		    InitialCurrent	    "0"
		    Capacitance		    "1e-6"
		    Setx0		    off
		    InitialVoltage	    "0"
		    Measurements	    "None"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "+"
		    SID			    306
		    Tag			    "PMCPort"
		    Position		    [595, 101, 625, 119]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    FontName		    "Verdana"
		    FontSize		    11
		    Port		    "1"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "-"
		    SID			    307
		    Tag			    "PMCPort"
		    Position		    [555, 196, 585, 214]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    FontName		    "Verdana"
		    FontSize		    11
		    Port		    "2"
		    Side		    "Right"
		    }
		    Line {
		    SrcBlock		    "irrad"
		    SrcPort		    1
		    DstBlock		    "Controlled Current Source"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "+"
		    SrcPort		    RConn1
		    DstBlock		    "Series RLC Branch"
		    DstPort		    RConn1
		    }
		    Line {
		    LineType		    "Connection"
		    Points		    [455, 115; 0, -5; 25, 0]
		    DstBlock		    "Series RLC Branch"
		    DstPort		    LConn1
		    Branch {
		    ConnectType		    "SRC_SRC"
		    DstBlock		    "Series RLC Branch1"
		    DstPort		    LConn1
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    Points		    [365, 115; 90, 0]
		    Branch {
		    ConnectType		    "SRC_SRC"
		    Points		    [-240, 0]
		    DstBlock		    "Controlled Current Source"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "SRC_DEST"
		    SrcBlock		    "Diode"
		    SrcPort		    LConn1
		    Points		    [0, -10]
		    }
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Series RLC Branch1"
		    SrcPort		    RConn1
		    Points		    [0, 10]
		    Branch {
		    ConnectType		    "DEST_DEST"
		    SrcBlock		    "-"
		    SrcPort		    RConn1
		    Points		    [-85, 0]
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [-90, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [0, 0]
		    DstBlock		    "Diode"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "DEST_DEST"
		    SrcBlock		    "Controlled Current Source"
		    SrcPort		    LConn1
		    Points		    [230, 0]
		    }
		    }
		    }
		    }
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Voltage Measurement"
		    SID			    308
		    Ports		    [0, 1, 0, 0, 0, 2]
		    Position		    [370, 248, 395, 272]
		    LibraryVersion	    "1.1845"
		    DialogController	    "POWERSYS.PowerSysDialog"
		    FontName		    "Verdana"
		    FontSize		    11
		    SourceBlock		    "powerlib/Measurements/Voltage Measurement"
		    SourceType		    "Voltage Measurement"
		    ShowPortLabels	    "FromPortIcon"
		    SystemSampleTime	    "-1"
		    FunctionWithSeparateData off
		    RTWMemSecFuncInitTerm   "Inherit from model"
		    RTWMemSecFuncExecute    "Inherit from model"
		    RTWMemSecDataConstants  "Inherit from model"
		    RTWMemSecDataInternal   "Inherit from model"
		    RTWMemSecDataParameters "Inherit from model"
		    PhasorSimulation	    off
		    OutputType		    "Complex"
		    PSBequivalent	    "0"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "+"
		    SID			    309
		    Position		    [410, 108, 440, 122]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    Port		    "1"
		    Side		    "Right"
		    }
		    Block {
		    BlockType		    PMIOPort
		    Name		    "-"
		    SID			    310
		    Position		    [410, 138, 440, 152]
		    BlockMirror		    on
		    NamePlacement	    "alternate"
		    Port		    "2"
		    Side		    "Right"
		    }
		    Line {
		    SrcBlock		    "Insolation to \ncurrent gain"
		    SrcPort		    1
		    DstBlock		    "Subsystem"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Voltage Measurement"
		    SrcPort		    LConn1
		    Points		    [-80, 0; 0, -140; -10, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    DstBlock		    "Subsystem"
		    DstPort		    RConn1
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    Points		    [0, -25]
		    DstBlock		    "Current Measurement"
		    DstPort		    LConn1
		    }
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "-"
		    SrcPort		    RConn1
		    Points		    [-40, 0]
		    Branch {
		    ConnectType		    "DEST_SRC"
		    DstBlock		    "Subsystem"
		    DstPort		    RConn2
		    }
		    Branch {
		    ConnectType		    "DEST_SRC"
		    DstBlock		    "Voltage Measurement"
		    DstPort		    LConn2
		    }
		    }
		    Line {
		    SrcBlock		    "In1"
		    SrcPort		    1
		    DstBlock		    "Insolation to \ncurrent gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Voltage Measurement"
		    SrcPort		    1
		    DstBlock		    "Scope"
		    DstPort		    1
		    }
		    Line {
		    LineType		    "Connection"
		    SrcBlock		    "Current Measurement"
		    SrcPort		    RConn1
		    Points		    [15, 0; 0, 20]
		    DstBlock		    "+"
		    DstPort		    RConn1
		    }
		    Line {
		    SrcBlock		    "Current Measurement"
		    SrcPort		    1
		    DstBlock		    "Scope1"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "1"
		  SID			  311
		  Tag			  "PMCPort"
		  Position		  [255, 51, 285, 69]
		  BlockMirror		  on
		  FontName		  "Verdana"
		  FontSize		  11
		  Port			  "1"
		  Side			  "Right"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "2"
		  SID			  312
		  Tag			  "PMCPort"
		  Position		  [210, 81, 240, 99]
		  BlockMirror		  on
		  FontName		  "Verdana"
		  FontSize		  11
		  Port			  "2"
		  Side			  "Right"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "3"
		  SID			  313
		  Tag			  "PMCPort"
		  Position		  [235, 171, 265, 189]
		  BlockMirror		  on
		  FontName		  "Verdana"
		  FontSize		  11
		  Port			  "3"
		  Side			  "Right"
		}
		Block {
		  BlockType		  PMIOPort
		  Name			  "4"
		  SID			  314
		  Tag			  "PMCPort"
		  Position		  [195, 201, 225, 219]
		  BlockMirror		  on
		  FontName		  "Verdana"
		  FontSize		  11
		  Port			  "4"
		  Side			  "Right"
		}
		Line {
		  SrcBlock		  "In1"
		  SrcPort		  1
		  Points		  [25, 0]
		  Branch {
		    Points		    [0, -120]
		    DstBlock		    "11= Vmpp=336V, \nVoc=406V"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "11=336V, 406 V"
		    DstPort		    1
		  }
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "2"
		  SrcPort		  RConn1
		  DstBlock		  "11= Vmpp=336V, \nVoc=406V"
		  DstPort		  RConn2
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "1"
		  SrcPort		  RConn1
		  DstBlock		  "11= Vmpp=336V, \nVoc=406V"
		  DstPort		  RConn1
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "4"
		  SrcPort		  RConn1
		  DstBlock		  "11=336V, 406 V"
		  DstPort		  RConn2
		}
		Line {
		  LineType		  "Connection"
		  SrcBlock		  "3"
		  SrcPort		  RConn1
		  DstBlock		  "11=336V, 406 V"
		  DstPort		  RConn1
		}
	      }
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Conn1"
	      SID		      315
	      Position		      [345, 118, 375, 132]
	      BlockMirror	      on
	      Port		      "1"
	      Side		      "Right"
	    }
	    Block {
	      BlockType		      PMIOPort
	      Name		      "Conn2"
	      SID		      316
	      Position		      [355, 313, 385, 327]
	      BlockMirror	      on
	      Port		      "2"
	      Side		      "Right"
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Conn2"
	      SrcPort		      RConn1
	      Points		      [-15, 0; 0, -10; -84, 0; 0, 40]
	      DstBlock		      "Solar"
	      DstPort		      RConn4
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Solar"
	      DstPort		      1
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Solar"
	      SrcPort		      RConn3
	      Points		      [81, 0; 0, -90]
	      DstBlock		      "Solar"
	      DstPort		      RConn2
	    }
	    Line {
	      LineType		      "Connection"
	      SrcBlock		      "Solar"
	      SrcPort		      RConn1
	      Points		      [154, 0; 0, 45]
	      DstBlock		      "Conn1"
	      DstPort		      RConn1
	    }
	  }
	}
	Block {
	  BlockType		  BusCreator
	  Name			  "Bus\nCreator"
	  SID			  317
	  Ports			  [2, 1]
	  Position		  [620, 76, 625, 114]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Reference
	  Name			  "FW Diode1"
	  SID			  318
	  Ports			  [0, 0, 0, 0, 0, 1, 1]
	  Position		  [805, 335, 860, 375]
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  AttributesFormatString  "\\n"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Power\nElectronics/Diode"
	  SourceType		  "Diode"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  Ron			  "0.01"
	  Lon			  "0"
	  Vf			  "0.8"
	  IC			  "0"
	  UseSnubber		  off
	  Rs			  "100"
	  Cs			  "0.1e-6"
	  Measurements		  off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  SID			  319
	  Position		  [490, 70, 520, 100]
	  Gain			  "4732*2/1000"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto1"
	  SID			  320
	  Position		  [790, 190, 830, 210]
	  GotoTag		  "Sp"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Reference
	  Name			  "IL1"
	  SID			  321
	  Ports			  [0, 1, 0, 0, 0, 1, 1]
	  Position		  [895, 343, 920, 367]
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Measurements/Current Measurement"
	  SourceType		  "Current Measurement"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  PhasorSimulation	  off
	  OutputType		  "Complex"
	  PSBequivalent		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "MPPT Voltage1"
	  SID			  322
	  Ports			  [1]
	  Position		  [340, 232, 380, 278]
	  BlockMirror		  on
	  BackgroundColor	  "green"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [184, 156, 1033, 803]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "1000"
	  YMax			  "1000"
	  SaveName		  "ScopeData17"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleInput		  on
	  SampleTime		  "100e-6"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Manual Switch"
	  SID			  323
	  Ports			  [2, 1]
	  Position		  [345, 378, 375, 427]
	  LibraryVersion	  "1.762"
	  SourceBlock		  "simulink/Signal\nRouting/Manual Switch"
	  SourceType		  "Manual Switch"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  sw			  "1"
	  action		  "0"
	  varsize		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Mean Value1"
	  SID			  324
	  Ports			  [1, 1]
	  Position		  [855, 271, 905, 299]
	  BlockMirror		  on
	  LibraryVersion	  "1.608"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib_extras/Measurements/Mean Value"
	  SourceType		  "Mean value"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  Period		  "0.0045"
	}
	Block {
	  BlockType		  Scope
	  Name			  "PV power"
	  SID			  325
	  Ports			  [1]
	  Position		  [695, 72, 735, 118]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [99, 136, 1176, 713]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "9400"
	  YMax			  "9650"
	  SaveName		  "ScopeData13"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleInput		  on
	  SampleTime		  "100e-6"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product6"
	  SID			  326
	  Ports			  [2, 1]
	  Position		  [760, 247, 790, 278]
	  BlockMirror		  on
	  NamePlacement		  "alternate"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Vdc2"
	  SID			  327
	  Tag			  "PoWeRsYsTeMmEaSuReMeNt"
	  Ports			  [0, 1, 0, 0, 0, 2]
	  Position		  [930, 528, 955, 552]
	  NamePlacement		  "alternate"
	  AttributesFormatString  "\\n"
	  LibraryVersion	  "1.1845"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib/Measurements/Voltage Measurement"
	  SourceType		  "Voltage Measurement"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  PhasorSimulation	  off
	  OutputType		  "Magnitude"
	  PSBequivalent		  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "irradiance"
	  SID			  328
	  Ports			  [0, 1]
	  Position		  [280, 372, 310, 408]
	  LibraryVersion	  "1.608"
	  DialogController	  "POWERSYS.PowerSysDialog"
	  SourceBlock		  "powerlib_extras/Control \nBlocks/Timer"
	  SourceType		  "Timer"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  t			  "[0 2]"
	  e			  "[1000 850]"
	}
	Block {
	  BlockType		  Constant
	  Name			  "irradiance constant"
	  SID			  329
	  Position		  [220, 455, 265, 485]
	  Value			  "1000"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  SampleTime		  "20e-6"
	}
	Block {
	  BlockType		  Display
	  Name			  "power1"
	  SID			  330
	  Ports			  [1]
	  Position		  [665, 14, 760, 56]
	  Decimation		  "1"
	  Lockdown		  off
	  SampleTime		  "1e-3"
	}
	Block {
	  BlockType		  Scope
	  Name			  "pv mppt v"
	  SID			  331
	  Ports			  [1]
	  Position		  [1015, 517, 1055, 563]
	  BackgroundColor	  "green"
	  Floating		  off
	  Location		  [131, 167, 1131, 762]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "665.75"
	  YMax			  "668.75"
	  SaveName		  "ScopeData3"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	  SampleInput		  on
	  SampleTime		  "100e-6"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "+"
	  SID			  332
	  Position		  [1025, 353, 1055, 367]
	  BlockMirror		  on
	  Port			  "1"
	  Side			  "Right"
	}
	Block {
	  BlockType		  PMIOPort
	  Name			  "-"
	  SID			  333
	  Position		  [940, 418, 970, 432]
	  BlockMirror		  on
	  Port			  "2"
	  Side			  "Right"
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "11*2=666 V"
	  SrcPort		  RConn2
	  Points		  [25, 0]
	  Branch {
	    ConnectType		    "DEST_DEST"
	    Points		    [815, 425; -210, 0]
	    Branch {
	      ConnectType	      "SRC_SRC"
	      Points		      [0, 120]
	      DstBlock		      "Vdc2"
	      DstPort		      LConn2
	    }
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "-"
	      SrcPort		      RConn1
	      Points		      [-110, 0]
	    }
	  }
	  Branch {
	    ConnectType		    "DEST_SRC"
	    Points		    [0, -145]
	    DstBlock		    "11*2=666V"
	    DstPort		    RConn2
	  }
	}
	Line {
	  SrcBlock		  "Vdc2"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    DstBlock		    "pv mppt v"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [5, 0; 0, -45; 5, 0; 0, -240]
	    DstBlock		    "Product6"
	    DstPort		    1
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "+"
	  SrcPort		  RConn1
	  DstBlock		  "IL1"
	  DstPort		  RConn1
	}
	Line {
	  SrcBlock		  "Manual Switch"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [10, 0; 50, 0]
	    Branch {
	      Points		      [0, -145]
	      DstBlock		      "11*2=666V"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "11*2=666 V"
	      DstPort		      1
	    }
	  }
	  Branch {
	    Points		    [0, -150]
	    Branch {
	      DstBlock		      "MPPT Voltage1"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, -170]
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Product6"
	  SrcPort		  1
	  Points		  [0, -50; -5, 0]
	  Branch {
	    Points		    [-150, 0; 0, -110]
	    DstBlock		    "Bus\nCreator"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -15]
	    DstBlock		    "Goto1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Bus\nCreator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Bus\nCreator"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    DstBlock		    "PV power"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "power1"
	    DstPort		    1
	  }
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "11*2=666 V"
	  SrcPort		  RConn1
	  Points		  [65, 0; 0, -25]
	  Branch {
	    ConnectType		    "DEST_DEST"
	    Points		    [740, 355; -95, 0]
	    Branch {
	      ConnectType	      "SRC_DEST"
	      SrcBlock		      "FW Diode1"
	      SrcPort		      LConn1
	      Points		      [-50, 0]
	    }
	    Branch {
	      ConnectType	      "SRC_SRC"
	      Points		      [0, 180]
	      DstBlock		      "Vdc2"
	      DstPort		      LConn1
	    }
	  }
	  Branch {
	    ConnectType		    "DEST_DEST"
	    SrcBlock		    "11*2=666V"
	    SrcPort		    RConn1
	    Points		    [70, 0; 0, 120]
	  }
	}
	Line {
	  SrcBlock		  "irradiance"
	  SrcPort		  1
	  DstBlock		  "Manual Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "irradiance constant"
	  SrcPort		  1
	  Points		  [60, 0]
	  DstBlock		  "Manual Switch"
	  DstPort		  2
	}
	Line {
	  LineType		  "Connection"
	  SrcBlock		  "IL1"
	  SrcPort		  LConn1
	  DstBlock		  "FW Diode1"
	  DstPort		  RConn1
	}
	Line {
	  SrcBlock		  "Mean Value1"
	  SrcPort		  1
	  Points		  [-45, 0]
	  DstBlock		  "Product6"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "IL1"
	  SrcPort		  1
	  Points		  [0, -65]
	  DstBlock		  "Mean Value1"
	  DstPort		  1
	}
	Annotation {
	  Name			  "boost"
	  Position		  [832, 551]
	}
      }
    }
    Line {
      SrcBlock		      "Bus\nCreator2"
      SrcPort		      1
      DstBlock		      "out 1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "Bus\nCreator2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mean Value3"
      SrcPort		      1
      Points		      [0, 360]
      DstBlock		      "Gain"
      DstPort		      1
    }
    Line {
      SrcBlock		      "IL1"
      SrcPort		      1
      DstBlock		      "Mean Value3"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "100Vdc \nDC/DC Converter3"
      SrcPort		      RConn2
      Points		      [180, 0; 0, 55]
      Branch {
	ConnectType		"DEST_SRC"
	Points			[5, 0; 0, -10; 60, 0]
	Branch {
	  ConnectType		  "DEST_SRC"
	  Points		  [230, 0]
	  Branch {
	    ConnectType		    "DEST_SRC"
	    Points		    [5, 0]
	    Branch {
	      ConnectType	      "DEST_SRC"
	      Points		      [45, 0]
	      Branch {
		ConnectType		"DEST_DEST"
		SrcBlock		"C1"
		SrcPort			RConn1
		Points			[0, 10]
	      }
	      Branch {
		ConnectType		"DEST_SRC"
		Points			[35, 0]
		DstBlock		"PWM \nIGBT Inverter1"
		DstPort			RConn2
	      }
	    }
	    Branch {
	      ConnectType	      "DEST_SRC"
	      Points		      [0, -65]
	      DstBlock		      "Vab_load1"
	      DstPort		      LConn2
	    }
	  }
	  Branch {
	    ConnectType		    "DEST_DEST"
	    SrcBlock		    "Battery and DC-DC converter"
	    SrcPort		    RConn2
	    Points		    [130, 0; 0, -300]
	  }
	}
	Branch {
	  ConnectType		  "DEST_DEST"
	  SrcBlock		  "L3"
	  SrcPort		  RConn1
	  Points		  [0, 5]
	}
      }
      Branch {
	ConnectType		"DEST_DEST"
	SrcBlock		"100Vdc \nDC/DC Converter1"
	SrcPort			RConn2
	Points			[75, 0; 0, -270]
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "LC Filter"
      SrcPort		      LConn2
      DstBlock		      "PWM \nIGBT Inverter1"
      DstPort		      LConn2
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Measure"
      SrcPort		      RConn1
      Points		      [20, 0]
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"3000"
	DstPort			LConn1
      }
      Branch {
	ConnectType		"DEST_DEST"
	SrcBlock		"Three-Phase Breaker4"
	SrcPort			RConn1
	Points			[0, -55; -105, 0]
      }
    }
    Line {
      SrcBlock		      "IL7"
      SrcPort		      1
      Points		      [10, 0; 0, 170]
      DstBlock		      "Vab1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Vab1"
      SrcPort		      1
      Points		      [-225, 0; 0, 60]
      DstBlock		      "Bus\nCreator2"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      Points		      [820, 115; 0, 15]
      DstBlock		      "C2"
      DstPort		      LConn1
      Branch {
	ConnectType		"SRC_DEST"
	SrcBlock		"PWM \nIGBT Inverter1"
	SrcPort			RConn1
	Points			[0, -55; -35, 0]
      }
      Branch {
	ConnectType		"SRC_SRC"
	Points			[-50, 0]
	Branch {
	  ConnectType		  "DEST_DEST"
	  SrcBlock		  "Vab_load1"
	  SrcPort		  LConn1
	  Points		  [0, -70]
	}
	Branch {
	  ConnectType		  "DEST_SRC"
	  DstBlock		  "IL1"
	  DstPort		  RConn1
	}
      }
    }
    Line {
      SrcBlock		      "Vab_load1"
      SrcPort		      1
      Points		      [0, 100]
      Branch {
	Points			[0, 5]
	DstBlock		"Battery/electrolyzer\n controller"
	DstPort			1
      }
      Branch {
	DstBlock		"Vdc"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Battery and DC-DC converter"
      SrcPort		      2
      Points		      [100, 0; 0, -145]
      DstBlock		      "Battery/electrolyzer\n controller"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Battery and DC-DC converter"
      SrcPort		      1
      Points		      [25, 0]
      DstBlock		      "Battery/electrolyzer\n controller"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Battery/electrolyzer\n controller"
      SrcPort		      2
      Points		      [-35, 0; 0, 135]
      DstBlock		      "Battery and DC-DC converter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Battery/electrolyzer\n controller"
      SrcPort		      1
      Points		      [-45, 0; 0, 240]
      DstBlock		      "Battery and DC-DC converter"
      DstPort		      2
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "L3"
      SrcPort		      LConn1
      DstBlock		      "IGBT2"
      DstPort		      RConn1
    }
    Line {
      SrcBlock		      "Battery/electrolyzer\n controller"
      SrcPort		      3
      Points		      [-75, 0; 0, -210]
      DstBlock		      "IGBT2"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Measure"
      SrcPort		      RConn2
      Points		      [35, 0]
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"3000"
	DstPort			LConn2
      }
      Branch {
	ConnectType		"DEST_DEST"
	SrcBlock		"Three-Phase Breaker4"
	SrcPort			RConn2
	Points			[0, -35; -110, 0]
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Measure"
      SrcPort		      RConn3
      Points		      [50, 0]
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"3000"
	DstPort			LConn3
      }
      Branch {
	ConnectType		"DEST_DEST"
	SrcBlock		"Three-Phase Breaker4"
	SrcPort			RConn3
	Points			[0, -15; -115, 0]
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "IL3"
      SrcPort		      LConn1
      DstBlock		      "Battery and DC-DC converter"
      DstPort		      RConn1
    }
    Line {
      SrcBlock		      "IL3"
      SrcPort		      1
      DstBlock		      "Mean Value1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mean Value1"
      SrcPort		      1
      DstBlock		      "out 4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Control of\n Inverter"
      SrcPort		      3
      Points		      [-15, 0]
      DstBlock		      "PWM \nIGBT Inverter1"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "LC Filter"
      SrcPort		      LConn3
      DstBlock		      "PWM \nIGBT Inverter1"
      DstPort		      LConn3
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "LC Filter"
      SrcPort		      LConn1
      DstBlock		      "PWM \nIGBT Inverter1"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "FW Diode1"
      SrcPort		      RConn1
      Points		      [0, -130; -60, 0]
      Branch {
	ConnectType		"DEST_SRC"
	Points			[0, -20; 235, 0]
	Branch {
	  ConnectType		  "DEST_SRC"
	  DstBlock		  "IGBT2"
	  DstPort		  LConn1
	}
	Branch {
	  ConnectType		  "DEST_DEST"
	  Points		  [695, 110; -145, 0]
	  Branch {
	    ConnectType		    "SRC_DEST"
	    SrcBlock		    "IL1"
	    SrcPort		    LConn1
	    Points		    [-15, 0]
	  }
	  Branch {
	    ConnectType		    "SRC_DEST"
	    SrcBlock		    "IL3"
	    SrcPort		    RConn1
	    Points		    [5, 0; 0, -425]
	  }
	}
      }
      Branch {
	ConnectType		"DEST_DEST"
	SrcBlock		"100Vdc \nDC/DC Converter3"
	SrcPort			RConn1
	Points			[20, 0]
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "C1"
      SrcPort		      LConn1
      Points		      [0, -10]
      Branch {
	ConnectType		"DEST_SRC"
	Points			[20, 0]
	DstBlock		"Ground1"
	DstPort			LConn1
      }
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"C2"
	DstPort			RConn1
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "18e3"
      SrcPort		      LConn2
      DstBlock		      "Three-Phase Breaker4"
      DstPort		      LConn2
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "18e3"
      SrcPort		      LConn3
      Points		      [0, -5]
      DstBlock		      "Three-Phase Breaker4"
      DstPort		      LConn3
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "18e3"
      SrcPort		      LConn1
      Points		      [0, -5]
      DstBlock		      "Three-Phase Breaker4"
      DstPort		      LConn1
    }
    Line {
      SrcBlock		      "Battery and DC-DC converter"
      SrcPort		      3
      DstBlock		      "Goto"
      DstPort		      1
    }
    Line {
      SrcBlock		      "From7"
      SrcPort		      1
      DstBlock		      "3-phase \nInstantaneous \nActive & Reactive Power"
      DstPort		      1
    }
    Line {
      SrcBlock		      "From8"
      SrcPort		      1
      DstBlock		      "3-phase \nInstantaneous \nActive & Reactive Power"
      DstPort		      2
    }
    Line {
      SrcBlock		      "3-phase \nInstantaneous \nActive & Reactive Power"
      SrcPort		      1
      DstBlock		      "Discrete \nMean value2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Discrete \nMean value2"
      SrcPort		      1
      DstBlock		      "Demux2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux2"
      SrcPort		      1
      DstBlock		      "Goto4"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "LC Filter"
      SrcPort		      RConn1
      Points		      [10, 0]
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"IL7"
	DstPort			LConn1
      }
      Branch {
	ConnectType		"DEST_SRC"
	Points			[0, -60]
	DstBlock		"Control of\n Inverter"
	DstPort			LConn3
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "BL"
      SrcPort		      RConn1
      DstBlock		      "Measure"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "BL"
      SrcPort		      RConn2
      DstBlock		      "Measure"
      DstPort		      LConn2
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "BL"
      SrcPort		      RConn3
      DstBlock		      "Measure"
      DstPort		      LConn3
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "BL"
      SrcPort		      LConn1
      DstBlock		      "IL7"
      DstPort		      RConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "BL"
      SrcPort		      LConn2
      Points		      [-110, 0]
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"LC Filter"
	DstPort			RConn2
      }
      Branch {
	ConnectType		"DEST_SRC"
	Points			[0, -105]
	DstBlock		"Control of\n Inverter"
	DstPort			LConn2
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "LC Filter"
      SrcPort		      RConn3
      Points		      [55, 0]
      Branch {
	ConnectType		"DEST_SRC"
	Points			[85, 0]
	DstBlock		"BL"
	DstPort			LConn3
      }
      Branch {
	ConnectType		"DEST_SRC"
	Points			[0, -150]
	DstBlock		"Control of\n Inverter"
	DstPort			LConn1
      }
    }
    Line {
      SrcBlock		      "From3"
      SrcPort		      1
      Points		      [35, 0]
      DstBlock		      "Bus\nCreator1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "From"
      SrcPort		      1
      Points		      [35, 0]
      DstBlock		      "Bus\nCreator1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "From1"
      SrcPort		      1
      Points		      [35, 0]
      DstBlock		      "Bus\nCreator1"
      DstPort		      3
    }
    Line {
      SrcBlock		      "From2"
      SrcPort		      1
      Points		      [15, 0; 0, -40]
      DstBlock		      "Bus\nCreator1"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Bus\nCreator1"
      SrcPort		      1
      DstBlock		      "out 2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Measure"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "out 3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Measure"
      SrcPort		      2
      DstBlock		      "out 5"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Control of\n Inverter"
      SrcPort		      1
      Points		      [-10, 0; 0, -45]
      DstBlock		      "out 6"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Control of\n Inverter"
      SrcPort		      2
      Points		      [-25, 0]
      DstBlock		      "out 6"
      DstPort		      2
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "SOFC"
      SrcPort		      RConn1
      Points		      [0, -15; 100, 0]
      Branch {
	ConnectType		"DEST_DEST"
	SrcBlock		"Current Measurement1"
	SrcPort			LConn1
	Points			[-10, 0; 0, 55]
      }
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"Voltage Measurement1"
	DstPort			LConn1
      }
    }
    Line {
      Name		      "V_DC"
      Labels		      [0, 0]
      SrcBlock		      "Voltage Measurement1"
      SrcPort		      1
      DstBlock		      "Goto10"
      DstPort		      1
    }
    Line {
      SrcBlock		      "SOFC"
      SrcPort		      1
      DstBlock		      "Bus\nSelector"
      DstPort		      1
    }
    Line {
      Name		      "<p_H2>"
      Labels		      [0, 0]
      SrcBlock		      "Bus\nSelector"
      SrcPort		      1
      DstBlock		      "Scope5"
      DstPort		      1
    }
    Line {
      Name		      "<p_H20>"
      Labels		      [0, 0]
      SrcBlock		      "Bus\nSelector"
      SrcPort		      2
      DstBlock		      "Scope5"
      DstPort		      2
    }
    Line {
      Name		      "<p_O2>"
      Labels		      [0, 0]
      SrcBlock		      "Bus\nSelector"
      SrcPort		      3
      DstBlock		      "Scope5"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Current Measurement1"
      SrcPort		      1
      Points		      [0, -45; -265, 0]
      DstBlock		      "SOFC"
      DstPort		      1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "100Vdc \nDC/DC Converter3"
      SrcPort		      LConn1
      DstBlock		      "pv"
      DstPort		      RConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "100Vdc \nDC/DC Converter3"
      SrcPort		      LConn2
      Points		      [-20, 0; 0, 10]
      DstBlock		      "pv"
      DstPort		      RConn2
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "Current Measurement1"
      SrcPort		      RConn1
      Points		      [-10, 0]
      DstBlock		      "100Vdc \nDC/DC Converter1"
      DstPort		      LConn1
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "SOFC"
      SrcPort		      RConn2
      Points		      [0, 35; 100, 0]
      Branch {
	ConnectType		"DEST_SRC"
	DstBlock		"Voltage Measurement1"
	DstPort			LConn2
      }
      Branch {
	ConnectType		"DEST_SRC"
	Points			[0, 5; 55, 0]
	DstBlock		"100Vdc \nDC/DC Converter1"
	DstPort			LConn2
      }
    }
    Line {
      LineType		      "Connection"
      SrcBlock		      "100Vdc \nDC/DC Converter1"
      SrcPort		      RConn1
      Points		      [30, 0; 0, -115; -55, 0]
      DstBlock		      "FW Diode1"
      DstPort		      LConn1
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    , ,   8    (     @         %    \"     $    !     0         %  0 #     $   \"$    <&]W9"
    "7)G=6D     <W1E861Y<W1A=&4 :6YI='-T871E<P  ;&]A9&9L;W<     ;'1I=FEE=P      >FUE=&5R        9F9T=&]O;       <F5P;W)"
    "T        :'ES=&5R97-I<P  ;&EN97!A<F%M    5',                   X    P    !@    @    &          4    (             "
    "  !          D         #@   #     &    \"     8         !0    @               $         \"0         .    ,     8  "
    "  (    !@         %    \"                0         )          X    P    !@    @    &          4    (              "
    " !          D         #@   #     &    \"     8         !0    @               $         \"0         .    ,     8   "
    " (    !@         %    \"                0         )          X    X    !@    @    &          4    (     0    $    "
    "!          D    (         6!%Z$ .    ,     8    (    !@         %    \"                0         )          X    P"
    "    !@    @    &          4    (               !          D         #@   #     &    \"     8         !0    @      "
    "         $         \"0         .    ,     8    (    !@         %    \"                0         )          "
  }
}
