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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin489
RA = 344.953, Dec = -15.8809
tmin = 366076801, tmax = 366336001
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='623172', job_status='RUN', time_executed='2021-09-29 04:38:21.975241', time_epoch_executed='1632915501.98' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623172

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623172/ft1_4FGL_J2259.8-1552_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623172/ft2_4FGL_J2259.8-1552_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623172/ft1_4FGL_J2259.8-1552_daily_bin489.fits outfile=/scratch/kocevski/623172/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin489.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=366076801.0 tmax=366336001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.37
user 5.09
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623172/ft1_filtered_4FGL_J2259.8-1552_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/623172/ft2_4FGL_J2259.8-1552_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/623172/ltcube_366076801_366336001_4FGL_J2259.8-1552_daily_bin489.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/623172/ft2_4FGL_J2259.8-1552_daily_bin489.fits
.....................!
real 11.82
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623172/ft1_filtered_4FGL_J2259.8-1552_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/623172/ft2_4FGL_J2259.8-1552_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/623172/ltcube_366076801_366336001_4FGL_J2259.8-1552_daily_bin489.fits outfile=/scratch/kocevski/623172/expmap_366076801_366336001_4FGL_J2259.8-1552_daily_bin489.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/623172/ltcube_366076801_366336001_4FGL_J2259.8-1552_daily_bin489.fits
.....................!
real 190.68
user 185.31
sys 5.02

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/623172/ft1_filtered_4FGL_J2259.8-1552_daily_bin489.fits scfile=/scratch/kocevski/623172/ft2_4FGL_J2259.8-1552_daily_bin489.fits outfile=/scratch/kocevski/623172/cmap_366076801_366336001_4FGL_J2259.8-1552_daily_bin489.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623172/ft1_filtered_4FGL_J2259.8-1552_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/623172/ft2_4FGL_J2259.8-1552_daily_bin489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623172/Model_4FGL_J2259.8-1552_daily_bin489.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/623172/ft1_filtered_4FGL_J2259.8-1552_daily_bin489.fits.....................!
real 55.42
user 54.05
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .12639E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9875       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.7344       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.152       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5963       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13365E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.866       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.831       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0571       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.228       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10845E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.9742       1.0000         .10000E-03   10000.    
    27 'norm      '    1.9085       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87545       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1984       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=   6195.159     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     3185 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9014        .11808E-05** at limit **
   2  Prefactor     .10003E-03    241.56       -.19586E-03** at limit **
   3  Prefactor     4.9873        1.0067        .41327E-07   -.34516E-05
   4  norm          5.1740        4.9636       -.49383E-05   -.61760E-03
   5  Prefactor     .10040E-03    16.507       -.89566E-05** at limit **
   6  Prefactor     .10000E-03    7.3226        .40180E-06** at limit **
   7  norm          6.7344        1.5285        .92182E-07    .22119E-02
   8  norm          1.8565        2.2505       -.38838E-06   -.69119E-03
   9  Prefactor     .10006E-03    50.069       -.73536E-04** at limit **
  10  Prefactor     .10000E-03    10.170       -.24382E-05** at limit **
  11  norm          .10000E-03    1.0442        .16539E-07** at limit **
  12  Prefactor     48.191        4.7909        .11792E-05    .26225E-02
  13  Prefactor     31.821        1.1489        .48733E-06    .63954E-04
  14  Prefactor     18.352        1.0233       -.31144E-06   -.48165E-04
  15  Prefactor     8.5971        1.1923       -.20356E-05   -.14336E-02
  16  Prefactor     .10021E-03    21.082        .32476E-04** at limit **
  17  Prefactor     .10000E-03    16.950       -.70363E-05** at limit **
  18  Prefactor     28.868        1.0484        .48130E-06   -.10383E-03
  19  Prefactor     32.831        1.0085        .17611E-06    .25575E-04
  20  Prefactor     .10000E-03    6.0467       -.11991E-05** at limit **
  21  norm          .10000E-03    3.1564       -.15611E-06** at limit **
  22  norm          2.0570        3.7463       -.63538E-06    .53047E-04
  23  Prefactor     17.224        1.0958       -.68073E-06    .87631E-04
  24  Prefactor     .10006E-03    87.105        .11929E-03** at limit **
  25  Prefactor     .10000E-03    13.637        .45248E-05** at limit **
  26  norm          2.9742        .91956        .79818E-07    .30301E-02
  27  norm          1.9087        4.3661       -.46486E-06    .19839E-03
  28  Normalizat    .87566        .25210        .24749E-06   -.57121E-04
  29  Prefactor     1.1983        .21011        .23918E-05    .97813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 4.98726
  norm       = 5.17404
  Prefactor  = 0.000100402
  Prefactor  = 0.0001
  norm       = 6.73444
  norm       = 1.85646
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.1912
  Prefactor  = 31.8206
  Prefactor  = 18.3522
  Prefactor  = 8.59706
  Prefactor  = 0.000100211
  Prefactor  = 0.000100001
  Prefactor  = 28.8677
  Prefactor  = 32.8309
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.057
  Prefactor  = 17.2241
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  norm       = 2.97419
  norm       = 1.90871
  Normalizat = 0.875661
  Prefactor  = 1.19826
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.159     FROM HESSE     STATUS=OK           625 CALLS     3810 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    247.65        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9873        110.87        .45018E-02   -1.5261    
   4  norm          5.1740        4.9933        .44174E-02   -1.5253    
   5  Prefactor     .10040E-03    36.006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.7344        1.5435        .38655E-02   -1.5189    
   8  norm          1.8565        2.2771        .76475E-02   -1.5435    
   9  Prefactor     .10006E-03    52.057        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .64003        .22734E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.191        29.385        .14447E-02   -1.4318    
  13  Prefactor     31.821        31.727        .17759E-02   -1.4579    
  14  Prefactor     18.352        22.318        .23371E-02   -1.4851    
  15  Prefactor     8.5971        9.8868        .34180E-02   -1.5121    
  16  Prefactor     .10021E-03    5.8998        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.868        40.714        .18642E-02   -1.4633    
  19  Prefactor     32.831        24.964        .17483E-02   -1.4561    
  20  Prefactor     .10000E-03    6.0183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0570        3.7769        .72039E-02   -1.5421    
  23  Prefactor     17.224        58.247        .24123E-02   -1.4878    
  24  Prefactor     .10006E-03    88.669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.9742        .92020        .58858E-02   -1.5363    
  27  norm          1.9087        4.3782        .75237E-02   -1.5432    
  28  Normalizat    .87566        .22444        .73658E-01   -.97321    
  29  Prefactor     1.1983        .17850        .53677E-01   -.86385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95864e-08
