/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 = 17322
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1727.2+0644_weekly_bin853
RA = 261.806, Dec = 6.7445
tmin = 754876801, tmax = 755481601
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='59978389', job_status='RUN', time_executed='2024-12-10 00:56:26.463060', time_epoch_executed='1733820986.46' WHERE source_name='4FGL J1727.2+0644' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978389

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978389/ft1_4FGL_J1727.2+0644_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978389/ft1_4FGL_J1727.2+0644_weekly_bin853.fits outfile=/lscratch/kocevski/59978389/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin853.fits ra=261.806 dec=6.7445 rad=12.0 tmin=754876801.0 tmax=755481601.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 3.61
user 3.25
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.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/59978389/ft1_filteredMKT_4FGL_J1727.2+0644_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.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.47
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 3735

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978389/ltcube_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.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/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits
.....................!
real 20.36
user 19.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978389/ltcube_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.fits outfile=/lscratch/kocevski/59978389/expmap_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.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/59978389/ltcube_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.fits
.....................!
real 73.76
user 69.09
sys 4.27

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/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.fits scfile=/lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits outfile=/lscratch/kocevski/59978389/cmap_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.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.59
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.fits scfile=/lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits outfile=/lscratch/kocevski/59978389/cmap_HighResolution_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.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.46
user 0.26
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978389/Model_4FGL_J1727.2+0644_weekly_bin853.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/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.fits.....................!
real 136.15
user 134.45
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.fits', '/lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits', expMap='/lscratch/kocevski/59978389/expmap_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.fits', expCube='/lscratch/kocevski/59978389/ltcube_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978389/Model_4FGL_J1727.2+0644_weekly_bin853.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/59978389/ft1_filtered_4FGL_J1727.2+0644_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978389/ft2_4FGL_J1727.2+0644_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978389/expmap_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978389/ltcube_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978389/Model_4FGL_J1727.2+0644_weekly_bin853.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) = 39449.5469441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66585E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .95222       1.0000          .0000       .10000E+07
     3 'Prefactor '    .17954E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4135       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.6970       1.0000          .0000       .10000E+07
     6 'Prefactor '    35.528       1.0000          .0000       .10000E+07
     7 'norm      '    .49695       1.0000          .0000       .10000E+07
     8 'Prefactor '    .25878E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .66275E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .54717E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.3795       1.0000          .0000       .10000E+07
    12 'norm      '    2.9426       1.0000          .0000       .10000E+07
    13 'norm      '    1.2286       1.0000          .0000       .10000E+07
    14 'norm      '    .97916       1.0000          .0000       .10000E+07
    15 'norm      '    6.4002       1.0000          .0000       .10000E+07
    16 'norm      '    4.5868       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0866       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=   39449.55     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1318 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    7.4622        .23574E-06** at limit **
   2  Prefactor     .96405        4.1160        .95350E-07    .15116E-01
   3  Prefactor     .10159E-07    29.563        .15264E-06** at limit **
   4  Prefactor     1.4113        4.3973       -.58389E-07   -.65305E-03
   5  Prefactor     4.6922        5.2859        .42537E-07   -.51374E-04
   6  Prefactor     35.507        3.5884       -.22845E-07    .11626    
   7  norm          .49789        .95476       -.27805E-07   -.81822E-03
   8  Prefactor      .0000        3.2623       -.25185E-07** at limit **
   9  norm           .0000        2.5028       -.31249E-07** at limit **
  10  Prefactor     .55511E-10    18.252        .11353E-06** at limit **
  11  Prefactor     6.3793        1.8308       -.27073E-07   -.41179E-02
  12  norm          2.9704        5.9415        .81197E-07    .44604E-02
  13  norm          1.2287        1.2225       -.21517E-07   -.12155E-02
  14  norm          .97907        .44198        .76854E-08    .11429E-02
  15  norm          6.3936        4.1518        .85203E-10   -.67364E-03
  16  norm          4.5925        4.6856        .24471E-07    .68576E-03
  17  Normalizat    1.0823        .19977       -.54643E-06   -.47698E-04
  18  Prefactor     1.0866        .42579E-01   -.12433E-06   -.19839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Prefactor  = 0.964052
  Prefactor  = 1.01585e-08
  Prefactor  = 1.41127
  Prefactor  = 4.6922
  Prefactor  = 35.5072
  norm       = 0.497891
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 6.37932
  norm       = 2.97043
  norm       = 1.22868
  norm       = 0.979065
  norm       = 6.39364
  norm       = 4.59251
  Normalizat = 1.08235
  Prefactor  = 1.08657
 **********
 **   18 **HESSE 
 **********

 FCN=   39449.55     FROM HESSE     STATUS=OK           282 CALLS     1600 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    7.3014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .96405        4.1453        .42215E-03   -1.5688    
   3  Prefactor     .10159E-07    29.251        .17175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4113        4.4405        .91049E-03   -1.5684    
   5  Prefactor     4.6922        5.2922        .46408E-03   -1.5665    
   6  Prefactor     35.507        99.810        .16779E-03   -1.5589    
   7  norm          .49789        .97448        .79017E-03   -1.5694    
   8  Prefactor      .0000        3.2610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.5013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    18.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3793        1.8336        .39715E-03   -1.5657    
  12  norm          2.9704        5.9498        .59183E-03   -1.5673    
  13  norm          1.2287        1.2173        .10147E-02   -1.5686    
  14  norm          .97907        .44271        .43026E-04   -1.5688    
  15  norm          6.3936        4.1490        .39650E-03   -1.5657    
  16  norm          4.5925        4.6869        .46976E-03   -1.5665    
  17  Normalizat    1.0823        .18577        .14181       -.90321    
  18  Prefactor     1.0866        .38667E-01    .38120E-01   -.89897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32535e-06
