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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin284
RA = 344.953, Dec = -15.8809
tmin = 312940801, tmax = 313200001
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='621715', job_status='RUN', time_executed='2021-09-29 04:30:56.759758', time_epoch_executed='1632915056.76' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621715

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621715/ft1_4FGL_J2259.8-1552_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621715/ft2_4FGL_J2259.8-1552_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621715/ft1_4FGL_J2259.8-1552_daily_bin284.fits outfile=/scratch/kocevski/621715/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin284.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=312940801.0 tmax=313200001.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.48
user 3.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621715/ft2_4FGL_J2259.8-1552_daily_bin284.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/621715/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin284.fits evtable="EVENTS" outfile="/scratch/kocevski/621715/ft1_filtered_4FGL_J2259.8-1552_daily_bin284.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621715/ft1_filtered_4FGL_J2259.8-1552_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/621715/ft2_4FGL_J2259.8-1552_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/621715/ltcube_312940801_313200001_4FGL_J2259.8-1552_daily_bin284.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/621715/ft2_4FGL_J2259.8-1552_daily_bin284.fits
.....................!
real 11.84
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621715/ft1_filtered_4FGL_J2259.8-1552_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/621715/ft2_4FGL_J2259.8-1552_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/621715/ltcube_312940801_313200001_4FGL_J2259.8-1552_daily_bin284.fits outfile=/scratch/kocevski/621715/expmap_312940801_313200001_4FGL_J2259.8-1552_daily_bin284.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/621715/ltcube_312940801_313200001_4FGL_J2259.8-1552_daily_bin284.fits
.....................!
real 192.92
user 188.04
sys 4.46

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/621715/ft1_filtered_4FGL_J2259.8-1552_daily_bin284.fits scfile=/scratch/kocevski/621715/ft2_4FGL_J2259.8-1552_daily_bin284.fits outfile=/scratch/kocevski/621715/cmap_312940801_313200001_4FGL_J2259.8-1552_daily_bin284.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621715/ft1_filtered_4FGL_J2259.8-1552_daily_bin284.fits scfile=/scratch/kocevski/621715/ft2_4FGL_J2259.8-1552_daily_bin284.fits outfile=/scratch/kocevski/621715/cmap_HighResolution_312940801_313200001_4FGL_J2259.8-1552_daily_bin284.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/621715/ft1_filtered_4FGL_J2259.8-1552_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/621715/ft2_4FGL_J2259.8-1552_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621715/Model_4FGL_J2259.8-1552_daily_bin284.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/621715/ft1_filtered_4FGL_J2259.8-1552_daily_bin284.fits.....................!
real 57.12
user 55.67
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.125       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.247       1.0000         .10000E-03   10000.    
     7 'norm      '    .63522       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.910       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.900       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0132       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .80024       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.626       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33159       1.0000         .10000E-03   10000.    
    21 'norm      '    5.5228       1.0000         .10000E-03   10000.    
    22 'norm      '    .65841E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.807       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.7253       1.0000         .10000E-03   10000.    
    27 'norm      '    7.2831       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63672       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0027       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=   6663.004     FROM MIGRAD    STATUS=CONVERGED   1314 CALLS     4327 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1299        .18142E-02** at limit **
   2  Prefactor     .10000E-03    192.26        .18142E-02** at limit **
   3  Prefactor     .10000E-03    26.337        .18142E-02** at limit **
   4  norm          12.125        4.6033        .10237E-03    .43502E-03
   5  Prefactor     .10000E-03    34.938        .18142E-02** at limit **
   6  Prefactor     42.247        15.417        .61675E-04    .42581E-04
   7  norm          .63537        .60052        .61911E-03   -.13702E-02
   8  norm          5.1618        2.6009        .90203E-04   -.11598E-03
   9  Prefactor     .10000E-03    14.513        .18142E-02** at limit **
  10  Prefactor     .10000E-03    7.3867        .18142E-02** at limit **
  11  norm          .10000E-03    .48343        .92044E-03** at limit **
  12  Prefactor     16.911        18.992        .97396E-04   -.40621E-04
  13  Prefactor     .10000E-03    6.8769        .18142E-02** at limit **
  14  Prefactor     45.887        17.927        .59181E-04   -.89016E-03
  15  Prefactor     2.0157        11.627        .29175E-03    .44852E-04
  16  Prefactor     19.537        12.319        .90617E-04    .11379E-03
  17  Prefactor     .81051        51.299        .45489E-02   -.12932E-03
  18  Prefactor     46.745        167.52        .58720E-04    .32875E-04
  19  Prefactor     .10000E-03    6.4842        .18142E-02** at limit **
  20  Prefactor     .29197        955.41        .40996E-02    .64175E-04
  21  norm          5.5198        6.7278        .16646E-03   -.38150E-03
  22  norm          .67926E-01    21.252        .17130E-02    .13575E-02
  23  Prefactor     .10000E-03    30.388        .18142E-02** at limit **
  24  Prefactor     19.806        15.174        .89996E-04   -.38023E-04
  25  Prefactor     .10000E-03    34.412        .18142E-02** at limit **
  26  norm          3.7254        .96639        .33514E-04    .21120E-03
  27  norm          7.2834        7.0870        .14863E-03    .40082E-04
  28  Normalizat    .63672        .22171        .31453E-03    .23310E-03
  29  Prefactor     1.0027        .17904        .21809E-03    .74649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 12.1254
  Prefactor  = 0.0001
  Prefactor  = 42.2472
  norm       = 0.635369
  norm       = 5.16182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.9112
  Prefactor  = 0.0001
  Prefactor  = 45.8868
  Prefactor  = 2.01567
  Prefactor  = 19.5375
  Prefactor  = 0.810508
  Prefactor  = 46.7452
  Prefactor  = 0.0001
  Prefactor  = 0.291973
  norm       = 5.51985
  norm       = 0.0679264
  Prefactor  = 0.000100001
  Prefactor  = 19.8055
  Prefactor  = 0.000100001
  norm       = 3.72536
  norm       = 7.28335
  Normalizat = 0.636719
  Prefactor  = 1.00265
 **********
 **   18 **HESSE 
 **********

 FCN=   6663.004     FROM HESSE     STATUS=OK           529 CALLS     4856 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    192.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.125        4.6013        .40946E-05   -1.5011    
   5  Prefactor     .10000E-03    34.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.247        15.406        .24670E-05   -1.4407    
   7  norm          .63537        .60027        .24765E-04   -1.5549    
   8  norm          5.1618        2.6005        .18041E-04   -1.5254    
   9  Prefactor     .10000E-03    14.513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .48354        .18409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.911        18.979        .38958E-05   -1.4885    
  13  Prefactor     .10000E-03    6.8770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.887        17.023        .11836E-04   -1.4352    
  15  Prefactor     2.0157        11.610        .11670E-04   -1.5424    
  16  Prefactor     19.537        12.315        .36247E-05   -1.4824    
  17  Prefactor     .81051        46.512        .18195E-03   -1.5528    
  18  Prefactor     46.745        76.887        .11744E-04   -1.4339    
  19  Prefactor     .10000E-03    6.4842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .29197        197.15        .16398E-03   -1.5600    
  21  norm          5.5198        5.3136        .66585E-05   -1.5238    
  22  norm          .67926E-01    21.445        .34260E-03   -1.5656    
  23  Prefactor     .10000E-03    30.390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.806        15.173        .35999E-05   -1.4818    
  25  Prefactor     .10000E-03    34.424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.7254        .96643        .67028E-05   -1.5322    
  27  norm          7.2834        7.0866        .59450E-05   -1.5168    
  28  Normalizat    .63672        .21676        .12581E-04   -1.0645    
  29  Prefactor     1.0027        .17584        .87235E-05   -.92641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6525e-09
