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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin594
RA = 344.953, Dec = -15.8809
tmin = 393292801, tmax = 393552001
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='624383', job_status='RUN', time_executed='2021-09-29 04:43:29.475950', time_epoch_executed='1632915809.48' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624383

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624383/ft1_4FGL_J2259.8-1552_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624383/ft2_4FGL_J2259.8-1552_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624383/ft1_4FGL_J2259.8-1552_daily_bin594.fits outfile=/scratch/kocevski/624383/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin594.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=393292801.0 tmax=393552001.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 4.71
user 4.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624383/ft1_filtered_4FGL_J2259.8-1552_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/624383/ft2_4FGL_J2259.8-1552_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/624383/ltcube_393292801_393552001_4FGL_J2259.8-1552_daily_bin594.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/624383/ft2_4FGL_J2259.8-1552_daily_bin594.fits
.....................!
real 12.21
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624383/ft1_filtered_4FGL_J2259.8-1552_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/624383/ft2_4FGL_J2259.8-1552_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/624383/ltcube_393292801_393552001_4FGL_J2259.8-1552_daily_bin594.fits outfile=/scratch/kocevski/624383/expmap_393292801_393552001_4FGL_J2259.8-1552_daily_bin594.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/624383/ltcube_393292801_393552001_4FGL_J2259.8-1552_daily_bin594.fits
.....................!
real 191.68
user 185.20
sys 6.17

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/624383/ft1_filtered_4FGL_J2259.8-1552_daily_bin594.fits scfile=/scratch/kocevski/624383/ft2_4FGL_J2259.8-1552_daily_bin594.fits outfile=/scratch/kocevski/624383/cmap_393292801_393552001_4FGL_J2259.8-1552_daily_bin594.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624383/ft1_filtered_4FGL_J2259.8-1552_daily_bin594.fits scfile=/scratch/kocevski/624383/ft2_4FGL_J2259.8-1552_daily_bin594.fits outfile=/scratch/kocevski/624383/cmap_HighResolution_393292801_393552001_4FGL_J2259.8-1552_daily_bin594.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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624383/ft1_filtered_4FGL_J2259.8-1552_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/624383/ft2_4FGL_J2259.8-1552_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624383/Model_4FGL_J2259.8-1552_daily_bin594.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/624383/ft1_filtered_4FGL_J2259.8-1552_daily_bin594.fits.....................!
real 46.04
user 44.70
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12243E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17010E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0399       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11512E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.331       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58602       1.0000         .10000E-03   10000.    
    11 'norm      '    .11059E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57564E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6537       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.434       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1261       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.6158       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.810       1.0000         .10000E-03   10000.    
    26 'norm      '    1.1313       1.0000         .10000E-03   10000.    
    27 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99306       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84723       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=   5095.120     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4438 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4876        11.050        .75074E-07    .12338E-04
   2  Prefactor     .10000E-03    31.366       -.56461E-07** at limit **
   3  Prefactor     .14070E-03    44.483       -.40469E-05** at limit **
   4  norm          3.0393        3.1020        .78609E-07    .15487E-04
   5  Prefactor     .10000E-03    35.413        .56423E-07** at limit **
   6  Prefactor     17.331        15.702       -.12879E-07    .19214E-04
   7  norm          .10000E-03    .22055       -.50316E-09** at limit **
   8  norm          3.6738        2.4546       -.13697E-06    .75959E-04
   9  Prefactor     8.8025        57.610        .13583E-05    .47268E-04
  10  Prefactor     .61886        15.135        .17936E-05   -.16193E-03
  11  norm          .10000E-03    .92782       -.10412E-05** at limit **
  12  Prefactor     1.7866        69.598        .11548E-04    .13944E-03
  13  Prefactor     .10000E-03    3.8720        .56091E-07** at limit **
  14  Prefactor     .10000E-03    2.4967        .91538E-07** at limit **
  15  Prefactor     .11141E-01    13.235       -.21668E-05    .24884E-03
  16  Prefactor     .10000E-03    10.334       -.94434E-07** at limit **
  17  Prefactor     3.6535        4.3208       -.15453E-07   -.14347E-05
  18  Prefactor     10.448        29.452       -.13233E-06   -.25047E-04
  19  Prefactor     8.0964        24.824        .27379E-06    .32840E-04
  20  Prefactor     .10000E-03    10.058       -.87386E-06** at limit **
  21  norm          .10000E-03    5.1860       -.28353E-06** at limit **
  22  norm          9.6141        4.4729        .18931E-07    .67244E-05
  23  Prefactor     .10000E-03    27.108        .15141E-06** at limit **
  24  Prefactor     .10000E-03    5.7967        .67253E-07** at limit **
  25  Prefactor     19.833        39.821       -.72346E-06   -.86246E-04
  26  norm          1.1313        .59955       -.42789E-08    .10342E-07
  27  norm          .10000E-03    4.1045        .24580E-07** at limit **
  28  Normalizat    .99319        .19251        .27369E-06    .34770E-03
  29  Prefactor     .84719        .15356       -.19933E-06    .51719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.48759
  Prefactor  = 0.0001
  Prefactor  = 0.000140699
  norm       = 3.03933
  Prefactor  = 0.0001
  Prefactor  = 17.3305
  norm       = 0.0001
  norm       = 3.67384
  Prefactor  = 8.80247
  Prefactor  = 0.618859
  norm       = 0.0001
  Prefactor  = 1.78656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0111409
  Prefactor  = 0.0001
  Prefactor  = 3.65351
  Prefactor  = 10.4482
  Prefactor  = 8.09637
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.6141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8335
  norm       = 1.1313
  norm       = 0.0001
  Normalizat = 0.993189
  Prefactor  = 0.847189
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.120     FROM HESSE     STATUS=OK           571 CALLS     5009 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4876        11.043        .17156E-03   -1.5239    
   2  Prefactor     .10000E-03    31.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .14070E-03    40.913        .13910       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0393        3.0925        .12200E-03   -1.5359    
   5  Prefactor     .10000E-03    35.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.331        15.752        .96207E-04   -1.4875    
   7  norm          .10000E-03    .22740        .65403E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6738        2.4658        .79768E-04   -1.5325    
   9  Prefactor     8.8025        57.750        .13490E-03   -1.5115    
  10  Prefactor     .61886        30.890        .37495E-02   -1.5551    
  11  norm          .10000E-03    2.3349        .10975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7866        93.050        .30771E-03   -1.5441    
  13  Prefactor     .10000E-03    3.8749        .13717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4995        .11013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11141E-01    18.966        .70870E-01   -1.5687    
  16  Prefactor     .10000E-03    10.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6535        4.3194        .15731E-03   -1.5326    
  18  Prefactor     10.448        29.405        .12404E-03   -1.5061    
  19  Prefactor     8.0964        24.801        .14064E-03   -1.5139    
  20  Prefactor     .10000E-03    10.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.2907        .15852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.6141        4.4771        .94374E-04   -1.5088    
  23  Prefactor     .10000E-03    27.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.8018        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.833        39.921        .89990E-04   -1.4817    
  26  norm          1.1313        .59416        .38875E-04   -1.5495    
  27  norm          .10000E-03    4.1590        .14084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99319        .22641        .24242E-03   -.93259    
  29  Prefactor     .84719        .18131        .21703E-03   -.98012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63947e-09
