/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 25 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin354
RA = 344.953, Dec = -15.8809
tmin = 331084801, tmax = 331344001
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='622946', job_status='RUN', time_executed='2021-09-29 04:36:02.700869', time_epoch_executed='1632915362.7' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622946

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622946/ft1_4FGL_J2259.8-1552_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622946/ft1_4FGL_J2259.8-1552_daily_bin354.fits outfile=/scratch/kocevski/622946/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin354.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=331084801.0 tmax=331344001.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.35
user 3.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.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/622946/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin354.fits evtable="EVENTS" outfile="/scratch/kocevski/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.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.46
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/622946/ltcube_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.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/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits
.....................!
real 11.76
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/622946/ltcube_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.fits outfile=/scratch/kocevski/622946/expmap_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.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/622946/ltcube_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.fits
.....................!
real 190.31
user 185.11
sys 4.88

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/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.fits scfile=/scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits outfile=/scratch/kocevski/622946/cmap_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.fits scfile=/scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits outfile=/scratch/kocevski/622946/cmap_HighResolution_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622946/Model_4FGL_J2259.8-1552_daily_bin354.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/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.fits.....................!
real 51.51
user 50.23
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.fits', '/scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits', expMap='/scratch/kocevski/622946/expmap_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.fits', expCube='/scratch/kocevski/622946/ltcube_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/622946/Model_4FGL_J2259.8-1552_daily_bin354.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/622946/ft1_filtered_4FGL_J2259.8-1552_daily_bin354.fits
Spacecraft file(s): /scratch/kocevski/622946/ft2_4FGL_J2259.8-1552_daily_bin354.fits
Exposure map: /scratch/kocevski/622946/expmap_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.fits
Exposure cube: /scratch/kocevski/622946/ltcube_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/622946/Model_4FGL_J2259.8-1552_daily_bin354.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) = 6011.56153128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.275       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    65.472       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5947       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.856       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25968E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5430       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27457E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13207E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.209       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.3595       1.0000         .10000E-03   10000.    
    26 'norm      '    4.3668       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1585       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86674       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=   6011.542     FROM MIGRAD    STATUS=CONVERGED   1307 CALLS     4307 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.283        23.656        .88952E-04   -.11758E-03
   2  Prefactor     .10001E-03    139.69        .18142E-02** at limit **
   3  Prefactor     65.497        71.669        .49599E-04    .13079E-03
   4  norm          2.8677        3.5795        .15692E-03   -.18938E-03
   5  Prefactor     .10000E-03    34.084        .18142E-02** at limit **
   6  Prefactor     .10000E-03    13.065        .18142E-02** at limit **
   7  norm          1.5949        1.0208        .59783E-04    .55148E-05
   8  norm          .10000E-03    1.7505        .19742E-03** at limit **
   9  Prefactor     42.862        52.895        .61238E-04   -.18884E-03
  10  Prefactor     .10000E-03    10.781        .18142E-02** at limit **
  11  norm          .10000E-03    .58773        .91619E-03** at limit **
  12  Prefactor     .10000E-03    12.926        .18142E-02** at limit **
  13  Prefactor     .10000E-03    8.3913        .18142E-02** at limit **
  14  Prefactor     .10000E-03    53.793        .41705E-02** at limit **
  15  Prefactor     17.083        9.9330        .96906E-04   -.89161E-05
  16  Prefactor     1.8610        12.490        .30563E-03   -.68480E-04
  17  Prefactor     5.5359        11.612        .17065E-03    .20146E-03
  18  Prefactor     .10000E-03    326.47        .90469E-02** at limit **
  19  Prefactor     .10000E-03    10.401        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.8706        .59335E-01** at limit **
  21  norm          .10000E-03    1.4704        .91767E-03** at limit **
  22  norm          .10000E-03    1.5131        .92100E-03** at limit **
  23  Prefactor     .10000E-03    38.570        .18142E-02** at limit **
  24  Prefactor     13.211        17.106        .11021E-03    .31565E-04
  25  Prefactor     9.3626        25.278        .13100E-03    .39054E-05
  26  norm          4.3669        .94619        .33432E-04    .21423E-04
  27  norm          .10000E-03    2.8748        .12799E-02** at limit **
  28  Normalizat    1.1584        .24405        .26038E-03   -.40562E-04
  29  Prefactor     .86663        .19328        .24409E-03   -.10866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2833
  Prefactor  = 0.000100009
  Prefactor  = 65.4965
  norm       = 2.86773
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.59492
  norm       = 0.0001
  Prefactor  = 42.8616
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0832
  Prefactor  = 1.86101
  Prefactor  = 5.53588
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.2112
  Prefactor  = 9.36257
  norm       = 4.36688
  norm       = 0.0001
  Normalizat = 1.15844
  Prefactor  = 0.866633
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.542     FROM HESSE     STATUS=OK           533 CALLS     4840 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.283        23.654        .35581E-05   -1.4807    
   2  Prefactor     .10001E-03    139.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     65.497        71.669        .99198E-05   -1.4088    
   4  norm          2.8677        3.5793        .62768E-05   -1.5369    
   5  Prefactor     .10000E-03    34.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5949        1.0208        .23913E-05   -1.5455    
   8  norm          .10000E-03    1.7505        .39485E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.862        52.881        .12248E-04   -1.4398    
  10  Prefactor     .10000E-03    10.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .58834        .18324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    54.137        .83410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.083        9.9329        .38762E-05   -1.4881    
  16  Prefactor     1.8610        12.485        .12225E-04   -1.5435    
  17  Prefactor     5.5359        11.579        .68259E-05   -1.5237    
  18  Prefactor     .10000E-03    336.14        .36187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7453        .59705E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4704        .18353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5134        .18420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.211        17.105        .44084E-05   -1.4981    
  25  Prefactor     9.3626        25.279        .52399E-05   -1.5096    
  26  norm          4.3669        .94615        .13373E-05   -1.5290    
  27  norm          .10000E-03    2.8749        .25597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1584        .24427        .10415E-04   -.87897    
  29  Prefactor     .86663        .19350        .97635E-05   -.97317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95477e-10
