/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 156 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin303
RA = 344.953, Dec = -15.8809
tmin = 317865601, tmax = 318124801
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='622860', job_status='RUN', time_executed='2021-09-29 04:38:06.666333', time_epoch_executed='1632915486.67' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622860/ft1_4FGL_J2259.8-1552_daily_bin303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622860/ft2_4FGL_J2259.8-1552_daily_bin303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622860/ft1_4FGL_J2259.8-1552_daily_bin303.fits outfile=/scratch/kocevski/622860/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin303.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=317865601.0 tmax=318124801.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.33
user 3.11
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622860/ft2_4FGL_J2259.8-1552_daily_bin303.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/622860/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin303.fits evtable="EVENTS" outfile="/scratch/kocevski/622860/ft1_filtered_4FGL_J2259.8-1552_daily_bin303.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/622860/ft1_filtered_4FGL_J2259.8-1552_daily_bin303.fits" evtable="EVENTS" scfile=/scratch/kocevski/622860/ft2_4FGL_J2259.8-1552_daily_bin303.fits sctable="SC_DATA" outfile=/scratch/kocevski/622860/ltcube_317865601_318124801_4FGL_J2259.8-1552_daily_bin303.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/622860/ft2_4FGL_J2259.8-1552_daily_bin303.fits
.....................!
real 12.65
user 12.20
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622860/ft1_filtered_4FGL_J2259.8-1552_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/622860/ft2_4FGL_J2259.8-1552_daily_bin303.fits sctable="SC_DATA" expcube=/scratch/kocevski/622860/ltcube_317865601_318124801_4FGL_J2259.8-1552_daily_bin303.fits outfile=/scratch/kocevski/622860/expmap_317865601_318124801_4FGL_J2259.8-1552_daily_bin303.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/622860/ltcube_317865601_318124801_4FGL_J2259.8-1552_daily_bin303.fits
.....................!
real 191.55
user 185.91
sys 5.29

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2259.8-1552 @ 344.953 -15.8809

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/622860/ft1_filtered_4FGL_J2259.8-1552_daily_bin303.fits scfile=/scratch/kocevski/622860/ft2_4FGL_J2259.8-1552_daily_bin303.fits outfile=/scratch/kocevski/622860/cmap_317865601_318124801_4FGL_J2259.8-1552_daily_bin303.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.56
user 0.35
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622860/ft1_filtered_4FGL_J2259.8-1552_daily_bin303.fits scfile=/scratch/kocevski/622860/ft2_4FGL_J2259.8-1552_daily_bin303.fits outfile=/scratch/kocevski/622860/cmap_HighResolution_317865601_318124801_4FGL_J2259.8-1552_daily_bin303.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622860/ft1_filtered_4FGL_J2259.8-1552_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/622860/ft2_4FGL_J2259.8-1552_daily_bin303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622860/Model_4FGL_J2259.8-1552_daily_bin303.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/622860/ft1_filtered_4FGL_J2259.8-1552_daily_bin303.fits.....................!
real 49.92
user 48.58
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.443       1.0000         .10000E-03   10000.    
     4 'norm      '    .12021       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2616       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5603       1.0000         .10000E-03   10000.    
     8 'norm      '    .20810E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8241       1.0000         .10000E-03   10000.    
    11 'norm      '    .40830E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3348       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.710       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9632       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17939E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.453       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3387       1.0000         .10000E-03   10000.    
    27 'norm      '    3.4895       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .65373       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0775       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=   5706.460     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     3782 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.432        .33028E-06** at limit **
   2  Prefactor     .10000E-03    172.20       -.43604E-05** at limit **
   3  Prefactor     22.450        51.227       -.70498E-06    .35319E-05
   4  norm          .13435        1.7835       -.19991E-06    .82426E-04
   5  Prefactor     .10000E-03    598.86        .13035E-04** at limit **
   6  Prefactor     7.2615        9.5370       -.26348E-06    .78162E-05
   7  norm          1.5612        .89141       -.59068E-07    .45661E-04
   8  norm          .10000E-03    .94533       -.49151E-07** at limit **
   9  Prefactor     .10000E-03    32.163        .35588E-06** at limit **
  10  Prefactor     6.6343        23.012       -.74058E-06   -.21023E-04
  11  norm          .53267E-01    8.1416       -.18989E-06   -.13953E-04
  12  Prefactor     .10000E-03    46.010        .94543E-06** at limit **
  13  Prefactor     .10000E-03    4.4731        .23504E-07** at limit **
  14  Prefactor     .10000E-03    4.7895        .66854E-07** at limit **
  15  Prefactor     2.3379        7.4486       -.19851E-05   -.78426E-05
  16  Prefactor     .10000E-03    7.1392        .19028E-06** at limit **
  17  Prefactor     16.712        9.4777       -.80250E-07    .49448E-05
  18  Prefactor     .10000E-03    18.056        .15930E-06** at limit **
  19  Prefactor     .10000E-03    7.0755        .28538E-07** at limit **
  20  Prefactor     .10000E-03    2.2504        .70036E-07** at limit **
  21  norm          .10000E-03    2.5044        .90654E-07** at limit **
  22  norm          3.9630        2.5571       -.11335E-06    .18063E-04
  23  Prefactor     .10000E-03    24.973        .76818E-07** at limit **
  24  Prefactor     .10000E-03    63.551       -.14055E-05** at limit **
  25  Prefactor     16.452        19.705       -.90232E-07    .23906E-05
  26  norm          1.3385        .56889       -.19815E-07    .14266E-04
  27  norm          3.4887        3.8240       -.18088E-06    .14973E-05
  28  Normalizat    .65392        .18086       -.62203E-06    .88388E-04
  29  Prefactor     1.0773        .15423        .11723E-05    .48581E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4502
  norm       = 0.134346
  Prefactor  = 0.0001
  Prefactor  = 7.26146
  norm       = 1.56117
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.63435
  norm       = 0.0532666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33787
  Prefactor  = 0.0001
  Prefactor  = 16.7121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.96297
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.4518
  norm       = 1.3385
  norm       = 3.48871
  Normalizat = 0.653917
  Prefactor  = 1.07727
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.460     FROM HESSE     STATUS=NOT POSDEF   561 CALLS     4343 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    172.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.450        50.605        .84551E-04   -1.4760    
   4  norm          .13435        14.565        .18911E-02   -1.5635    
   5  Prefactor     .10000E-03    588.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2615        9.5779        .14885E-03   -1.5169    
   7  norm          1.5612        .99390        .50963E-04   -1.5458    
   8  norm          .10000E-03    7.7676        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.6343        685.28        .15359E-03   -1.5193    
  11  norm          .53267E-01    336.08        .11447E-02   -1.5662    
  12  Prefactor     .10000E-03    46.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3832        .15602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7164        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3379        7.4548        .26836E-03   -1.5402    
  16  Prefactor     .10000E-03    7.0516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.712        9.4288        .97979E-04   -1.4890    
  18  Prefactor     .10000E-03    17.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2061        .11065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5000        .11670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9630        2.5450        .93068E-04   -1.5310    
  23  Prefactor     .10000E-03    24.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    107.17        .50043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.452        19.554        .98742E-04   -1.4897    
  26  norm          1.3385        .56983        .33793E-04   -1.5477    
  27  norm          3.4887        3.8341        .14136E-03   -1.5334    
  28  Normalizat    .65392        .26563        .27850E-03   -1.0574    
  29  Prefactor     1.0773        .18630        .19495E-03   -.90196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.32937e-06
