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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1000
RA = 344.953, Dec = -15.8809
tmin = 498528001, tmax = 498787201
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='627202', job_status='RUN', time_executed='2021-09-29 04:51:14.243349', time_epoch_executed='1632916274.24' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627202

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627202/ft1_4FGL_J2259.8-1552_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627202/ft2_4FGL_J2259.8-1552_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627202/ft1_4FGL_J2259.8-1552_daily_bin1000.fits outfile=/scratch/kocevski/627202/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1000.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=498528001.0 tmax=498787201.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 5.00
user 4.72
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627202/ft1_filtered_4FGL_J2259.8-1552_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/627202/ft2_4FGL_J2259.8-1552_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/627202/ltcube_498528001_498787201_4FGL_J2259.8-1552_daily_bin1000.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/627202/ft2_4FGL_J2259.8-1552_daily_bin1000.fits
.....................!
real 11.93
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627202/ft1_filtered_4FGL_J2259.8-1552_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/627202/ft2_4FGL_J2259.8-1552_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/627202/ltcube_498528001_498787201_4FGL_J2259.8-1552_daily_bin1000.fits outfile=/scratch/kocevski/627202/expmap_498528001_498787201_4FGL_J2259.8-1552_daily_bin1000.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/627202/ltcube_498528001_498787201_4FGL_J2259.8-1552_daily_bin1000.fits
.....................!
real 191.48
user 185.87
sys 5.28

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/627202/ft1_filtered_4FGL_J2259.8-1552_daily_bin1000.fits scfile=/scratch/kocevski/627202/ft2_4FGL_J2259.8-1552_daily_bin1000.fits outfile=/scratch/kocevski/627202/cmap_498528001_498787201_4FGL_J2259.8-1552_daily_bin1000.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627202/ft1_filtered_4FGL_J2259.8-1552_daily_bin1000.fits scfile=/scratch/kocevski/627202/ft2_4FGL_J2259.8-1552_daily_bin1000.fits outfile=/scratch/kocevski/627202/cmap_HighResolution_498528001_498787201_4FGL_J2259.8-1552_daily_bin1000.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/627202/ft1_filtered_4FGL_J2259.8-1552_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/627202/ft2_4FGL_J2259.8-1552_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627202/Model_4FGL_J2259.8-1552_daily_bin1000.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/627202/ft1_filtered_4FGL_J2259.8-1552_daily_bin1000.fits.....................!
real 53.36
user 52.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58803E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1718       1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.153       1.0000         .10000E-03   10000.    
     4 'norm      '    13.201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3398       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .76063       1.0000         .10000E-03   10000.    
     8 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    30.767       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.205       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6374       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4211       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    78.986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.793       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8247       1.0000         .10000E-03   10000.    
    27 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3448       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53150       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=   5608.406     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3826 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    16.284       -.32808E-06** at limit **
   2  Prefactor     1.8270        549.58       -.21782E-04   -.29913E-04
   3  Prefactor     58.260        50.632       -.35631E-05   -.25734E-03
   4  norm          13.210        5.0185        .26605E-06   -.49656E-05
   5  Prefactor     2.1737        394.74        .88673E-05    .14072E-04
   6  Prefactor     .10000E-03    9.2111       -.28301E-06** at limit **
   7  norm          .75996        1.1306        .70733E-07    .24029E-03
   8  norm          .10000E-03    1.7060       -.75548E-06** at limit **
   9  Prefactor     62.667        53.489       -.20796E-05   -.10728E-03
  10  Prefactor     .10000E-03    41.312       -.45214E-06** at limit **
  11  norm          30.765        3.1482       -.80440E-07    .10140E-03
  12  Prefactor     .10000E-03    21.565       -.45874E-07** at limit **
  13  Prefactor     .10000E-03    48.106        .59922E-06** at limit **
  14  Prefactor     17.199        14.215        .21601E-06    .32502E-04
  15  Prefactor     4.6346        11.587        .63202E-05   -.12622E-03
  16  Prefactor     7.4209        7.5765       -.81649E-07   -.54741E-05
  17  Prefactor     .10000E-03    9.5754        .10341E-06** at limit **
  18  Prefactor     78.964        57.393       -.25547E-06    .92511E-05
  19  Prefactor     20.791        26.202       -.15678E-06   -.29367E-05
  20  Prefactor     .10000E-03    3.6290        .24093E-07** at limit **
  21  norm          .10000E-03    1.9417        .16250E-07** at limit **
  22  norm          .10000E-03    2.4789        .13993E-06** at limit **
  23  Prefactor     .10000E-03    37.442        .34743E-06** at limit **
  24  Prefactor     .10000E-03    15.947        .13982E-06** at limit **
  25  Prefactor     .10000E-03    15.377        .44030E-07** at limit **
  26  norm          2.8243        .95281       -.22413E-07    .34735E-04
  27  norm          .10000E-03    10.020        .12415E-06** at limit **
  28  Normalizat    1.3447        .22823        .21585E-05   -.57514E-04
  29  Prefactor     .53163        .18253       -.23384E-05    .10625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100353
  Prefactor  = 1.82695
  Prefactor  = 58.2604
  norm       = 13.2099
  Prefactor  = 2.17369
  Prefactor  = 0.0001
  norm       = 0.759961
  norm       = 0.0001
  Prefactor  = 62.6666
  Prefactor  = 0.0001
  norm       = 30.765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1995
  Prefactor  = 4.63456
  Prefactor  = 7.4209
  Prefactor  = 0.0001
  Prefactor  = 78.9642
  Prefactor  = 20.7907
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82433
  norm       = 0.0001
  Normalizat = 1.34473
  Prefactor  = 0.531633
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.406     FROM HESSE     STATUS=OK           551 CALLS     4377 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    208.00        .57281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8270        581.68        .27942E-03   -1.5438    
   3  Prefactor     58.260        52.075        .26304E-03   -1.4180    
   4  norm          13.210        5.0031        .48824E-03   -1.4981    
   5  Prefactor     2.1737        397.49        .26805E-03   -1.5413    
   6  Prefactor     .10000E-03    9.2600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .75996        1.0588        .90176E-03   -1.5534    
   8  norm          .10000E-03    1.7159        .18857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     62.667        53.474        .50716E-04   -1.4123    
  10  Prefactor     .10000E-03    41.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.765        3.1278        .39952E-04   -1.4598    
  12  Prefactor     .10000E-03    21.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.199        14.148        .96558E-04   -1.4878    
  15  Prefactor     4.6346        11.950        .93448E-03   -1.5277    
  16  Prefactor     7.4209        7.5789        .14723E-03   -1.5163    
  17  Prefactor     .10000E-03    9.6099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     78.964        57.402        .45187E-04   -1.3928    
  19  Prefactor     20.791        26.202        .87838E-04   -1.4796    
  20  Prefactor     .10000E-03    3.6317        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9426        .10191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.5720        .23013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8243        .95119        .40944E-04   -1.5372    
  27  norm          .10000E-03    10.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3447        .26630        .26507E-03   -.82241    
  29  Prefactor     .53163        .21210        .32679E-03   -1.1055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4916e-09
