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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin506
RA = 344.953, Dec = -15.8809
tmin = 370483201, tmax = 370742401
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='623203', job_status='RUN', time_executed='2021-09-29 04:38:50.739264', time_epoch_executed='1632915530.74' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623203/ft1_4FGL_J2259.8-1552_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623203/ft1_4FGL_J2259.8-1552_daily_bin506.fits outfile=/scratch/kocevski/623203/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin506.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.85
user 19.36
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623203/ft1_filtered_4FGL_J2259.8-1552_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/623203/ltcube_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.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/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits
.....................!
real 10.24
user 9.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623203/ft1_filtered_4FGL_J2259.8-1552_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/623203/ltcube_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.fits outfile=/scratch/kocevski/623203/expmap_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.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/623203/ltcube_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.fits
.....................!
real 191.68
user 186.41
sys 4.93

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/623203/ft1_filtered_4FGL_J2259.8-1552_daily_bin506.fits scfile=/scratch/kocevski/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits outfile=/scratch/kocevski/623203/cmap_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.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.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623203/ft1_filtered_4FGL_J2259.8-1552_daily_bin506.fits scfile=/scratch/kocevski/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits outfile=/scratch/kocevski/623203/cmap_HighResolution_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.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.61
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623203/ft1_filtered_4FGL_J2259.8-1552_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623203/Model_4FGL_J2259.8-1552_daily_bin506.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/623203/ft1_filtered_4FGL_J2259.8-1552_daily_bin506.fits.........................!
real 24.15
user 22.97
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/623203/ft1_filtered_4FGL_J2259.8-1552_daily_bin506.fits', '/scratch/kocevski/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits', expMap='/scratch/kocevski/623203/expmap_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.fits', expCube='/scratch/kocevski/623203/ltcube_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/623203/Model_4FGL_J2259.8-1552_daily_bin506.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/623203/ft1_filtered_4FGL_J2259.8-1552_daily_bin506.fits
Spacecraft file(s): /scratch/kocevski/623203/ft2_4FGL_J2259.8-1552_daily_bin506.fits
Exposure map: /scratch/kocevski/623203/expmap_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.fits
Exposure cube: /scratch/kocevski/623203/ltcube_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/623203/Model_4FGL_J2259.8-1552_daily_bin506.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1236.42150197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1231.65607403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1838       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48183       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4227       1.0000         .10000E-03   10000.    
     4 'norm      '    .10648E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32188E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3824       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8518       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44516E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    128.03       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    84.453       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23707E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0725       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .59622E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16333E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   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 '    19.673       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .27839E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .41155       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.3224       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1515       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1231.638     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      396 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1838        1.0129         .0000         .0000    
   2  Prefactor     .10000E-03    278.85        .18490E-04** at limit **
   3  Prefactor     6.4227        1.0031         .0000         .0000    
   4  norm          .10000E-03    5.8646        .35809E-05** at limit **
   5  Prefactor     .10024E-03    294.25       -.13718E-04** at limit **
   6  Prefactor     4.3824        1.0067         .0000         .0000    
   7  norm          .10000E-03    1.3334        .17820E-05** at limit **
   8  norm          1.4766        1.0734         .0000         .0000    
   9  Prefactor     7.8518        1.0020         .0000         .0000    
  10  Prefactor     .10000E-03    43.943        .58501E-05** at limit **
  11  norm          .10000E-03    4.4199       -.27675E-05** at limit **
  12  Prefactor     126.58        7.1566        .64673E-06   -.12032E-01
  13  Prefactor     1.7060        1.0511         .0000         .0000    
  14  Prefactor     5.0604        1.0050         .0000         .0000    
  15  Prefactor     84.825        3.1059       -.26420E-06   -.78706E-02
  16  Prefactor     .10001E-03    139.38        .23233E-04** at limit **
  17  Prefactor     1.0725        1.2121         .0000         .0000    
  18  Prefactor     .10000E-03    48.881        .31518E-04** at limit **
  19  Prefactor     .10000E-03    82.838        .56652E-05** at limit **
  20  Prefactor     .10000E-03    4.5035        .22826E-06** at limit **
  21  norm          .10000E-03    3.4124       -.71913E-06** at limit **
  22  norm          .10000E-03    7.6016       -.24716E-05** at limit **
  23  Prefactor     62.694        280.64       -.34452E-04   -.17676E-03
  24  Prefactor     .10000E-03    19.815       -.23078E-07** at limit **
  25  Prefactor     .10000E-03    98.412       -.86285E-05** at limit **
  26  norm          .10000E-03    .77203        .24210E-05** at limit **
  27  norm          4.1468        8.7539        .52021E-05   -.26128E-05
  28  Normalizat    1.1344        .57412       -.44857E-04    .14032E-04
  29  Prefactor     .74946        .42786        .35560E-04    .11867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18385
  Prefactor  = 0.000100002
  Prefactor  = 6.42266
  norm       = 0.0001
  Prefactor  = 0.000100244
  Prefactor  = 4.38242
  norm       = 0.0001
  norm       = 1.47656
  Prefactor  = 7.85184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 126.577
  Prefactor  = 1.70599
  Prefactor  = 5.06043
  Prefactor  = 84.8245
  Prefactor  = 0.000100015
  Prefactor  = 1.07248
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 62.6942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.14684
  Normalizat = 1.1344
  Prefactor  = 0.749458
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1231.638     FROM HESSE     STATUS=FAILED         9 CALLS      405 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     551.96        548.70         .0000       -1.5351    
   2  Prefactor     .10000E-03    .31339        .18490E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4227        1.0031         .0000       -1.5201    
   4  norm          .10000E-03    .20571        .35809E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10024E-03    .21081       -.13718E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3824        1.0067         .0000       -1.5289    
   7  norm          .10000E-03    .20571        .17820E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4766        1.0734         .0000       -1.5465    
   9  Prefactor     7.8518        1.0020         .0000       -1.5147    
  10  Prefactor     .10000E-03    .21359        .58501E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .20571       -.27675E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     126.58        .99438        .64673E-06   -1.3453    
  13  Prefactor     1.7060        1.0511         .0000       -1.5447    
  14  Prefactor     5.0604        1.0050         .0000       -1.5258    
  15  Prefactor     84.825        1.0022       -.26420E-06   -1.3863    
  16  Prefactor     .10001E-03    .25175        .23233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0725        1.2121         .0000       -1.5501    
  18  Prefactor     .10000E-03    .27739        .31518E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .26016        .56652E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20571        .22826E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571       -.71913E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571       -.24716E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     62.694        1.7819       -.34452E-04   -1.4123    
  24  Prefactor     .10000E-03    .28678       -.23078E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .29725       -.86285E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .20571        .24210E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.1468        .98619        .52021E-05   -1.5301    
  28  Normalizat    1.1344        1.1183       -.44857E-04   -.88655    
  29  Prefactor     .74946        1.0977        .35560E-04   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.29313e-10
