Model {
  Name			  "IM"
  Version		  5.0
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ExecutionOrder	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  on
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Mon May 20 05:45:17 2002"
  Creator		  "Lucian Tutelea - asistent professor UPT Timisoara, "
"Romania"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "Tutelea Lucian"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Fri Oct 17 11:55:31 2008"
  ModelVersionFormat	  "1.%<AutoIncrement:114>"
  ConfigurationManager	  "none"
  SimParamPage		  "Solver"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "oneshot"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  off
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock on
  BufferReuse		  on
  RTWExpressionDepthLimit 5
  SimulationMode	  "normal"
  Solver		  "ode45"
  SolverMode		  "Auto"
  StartTime		  "0.0"
  StopTime		  "1.4"
  MaxOrder		  5
  MaxStep		  "1e-3"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  InitialStep		  "auto"
  FixedStep		  "auto"
  RelTol		  "1e-4"
  AbsTol		  "auto"
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  Refine		  "1"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveTime		  on
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  on
  OutputSaveName	  "yout"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Array"
  Decimation		  "1"
  LimitDataPoints	  off
  MaxDataPoints		  "1000"
  SignalLoggingName	  "sigsOut"
  ConsistencyChecking	  "none"
  ArrayBoundsChecking	  "none"
  AlgebraicLoopMsg	  "warning"
  BlockPriorityViolationMsg "warning"
  MinStepSizeMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  DiscreteInheritContinuousMsg "warning"
  MultiTaskRateTransMsg	  "error"
  SingleTaskRateTransMsg  "none"
  CheckForMatrixSingularity "none"
  IntegerOverflowMsg	  "warning"
  Int32ToFloatConvMsg	  "warning"
  ParameterDowncastMsg	  "error"
  ParameterOverflowMsg	  "error"
  ParameterPrecisionLossMsg "warning"
  UnderSpecifiedDataTypeMsg "none"
  UnnecessaryDatatypeConvMsg "none"
  VectorMatrixConversionMsg "none"
  InvalidFcnCallConnMsg	  "error"
  SignalLabelMismatchMsg  "none"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  SfunCompatibilityCheckMsg "none"
  RTWInlineParameters	  off
  BlockReductionOpt	  on
  BooleanDataType	  off
  ConditionallyExecuteInputs on
  ParameterPooling	  on
  OptimizeBlockIOStorage  on
  ZeroCross		  on
  AssertionControl	  "UseLocalSettings"
  ProdHWDeviceType	  "Microprocessor"
  ProdHWWordLengths	  "8,16,32,32"
  RTWSystemTargetFile	  "grt.tlc"
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  RTWRetainRTWFile	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  TLCAssertion		  off
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Clock
      DisplayTime	      off
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ShowAdditionalParam     off
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      PortDimensions	      "-1"
      SampleTime	      "-1"
      ShowAdditionalParam     off
      LatchInput	      off
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Integrator
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      ZeroCross		      on
    }
    Block {
      BlockType		      Lookup
      InputValues	      "[-4:5]"
      OutputValues	      " rand(1,10)-0.5"
      ShowAdditionalParam     off
      LookUpMeth	      "Interpolation-Extrapolation"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Scope
      Floating		      off
      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	      "0"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      ShowAdditionalParam     off
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "IM"
    Location		    [172, 132, 742, 541]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Scope
      Name		      " Flux (Wb)"
      Ports		      [1]
      Position		      [495, 35, 525, 65]
      Location		      [6, 214, 806, 507]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "1.2"
      YMin		      "-1.25"
      YMax		      "1.25"
      SaveToWorkspace	      on
      SaveName		      "flux"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [425, 95, 465, 115]
      ShowName		      off
      Expr		      "sqrt(u(1)*u(1)+u(2)*u(2))"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn "
      Position		      [425, 145, 465, 165]
      ShowName		      off
      Expr		      "sqrt(u(3)*u(3)+u(4)*u(4))"
    }
    Block {
      BlockType		      Scope
      Name		      "I abc  (A)"
      Ports		      [1]
      Position		      [495, 185, 525, 215]
      Location		      [60, 118, 860, 488]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "-22.5"
      YMax		      "22.5"
      SaveToWorkspace	      on
      SaveName		      "current"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Load torque"
      Ports		      [0, 1]
      Position		      [95, 272, 130, 308]
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MaskType		      "Repeating table"
      MaskDescription	      "Repeating table.\nEnter values of time and outp"
"ut for first cycle."
      MaskHelp		      "Repeats cycle given in table. Time values shoul"
"d be monotonically increasing."
      MaskPromptString	      "Time values:|Output values:"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskInitialization      "period = max(@1); t = @1; y = @2;"
      MaskDisplay	      "plot([t,t+period,t+2*period],[y,y,y])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[0 0.4 0.4 0.7 0.7 1 1  2]|[0.1 0.1 200 200 0 0"
" -200 -200]"
      System {
	Name			"Load torque"
	Location		[5, 40, 315, 196]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Clock
	  Name			  "Clock"
	  Position		  [45, 60, 65, 80]
	  Decimation		  "10"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [110, 60, 150, 80]
	  Expr			  "rem(u[1],period)"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up Table"
	  Position		  [210, 58, 250, 82]
	  InputValues		  "t"
	  OutputValues		  "y"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [285, 60, 305, 80]
	}
	Line {
	  SrcBlock		  "Look-Up Table"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Clock"
	  SrcPort		  1
	  DstBlock		  "Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Look-Up Table"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "MI"
      Ports		      [2, 4]
      Position		      [215, 108, 360, 352]
      ShowName		      off
      FontSize		      14
      TreatAsAtomicUnit	      off
      MaskType		      "Parameter of induction machine"
      MaskDescription	      "The induction machine model in dq frame"
      MaskPromptString	      "Poles pairs|Rs|Rr|Ls|Lr|Lm|Inertial moment|Fric"
"tion coeficient"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on"
      MaskCallbackString      "|||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,"
      MaskVariables	      "p=@1;Rs=@2;Rr=@3;Ls=@4;Lr=@5;Lm=@6;J=@7;B=@8;"
      MaskInitialization      "sigma=1-Lm^2/(Ls*Lr);\na11=Rs/(sigma*Ls);\na12="
"Rs*(1-sigma)/(sigma*Lm);\na21=Rr*(1-sigma)/(sigma*Lm);\na22=Rr/(sigma*Lr);\nc"
"1=1/(sigma*Ls) ;\nc2=(sigma-1)/(sigma*Lm);\n"
      MaskDisplay	      "disp('\\n');\ndisp('\\n Induction machine');"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "2|0.3|0.25|0.0415|0.0412|0.0403|0.1|0.02"
      System {
	Name			"MI"
	Location		[25, 82, 817, 616]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "V abc"
	  Position		  [15, 183, 45, 197]
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tload"
	  Position		  [35, 435, 65, 445]
	  Port			  "2"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fc"
	  Position		  [285, 57, 435, 83]
	  ShowName		  off
	  Expr			  "u(6)-a11*u(1)+a12*u(3)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [290, 106, 440, 134]
	  ShowName		  off
	  Expr			  "u(7)-a11*u(2)+a12*u(4)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn2"
	  Position		  [290, 154, 440, 186]
	  ShowName		  off
	  Expr			  "a21*u(1)-a22*u(3)-p*u(5)*u(4)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn3"
	  Position		  [285, 205, 435, 235]
	  ShowName		  off
	  Expr			  "a21*u(2)-a22*u(4)+p*u(5)*u(3)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn4"
	  Position		  [290, 270, 440, 300]
	  ShowName		  off
	  Expr			  "c1*u(1)+c2*u(3)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn5"
	  Position		  [290, 316, 440, 344]
	  ShowName		  off
	  Expr			  "c1*u(2)+c2*u(4)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn6"
	  Position		  [290, 375, 435, 405]
	  ShowName		  off
	  Expr			  "1.5*p*c2*(u(1)*u(4)-u(2)*u(3))"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn7"
	  Position		  [75, 156, 185, 184]
	  ShowName		  off
	  Expr			  "(2*u(1)-u(2)-u(3))/3"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn8"
	  Position		  [75, 193, 185, 227]
	  ShowName		  off
	  Expr			  "(u(2)-u(3))*0.5773502"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [4, 1]
	  Position		  [515, 41, 525, 249]
	  ShowName		  off
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux2"
	  Ports			  [4, 1]
	  Position		  [220, 67, 230, 233]
	  ShowName		  off
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux3"
	  Ports			  [3, 1]
	  Position		  [665, 260, 670, 350]
	  ShowName		  off
	  Inputs		  "3"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum7"
	  Ports			  [2, 1]
	  Position		  [490, 380, 510, 400]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn4"
	  Position		  [535, 372, 595, 408]
	  ShowName		  off
	  Denominator		  "[J B]"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Voltage to flux"
	  Ports			  [1, 1]
	  Position		  [585, 130, 615, 160]
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "alfa-beta\nto\nabc"
	  Ports			  [2, 3]
	  Position		  [590, 259, 635, 351]
	  NamePlacement		  "alternate"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "alfa-beta\nto\nabc"
	    Location		    [14, 125, 436, 410]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "in_1"
	      Position		      [15, 100, 35, 120]
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "in_2"
	      Position		      [15, 165, 35, 185]
	      Port		      "2"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [80, 100, 100, 120]
	      Gain		      "0.5"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain1"
	      Position		      [80, 165, 100, 185]
	      Gain		      "0.8660254"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Ports		      [2, 1]
	      Position		      [180, 101, 220, 139]
	      Inputs		      "-+"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      Ports		      [2, 1]
	      Position		      [255, 151, 315, 184]
	      Inputs		      "--"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_1"
	      Position		      [375, 55, 395, 75]
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_2"
	      Position		      [375, 110, 395, 130]
	      Port		      "2"
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_3"
	      Position		      [375, 160, 395, 180]
	      Port		      "3"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Gain1"
	      SrcPort		      1
	      Points		      [55, 0]
	      Branch {
		DstBlock		"Sum2"
		DstPort			2
	      }
	      Branch {
		Points			[0, -45]
		DstBlock		"Sum1"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "in_2"
	      SrcPort		      1
	      DstBlock		      "Gain1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "in_1"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, -45]
		DstBlock		"out_1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Gain"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      Points		      [50, 0]
	      Branch {
		Points			[0, -15; 85, 0]
		DstBlock		"Sum2"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Sum1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "out_3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "out_2"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "flux"
	  Position		  [730, 28, 760, 42]
	}
	Block {
	  BlockType		  Outport
	  Name			  "i abc\n"
	  Position		  [730, 298, 760, 312]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "w"
	  Position		  [730, 383, 760, 397]
	  Port			  "3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Te"
	  Position		  [730, 423, 760, 437]
	  Port			  "4"
	}
	Line {
	  SrcBlock		  "Fc"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn2"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Fcn3"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Mux2"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 0; 0, -80]
	    DstBlock		    "Fc"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -30]
	    Branch {
	      DstBlock		      "Fcn1"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 50]
	      Branch {
		DstBlock		"Fcn2"
		DstPort			1
	      }
	      Branch {
		Points			[0, 50; 0, 0]
		Branch {
		  DstBlock		  "Fcn3"
		  DstPort		  1
		}
		Branch {
		  Points		  [0, 65]
		  Branch {
		    DstBlock		    "Fcn4"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 45]
		    Branch {
		    Points		    [0, 60]
		    DstBlock		    "Fcn6"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Fcn5"
		    DstPort		    1
		    }
		  }
		}
	      }
	    }
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Voltage to flux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Voltage to flux"
	  SrcPort		  1
	  Points		  [30, 0; 0, -110]
	  Branch {
	    DstBlock		    "flux"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -10; -460, 0; 0, 65]
	    DstBlock		    "Mux2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum7"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tload"
	  SrcPort		  1
	  Points		  [430, 0]
	  DstBlock		  "Sum7"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn6"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Sum7"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 40]
	    DstBlock		    "Te"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Fcn5"
	  SrcPort		  1
	  DstBlock		  "alfa-beta\nto\nabc"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Transfer Fcn4"
	  SrcPort		  1
	  Points		  [90, 0]
	  Branch {
	    DstBlock		    "w"
	    DstPort		    1
	  }
	  Branch {
	    Labels		    [3, 0]
	    Points		    [0, -375; -515, 0; 0, 115]
	    DstBlock		    "Mux2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Fcn7"
	  SrcPort		  1
	  DstBlock		  "Mux2"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Fcn8"
	  SrcPort		  1
	  DstBlock		  "Mux2"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "V abc"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Fcn8"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Fcn7"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux3"
	  SrcPort		  1
	  DstBlock		  "i abc\n"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "alfa-beta\nto\nabc"
	  SrcPort		  1
	  DstBlock		  "Mux3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "alfa-beta\nto\nabc"
	  SrcPort		  2
	  DstBlock		  "Mux3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "alfa-beta\nto\nabc"
	  SrcPort		  3
	  DstBlock		  "Mux3"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Fcn4"
	  SrcPort		  1
	  DstBlock		  "alfa-beta\nto\nabc"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Rotor flux (Wb)"
      Ports		      [1]
      Position		      [495, 140, 525, 170]
      Location		      [6, 60, 806, 332]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "0.498"
      YMax		      "0.511"
      SaveToWorkspace	      on
      SaveName		      "fluxr"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Speed (rad/s)"
      Ports		      [1]
      Position		      [495, 245, 525, 275]
      Location		      [6, 160, 806, 526]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "299.85"
      YMax		      "300.125"
      SaveToWorkspace	      on
      SaveName		      "w"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Stator flux (Wb)"
      Ports		      [1]
      Position		      [495, 90, 525, 120]
      Location		      [6, 110, 806, 407]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "0.485"
      YMax		      "0.58"
      SaveToWorkspace	      on
      SaveName		      "fluxs"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Torque (Nm)"
      Ports		      [1]
      Position		      [495, 305, 525, 335]
      Location		      [171, 137, 971, 482]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "-50"
      YMax		      "350"
      SaveToWorkspace	      on
      SaveName		      "Te"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Voltage source"
      Ports		      [0, 1]
      Position		      [70, 131, 135, 209]
      TreatAsAtomicUnit	      off
      MaskPromptString	      "Vf -phase rms value (V)|f1 (Hz)"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "Vf=@1;f1=@2;"
      MaskInitialization      "Vm=sqrt(2)*Vf;\nw1=2*pi*f1;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "220|50"
      System {
	Name			"Voltage source"
	Location		[270, 192, 464, 432]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [105, 48, 110, 162]
	  ShowName		  off
	  Inputs		  "3"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave"
	  Position		  [25, 25, 55, 55]
	  SineType		  "Time based"
	  Amplitude		  "Vm"
	  Frequency		  "w1"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave1"
	  Position		  [25, 90, 55, 120]
	  SineType		  "Time based"
	  Amplitude		  "Vm"
	  Frequency		  "w1"
	  Phase			  "-2*pi/3"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave2"
	  Position		  [25, 150, 55, 180]
	  SineType		  "Time based"
	  Amplitude		  "Vm"
	  Frequency		  "w1"
	  Phase			  "2*pi/3"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Vabc"
	  Position		  [150, 98, 180, 112]
	}
	Line {
	  SrcBlock		  "Sine Wave"
	  SrcPort		  1
	  Points		  [15, 0; 0, 25]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sine Wave1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sine Wave2"
	  SrcPort		  1
	  Points		  [15, 0; 0, -20]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Vabc"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      DstBlock		      "Stator flux (Wb)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn "
      SrcPort		      1
      DstBlock		      "Rotor flux (Wb)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "MI"
      SrcPort		      1
      Points		      [0, 0; 45, 0]
      Branch {
	DstBlock		"Fcn "
	DstPort			1
      }
      Branch {
	Points			[0, 0]
	Branch {
	  DstBlock		  "Fcn"
	  DstPort		  1
	}
	Branch {
	  Points		  [-15, 0; 0, -90]
	  DstBlock		  " Flux (Wb)"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "MI"
      SrcPort		      3
      DstBlock		      "Speed (rad/s)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "MI"
      SrcPort		      2
      DstBlock		      "I abc  (A)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "MI"
      SrcPort		      4
      DstBlock		      "Torque (Nm)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Voltage source"
      SrcPort		      1
      DstBlock		      "MI"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Load torque"
      SrcPort		      1
      DstBlock		      "MI"
      DstPort		      2
    }
  }
}
