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


Performing analysis on: 4FGL_J1226.8-4907_daily_bin1798
RA = 186.721, Dec = -49.1265
tmin = 705369601, tmax = 705628801
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='17308081', job_status='RUN', time_executed='2023-05-13 01:25:29.467362', time_epoch_executed='1683966329.47' WHERE source_name='4FGL J1226.8-4907' and cadence='daily' and bin_id='1798'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17308081

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17308081/ft1_4FGL_J1226.8-4907_daily_bin1798.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17308081/ft1_4FGL_J1226.8-4907_daily_bin1798.fits outfile=/lscratch/kocevski/17308081/ft1_filteredMKT_4FGL_J1226.8-4907_daily_bin1798.fits ra=186.721 dec=-49.1265 rad=12.0 tmin=705369601.0 tmax=705628801.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.50
user 1.23
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.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/17308081/ft1_filteredMKT_4FGL_J1226.8-4907_daily_bin1798.fits evtable="EVENTS" outfile="/lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.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.18
sys 0.14

Number of photons that the gtmktime cut: 282

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17308081/ltcube_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.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/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits
.....................!
real 7.59
user 7.26
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.fits evtable="EVENTS" scfile=/lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17308081/ltcube_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.fits outfile=/lscratch/kocevski/17308081/expmap_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.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/17308081/ltcube_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.fits
.....................!
real 60.89
user 57.01
sys 3.36

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 G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 307 point sources and 10 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 J1226.8-4907 @ 186.721 -49.1265

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.fits scfile=/lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits outfile=/lscratch/kocevski/17308081/cmap_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.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=186.721 yref=-49.1265 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.35
user 0.19
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.fits scfile=/lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits outfile=/lscratch/kocevski/17308081/cmap_HighResolution_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.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=186.721 yref=-49.1265 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.36
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.fits evtable="EVENTS" scfile=/lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17308081/Model_4FGL_J1226.8-4907_daily_bin1798.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 CenA Lobes
adding source EG_v02
adding source FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source Westerlund 2
Working on...
/lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.fits.....................!
real 27.46
user 26.22
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.fits', '/lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits', expMap='/lscratch/kocevski/17308081/expmap_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.fits', expCube='/lscratch/kocevski/17308081/ltcube_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17308081/Model_4FGL_J1226.8-4907_daily_bin1798.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1226.8-4907'

4FGL J1226.8-4907
   Spectrum: PowerLaw
544    Prefactor:  8.325e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  2.812e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  4.073e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17308081/ft1_filtered_4FGL_J1226.8-4907_daily_bin1798.fits
Spacecraft file(s): /lscratch/kocevski/17308081/ft2_4FGL_J1226.8-4907_daily_bin1798.fits
Exposure map: /lscratch/kocevski/17308081/expmap_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.fits
Exposure cube: /lscratch/kocevski/17308081/ltcube_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17308081/Model_4FGL_J1226.8-4907_daily_bin1798.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) = 2196.80374502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14305E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .22149E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    18.103       1.0000          .0000       .10000E+07
     4 'Prefactor '    33.193       1.0000          .0000       .10000E+07
     5 'Prefactor '    .79103E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .86215E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .13119E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22204E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    27.238       1.0000          .0000       .10000E+07
    11 'norm      '    .55955E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    74.486       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    14 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    15 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    16 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    17 'Normalizat'    .51099E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    .11860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1134E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2196.750     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2319 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        16.054       -.24173E-05** at limit **
   2  Prefactor      .0000        20.282       -.22574E-05** at limit **
   3  Prefactor     18.098        26.735       -.14859E-05   -.12506E-02
   4  Prefactor     33.191        27.838        .22620E-05    .85643E-02
   5  Prefactor      .0000        25.936       -.84990E-06** at limit **
   6  Prefactor     .10000E-03    3.1702        .70090E-05** at limit **
   7  Prefactor     .87241E-06    43.266       -.31155E-05** at limit **
   8  norm          .96223E-06    44.557       -.26577E-05** at limit **
   9  Prefactor      .0000        30.069       -.46445E-06** at limit **
  10  Prefactor     27.392        15.092       -.60057E-06    .36928E-02
  11  norm          .44409E-09    96.677       -.28520E-05** at limit **
  12  Prefactor     74.444        80.919       -.61837E-05   -.38743E-01
  13  Prefactor     .10000E+07    689.52        .23288E-04** at limit **
  14  norm          .10000E+07    371.26        .17661E-04   -.21865E-01
  15  norm          .10000E+07    130.06        .10803E-04   -.15676E-01
  16  norm          .10000E+07    3584.2        .42173E-04** at limit **
  17  Normalizat    .51141E-01    .49239       -.21006E-03    .19883E-04
  18  Prefactor     .11860        .66460E-01    .26651E-04    .75238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 18.0976
  Prefactor  = 33.1908
  Prefactor  = 0
  Prefactor  = 0.0001
  Prefactor  = 8.72413e-07
  norm       = 9.6223e-07
  Prefactor  = 0
  Prefactor  = 27.3922
  norm       = 4.44089e-10
  Prefactor  = 74.4443
  Prefactor  = 1e+06
  norm       = 1e+06
  norm       = 999999
  norm       = 1e+06
  Normalizat = 0.0511414
  Prefactor  = 0.118602
 **********
 **   18 **HESSE 
 **********

 FCN=   2196.750     FROM HESSE     STATUS=NOT POSDEF   270 CALLS     2589 TOTAL
                     EDM=   .81E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        15.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        20.152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.098        72.389        .23512E-03   -1.5623    
   4  Prefactor     33.191        59.970        .17359E-03   -1.5593    
   5  Prefactor      .0000        25.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .87241E-06    87.152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .96223E-06    87.042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        29.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.392        3023.4        .19164E-03   -1.5603    
  11  norm          .44409E-09    96.082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     74.444        85.724        .11587E-03   -1.5535    
  13  Prefactor     .10000E+07    10032.        .42118E-03    1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E+07    13946.        .42118E-03    1.5696    
  15  norm          .10000E+07    24034.        .42118E-03    1.5693    
  16  norm          .10000E+07    4069.3        .42118E-03    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .51141E-01    9.6396        .21925       -1.4424    
  18  Prefactor     .11860        .41676        .34005E-01   -1.3526    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.05467e-05