Minuit parameter uncertainties:
  1  1.01289
  2  4.58312e-05
  3  1.00306
  4  4.72535e-07
  5  0.000453867
  6  1.00666
  7  3.37282e-08
  8  1.07343
  9  1.00204
  10  7.62009e-06
  11  3.02467e-06
  12  0.994382
  13  1.05112
  14  1.00497
  15  1.00219
  16  0.000122683
  17  1.21215
  18  1.20156e-05
  19  3.70501e-05
  20  8.79803e-08
  21  4.1874e-07
  22  5.34254e-07
  23  1.78191
  24  8.45873e-06
  25  6.55531e-06
  26  2.24593e-06
  27  0.986194
  28  1.14314
  29  1.13232
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1231.63840567

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.227e-04  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:  7.495e-01  1.132e+00  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.134e+00  1.143e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 2.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623203/likelihoodResults_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1231.63843965
delta logL = -3.39834432452e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1231.63843964
delta logL = -3.39779805927e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96344E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1318       1.0000          .0000       10.000    
     3 'Normalizat'    1.1344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74946       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=   1231.638     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      219 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    5.5256        .90714E-01** at limit **
   2  Index         1.9986        5.8734        .50000        .43088E-05
   3  Normalizat    1.1344        .37788E-02    .63151E-01   -.14330E-04
   4  Prefactor     .74946        .28436E-02    .43056E-01   -.10969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100197
  Index      = 1.99861
  Normalizat = 1.1344
  Prefactor  = 0.749458
 **********
 **   18 **HESSE 
 **********

 FCN=   1231.638     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      254 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    306.53        .49043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9986        6.0879        .50000       -.64385    
   3  Normalizat    1.1344        .11477E-01    .27933E-03   -.88655    
   4  Prefactor     .74946        .86409E-02    .25206E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88537e-08
Minuit parameter uncertainties:
  1  0.0156163
  2  160.082
  3  0.0114772
  4  0.00864092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623203': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1231.63840547
delta logL = 1.97951976588e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  7.495e-01  8.641e-03  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.134e+00  1.148e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/623203/cmap_HighResolution_370483201_370742401_4FGL_J2259.8-1552_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-02', job_status='DONE', photon_flux_upper_limit='2.71e-07', time_completed='2021-09-29 04:46:17.010893', job_id='623203', GAL2='0.75', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632915977.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.75', dlogl='1.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='506' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 623203: <4FGL_J2259.8-1552_daily_bin506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin506 344.953 -15.8809 370483201 370742401 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 :                                   413.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             177.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            630 sec.

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

