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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1382
RA = 344.953, Dec = -15.8809
tmin = 597542401, tmax = 597801601
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='628766', job_status='RUN', time_executed='2021-09-29 04:56:27.440050', time_epoch_executed='1632916587.44' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628766/ft1_4FGL_J2259.8-1552_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628766/ft2_4FGL_J2259.8-1552_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628766/ft1_4FGL_J2259.8-1552_daily_bin1382.fits outfile=/scratch/kocevski/628766/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1382.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=597542401.0 tmax=597801601.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.53
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628766/ft1_filtered_4FGL_J2259.8-1552_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/628766/ft2_4FGL_J2259.8-1552_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/628766/ltcube_597542401_597801601_4FGL_J2259.8-1552_daily_bin1382.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/628766/ft2_4FGL_J2259.8-1552_daily_bin1382.fits
.....................!
real 12.25
user 11.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628766/ft1_filtered_4FGL_J2259.8-1552_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/628766/ft2_4FGL_J2259.8-1552_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/628766/ltcube_597542401_597801601_4FGL_J2259.8-1552_daily_bin1382.fits outfile=/scratch/kocevski/628766/expmap_597542401_597801601_4FGL_J2259.8-1552_daily_bin1382.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/628766/ltcube_597542401_597801601_4FGL_J2259.8-1552_daily_bin1382.fits
.....................!
real 191.28
user 185.67
sys 5.29

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/628766/ft1_filtered_4FGL_J2259.8-1552_daily_bin1382.fits scfile=/scratch/kocevski/628766/ft2_4FGL_J2259.8-1552_daily_bin1382.fits outfile=/scratch/kocevski/628766/cmap_597542401_597801601_4FGL_J2259.8-1552_daily_bin1382.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628766/ft1_filtered_4FGL_J2259.8-1552_daily_bin1382.fits scfile=/scratch/kocevski/628766/ft2_4FGL_J2259.8-1552_daily_bin1382.fits outfile=/scratch/kocevski/628766/cmap_HighResolution_597542401_597801601_4FGL_J2259.8-1552_daily_bin1382.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628766/ft1_filtered_4FGL_J2259.8-1552_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/628766/ft2_4FGL_J2259.8-1552_daily_bin1382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628766/Model_4FGL_J2259.8-1552_daily_bin1382.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/628766/ft1_filtered_4FGL_J2259.8-1552_daily_bin1382.fits.....................!
real 56.76
user 55.48
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.851       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.502       1.0000         .10000E-03   10000.    
     4 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3796       1.0000         .10000E-03   10000.    
     8 'norm      '    .15524E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.516       1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.155       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.510       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1596       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2452       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.4836       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9333       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6816       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.365       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.292       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0588       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73138       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=   6729.659     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3787 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.768       -.24344E-05** at limit **
   2  Prefactor     46.879        78.963        .23085E-05    .52397E-04
   3  Prefactor     36.495        53.369       -.72299E-06   -.40421E-05
   4  norm          .10000E-03    1.9927        .32106E-06** at limit **
   5  Prefactor     26.245        59.866        .20480E-05    .29278E-04
   6  Prefactor     .10000E-03    2.2158       -.81065E-07** at limit **
   7  norm          2.3796        1.0179        .13582E-07   -.17041E-04
   8  norm          .10000E-03    2.0946       -.19434E-05** at limit **
   9  Prefactor     85.413        41.474        .28319E-05    .59508E-03
  10  Prefactor     61.159        33.795       -.10325E-05   -.55886E-04
  11  norm          3.3085        2.3624        .32206E-06   -.87680E-04
  12  Prefactor     28.513        44.527       -.63189E-06   -.36409E-04
  13  Prefactor     .10000E-03    33.702       -.36651E-05** at limit **
  14  Prefactor     7.1601        9.2319       -.48678E-06   -.59311E-04
  15  Prefactor     .10000E-03    2.7032       -.74979E-08** at limit **
  16  Prefactor     .10000E-03    3.9671       -.13905E-07** at limit **
  17  Prefactor     1.2457        5.5920        .13017E-05   -.45400E-04
  18  Prefactor     .10000E-03    19.828        .43327E-06** at limit **
  19  Prefactor     .10000E-03    33.480        .91739E-06** at limit **
  20  Prefactor     .10000E-03    7.3546        .78853E-07** at limit **
  21  norm          .10000E-03    3.3194        .38606E-07** at limit **
  22  norm          4.4833        2.9594        .90471E-07   -.68598E-06
  23  Prefactor     5.9233        67.180       -.92163E-06   -.12636E-05
  24  Prefactor     9.6840        10.526        .95416E-07    .42975E-04
  25  Prefactor     33.376        29.403       -.13376E-05   -.90652E-04
  26  norm          .10000E-03    .20640        .26079E-07** at limit **
  27  norm          15.292        5.5991       -.66014E-07   -.19609E-04
  28  Normalizat    1.0589        .18700        .20101E-05    .66865E-04
  29  Prefactor     .73124        .14889       -.17239E-05    .34776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 46.879
  Prefactor  = 36.4955
  norm       = 0.0001
  Prefactor  = 26.2446
  Prefactor  = 0.0001
  norm       = 2.37959
  norm       = 0.000100002
  Prefactor  = 85.4133
  Prefactor  = 61.1587
  norm       = 3.30854
  Prefactor  = 28.5133
  Prefactor  = 0.000100004
  Prefactor  = 7.16007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.24573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.48332
  Prefactor  = 5.92332
  Prefactor  = 9.68402
  Prefactor  = 33.3758
  norm       = 0.0001
  norm       = 15.2918
  Normalizat = 1.0589
  Prefactor  = 0.731239
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.659     FROM HESSE     STATUS=OK           553 CALLS     4340 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.879        79.113        .58580E-04   -1.4338    
   3  Prefactor     36.495        53.348        .66335E-04   -1.4499    
   4  norm          .10000E-03    2.0221        .11266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.245        59.840        .78230E-04   -1.4683    
   6  Prefactor     .10000E-03    2.2178        .11927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3796        1.0144        .50994E-04   -1.5399    
   8  norm          .10000E-03    3.6032        .20482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     85.413        43.714        .43442E-04   -1.3857    
  10  Prefactor     61.159        34.188        .51309E-04   -1.4142    
  11  norm          3.3085        2.3792        .63503E-04   -1.5344    
  12  Prefactor     28.513        44.331        .75033E-04   -1.4639    
  13  Prefactor     .10000E-03    34.121        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1601        9.1420        .14991E-03   -1.5173    
  15  Prefactor     .10000E-03    2.7042        .13172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9894        .15956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2457        5.2864        .35954E-03   -1.5485    
  18  Prefactor     .10000E-03    19.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3742        .14591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.4833        2.9558        .10588E-03   -1.5284    
  23  Prefactor     5.9233        66.938        .16485E-03   -1.5221    
  24  Prefactor     9.6840        10.456        .12879E-03   -1.5085    
  25  Prefactor     33.376        29.411        .69372E-04   -1.4552    
  26  norm          .10000E-03    .40435        .68654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.292        5.3170        .10242E-03   -1.4926    
  28  Normalizat    1.0589        .21486        .25278E-03   -.91083    
  29  Prefactor     .73124        .17035        .24973E-03   -1.0231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92962e-09
