/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 94 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7418
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin836
RA = 344.953, Dec = -15.8809
tmin = 456019201, tmax = 456278401
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='625849', job_status='RUN', time_executed='2021-09-29 04:47:12.917826', time_epoch_executed='1632916032.92' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625849

Creating custom pfile directory:
/scratch/kocevski/625849/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=456019201.0 && nMetStart<456278401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=456019201.0 && nMetStart<456278401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625849/ft1_4FGL_J2259.8-1552_daily_bin836.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=456019201.0 && nMetStart<456278401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625849/ft1_4FGL_J2259.8-1552_daily_bin836.fits outfile=/scratch/kocevski/625849/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin836.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=456019201.0 tmax=456278401.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 6.89
user 6.65
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/625849/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/625849/ltcube_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.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 /scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits
.....................!
real 11.69
user 11.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/625849/ltcube_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.fits outfile=/scratch/kocevski/625849/expmap_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.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 /scratch/kocevski/625849/ltcube_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.fits
.....................!
real 190.84
user 185.26
sys 5.23

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

Setting source of interest to:
4FGL J2259.8-1552 @ 344.953 -15.8809

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.fits scfile=/scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits outfile=/scratch/kocevski/625849/cmap_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.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=344.953 yref=-15.8809 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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.fits scfile=/scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits outfile=/scratch/kocevski/625849/cmap_HighResolution_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.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=344.953 yref=-15.8809 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625849/Model_4FGL_J2259.8-1552_daily_bin836.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...
/scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.fits.....................!
real 41.08
user 39.84
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.fits', '/scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits', expMap='/scratch/kocevski/625849/expmap_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.fits', expCube='/scratch/kocevski/625849/ltcube_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/625849/Model_4FGL_J2259.8-1552_daily_bin836.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2259.8-1552'

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.289e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/625849/ft1_filtered_4FGL_J2259.8-1552_daily_bin836.fits
Spacecraft file(s): /scratch/kocevski/625849/ft2_4FGL_J2259.8-1552_daily_bin836.fits
Exposure map: /scratch/kocevski/625849/expmap_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.fits
Exposure cube: /scratch/kocevski/625849/ltcube_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/625849/Model_4FGL_J2259.8-1552_daily_bin836.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) = 4447.31707239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38231E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.057       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0820       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.548       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1820       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4245       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.525       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3294       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.158       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17309E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .81522       1.0000         .10000E-03   10000.    
    27 'norm      '    1.8096       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77465       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4447.224     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3235 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    21.269        .54679E-05** at limit **
   2  Prefactor     .10000E-03    43.075        .11029E-05** at limit **
   3  Prefactor     .10000E-03    24.738       -.12523E-05** at limit **
   4  norm          13.318        5.7121        .59614E-07   -.17622E-03
   5  Prefactor     .10000E-03    48.858       -.14516E-05** at limit **
   6  Prefactor     37.051        17.870        .81174E-06   -.55885E-04
   7  norm          3.0818        1.1768        .23765E-07   -.34925E-03
   8  norm          1.6600        3.9195        .20179E-05    .28804E-03
   9  Prefactor     47.628        62.272       -.84893E-05   -.17228E-03
  10  Prefactor     .10000E-03    3.5576        .31932E-07** at limit **
  11  norm          .10000E-03    .29888        .31525E-07** at limit **
  12  Prefactor     8.1831        13.252       -.29726E-07   -.46629E-05
  13  Prefactor     .10000E-03    4.5972        .11307E-06** at limit **
  14  Prefactor     .10000E-03    4.2764        .89772E-07** at limit **
  15  Prefactor     2.4228        9.4608        .26882E-05    .19163E-03
  16  Prefactor     .10000E-03    2.2336       -.10817E-07** at limit **
  17  Prefactor     .10000E-03    7.9008        .11409E-06** at limit **
  18  Prefactor     25.493        35.213        .18413E-05    .53876E-04
  19  Prefactor     .10000E-03    10.589       -.16293E-06** at limit **
  20  Prefactor     .10000E-03    4.0123       -.16515E-06** at limit **
  21  norm          .10000E-03    2.4460       -.82879E-07** at limit **
  22  norm          2.3277        2.8731       -.87320E-07   -.42855E-04
  23  Prefactor     10.095        46.637        .53993E-05    .31870E-04
  24  Prefactor     .10000E-03    27.449       -.12022E-05** at limit **
  25  Prefactor     .10000E-03    25.106       -.51740E-06** at limit **
  26  norm          .81530        .55089       -.36244E-07   -.54292E-03
  27  norm          1.8064        5.4052       -.31216E-06   -.67572E-04
  28  Normalizat    .77543        .20352        .13207E-05   -.16238E-03
  29  Prefactor     .90040        .16735       -.15374E-05   -.18477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3178
  Prefactor  = 0.0001
  Prefactor  = 37.051
  norm       = 3.08177
  norm       = 1.65996
  Prefactor  = 47.6282
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.18307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.42277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.32768
  Prefactor  = 10.0954
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.815297
  norm       = 1.80643
  Normalizat = 0.775427
  Prefactor  = 0.900402
 **********
 **   18 **HESSE 
 **********

 FCN=   4447.224     FROM HESSE     STATUS=OK           545 CALLS     3780 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    81.979        .46702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.318        5.7096        .99144E-04   -1.4978    
   5  Prefactor     .10000E-03    48.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.051        17.904        .65837E-04   -1.4490    
   7  norm          3.0818        1.1758        .42771E-04   -1.5357    
   8  norm          1.6600        3.9026        .15810E-03   -1.5450    
   9  Prefactor     47.628        62.716        .58151E-04   -1.4327    
  10  Prefactor     .10000E-03    3.5628        .12281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .30124        .35346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1831        13.158        .14016E-03   -1.5136    
  13  Prefactor     .10000E-03    4.5994        .13966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2927        .13466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4228        9.6140        .13142E-02   -1.5397    
  16  Prefactor     .10000E-03    2.2344        .97336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.493        35.265        .79290E-04   -1.4698    
  19  Prefactor     .10000E-03    10.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0212        .13037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4566        .10184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3277        2.8602        .11955E-03   -1.5403    
  23  Prefactor     10.095        47.185        .12572E-03   -1.5072    
  24  Prefactor     .10000E-03    27.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .81530        .56327        .34273E-04   -1.5527    
  27  norm          1.8064        5.5131        .22319E-03   -1.5439    
  28  Normalizat    .77543        .23527        .25881E-03   -1.0099    
  29  Prefactor     .90040        .19283        .21091E-03   -.96127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1294e-08