Minuit parameter uncertainties:
  1  23.6645
  2  0.00226596
  3  71.7631
  4  3.57957
  5  0.000276035
  6  9.44721e-06
  7  1.02076
  8  1.50499e-05
  9  52.9391
  10  2.22777e-05
  11  6.91959e-06
  12  7.60875e-05
  13  1.08273e-06
  14  9.74221e-06
  15  9.93384
  16  9.64331
  17  11.5838
  18  0.00180529
  19  3.051e-05
  20  0.000206688
  21  1.44485e-06
  22  5.74602e-06
  23  0.000391518
  24  17.1114
  25  25.3082
  26  0.946155
  27  1.25809e-05
  28  0.244512
  29  0.193649
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.861e+00  9.643e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.666e-01  1.936e-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:  1.158e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/622946/likelihoodResults_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.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) = 6011.23481269
delta logL = 0.307617753618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6011.20031231
delta logL = 0.342118129092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2753       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2986       1.0000          .0000       10.000    
     3 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88367       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.

 FCN=   6011.200     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      234 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2652        29.446        .98385E-02    .86628E-03
   2  Index         3.3030        2.5905        .16281        .10062E-03
   3  Normalizat    1.1168        .41202E-01    .59827E-01    .92996E-05
   4  Prefactor     .88384        .33856E-01    .44797E-01    .10770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26516
  Index      = 3.30299
  Normalizat = 1.11683
  Prefactor  = 0.88384
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.200     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2652        24.090        .10596E-03   -1.5483    
   2  Index         3.3030        3.5295        .56901E-02   -.34628    
   3  Normalizat    1.1168        .24119        .26460E-03   -.89213    
   4  Prefactor     .88384        .19612        .24189E-03   -.96708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17677e-07
Minuit parameter uncertainties:
  1  11.046
  2  3.99171
  3  0.241424
  4  0.196279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622946': 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): 0
logL (Free Index) = 6011.20030652
delta logL = 0.34212392089

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.265e+00  1.105e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.303e+00  3.992e+00  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:  8.838e-01  1.963e-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:  1.117e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/622946/cmap_HighResolution_331084801_331344001_4FGL_J2259.8-1552_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-29 04:48:51.382588', job_id='622946', GAL2='0.88', fit_tolerance='1e-08', EG2='1.12', EG='1.16', time_epoch_completed='1632916131.38', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.42e-01', ts2='0.75', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='354' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:48:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 622946: <4FGL_J2259.8-1552_daily_bin354> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin354> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:27 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:29 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:35:29 2021
Terminated at Wed Sep 29 04:48:52 2021
Results reported at Wed Sep 29 04:48:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin354 344.953 -15.8809 331084801 331344001 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 :                                   763.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