Minuit parameter uncertainties:
  1  3.14509e-05
  2  0.00576327
  3  47.1283
  4  4.99367
  5  0.00761739
  6  9.44938e-05
  7  1.54353
  8  2.27719
  9  0.00359166
  10  9.48664e-05
  11  8.72993e-06
  12  29.394
  13  31.7442
  14  22.3282
  15  9.88869
  16  0.00222917
  17  0.000261042
  18  40.7534
  19  24.9716
  20  2.69153e-05
  21  3.68555e-05
  22  3.7773
  23  58.44
  24  0.00446657
  25  0.000150388
  26  0.920203
  27  4.37888
  28  0.224679
  29  0.178586
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.002e-04  2.229e-03  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:  1.198e+00  1.786e-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:  8.757e-01  2.247e-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: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623172/likelihoodResults_366076801_366336001_4FGL_J2259.8-1552_daily_bin489.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) = 6195.15906945
delta logL = -0.000138116404742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6195.15906942
delta logL = -0.000138093681016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96337E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1318       1.0000          .0000       10.000    
     3 'Normalizat'    .87566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1983       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=   6195.159     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      222 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18900        .90715E-01** at limit **
   2  Index         2.1470        8.8465        .50000       -.27640E-05
   3  Normalizat    .87566        .97365E-03    .73658E-01    .45379E-04
   4  Prefactor     1.1983        .81913E-03    .53678E-01    .52350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14701
  Normalizat = 0.875664
  Prefactor  = 1.19826
 **********
 **   18 **HESSE 
 **********

 FCN=   6195.159     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      257 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.985        .36560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1470        8.8598        .50000       -.60723    
   3  Normalizat    .87566        .73306E-02    .32597E-03   -.97321    
   4  Prefactor     1.1983        .61761E-02    .23732E-03   -.86385    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.22698e-09
Minuit parameter uncertainties:
  1  0.000338408
  2  119.105
  3  0.00733065
  4  0.00617611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623172': 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) = 6195.15893131
delta logL = 1.52895154315e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.384e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.147e+00  1.191e+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:  1.198e+00  6.176e-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:  8.757e-01  7.331e-03  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/623172/cmap_HighResolution_366076801_366336001_4FGL_J2259.8-1552_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-09-29 04:50:22.896773', job_id='623172', GAL2='1.20', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632916222.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='489' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 623172: <4FGL_J2259.8-1552_daily_bin489> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin489 344.953 -15.8809 366076801 366336001 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 :                                   718.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