Minuit parameter uncertainties:
  1  0.000110378
  2  3.99812
  3  0.0010904
  4  4.44049
  5  5.29222
  6  99.8152
  7  0.974477
  8  4.28057e-06
  9  1.54688e-05
  10  7.22641e-05
  11  1.83357
  12  5.94977
  13  1.21733
  14  0.442711
  15  4.14898
  16  4.68689
  17  0.18588
  18  0.0386684
Done.

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

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  5.551e-11  7.226e-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.087e+00  3.867e-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:  1.082e+00  1.859e-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: 6.4780050518e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00511718539877 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59978389/likelihoodResults_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.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) = 39449.5728241
delta logL = -0.0263174029678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 39449.5465067
delta logL = -1.97032932192e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   39449.55     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      188 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        18.246        .42118E-03** at limit **
   2  Index         2.8321        1.0057       -.21304E-06     .0000    
   3  Normalizat    1.0823        1.1690       -.49179E-05   -.33803E-04
   4  Prefactor     1.0866        1.1578        .27468E-06   -.11544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.83211
  Normalizat = 1.08235
  Prefactor  = 1.08657
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   39449.55     FROM HESSE     STATUS=FAILED         9 CALLS      197 TOTAL
                     EDM=   .12E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .90846        1.9783       -.21304E-06   -.44846    
   3  Normalizat    1.0823        1.1690       -.49179E-05   -.90321    
   4  Prefactor     1.0866        1.1578        .27468E-06   -.89897    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.15701e-12
Minuit parameter uncertainties:
  1  2.24207e-05
  2  1.01424
  3  1.19885
  4  1.18634
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) = 39449.5465067
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J1727.2+0644
   Spectrum: PowerLaw
244    Prefactor:  0.000e+00  2.242e-05  0.000e+00  1.000e+06 ( 1.000e-13)
245        Index:  2.832e+00  1.014e+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.087e+00  1.186e+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:  1.082e+00  1.199e+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/59978389/cmap_HighResolution_754876801_755481601_4FGL_J1727.2+0644_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2024-12-10 01:12:15.606214', job_id='59978389', GAL2='1.09', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1733821935.61', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='853' AND source_name='4FGL J1727.2+0644' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:12:15 PST 2024

