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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin705
RA = 344.953, Dec = -15.8809
tmin = 422064001, tmax = 422323201
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='624550', job_status='RUN', time_executed='2021-09-29 04:42:27.292433', time_epoch_executed='1632915747.29' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='705'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624550

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624550/ft1_4FGL_J2259.8-1552_daily_bin705.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624550/ft2_4FGL_J2259.8-1552_daily_bin705.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624550/ft1_4FGL_J2259.8-1552_daily_bin705.fits outfile=/scratch/kocevski/624550/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin705.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=422064001.0 tmax=422323201.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.59
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624550/ft1_filtered_4FGL_J2259.8-1552_daily_bin705.fits" evtable="EVENTS" scfile=/scratch/kocevski/624550/ft2_4FGL_J2259.8-1552_daily_bin705.fits sctable="SC_DATA" outfile=/scratch/kocevski/624550/ltcube_422064001_422323201_4FGL_J2259.8-1552_daily_bin705.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/624550/ft2_4FGL_J2259.8-1552_daily_bin705.fits
.....................!
real 11.72
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624550/ft1_filtered_4FGL_J2259.8-1552_daily_bin705.fits evtable="EVENTS" scfile=/scratch/kocevski/624550/ft2_4FGL_J2259.8-1552_daily_bin705.fits sctable="SC_DATA" expcube=/scratch/kocevski/624550/ltcube_422064001_422323201_4FGL_J2259.8-1552_daily_bin705.fits outfile=/scratch/kocevski/624550/expmap_422064001_422323201_4FGL_J2259.8-1552_daily_bin705.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/624550/ltcube_422064001_422323201_4FGL_J2259.8-1552_daily_bin705.fits
.....................!
real 193.03
user 187.47
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/624550/ft1_filtered_4FGL_J2259.8-1552_daily_bin705.fits scfile=/scratch/kocevski/624550/ft2_4FGL_J2259.8-1552_daily_bin705.fits outfile=/scratch/kocevski/624550/cmap_422064001_422323201_4FGL_J2259.8-1552_daily_bin705.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624550/ft1_filtered_4FGL_J2259.8-1552_daily_bin705.fits scfile=/scratch/kocevski/624550/ft2_4FGL_J2259.8-1552_daily_bin705.fits outfile=/scratch/kocevski/624550/cmap_HighResolution_422064001_422323201_4FGL_J2259.8-1552_daily_bin705.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624550/ft1_filtered_4FGL_J2259.8-1552_daily_bin705.fits evtable="EVENTS" scfile=/scratch/kocevski/624550/ft2_4FGL_J2259.8-1552_daily_bin705.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624550/Model_4FGL_J2259.8-1552_daily_bin705.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/624550/ft1_filtered_4FGL_J2259.8-1552_daily_bin705.fits.....................!
real 44.10
user 42.81
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2880       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53163E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .38346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.452       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22912E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.2239       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5116       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    51.402       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0929       1.0000         .10000E-03   10000.    
    27 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2928       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65958       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=   4842.514     FROM MIGRAD    STATUS=CONVERGED   1313 CALLS     4808 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0952        .16775E-02** at limit **
   2  Prefactor     .10000E-03    56.332        .18142E-02** at limit **
   3  Prefactor     .10000E-03    30.969        .18142E-02** at limit **
   4  norm          18.682        5.4876        .84963E-04   -.67305E-04
   5  Prefactor     .10000E-03    29.891        .18142E-02** at limit **
   6  Prefactor     .10000E-03    5.9011        .16483E-02** at limit **
   7  norm          1.2878        1.2222        .71043E-04   -.97184E-03
   8  norm          .10000E-03    .72388        .57764E-03** at limit **
   9  Prefactor     .10000E-03    18.414        .18142E-02** at limit **
  10  Prefactor     .10001E-03    25.566        .38468E-02** at limit **
  11  norm          .38263        .64254        .82636E-03    .33906E-02
  12  Prefactor     .10000E-03    29.176        .18142E-02** at limit **
  13  Prefactor     .10000E-03    11.086        .18142E-02** at limit **
  14  Prefactor     .10000E-03    9.8401        .18142E-02** at limit **
  15  Prefactor     .10000E-03    3.0202        .11808E-02** at limit **
  16  Prefactor     10.452        9.0017        .12393E-03   -.46307E-04
  17  Prefactor     .10000E-03    2.8134        .11396E-02** at limit **
  18  Prefactor     .10007E-03    52.345        .13840    ** at limit **
  19  Prefactor     .10000E-03    17.999        .18142E-02** at limit **
  20  Prefactor     .10000E-03    6.4102        .17136E-02** at limit **
  21  norm          7.2207        6.3034        .14924E-03   -.41235E-03
  22  norm          4.5134        4.2679        .12844E-03   -.48064E-04
  23  Prefactor     .10000E-03    52.776        .18142E-02** at limit **
  24  Prefactor     .10000E-03    46.053        .18142E-02** at limit **
  25  Prefactor     51.349        45.766        .27969E-03   -.10003E-03
  26  norm          2.0926        .83785        .38806E-04   -.12656E-03
  27  norm          .10000E-03    6.1600        .16678E-02** at limit **
  28  Normalizat    1.2924        .24806        .23628E-03   -.80051E-03
  29  Prefactor     .65975        .19818        .25913E-03   -.15979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.6819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28783
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.382627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4521
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.22074
  norm       = 4.51337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.349
  norm       = 2.09263
  norm       = 0.0001
  Normalizat = 1.29242
  Prefactor  = 0.659753
 **********
 **   18 **HESSE 
 **********

 FCN=   4842.514     FROM HESSE     STATUS=OK           535 CALLS     5343 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0953        .33550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.335        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.682        5.4876        .33985E-05   -1.4843    
   5  Prefactor     .10000E-03    29.891        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9017        .32966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2878        1.2220        .28417E-05   -1.5481    
   8  norm          .10000E-03    .72389        .11553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    25.588        .76936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .38263        .63966        .16527E-03   -1.5584    
  12  Prefactor     .10000E-03    29.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0203        .23616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.452        9.0016        .24787E-04   -1.5061    
  17  Prefactor     .10000E-03    2.8135        .22793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    52.744        .13765       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.4111        .34273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.2207        6.3033        .59696E-05   -1.5170    
  22  norm          4.5134        4.2677        .51375E-05   -1.5283    
  23  Prefactor     .10000E-03    52.780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     51.349        45.763        .11188E-04   -1.4274    
  26  norm          2.0926        .83772        .15523E-05   -1.5419    
  27  norm          .10000E-03    6.1629        .33355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2924        .24827        .47256E-04   -.83793    
  29  Prefactor     .65975        .19836        .10365E-04   -1.0513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87258e-09