Minuit parameter uncertainties:
  1  0.0172
  2  65.8517
  3  52.1152
  4  5.0033
  5  59.1903
  6  1.20123e-05
  7  1.05885
  8  1.95324e-05
  9  53.5149
  10  8.61343e-05
  11  3.1278
  12  1.66938e-05
  13  3.06068e-05
  14  14.1503
  15  11.9557
  16  7.57989
  17  6.26142e-06
  18  57.442
  19  26.2161
  20  8.51601e-07
  21  2.35153e-07
  22  2.53097e-06
  23  3.01907e-05
  24  9.68682e-06
  25  4.63713e-06
  26  0.951193
  27  1.01471e-05
  28  0.266569
  29  0.212414
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  7.421e+00  7.580e+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:  5.316e-01  2.124e-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.345e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.08e-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) = 5607.71434849
delta logL = 0.691877790803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5607.7088599
delta logL = 0.697366384866

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3233       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3205       1.0000          .0000       10.000    
     3 'Normalizat'    1.3555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52716       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=   5607.709     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      217 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3336        8.7827        .34740E-02   -.14065E-02
   2  Index         1.3197        .51446        .27499       -.34181E-04
   3  Normalizat    1.3554        .21524        .59755E-01   -.30804E-05
   4  Prefactor     .52727        .17493        .74082E-01    .25809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.33364
  Index      = 1.31968
  Normalizat = 1.35542
  Prefactor  = 0.527273
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.709     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3336        9.2890        .69479E-03   -1.5131    
   2  Index         1.3197        .61402        .10752E-01   -.82724    
   3  Normalizat    1.3554        .25140        .26425E-03   -.81927    
   4  Prefactor     .52727        .20404        .32805E-03   -1.1074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22245e-12
Minuit parameter uncertainties:
  1  9.29064
  2  0.617441
  3  0.251625
  4  0.204321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627202': 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) = 5607.70885722
delta logL = 0.697369061983

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  8.334e+00  9.291e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.320e+00  6.174e-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:  5.273e-01  2.043e-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.355e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.67
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 1.32 +/- 0.62
Photon Flux (Free Index): 8.17e-09 +/- 1.02e-08
Energy Flux (Free Index): 4.70e-05 +/- 7.66e-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/627202/cmap_HighResolution_498528001_498787201_4FGL_J2259.8-1552_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='4.70e-05', photon_flux_error='2.11e-08', dlogl='6.97e-01', energy_flux='1.06e-05', photon_flux2='8.17e-09', job_status='DONE', time_completed='2021-09-29 05:02:37.762840', photon_index_error2='0.62', photon_index2='1.32', ts='4.27', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='7.66e-05', EG='1.34', time_epoch_completed='1632916957.76', return_code='0', job_id='627202', GAL2='0.53', EG2='1.36', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='1.02e-08', ts2='5.67', photon_index='2.13' WHERE bin_id='1000' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:02:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 627202: <4FGL_J2259.8-1552_daily_bin1000> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1000> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 04:50:31 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:50:33 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:50:33 2021
Terminated at Wed Sep 29 05:02:38 2021
Results reported at Wed Sep 29 05:02:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1000 344.953 -15.8809 498528001 498787201 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 :                                   664.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

