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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1804
RA = 329.962, Dec = -47.8518
tmin = 706924801, tmax = 707184001
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='18023757', job_status='RUN', time_executed='2023-05-31 01:00:44.688191', time_epoch_executed='1685520044.69' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1804'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18023757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18023757/ft1_4FGL_J2159.8-4751_daily_bin1804.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18023757/ft1_4FGL_J2159.8-4751_daily_bin1804.fits outfile=/lscratch/kocevski/18023757/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1804.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=706924801.0 tmax=707184001.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 2.15
user 1.95
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.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/18023757/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1804.fits evtable="EVENTS" outfile="/lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.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.21
sys 0.12

Number of photons that the gtmktime cut: 665

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18023757/ltcube_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.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/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits
.....................!
real 9.10
user 8.67
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.fits evtable="EVENTS" scfile=/lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18023757/ltcube_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.fits outfile=/lscratch/kocevski/18023757/expmap_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.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/18023757/ltcube_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.fits
.....................!
real 72.63
user 68.11
sys 4.13

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
Added 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2159.8-4751 @ 329.962 -47.8518

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.fits scfile=/lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits outfile=/lscratch/kocevski/18023757/cmap_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.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=329.962 yref=-47.8518 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.39
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.fits scfile=/lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits outfile=/lscratch/kocevski/18023757/cmap_HighResolution_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.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=329.962 yref=-47.8518 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.41
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.fits evtable="EVENTS" scfile=/lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18023757/Model_4FGL_J2159.8-4751_daily_bin1804.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 GAL_V02
Working on...
/lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.fits.....................!
real 23.76
user 22.36
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.fits', '/lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits', expMap='/lscratch/kocevski/18023757/expmap_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.fits', expCube='/lscratch/kocevski/18023757/ltcube_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18023757/Model_4FGL_J2159.8-4751_daily_bin1804.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2159.8-4751'

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.682e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18023757/ft1_filtered_4FGL_J2159.8-4751_daily_bin1804.fits
Spacecraft file(s): /lscratch/kocevski/18023757/ft2_4FGL_J2159.8-4751_daily_bin1804.fits
Exposure map: /lscratch/kocevski/18023757/expmap_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.fits
Exposure cube: /lscratch/kocevski/18023757/ltcube_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18023757/Model_4FGL_J2159.8-4751_daily_bin1804.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) = 7169.7359642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22815E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .10434E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14238E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .44747E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.798       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.012       1.0000          .0000       .10000E+07
     7 'norm      '    16.952       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.310       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.9302       1.0000          .0000       .10000E+07
    10 'Prefactor '    .32321E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .42541E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0096       1.0000          .0000       .10000E+07
    13 'Prefactor '    .85834E-02   1.0000          .0000       .10000E+07
    14 'norm      '    3.8163       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.1521       1.0000          .0000       .10000E+07
    16 'Prefactor '    12.133       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.4648       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.5468       1.0000          .0000       .10000E+07
    19 'Prefactor '    .64066       1.0000          .0000       .10000E+07
    20 'Prefactor '    .24863E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .28783E-01   1.0000          .0000       .10000E+07
    22 'Normalizat'    .99227       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7169.695     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1494 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    33.574        .27264E-06** at limit **
   2  norm           .0000        .56918       -.20329E-08** at limit **
   3  Prefactor      .0000        2.6064        .68462E-08** at limit **
   4  Prefactor     .12212E-08    23.715        .69457E-07** at limit **
   5  Prefactor     16.560        2.3533        .84584E-07   -.83119E-02
   6  Prefactor     11.029        4.8594        .19590E-07    .12496E-02
   7  norm          16.925        5.7089        .16889E-07   -.10984E-02
   8  Prefactor     10.300        8.6100        .50712E-07   -.14151E-02
   9  Prefactor     7.9260        7.1283        .90211E-08    .15880E-04
  10  Prefactor      .0000        12.178       -.79311E-08** at limit **
  11  Prefactor      .0000        3.5614        .15401E-07** at limit **
  12  Prefactor     2.0095        2.9229       -.31215E-07   -.53869E-03
  13  Prefactor      .0000        25.439       -.22910E-06** at limit **
  14  norm          3.8137        4.5655       -.23662E-07    .87397E-04
  15  Prefactor     6.1670        4.5572        .48237E-07   -.96786E-03
  16  Prefactor     11.747        2.4581        .31944E-07   -.23399E-02
  17  Prefactor     5.4773        5.5433       -.12057E-06   -.20457E-02
  18  Prefactor     3.5874        11.798        .62383E-07   -.10594E-02
  19  Prefactor     .10644        1734.5        .15114E-04** at limit **
  20  Prefactor      .0000        1.9548       -.13947E-08** at limit **
  21  Prefactor     .11102E-09    38.174        .17317E-06** at limit **
  22  Normalizat    .99336        .20715       -.59086E-05   -.23407E-03
  23  Prefactor     .93152        .14789        .25684E-05   -.21893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.22125e-09
  Prefactor  = 16.56
  Prefactor  = 11.0289
  norm       = 16.9254
  Prefactor  = 10.3005
  Prefactor  = 7.92595
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.00955
  Prefactor  = 0
  norm       = 3.81368
  Prefactor  = 6.167
  Prefactor  = 11.7466
  Prefactor  = 5.47729
  Prefactor  = 3.58735
  Prefactor  = 0.10644
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Normalizat = 0.993356
  Prefactor  = 0.931517
 **********
 **   18 **HESSE 
 **********

 FCN=   7169.695     FROM HESSE     STATUS=OK           422 CALLS     1916 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    33.763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .56634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.6101        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12212E-08    23.845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.560        22.851        .24410E-03   -1.5627    
   6  Prefactor     11.029        4.8651        .30166E-03   -1.5642    
   7  norm          16.925        5.7134        .24299E-03   -1.5626    
   8  Prefactor     10.300        8.6480        .31181E-03   -1.5644    
   9  Prefactor     7.9260        7.1498        .35582E-03   -1.5652    
  10  Prefactor      .0000        12.180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        3.5593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0095        2.9468        .73004E-03   -1.5680    
  13  Prefactor      .0000        26.045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8137        4.5728        .51642E-03   -1.5669    
  15  Prefactor     6.1670        4.5573        .40452E-03   -1.5658    
  16  Prefactor     11.747        23.736        .28734E-03   -1.5639    
  17  Prefactor     5.4773        5.5678        .42959E-03   -1.5661    
  18  Prefactor     3.5874        11.874        .53645E-03   -1.5670    
  19  Prefactor     .10644        37.194        .93964E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.9536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11102E-09    37.791        .16515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99336        .17942        .46070E-01   -.93253    
  23  Prefactor     .93152        .12798        .45409E-01   -.95048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61147e-08
