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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin825
RA = 344.953, Dec = -15.8809
tmin = 453168001, tmax = 453427201
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='625832', job_status='RUN', time_executed='2021-09-29 04:49:09.372429', time_epoch_executed='1632916149.37' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625832

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625832/ft1_4FGL_J2259.8-1552_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625832/ft2_4FGL_J2259.8-1552_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625832/ft1_4FGL_J2259.8-1552_daily_bin825.fits outfile=/scratch/kocevski/625832/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin825.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=453168001.0 tmax=453427201.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.65
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625832/ft2_4FGL_J2259.8-1552_daily_bin825.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/625832/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin825.fits evtable="EVENTS" outfile="/scratch/kocevski/625832/ft1_filtered_4FGL_J2259.8-1552_daily_bin825.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625832/ft1_filtered_4FGL_J2259.8-1552_daily_bin825.fits" evtable="EVENTS" scfile=/scratch/kocevski/625832/ft2_4FGL_J2259.8-1552_daily_bin825.fits sctable="SC_DATA" outfile=/scratch/kocevski/625832/ltcube_453168001_453427201_4FGL_J2259.8-1552_daily_bin825.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/625832/ft2_4FGL_J2259.8-1552_daily_bin825.fits
.....................!
real 11.71
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625832/ft1_filtered_4FGL_J2259.8-1552_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/625832/ft2_4FGL_J2259.8-1552_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/625832/ltcube_453168001_453427201_4FGL_J2259.8-1552_daily_bin825.fits outfile=/scratch/kocevski/625832/expmap_453168001_453427201_4FGL_J2259.8-1552_daily_bin825.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/625832/ltcube_453168001_453427201_4FGL_J2259.8-1552_daily_bin825.fits
.....................!
real 192.13
user 186.34
sys 5.47

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/625832/ft1_filtered_4FGL_J2259.8-1552_daily_bin825.fits scfile=/scratch/kocevski/625832/ft2_4FGL_J2259.8-1552_daily_bin825.fits outfile=/scratch/kocevski/625832/cmap_453168001_453427201_4FGL_J2259.8-1552_daily_bin825.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625832/ft1_filtered_4FGL_J2259.8-1552_daily_bin825.fits scfile=/scratch/kocevski/625832/ft2_4FGL_J2259.8-1552_daily_bin825.fits outfile=/scratch/kocevski/625832/cmap_HighResolution_453168001_453427201_4FGL_J2259.8-1552_daily_bin825.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/625832/ft1_filtered_4FGL_J2259.8-1552_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/625832/ft2_4FGL_J2259.8-1552_daily_bin825.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625832/Model_4FGL_J2259.8-1552_daily_bin825.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/625832/ft1_filtered_4FGL_J2259.8-1552_daily_bin825.fits.....................!
real 50.10
user 48.80
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5436       1.0000         .10000E-03   10000.    
     2 'Prefactor '    87.781       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.819       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      '    1.2324       1.0000         .10000E-03   10000.    
     8 'norm      '    5.3606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57845E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10542E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.222       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1312       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6036       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8583       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.592       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .37967       1.0000         .10000E-03   10000.    
    27 'norm      '    11.922       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2104       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65698       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=   5486.072     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3710 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5437        13.867       -.41992E-07   -.35473E-04
   2  Prefactor     87.777        65.386       -.28005E-05    .25949E-04
   3  Prefactor     .10000E-03    95.082        .19805E-04** at limit **
   4  norm          10.819        4.8869        .22287E-06    .91751E-04
   5  Prefactor     .10000E-03    81.826       -.10892E-05** at limit **
   6  Prefactor     .10000E-03    5.7589       -.64547E-07** at limit **
   7  norm          1.2319        .99634       -.42691E-07    .35914E-03
   8  norm          5.3608        2.6220       -.74008E-07   -.38845E-03
   9  Prefactor     .10000E-03    27.941        .15489E-04** at limit **
  10  Prefactor     .10012E-03    13.511       -.31366E-05** at limit **
  11  norm          .10000E-03    .72668        .56671E-07** at limit **
  12  Prefactor     23.738        31.584        .17300E-05    .62112E-03
  13  Prefactor     17.217        13.922       -.87213E-07   -.18381E-04
  14  Prefactor     .10000E-03    4.3515       -.18477E-07** at limit **
  15  Prefactor     .10000E-03    10.584        .13073E-06** at limit **
  16  Prefactor     11.746        11.145       -.11647E-05   -.83921E-03
  17  Prefactor     .10000E-03    3.8564        .55405E-07** at limit **
  18  Prefactor     .10000E-03    144.24       -.19253E-04** at limit **
  19  Prefactor     28.223        26.176       -.61089E-07    .27083E-04
  20  Prefactor     7.0810        17.361       -.14064E-05    .10680E-03
  21  norm          6.6143        13.160       -.15092E-05   -.12226E-04
  22  norm          2.8587        3.6388       -.33942E-06   -.48143E-03
  23  Prefactor     .10000E-03    26.071       -.12330E-04** at limit **
  24  Prefactor     16.589        17.564       -.10888E-06    .52351E-04
  25  Prefactor     .10000E-03    14.468        .56191E-06** at limit **
  26  norm          .38050        .91378        .13756E-06   -.12364E-02
  27  norm          11.917        10.034       -.92472E-06   -.21744E-04
  28  Normalizat    1.2102        .20209        .88730E-06    .36199E-03
  29  Prefactor     .65709        .16035        .45505E-06    .33108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.5437
  Prefactor  = 87.7768
  Prefactor  = 0.0001
  norm       = 10.8192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23189
  norm       = 5.36085
  Prefactor  = 0.0001
  Prefactor  = 0.000100121
  norm       = 0.0001
  Prefactor  = 23.7383
  Prefactor  = 17.2172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7457
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 28.2228
  Prefactor  = 7.081
  norm       = 6.6143
  norm       = 2.85869
  Prefactor  = 0.0001
  Prefactor  = 16.5893
  Prefactor  = 0.0001
  norm       = 0.380501
  norm       = 11.9165
  Normalizat = 1.21024
  Prefactor  = 0.657092
 **********
 **   18 **HESSE 
 **********

 FCN=   5486.072     FROM HESSE     STATUS=OK           553 CALLS     4263 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5437        13.864        .14602E-03   -1.5159    
   2  Prefactor     87.777        65.380        .42883E-04   -1.3831    
   3  Prefactor     .10000E-03    94.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.819        4.8848        .10367E-03   -1.5050    
   5  Prefactor     .10000E-03    81.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7783        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2319        .97372        .62146E-04   -1.5486    
   8  norm          5.3608        2.6230        .81408E-04   -1.5245    
   9  Prefactor     .10000E-03    27.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10012E-03    47.806        .41406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .94173        .10831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.738        25.518        .82188E-04   -1.4733    
  13  Prefactor     17.217        13.912        .96532E-04   -1.4878    
  14  Prefactor     .10000E-03    4.3636        .15078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.746        11.426        .58440E-03   -1.5022    
  17  Prefactor     .10000E-03    3.8687        .14203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    142.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.223        26.179        .75413E-04   -1.4645    
  20  Prefactor     7.0810        16.841        .15021E-03   -1.5176    
  21  norm          6.6143        12.841        .15616E-03   -1.5194    
  22  norm          2.8587        3.6503        .15232E-03   -1.5370    
  23  Prefactor     .10000E-03    25.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.589        17.513        .98326E-04   -1.4893    
  25  Prefactor     .10000E-03    14.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .38050        .81653        .75142E-03   -1.5585    
  27  norm          11.917        9.4897        .11602E-03   -1.5017    
  28  Normalizat    1.2102        .23855        .24083E-03   -.86287    
  29  Prefactor     .65709        .18717        .25842E-03   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78219e-09