Minuit parameter uncertainties:
  1  11.0471
  2  4.09237e-05
  3  0.0816681
  4  3.09263
  5  2.56861e-05
  6  15.7553
  7  1.69953e-07
  8  2.46584
  9  45.1563
  10  8.74851
  11  2.2298e-05
  12  25.8286
  13  1.45442e-06
  14  2.07457e-06
  15  0.915494
  16  2.80726e-05
  17  4.31977
  18  29.4456
  19  24.8327
  20  3.58788e-05
  21  1.08125e-05
  22  4.47725
  23  4.02078e-06
  24  3.22329e-06
  25  39.9746
  26  0.594161
  27  1.18082e-06
  28  0.226629
  29  0.181443
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.807e-05  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:  8.472e-01  1.814e-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:  9.932e-01  2.266e-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: 6.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624383/likelihoodResults_393292801_393552001_4FGL_J2259.8-1552_daily_bin594.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) = 5095.12077103
delta logL = -0.000452672697975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5095.12032089
delta logL = -2.52972404269e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13373E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1501       1.0000          .0000       10.000    
     3 'Normalizat'    .99291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84743       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5095.120     FROM MIGRAD    STATUS=FAILED        95 CALLS      239 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10415E-03    2.4049        .52620E-01** at limit **
   2  Index         2.4476        2.7351        .50000       -.49111E-05
   3  Normalizat    .99319        .31856E-02    .24241E-03    .73770E-04
   4  Prefactor     .84719        .26693E-02    .21704E-03    .70401E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5095.120     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      330 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10415E-03    2.4049        .51688E-03** at limit **
   2  Index         2.4476        2.7351        .24699E-01   -.49111E-05
   3  Normalizat    .99319        .31856E-02    .40025E-04    .73770E-04
   4  Prefactor     .84719        .26693E-02    .16924E-04    .70401E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5095.120     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      398 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.835        .62782E-03** at limit **
   2  Index         2.4438        6.2210        .50000       -.48373E-05
   3  Normalizat    .99319        .20749        .19393E-05    .57450E-04
   4  Prefactor     .84719        .17388        .17363E-05    .53691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44379
  Normalizat = 0.99319
  Prefactor  = 0.847187
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.120     FROM HESSE     STATUS=OK            29 CALLS      427 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.374        .12556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4438        6.2207        .50000       -.53663    
   3  Normalizat    .99319        .20775        .38786E-06   -.93259    
   4  Prefactor     .84719        .17410        .34726E-06   -.98012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52781e-11
Minuit parameter uncertainties:
  1  0.000120381
  2  4.31032
  3  0.207918
  4  0.174213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624383': 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) = 5095.12031766
delta logL = 6.99712472851e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.204e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.444e+00  4.310e+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:  8.472e-01  1.742e-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:  9.932e-01  2.079e-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/624383/cmap_HighResolution_393292801_393552001_4FGL_J2259.8-1552_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-29 04:55:34.292651', job_id='624383', GAL2='0.85', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632916534.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='7.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='594' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:55:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 624383: <4FGL_J2259.8-1552_daily_bin594> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin594> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:40:16 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:40:18 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:40:18 2021
Terminated at Wed Sep 29 04:55:35 2021
Results reported at Wed Sep 29 04:55:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin594 344.953 -15.8809 393292801 393552001 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 :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

