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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin337
RA = 344.953, Dec = -15.8809
tmin = 326678401, tmax = 326937601
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='622917', job_status='RUN', time_executed='2021-09-29 04:38:41.708445', time_epoch_executed='1632915521.71' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622917/ft1_4FGL_J2259.8-1552_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622917/ft2_4FGL_J2259.8-1552_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622917/ft1_4FGL_J2259.8-1552_daily_bin337.fits outfile=/scratch/kocevski/622917/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin337.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=326678401.0 tmax=326937601.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.40
user 3.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622917/ft1_filtered_4FGL_J2259.8-1552_daily_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/622917/ft2_4FGL_J2259.8-1552_daily_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/622917/ltcube_326678401_326937601_4FGL_J2259.8-1552_daily_bin337.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/622917/ft2_4FGL_J2259.8-1552_daily_bin337.fits
.....................!
real 11.70
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622917/ft1_filtered_4FGL_J2259.8-1552_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/622917/ft2_4FGL_J2259.8-1552_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/622917/ltcube_326678401_326937601_4FGL_J2259.8-1552_daily_bin337.fits outfile=/scratch/kocevski/622917/expmap_326678401_326937601_4FGL_J2259.8-1552_daily_bin337.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/622917/ltcube_326678401_326937601_4FGL_J2259.8-1552_daily_bin337.fits
.....................!
real 191.12
user 186.25
sys 4.52

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/622917/ft1_filtered_4FGL_J2259.8-1552_daily_bin337.fits scfile=/scratch/kocevski/622917/ft2_4FGL_J2259.8-1552_daily_bin337.fits outfile=/scratch/kocevski/622917/cmap_326678401_326937601_4FGL_J2259.8-1552_daily_bin337.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    122.32       1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.927       1.0000         .10000E-03   10000.    
     4 'norm      '    4.3149       1.0000         .10000E-03   10000.    
     5 'Prefactor '    83.203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.081       1.0000         .10000E-03   10000.    
     7 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9359       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2211       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6659       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7377       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .12617E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.202       1.0000         .10000E-03   10000.    
    26 'norm      '    1.9857       1.0000         .10000E-03   10000.    
    27 'norm      '    6.0072       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1634       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60978       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=   5473.890     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3652 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4664        .11984E-05** at limit **
   2  Prefactor     122.32        81.480        .93402E-06    .49024E-04
   3  Prefactor     60.940        74.364        .36337E-05    .12227E-03
   4  norm          4.3149        4.0174       -.78143E-08   -.98571E-04
   5  Prefactor     83.223        69.967        .45836E-05    .26592E-03
   6  Prefactor     22.076        15.123       -.15758E-06   -.96424E-04
   7  norm          .10000E-03    .35478        .14032E-06** at limit **
   8  norm          2.9356        2.3617        .96830E-08    .24836E-04
   9  Prefactor     .10000E-03    34.762       -.14166E-05** at limit **
  10  Prefactor     .10000E-03    3.7549        .16305E-06** at limit **
  11  norm          .10000E-03    .24995        .10540E-07** at limit **
  12  Prefactor     .10000E-03    5.2189       -.13839E-05** at limit **
  13  Prefactor     .10000E-03    9.9046       -.67314E-06** at limit **
  14  Prefactor     1.2323        25.439        .32711E-05   -.96697E-04
  15  Prefactor     .10000E-03    2.5662        .10118E-06** at limit **
  16  Prefactor     .10000E-03    2.7219       -.12934E-06** at limit **
  17  Prefactor     3.6595        9.2014       -.60130E-06   -.61788E-04
  18  Prefactor     .10000E-03    12.221       -.34491E-05** at limit **
  19  Prefactor     5.8989        13.714        .20238E-06   -.19036E-04
  20  Prefactor     1.7372        5.2065        .77830E-06   -.11398E-03
  21  norm          .10000E-03    1.9943       -.12256E-07** at limit **
  22  norm          .10000E-03    1.9514       -.12208E-06** at limit **
  23  Prefactor     .10000E-03    15.194        .34238E-05** at limit **
  24  Prefactor     .10000E-03    5.4816        .12955E-05** at limit **
  25  Prefactor     23.196        32.065       -.14867E-05   -.14853E-03
  26  norm          1.9853        .85436       -.30629E-06    .10699E-02
  27  norm          6.0090        6.6277        .31454E-05   -.14183E-02
  28  Normalizat    1.1636        .19183       -.51852E-06   -.11120E-03
  29  Prefactor     .60968        .15461       -.75424E-06   -.76069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 122.321
  Prefactor  = 60.94
  norm       = 4.31488
  Prefactor  = 83.223
  Prefactor  = 22.0763
  norm       = 0.0001
  norm       = 2.93561
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.23229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65945
  Prefactor  = 0.000100004
  Prefactor  = 5.89891
  Prefactor  = 1.73723
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 23.1962
  norm       = 1.98533
  norm       = 6.009
  Normalizat = 1.16359
  Prefactor  = 0.609676
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.890     FROM HESSE     STATUS=OK           545 CALLS     4197 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     122.32        81.441        .36391E-04   -1.3491    
   3  Prefactor     60.940        74.457        .51404E-04   -1.4145    
   4  norm          4.3149        4.0118        .13334E-03   -1.5292    
   5  Prefactor     83.223        71.659        .22018E-03   -1.3881    
   6  Prefactor     22.076        15.155        .85241E-04   -1.4768    
   7  norm          .10000E-03    .44197        .84547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9356        2.3515        .97932E-04   -1.5365    
   9  Prefactor     .10000E-03    34.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7710        .14001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .25637        .72170E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2894        .16613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.9452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2323        23.509        .40810E-03   -1.5486    
  15  Prefactor     .10000E-03    2.5685        .11576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7242        .11921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6595        8.6583        .21096E-03   -1.5325    
  18  Prefactor     .10000E-03    12.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8989        13.703        .16533E-03   -1.5222    
  20  Prefactor     1.7372        5.1915        .28226E-03   -1.5444    
  21  norm          .10000E-03    1.9996        .10195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0293        .20135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5499        .17009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.196        32.267        .83159E-04   -1.4744    
  26  norm          1.9853        .89638        .36239E-04   -1.5426    
  27  norm          6.0090        7.2103        .81912E-03   -1.5218    
  28  Normalizat    1.1636        .22150        .22471E-03   -.87736    
  29  Prefactor     .60968        .17802        .24790E-03   -1.0718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82734e-09