Minuit parameter uncertainties:
  1  13.8698
  2  65.434
  3  0.000124814
  4  4.88496
  5  6.23746e-05
  6  7.83426e-06
  7  0.973731
  8  2.62306
  9  1.96367e-05
  10  0.00482304
  11  6.00282e-06
  12  25.53
  13  13.9147
  14  2.64007e-06
  15  1.79345e-05
  16  11.4282
  17  2.58917e-06
  18  0.00133914
  19  26.1899
  20  16.8519
  21  12.8462
  22  3.65054
  23  1.10607e-05
  24  17.5189
  25  2.07243e-06
  26  0.816552
  27  9.49089
  28  0.238763
  29  0.187348
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.175e+01  1.143e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.571e-01  1.873e-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.210e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.63e-05

TS (Fixed Index): 1.59
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625832/likelihoodResults_453168001_453427201_4FGL_J2259.8-1552_daily_bin825.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) = 5486.03232532
delta logL = 0.0398957995494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5486.03017195
delta logL = 0.0420491693176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5445       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4230       1.0000          .0000       10.000    
     3 'Normalizat'    1.1952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66633       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5486.030     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      318 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5288        23.173        .68568E-03   -.12734E-04
   2  Index         2.4251        1.6553        .62689E-02    .31256E-03
   3  Normalizat    1.1950        .24285        .24213E-03   -.22960E-04
   4  Prefactor     .66646        .19500        .25678E-03   -.20056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.52884
  Index      = 2.42507
  Normalizat = 1.19501
  Prefactor  = 0.66646
 **********
 **   18 **HESSE 
 **********

 FCN=   5486.030     FROM HESSE     STATUS=OK            27 CALLS      345 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5288        16.389        .27427E-04   -1.5124    
   2  Index         2.4251        1.1846        .12538E-02   -.54099    
   3  Normalizat    1.1950        .23596        .96852E-05   -.86757    
   4  Prefactor     .66646        .19032        .10271E-04   -1.0486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84545e-13
Minuit parameter uncertainties:
  1  16.3976
  2  1.20027
  3  0.236166
  4  0.190508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625832': 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) = 5486.03016978
delta logL = 0.0420513405079

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  8.529e+00  1.640e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.425e+00  1.200e+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:  6.665e-01  1.905e-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.195e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.43 +/- 1.20
Photon Flux (Free Index): 4.17e-08 +/- 4.92e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.63e-05

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/625832/cmap_HighResolution_453168001_453427201_4FGL_J2259.8-1552_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.32e-05', photon_flux_error='3.18e-08', dlogl='4.21e-02', energy_flux='1.68e-05', photon_flux2='4.17e-08', job_status='DONE', time_completed='2021-09-29 05:00:57.165227', photon_index_error2='1.20', photon_index2='2.43', ts='1.59', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.63e-05', EG='1.21', time_epoch_completed='1632916857.17', return_code='0', job_id='625832', GAL2='0.67', EG2='1.20', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='4.92e-08', ts2='1.66', photon_index='2.13' WHERE bin_id='825' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 625832: <4FGL_J2259.8-1552_daily_bin825> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin825> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:45:27 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:45:30 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:45:30 2021
Terminated at Wed Sep 29 05:00:57 2021
Results reported at Wed Sep 29 05:00:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin825 344.953 -15.8809 453168001 453427201 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 :                                   707.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