Minuit parameter uncertainties:
  1  6.008e-05
  2  0.00135613
  3  2.20217e-05
  4  4.60142
  5  1.56838e-05
  6  15.4071
  7  0.60028
  8  2.60058
  9  7.35032e-06
  10  2.2395e-05
  11  1.664e-05
  12  18.986
  13  4.59744e-05
  14  17.0243
  15  9.6777
  16  12.3165
  17  12.289
  18  77.0505
  19  1.99797e-05
  20  15.2217
  21  5.31402
  22  2.41294
  23  0.000385387
  24  15.1761
  25  0.000338526
  26  0.966433
  27  7.08742
  28  0.217054
  29  0.175944
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.954e+01  1.232e+01  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:  1.003e+00  1.759e-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:  6.367e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.83
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.76e-05

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) = 6662.92659434
delta logL = 0.077695459031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6662.92095428
delta logL = 0.0833355177174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.175       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4223       1.0000          .0000       10.000    
     3 'Normalizat'    .61435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0156       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6662.921     FROM MIGRAD    STATUS=FAILED       101 CALLS      317 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.161        23.574        .53193E-03   -.20582E-04
   2  Index         2.4231        1.0573        .55680E-02    .63068E-03
   3  Normalizat    .61373        .21689        .32008E-03   -.13816E-04
   4  Prefactor     1.0160        .17986        .21682E-03   -.14104E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6662.921     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      392 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.161        23.574        .15855E-03   -1.4955    
   2  Index         2.4231        1.0573        .58689E-03   -.54144    
   3  Normalizat    .61373        .21689        .35852E-03   -1.0740    
   4  Prefactor     1.0160        .17986        .26206E-03   -.92197    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6662.921     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      420 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.161        17.833        .21277E-04   -.22548E-04
   2  Index         2.4231        .80188        .11136E-02   -.62581E-05
   3  Normalizat    .61373        .21103        .12803E-04   -.13852E-04
   4  Prefactor     1.0160        .17656        .86730E-05   -.14157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1614
  Index      = 2.42313
  Normalizat = 0.613728
  Prefactor  = 1.01602
 **********
 **   18 **HESSE 
 **********

 FCN=   6662.921     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.161        17.163        .42554E-05   -1.4955    
   2  Index         2.4231        .77167        .44544E-04   -.54144    
   3  Normalizat    .61373        .21028        .25607E-05   -1.0740    
   4  Prefactor     1.0160        .17613        .17346E-05   -.92197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5756e-13
