/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17389
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1727.2+0644_weekly_bin775
RA = 261.806, Dec = 6.7445
tmin = 707702401, tmax = 708307201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='18391285', job_status='RUN', time_executed='2023-06-13 01:00:50.295605', time_epoch_executed='1686643250.3' WHERE source_name='4FGL J1727.2+0644' and cadence='weekly' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18391285

Creating custom pfile directory:
/lscratch/kocevski/18391285/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=707702401.0 && nMetStart<708307201.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=707702401.0 && nMetStart<708307201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18391285/ft1_4FGL_J1727.2+0644_weekly_bin775.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=707702401.0 && nMetStart<708307201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18391285/ft1_4FGL_J1727.2+0644_weekly_bin775.fits outfile=/lscratch/kocevski/18391285/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin775.fits ra=261.806 dec=6.7445 rad=12.0 tmin=707702401.0 tmax=708307201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.82
user 4.51
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/18391285/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin775.fits evtable="EVENTS" outfile="/lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.39
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 2561

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18391285/ltcube_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits
.....................!
real 20.10
user 19.63
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits evtable="EVENTS" scfile=/lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18391285/ltcube_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits outfile=/lscratch/kocevski/18391285/expmap_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/18391285/ltcube_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits
.....................!
real 66.56
user 62.50
sys 3.62

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Added 208 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1727.2+0644 @ 261.806 6.7445

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits scfile=/lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits outfile=/lscratch/kocevski/18391285/cmap_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=261.806 yref=6.7445 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.40
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits scfile=/lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits outfile=/lscratch/kocevski/18391285/cmap_HighResolution_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=261.806 yref=6.7445 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.40
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits evtable="EVENTS" scfile=/lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18391285/Model_4FGL_J1727.2+0644_weekly_bin775.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source GAL_V02
adding source Kes 73
Working on...
/lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits.....................!
real 88.13
user 86.78
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits', '/lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits', expMap='/lscratch/kocevski/18391285/expmap_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits', expCube='/lscratch/kocevski/18391285/ltcube_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18391285/Model_4FGL_J1727.2+0644_weekly_bin775.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1727.2+0644'

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  8.444e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18391285/ft1_filtered_4FGL_J1727.2+0644_weekly_bin775.fits
Spacecraft file(s): /lscratch/kocevski/18391285/ft2_4FGL_J1727.2+0644_weekly_bin775.fits
Exposure map: /lscratch/kocevski/18391285/expmap_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits
Exposure cube: /lscratch/kocevski/18391285/ltcube_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18391285/Model_4FGL_J1727.2+0644_weekly_bin775.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 27925.7085084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 27925.6694502

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3235       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.3576       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22962E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .30531E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.5408       1.0000          .0000       .10000E+07
     6 'Prefactor '    .72353       1.0000          .0000       .10000E+07
     7 'norm      '    .14474E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    12.204       1.0000          .0000       .10000E+07
     9 'norm      '    3.7851       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79964E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.7552       1.0000          .0000       .10000E+07
    12 'norm      '    .50167E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .37536E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .36589       1.0000          .0000       .10000E+07
    15 'norm      '    .17155E-03   1.0000          .0000       .10000E+07
    16 'norm      '    3.8513       1.0000          .0000       .10000E+07
    17 'Normalizat'    .73752       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1047       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27925.66     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1037 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3609        4.3644        .26727E-06    .34988E-03
   2  Prefactor     9.3503        5.1251        .21839E-07   -.98005E-04
   3  Prefactor      .0000        19.857       -.21442E-05** at limit **
   4  Prefactor     .55511E-10    3.1563        .10722E-06** at limit **
   5  Prefactor     5.5402        6.2022        .83838E-06   -.24083E-03
   6  Prefactor      .0000        51.616       -.32096E-05** at limit **
   7  norm           .0000        1.1793        .81411E-07** at limit **
   8  Prefactor     12.150        8.4505       -.47895E-06    .95017E-03
   9  norm          3.7930        4.2025        .37116E-07    .37963E-03
  10  Prefactor      .0000        22.383        .19753E-05** at limit **
  11  Prefactor     2.7552        1.8860        .25982E-06    .25341E-02
  12  norm           .0000        2.2201        .71842E-07** at limit **
  13  norm           .0000        .88865       -.12841E-06** at limit **
  14  norm          .36606        .40521       -.18373E-06    .25873E-02
  15  norm           .0000        1.6438       -.49380E-06** at limit **
  16  norm          3.8481        1.3344        .88322E-07    .29478E-02
  17  Normalizat    .73711        .22013       -.15498E-04    .34688E-04
  18  Prefactor     1.1047        .48221E-01    .30941E-05    .24471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36094
  Prefactor  = 9.3503
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 5.54025
  Prefactor  = 0
  norm       = 0
  Prefactor  = 12.1501
  norm       = 3.79304
  Prefactor  = 0
  Prefactor  = 2.75524
  norm       = 0
  norm       = 0
  norm       = 0.366061
  norm       = 0
  norm       = 3.84809
  Normalizat = 0.737114
  Prefactor  = 1.10474
 **********
 **   18 **HESSE 
 **********

 FCN=   27925.66     FROM HESSE     STATUS=OK           282 CALLS     1319 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3609        4.4040        .67261E-03   -1.5677    
   2  Prefactor     9.3503        5.1561        .32737E-03   -1.5647    
   3  Prefactor      .0000        19.856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    3.1549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5402        6.2189        .42658E-03   -1.5661    
   6  Prefactor      .0000        51.613        .58818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.1543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.150        8.5267        .28649E-03   -1.5638    
   9  norm          3.7930        4.2151        .51862E-03   -1.5669    
  10  Prefactor      .0000        22.380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7552        1.9075        .61299E-03   -1.5675    
  12  norm           .0000        2.2181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .88632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .36606        .44123        .25429E-02   -1.5696    
  15  norm           .0000        1.6403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8481        8.5491        .51399E-03   -1.5669    
  17  Normalizat    .73711        .21983        .16146       -1.0245    
  18  Prefactor     1.1047        .46906E-01    .37412E-01   -.89315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81974e-08