Minuit parameter uncertainties:
  1  0.000191724
  2  6.7117e-07
  3  3.05714e-06
  4  0.000342692
  5  22.8516
  6  4.86507
  7  5.71342
  8  8.64799
  9  7.14978
  10  6.58888e-06
  11  8.07857e-07
  12  2.9468
  13  3.14389e-05
  14  4.57276
  15  4.55731
  16  23.7364
  17  5.56782
  18  11.8742
  19  3.97944
  20  3.15237e-06
  21  0.000122812
  22  0.179531
  23  0.128026
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  0.000e+00  6.589e-06  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.315e-01  1.280e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.934e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 5.23297114986e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00407618365699 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18023757/likelihoodResults_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.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) = 7169.69678395
delta logL = -0.00168398109508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7169.69509997
delta logL = -3.31056071445e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29976E-08   1.0000          .0000       .10000E+07
     2 'Index     '    2.9739       1.0000          .0000       10.000    
     3 'Normalizat'    .99336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7169.695     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      223 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.3648        .42118E-03** at limit **
   2  Index         1.4552        .77529       -.10440E-04     .0000    
   3  Normalizat    .99336        1.3234        .75962E-06    .26071E-04
   4  Prefactor     .93152        1.2748        .30320E-05    .33852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.45517
  Normalizat = 0.993357
  Prefactor  = 0.931516
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7169.695     FROM HESSE     STATUS=FAILED         9 CALLS      232 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.3648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .18485        1.3571       -.10440E-04   -.78803    
   3  Normalizat    .99336        1.3234        .75962E-06   -.93253    
   4  Prefactor     .93152        1.2748        .30320E-05   -.95048    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.20711e-13
Minuit parameter uncertainties:
  1  4.68452e-06
  2  0.781676
  3  1.37146
  4  1.31968
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) = 7169.69509997
delta logL = 2.8194335755e-11

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  0.000e+00  4.685e-06  0.000e+00  1.000e+06 ( 1.000e-13)
312        Index:  1.455e+00  7.817e-01  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.315e-01  1.320e+00  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  9.934e-01  1.371e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 329.962 -47.852

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/18023757/cmap_HighResolution_706924801_707184001_4FGL_J2159.8-4751_daily_bin1804.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2023-05-31 01:05:06.086327', job_id='18023757', GAL2='0.93', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1685520306.09', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1804' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed May 31 01:05:06 PDT 2023