Minuit parameter uncertainties:
  1  17.1693
  2  0.775903
  3  0.210559
  4  0.176226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621715': 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) = 6662.92094983
delta logL = 0.0833399689036

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.416e+01  1.717e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.423e+00  7.759e-01  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:  1.016e+00  1.762e-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:  6.137e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.94
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.42 +/- 0.78
Photon Flux (Free Index): 6.89e-08 +/- 5.35e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/621715/cmap_HighResolution_312940801_313200001_4FGL_J2259.8-1552_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='2.19e-05', photon_flux_error='3.43e-08', dlogl='8.33e-02', energy_flux='2.79e-05', photon_flux2='6.89e-08', job_status='DONE', time_completed='2021-09-29 04:43:35.372226', photon_index_error2='0.78', photon_index2='2.42', ts='4.83', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='0.64', time_epoch_completed='1632915815.37', return_code='0', job_id='621715', GAL2='1.02', EG2='0.61', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='5.35e-08', ts2='4.94', photon_index='2.13' WHERE bin_id='284' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:43:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 621715: <4FGL_J2259.8-1552_daily_bin284> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin284> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:44 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30:47 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:30:47 2021
Terminated at Wed Sep 29 04:43:36 2021
Results reported at Wed Sep 29 04:43:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin284 344.953 -15.8809 312940801 313200001 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 :                                   750.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            772 sec.

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

