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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin565
RA = 344.953, Dec = -15.8809
tmin = 385776001, tmax = 386035201
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='623301', job_status='RUN', time_executed='2021-09-29 04:36:14.155862', time_epoch_executed='1632915374.16' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623301

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623301/ft1_4FGL_J2259.8-1552_daily_bin565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623301/ft2_4FGL_J2259.8-1552_daily_bin565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623301/ft1_4FGL_J2259.8-1552_daily_bin565.fits outfile=/scratch/kocevski/623301/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin565.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=385776001.0 tmax=386035201.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.90
user 3.65
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623301/ft1_filtered_4FGL_J2259.8-1552_daily_bin565.fits" evtable="EVENTS" scfile=/scratch/kocevski/623301/ft2_4FGL_J2259.8-1552_daily_bin565.fits sctable="SC_DATA" outfile=/scratch/kocevski/623301/ltcube_385776001_386035201_4FGL_J2259.8-1552_daily_bin565.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/623301/ft2_4FGL_J2259.8-1552_daily_bin565.fits
.....................!
real 12.92
user 12.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623301/ft1_filtered_4FGL_J2259.8-1552_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/623301/ft2_4FGL_J2259.8-1552_daily_bin565.fits sctable="SC_DATA" expcube=/scratch/kocevski/623301/ltcube_385776001_386035201_4FGL_J2259.8-1552_daily_bin565.fits outfile=/scratch/kocevski/623301/expmap_385776001_386035201_4FGL_J2259.8-1552_daily_bin565.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/623301/ltcube_385776001_386035201_4FGL_J2259.8-1552_daily_bin565.fits
.....................!
real 190.32
user 185.36
sys 4.46

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/623301/ft1_filtered_4FGL_J2259.8-1552_daily_bin565.fits scfile=/scratch/kocevski/623301/ft2_4FGL_J2259.8-1552_daily_bin565.fits outfile=/scratch/kocevski/623301/cmap_385776001_386035201_4FGL_J2259.8-1552_daily_bin565.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.54
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623301/ft1_filtered_4FGL_J2259.8-1552_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/623301/ft2_4FGL_J2259.8-1552_daily_bin565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623301/Model_4FGL_J2259.8-1552_daily_bin565.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/623301/ft1_filtered_4FGL_J2259.8-1552_daily_bin565.fits.....................!
real 44.05
user 42.73
sys 1.16

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4787.13004259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7985       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.696       1.0000         .10000E-03   10000.    
     7 'norm      '    .14095       1.0000         .10000E-03   10000.    
     8 'norm      '    .65772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9540       1.0000         .10000E-03   10000.    
    11 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.127       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.405       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2674       1.0000         .10000E-03   10000.    
    21 'norm      '    6.5503       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6201       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.1714       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0530       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93465       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=   4787.045     FROM MIGRAD    STATUS=CONVERGED   1265 CALLS     4790 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.158        .18142E-02** at limit **
   2  Prefactor     .10000E-03    46.462        .18142E-02** at limit **
   3  Prefactor     .10000E-03    23.029        .18142E-02** at limit **
   4  norm          4.7980        3.9976        .12031E-03    .60949E-04
   5  Prefactor     38.167        69.653        .64897E-04   -.71824E-05
   6  Prefactor     13.692        16.982        .10823E-03   -.48108E-04
   7  norm          .14076        1.3217        .11159E-02    .36583E-03
   8  norm          .65767        2.3867        .19613E-03   -.64688E-04
   9  Prefactor     .10000E-03    41.069        .18142E-02** at limit **
  10  Prefactor     1.9674        23.744        .29683E-03   -.31406E-04
  11  norm          .10000E-03    1.0402        .10814E-02** at limit **
  12  Prefactor     .10000E-03    21.512        .18142E-02** at limit **
  13  Prefactor     .10000E-03    7.9940        .18142E-02** at limit **
  14  Prefactor     .10000E-03    16.189        .18142E-02** at limit **
  15  Prefactor     6.4293        9.6670        .79140E-03   -.39318E-04
  16  Prefactor     .10000E-03    4.0816        .13644E-02** at limit **
  17  Prefactor     15.126        12.622        .10298E-03   -.55420E-04
  18  Prefactor     19.439        140.50        .90923E-04   -.62518E-06
  19  Prefactor     .10000E-03    11.907        .18142E-02** at limit **
  20  Prefactor     1.2348        169.43        .39552E-03    .13998E-04
  21  norm          6.5597        13.564        .15680E-03    .34512E-04
  22  norm          1.6196        4.3170        .21741E-03   -.12033E-03
  23  Prefactor     .10000E-03    32.963        .18142E-02** at limit **
  24  Prefactor     .10000E-03    10.968        .18142E-02** at limit **
  25  Prefactor     .10000E-03    30.123        .18142E-02** at limit **
  26  norm          3.1713        .89270        .33521E-04    .25436E-04
  27  norm          .10000E-03    3.9371        .13352E-02** at limit **
  28  Normalizat    1.0531        .26778        .26331E-03   -.72190E-04
  29  Prefactor     .93454        .20713        .22933E-03    .68906E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.79797
  Prefactor  = 38.1671
  Prefactor  = 13.6919
  norm       = 0.140763
  norm       = 0.657673
  Prefactor  = 0.0001
  Prefactor  = 1.96743
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42931
  Prefactor  = 0.0001
  Prefactor  = 15.1261
  Prefactor  = 19.4393
  Prefactor  = 0.0001
  Prefactor  = 1.23483
  norm       = 6.55967
  norm       = 1.61964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17128
  norm       = 0.0001
  Normalizat = 1.05312
  Prefactor  = 0.934541
 **********
 **   18 **HESSE 
 **********

 FCN=   4787.045     FROM HESSE     STATUS=OK           525 CALLS     5315 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7980        3.9975        .48124E-05   -1.5270    
   5  Prefactor     38.167        69.656        .12979E-04   -1.4472    
   6  Prefactor     13.692        16.981        .43293E-05   -1.4968    
   7  norm          .14076        1.3122        .44635E-04   -1.5633    
   8  norm          .65767        2.3864        .78453E-05   -1.5546    
   9  Prefactor     .10000E-03    41.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9674        23.637        .11873E-04   -1.5427    
  11  norm          .10000E-03    1.0402        .21629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4293        9.6656        .31656E-04   -1.5201    
  16  Prefactor     .10000E-03    4.0817        .27289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.126        12.621        .41192E-05   -1.4930    
  18  Prefactor     19.439        134.99        .36369E-05   -1.4826    
  19  Prefactor     .10000E-03    11.907        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2348        159.24        .15821E-04   -1.5486    
  21  norm          6.5597        13.265        .62721E-05   -1.5196    
  22  norm          1.6196        4.3151        .86962E-05   -1.5453    
  23  Prefactor     .10000E-03    32.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.1713        .89265        .13409E-05   -1.5352    
  27  norm          .10000E-03    3.9374        .26704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0531        .26798        .10532E-04   -.91272    
  29  Prefactor     .93454        .20732        .91733E-05   -.94944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62762e-10