Minuit parameter uncertainties:
  1  0.00027477
  2  79.2911
  3  53.4177
  4  1.31351e-05
  5  59.9768
  6  1.6818e-06
  7  1.01438
  8  0.000180827
  9  43.7304
  10  34.1987
  11  2.37931
  12  44.3825
  13  0.000741604
  14  9.1438
  15  1.03499e-06
  16  1.78469e-06
  17  5.13299
  18  2.64268e-05
  19  7.4193e-05
  20  3.86666e-06
  21  2.0515e-07
  22  2.95585
  23  39.8806
  24  10.4577
  25  29.4239
  26  1.84855e-06
  27  5.31714
  28  0.215033
  29  0.170473
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.785e-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:  7.312e-01  1.705e-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.059e+00  2.150e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628766/likelihoodResults_597542401_597801601_4FGL_J2259.8-1552_daily_bin1382.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) = 6729.66018037
delta logL = -0.0011920872339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6729.6589883
delta logL = -1.35041773319e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1003       1.0000          .0000       10.000    
     3 'Normalizat'    1.0589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73122       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=   6729.659     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10262E-03    2.7408        .16593E-01** at limit **
   2  Index         2.0211        5.4005        .50000        .49315E-04
   3  Normalizat    1.0589        .33784E-02    .25278E-03   -.35080E-05
   4  Prefactor     .73124        .28384E-02    .24973E-03   -.13930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102624
  Index      = 2.02113
  Normalizat = 1.0589
  Prefactor  = 0.731236
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.659     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10262E-03    41.107        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0211        8.6445        .50000       -.63823    
   3  Normalizat    1.0589        .13082E-01    .10111E-04   -.91082    
   4  Prefactor     .73124        .10991E-01    .99894E-05   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49062e-08
Minuit parameter uncertainties:
  1  0.0207876
  2  190.849
  3  0.0130825
  4  0.0109913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628766': 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) = 6729.65898701
delta logL = 1.27290149976e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.026e-04  2.079e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.021e+00  1.908e+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.312e-01  1.099e-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.059e+00  1.308e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/628766/cmap_HighResolution_597542401_597801601_4FGL_J2259.8-1552_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-03', job_status='DONE', photon_flux_upper_limit='4.53e-08', time_completed='2021-09-29 05:10:30.493817', job_id='628766', GAL2='0.73', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632917430.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1382' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:10:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 628766: <4FGL_J2259.8-1552_daily_bin1382> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1382 344.953 -15.8809 597542401 597801601 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