Minuit parameter uncertainties:
  1  4.27426e-05
  2  0.000190929
  3  50.7023
  4  2.7973
  5  5.32851e-05
  6  9.57989
  7  0.993911
  8  2.514e-05
  9  3.59933e-06
  10  136.49
  11  8.50233
  12  7.78628e-05
  13  6.54541e-07
  14  2.76556e-07
  15  7.45778
  16  6.86573e-06
  17  9.42965
  18  8.24584e-06
  19  1.43943e-06
  20  1.51785e-06
  21  3.46393e-06
  22  2.54505
  23  7.22824e-06
  24  0.000716514
  25  19.5613
  26  0.569828
  27  3.83438
  28  0.266155
  29  0.186417
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.866e-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:  1.077e+00  1.864e-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:  6.539e-01  2.662e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/622860/likelihoodResults_317865601_318124801_4FGL_J2259.8-1552_daily_bin303.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) = 5706.46032236
delta logL = -0.000661718094307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5706.45966215
delta logL = -1.50226333062e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1688       1.0000          .0000       10.000    
     3 'Normalizat'    .65363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0775       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=   5706.460     FROM MIGRAD    STATUS=FAILED        88 CALLS      242 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    575.65        .18142E-02** at limit **
   2  Index         2.2093        5.5323        .50000       -.48675E-04
   3  Normalizat    .65391        .38248E-01    .27851E-03   -.45572E-03
   4  Prefactor     1.0773        .33898E-01    .19495E-03   -.18575E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5706.460     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      396 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    575.65        .47652E-03** at limit **
   2  Index         2.2093        5.5323        .14980E-05   -.48675E-04
   3  Normalizat    .65391        .38248E-01    .46019E-07   -.45572E-03
   4  Prefactor     1.0773        .33898E-01    .32960E-07   -.18575E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5706.460     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      430 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1665.8        .36285E-03** at limit **
   2  Index         2.2097        5.3962        .50000       -.48718E-04
   3  Normalizat    .65391        .10808        .11140E-04   -.45943E-03
   4  Prefactor     1.0773        .95798E-01    .38989E-04   -.19093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.20971
  Normalizat = 0.653911
  Prefactor  = 1.07727
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.460     FROM HESSE     STATUS=OK            29 CALLS      459 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    8.8653        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2097        6.0999        .50000       -.59204    
   3  Normalizat    .65391        .19326        .22280E-05   -1.0574    
   4  Prefactor     1.0773        .17141        .77979E-05   -.90196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43798e-09
Minuit parameter uncertainties:
  1  0.000827667
  2  4.32138
  3  0.193456
  4  0.171499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622860': 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) = 5706.45965981
delta logL = 8.39008862386e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.277e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.210e+00  4.321e+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:  1.077e+00  1.715e-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:  6.539e-01  1.935e-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/622860/cmap_HighResolution_317865601_318124801_4FGL_J2259.8-1552_daily_bin303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-29 04:50:27.399337', job_id='622860', GAL2='1.08', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632916227.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.08', dlogl='8.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='303' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 622860: <4FGL_J2259.8-1552_daily_bin303> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin303 344.953 -15.8809 317865601 318124801 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 :                                   737.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            911 sec.

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