Minuit parameter uncertainties:
  1  3.3909e-06
  2  8.25707e-05
  3  1.85232e-05
  4  5.48776
  5  2.30476e-05
  6  7.36141e-06
  7  1.22203
  8  5.11164e-07
  9  6.07352e-07
  10  0.000941096
  11  0.639669
  12  1.94647e-05
  13  1.2258e-05
  14  5.94318e-06
  15  3.01685e-06
  16  9.00278
  17  1.2716e-06
  18  0.00381172
  19  2.42309e-05
  20  5.38971e-05
  21  6.30392
  22  4.26797
  23  5.24351e-05
  24  7.60914e-05
  25  45.7945
  26  0.837722
  27  6.43322e-05
  28  0.248497
  29  0.198575
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.045e+01  9.003e+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:  6.598e-01  1.986e-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.292e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.29e-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) = 4842.3330441
delta logL = 0.181156327554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4842.32808772
delta logL = 0.18611270874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.893       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7220       1.0000          .0000       10.000    
     3 'Normalizat'    1.3029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65690       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=   4842.328     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      240 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.900        27.629        .29040E-02   -.64821E-04
   2  Index         1.7227        1.3959        .18900        .42274E-04
   3  Normalizat    1.3030        .20991        .53258E-01   -.16105E-03
   4  Prefactor     .65692        .16791        .41825E-01   -.18526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8999
  Index      = 1.72268
  Normalizat = 1.30297
  Prefactor  = 0.656919
 **********
 **   18 **HESSE 
 **********

 FCN=   4842.328     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.900        11.074        .11616E-03   -1.5018    
   2  Index         1.7227        .67456        .10109E-01   -.71480    
   3  Normalizat    1.3030        .24201        .23548E-03   -.83478    
   4  Prefactor     .65692        .19674        .25969E-03   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12191e-10
Minuit parameter uncertainties:
  1  11.0764
  2  0.678203
  3  0.242223
  4  0.196945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624550': 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) = 4842.32808678
delta logL = 0.186113650231

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.190e+01  1.108e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.723e+00  6.782e-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:  6.569e-01  1.969e-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.303e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.86
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 1.72 +/- 0.68
Photon Flux (Free Index): 1.71e-08 +/- 2.35e-08
Energy Flux (Free Index): 2.60e-05 +/- 3.78e-05

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/624550/cmap_HighResolution_422064001_422323201_4FGL_J2259.8-1552_daily_bin705.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='2.60e-05', photon_flux_error='2.51e-08', dlogl='1.86e-01', energy_flux='1.49e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-29 04:53:09.981895', photon_index_error2='0.68', photon_index2='1.72', ts='4.48', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='3.78e-05', EG='1.29', time_epoch_completed='1632916389.98', return_code='0', job_id='624550', GAL2='0.66', EG2='1.30', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.35e-08', ts2='4.86', photon_index='2.13' WHERE bin_id='705' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:53:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 624550: <4FGL_J2259.8-1552_daily_bin705> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin705> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:40:29 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:40: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:40:31 2021
Terminated at Wed Sep 29 04:53:10 2021
Results reported at Wed Sep 29 04:53:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin705 344.953 -15.8809 422064001 422323201 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 :                                   641.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