Minuit parameter uncertainties:
  1  4.40403
  2  5.15615
  3  2.74635e-05
  4  1.92172e-05
  5  6.21887
  6  3.74458e-05
  7  2.17815e-06
  8  8.52668
  9  4.21506
  10  4.37885e-05
  11  1.90754
  12  6.57628e-06
  13  3.17537e-06
  14  0.44123
  15  4.67916e-07
  16  8.5491
  17  0.220097
  18  0.046908
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 27925.6622002

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  0.000e+00  4.379e-05  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.105e+00  4.691e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  7.371e-01  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 261.806 6.745
Photon Flux Upper Limit: 8.0246008236e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00633889134651 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18391285/likelihoodResults_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27925.6836086
delta logL = -0.021408425655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 27924.9504161
delta logL = 0.711784091283

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40754E-03   1.0000          .0000       .10000E+07
     2 'Index     '    9.9998       1.0000          .0000       10.000    
     3 'Normalizat'    .69100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1104       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27925.66     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      454 TOTAL
                     EDM=   .28E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        21.474       -.21790E-06** at limit **
   2  Index         2.6462        .94746        .12623E-04     .0000    
   3  Normalizat    .73711        .20468        .25541E-04    .98498E-06
   4  Prefactor     1.1047        .47442E-01   -.38492E-05    .53481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.64624
  Normalizat = 0.737114
  Prefactor  = 1.10474
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27925.66     FROM HESSE     STATUS=FAILED        11 CALLS      465 TOTAL
                     EDM=   .28E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        21.418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0993        2.3330        .12623E-04   -103.18    
   3  Normalizat    .73711        1.0623        .25541E-04    11.542    
   4  Prefactor     1.1047        1.1396       -.38492E-05    137.34    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.83609e-13
Minuit parameter uncertainties:
  1  1.73777e-06
  2  1.41516
  3  1.09441
  4  1.16633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 27925.6622002
delta logL = 0.0

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  0.000e+00  1.738e-06  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.646e+00  1.415e+00  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  6.438e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.105e+00  1.166e+00  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  7.371e-01  1.094e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 261.806 6.745

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/18391285/cmap_HighResolution_707702401_708307201_4FGL_J1727.2+0644_weekly_bin775.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.02e-08', time_completed='2023-06-13 01:11:29.446465', job_id='18391285', GAL2='1.10', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1686643889.45', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='775' AND source_name='4FGL J1727.2+0644' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 13 01:11:29 PDT 2023