Minuit parameter uncertainties:
  1  1.97904e-05
  2  2.02795e-05
  3  72.3914
  4  59.9709
  5  3.58574e-05
  6  2.02745e-06
  7  0.0174393
  8  0.018304
  9  1.86375e-05
  10  575.863
  11  0.000407376
  12  85.7257
  13  97.1418
  14  145.993
  15  238.032
  16  20.5572
  17  1.75953
  18  0.42781
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2196.74994961

Extracting fit parameters...

4FGL J1226.8-4907
   Spectrum: PowerLaw
544    Prefactor:  0.000e+00  3.586e-05  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  2.812e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  4.073e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1119    Prefactor:  1.186e-01  4.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1120        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1121        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1100   Normalization:  5.114e-02  1.760e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 186.721 -49.127
Photon Flux Upper Limit: 3.6076445565e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0285794181623 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17308081/likelihoodResults_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.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): 102
logL (Free Index) = 2196.74995731
delta logL = -7.69780990595e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2196.74994978
delta logL = -1.63262029673e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42372E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7749       1.0000          .0000       10.000    
     3 'Normalizat'    .51153E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1134E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2196.750     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      260 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10658E-07    1.1611        .42118E-03** at limit **
   2  Index         4.5897        7.1855        .50000        .17053E-08
   3  Normalizat    .51148E-01    .17360E-02    .21923       -.22842E-04
   4  Prefactor     .11860        .49119E-03    .34005E-01   -.11713E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06581e-08
  Index      = 4.58968
  Normalizat = 0.0511483
  Prefactor  = 0.118599
 **********
 **   18 **HESSE 
 **********

 FCN=   2196.750     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10658E-07    6.2960        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.5897        5.3674        .50000       -.82156E-01
   3  Normalizat    .51148E-01    .47038E-02    .83530E-02   -1.4423    
   4  Prefactor     .11860        .11408E-02    .13969E-03   -1.3526    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85661e-10
Minuit parameter uncertainties:
  1  0.000518459
  2  32499
  3  0.0047038
  4  0.00114084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2196.74994961
delta logL = -1.57797330758e-09

Extracting fit parameters...

4FGL J1226.8-4907
   Spectrum: PowerLaw
544    Prefactor:  1.066e-08  5.185e-04  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  4.590e+00  3.250e+04  0.000e+00  1.000e+01 (-1.000e+00)
546        Scale:  4.073e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1119    Prefactor:  1.186e-01  1.141e-03  0.000e+00  1.000e+01 ( 1.000e+00)
1120        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1121        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1100   Normalization:  5.115e-02  4.704e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 186.721 -49.127

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/17308081/cmap_HighResolution_705369601_705628801_4FGL_J1226.8-4907_daily_bin1798.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-02', job_status='DONE', photon_flux_upper_limit='3.61e-07', time_completed='2023-05-13 01:30:03.130601', job_id='17308081', GAL2='0.12', fit_tolerance='1e-08', EG2='0.05', EG='0.05', time_epoch_completed='1683966603.13', return_code2='102', ts='0.00', comment='SUCCESS', return_code='102', GAL='0.12', dlogl='-1.58e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1798' AND source_name='4FGL J1226.8-4907' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 13 01:30:03 PDT 2023