Minuit parameter uncertainties:
  1  0.0171188
  2  7.91718e-05
  3  9.12099e-05
  4  5.70985
  5  0.000139998
  6  17.9069
  7  1.17584
  8  3.90318
  9  62.8035
  10  5.56766e-08
  11  1.85381e-08
  12  13.1628
  13  6.70352e-06
  14  1.53458e-05
  15  9.62012
  16  7.06295e-07
  17  2.14155e-05
  18  35.2936
  19  2.48832e-05
  20  1.84671e-05
  21  5.95639e-06
  22  2.86035
  23  43.7072
  24  0.00058808
  25  3.25016e-05
  26  0.563269
  27  5.51461
  28  0.235581
  29  0.192974
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.063e-07  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  9.004e-01  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.754e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 3.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625849/likelihoodResults_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.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) = 4447.22550609
delta logL = -0.00197947923698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4447.2235267
delta logL = -8.9205968834e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1083       1.0000          .0000       10.000    
     3 'Normalizat'    .77535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4447.224     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.107        .99882E-02** at limit **
   2  Index         1.4969        5.4468        .50000        .67835E-06
   3  Normalizat    .77543        .97978E-02    .25881E-03   -.55977E-03
   4  Prefactor     .90040        .86024E-02    .21091E-03   -.68499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.49686
  Normalizat = 0.775426
  Prefactor  = 0.900401
 **********
 **   18 **HESSE 
 **********

 FCN=   4447.224     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    118.95        .11825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4969        5.8498        .50000       -.77628    
   3  Normalizat    .77543        .29530E-01    .51762E-04   -1.0099    
   4  Prefactor     .90040        .25927E-01    .42182E-04   -.96127    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.79359e-09
Minuit parameter uncertainties:
  1  8.97557e-05
  2  589.941
  3  0.0295304
  4  0.0259275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625849': No such file or directory
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) = 4447.2235194
delta logL = 7.20860043657e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.976e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.497e+00  5.899e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  9.004e-01  2.593e-02  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.754e-01  2.953e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.953 -15.881

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 /scratch/kocevski/625849/cmap_HighResolution_456019201_456278401_4FGL_J2259.8-1552_daily_bin836.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/625849

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-03', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-29 04:57:34.564824', job_id='625849', GAL2='0.90', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632916654.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='7.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='836' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:57:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 625849: <4FGL_J2259.8-1552_daily_bin836> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin836> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:45:29 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:45:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 04:45:31 2021
Terminated at Wed Sep 29 04:57:35 2021
Results reported at Wed Sep 29 04:57:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin836 344.953 -15.8809 456019201 456278401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2259.8-1552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   618.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            726 sec.

The output (if any) is above this job summary.