Minuit parameter uncertainties:
  1  0.000123431
  2  81.5158
  3  74.5708
  4  4.01203
  5  71.734
  6  15.1577
  7  6.67784e-06
  8  2.35161
  9  0.00029057
  10  1.17864e-05
  11  3.67512e-07
  12  0.000117867
  13  6.94317e-05
  14  10.7693
  15  6.78187e-06
  16  7.14932e-06
  17  8.66124
  18  0.00045104
  19  13.71
  20  5.1928
  21  7.94645e-07
  22  1.01649e-05
  23  0.000504142
  24  0.000113636
  25  32.291
  26  0.896382
  27  7.21136
  28  0.22168
  29  0.178181
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.149e-06  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.097e-01  1.782e-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.164e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/622917/likelihoodResults_326678401_326937601_4FGL_J2259.8-1552_daily_bin337.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) = 5473.8917286
delta logL = -0.00171702768966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5473.89001138
delta logL = 1.89717866306e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1097       1.0000          .0000       10.000    
     3 'Normalizat'    1.1637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60963       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=   5473.890     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10280E-03    3.9326        .12156E-01** at limit **
   2  Index         2.0188        6.0979        .50000        .53544E-04
   3  Normalizat    1.1636        .50904E-02    .22471E-03    .36225E-04
   4  Prefactor     .60968        .42066E-02    .24790E-03   -.11557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001028
  Index      = 2.01884
  Normalizat = 1.16359
  Prefactor  = 0.609675
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.890     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10280E-03    51.849        .12502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0188        5.5052        .50000       -.63880    
   3  Normalizat    1.1636        .18801E-01    .89882E-05   -.87736    
   4  Prefactor     .60968        .15536E-01    .99161E-05   -1.0718    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3935e-08
Minuit parameter uncertainties:
  1  0.0241206
  2  308.988
  3  0.0188008
  4  0.0155363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622917': 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) = 5473.89001037
delta logL = 1.20387267089e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.028e-04  2.412e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.019e+00  3.090e+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:  6.097e-01  1.554e-02  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.164e+00  1.880e-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/622917/cmap_HighResolution_326678401_326937601_4FGL_J2259.8-1552_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-03', job_status='DONE', photon_flux_upper_limit='4.17e-08', time_completed='2021-09-29 04:50:09.905164', job_id='622917', GAL2='0.61', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632916209.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='337' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:50:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 622917: <4FGL_J2259.8-1552_daily_bin337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin337 344.953 -15.8809 326678401 326937601 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 :                                   681.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