Minuit parameter uncertainties:
  1  3.32228e-06
  2  3.16441e-05
  3  1.81043e-05
  4  3.99774
  5  69.8045
  6  16.9866
  7  0.859286
  8  2.3867
  9  1.02868e-05
  10  13.6452
  11  1.76826e-05
  12  5.44133e-05
  13  1.25648e-06
  14  1.43201e-05
  15  9.66791
  16  4.85819e-06
  17  12.6228
  18  102.784
  19  6.01695e-06
  20  28.1211
  21  13.2712
  22  4.31589
  23  2.91167e-05
  24  2.82927e-05
  25  0.000112124
  26  0.892655
  27  3.75945e-06
  28  0.26832
  29  0.207494
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.858e-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:  9.345e-01  2.075e-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.053e+00  2.683e-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: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623301/likelihoodResults_385776001_386035201_4FGL_J2259.8-1552_daily_bin565.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): 0
logL (Free Index) = 4787.04599519
delta logL = -0.00116009426984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4787.044835
delta logL = 9.5104041975e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1174       1.0000          .0000       10.000    
     3 'Normalizat'    1.0531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93454       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=   4787.045     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      229 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8656        .13757E-02** at limit **
   2  Index         2.1031        5.9816        .50000        .27428E-04
   3  Normalizat    1.0531        .24108        .26331E-03    .10859E-03
   4  Prefactor     .93454        .20025        .22933E-03    .28129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.10313
  Normalizat = 1.05312
  Prefactor  = 0.934542
 **********
 **   18 **HESSE 
 **********

 FCN=   4787.045     FROM HESSE     STATUS=OK            29 CALLS      258 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2024        .27514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1031        6.0479        .50000       -.61796    
   3  Normalizat    1.0531        .24131        .10532E-04   -.91272    
   4  Prefactor     .93454        .20044        .45867E-04   -.94944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87052e-09
Minuit parameter uncertainties:
  1  0.000229581
  2  4.10472
  3  0.241564
  4  0.200602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623301': 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) = 4787.04483489
delta logL = 1.99281203095e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.296e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.103e+00  4.105e+00  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:  9.345e-01  2.006e-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.053e+00  2.416e-01  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/623301/cmap_HighResolution_385776001_386035201_4FGL_J2259.8-1552_daily_bin565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-29 04:48:27.669072', job_id='623301', GAL2='0.93', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632916107.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='565' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:48:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 623301: <4FGL_J2259.8-1552_daily_bin565> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin565> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:36:02 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:36:04 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:36:04 2021
Terminated at Wed Sep 29 04:48:28 2021
Results reported at Wed Sep 29 04:48:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin565 344.953 -15.8809 385776001 386035201 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 :                                   721.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            746 sec.

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

