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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1303
RA = 344.953, Dec = -15.8809
tmin = 577065601, tmax = 577324801
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='628650', job_status='RUN', time_executed='2021-09-29 04:56:40.391783', time_epoch_executed='1632916600.39' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628650/ft1_4FGL_J2259.8-1552_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628650/ft2_4FGL_J2259.8-1552_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628650/ft1_4FGL_J2259.8-1552_daily_bin1303.fits outfile=/scratch/kocevski/628650/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1303.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=577065601.0 tmax=577324801.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.09
user 2.88
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628650/ft1_filtered_4FGL_J2259.8-1552_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/628650/ft2_4FGL_J2259.8-1552_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/628650/ltcube_577065601_577324801_4FGL_J2259.8-1552_daily_bin1303.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/628650/ft2_4FGL_J2259.8-1552_daily_bin1303.fits
.....................!
real 12.16
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628650/ft1_filtered_4FGL_J2259.8-1552_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/628650/ft2_4FGL_J2259.8-1552_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/628650/ltcube_577065601_577324801_4FGL_J2259.8-1552_daily_bin1303.fits outfile=/scratch/kocevski/628650/expmap_577065601_577324801_4FGL_J2259.8-1552_daily_bin1303.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/628650/ltcube_577065601_577324801_4FGL_J2259.8-1552_daily_bin1303.fits
.....................!
real 190.35
user 185.13
sys 4.80

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/628650/ft1_filtered_4FGL_J2259.8-1552_daily_bin1303.fits scfile=/scratch/kocevski/628650/ft2_4FGL_J2259.8-1552_daily_bin1303.fits outfile=/scratch/kocevski/628650/cmap_577065601_577324801_4FGL_J2259.8-1552_daily_bin1303.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628650/ft1_filtered_4FGL_J2259.8-1552_daily_bin1303.fits scfile=/scratch/kocevski/628650/ft2_4FGL_J2259.8-1552_daily_bin1303.fits outfile=/scratch/kocevski/628650/cmap_HighResolution_577065601_577324801_4FGL_J2259.8-1552_daily_bin1303.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628650/ft1_filtered_4FGL_J2259.8-1552_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/628650/ft2_4FGL_J2259.8-1552_daily_bin1303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628650/Model_4FGL_J2259.8-1552_daily_bin1303.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/628650/ft1_filtered_4FGL_J2259.8-1552_daily_bin1303.fits.....................!
real 59.05
user 57.78
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99027E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86923E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .24970E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    117.71       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.506       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0830       1.0000         .10000E-03   10000.    
     8 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.251       1.0000         .10000E-03   10000.    
    11 'norm      '    7.8718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11341E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.597       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.720       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.0888       1.0000         .10000E-03   10000.    
    23 'Prefactor '    71.748       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11687E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.511       1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.7163       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0354       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79791       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=   7131.860     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     3258 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97176E-01    4.5423        .28697E-05    .59824E-04
   2  Prefactor     .10002E-03    104.73        .29342E-04** at limit **
   3  Prefactor     .10452E-03    1037.6        .60325E-04** at limit **
   4  norm          .10320E-03    2.0913       -.35359E-06** at limit **
   5  Prefactor     117.67        4.8624        .26988E-06    .17084E-02
   6  Prefactor     14.509        1.2933       -.13947E-06    .22605E-03
   7  norm          2.0830        .95753        .24715E-06    .19899E-03
   8  norm          .10000E-03    1.8072       -.18737E-05** at limit **
   9  Prefactor     29.402        10.015        .12543E-05    .18036E-02
  10  Prefactor     39.339        34.428       -.44002E-05    .28211E-02
  11  norm          7.8641        3.1023        .74640E-06    .88013E-05
  12  Prefactor     .10001E-03    20.543       -.31326E-05** at limit **
  13  Prefactor     .10000E-03    4.7069       -.19384E-05** at limit **
  14  Prefactor     .10002E-03    15.711        .49819E-06** at limit **
  15  Prefactor     .10000E-03    13.445        .18526E-05** at limit **
  16  Prefactor     .10000E-03    3.2264       -.42920E-06** at limit **
  17  Prefactor     26.598        3.2513       -.74842E-07    .16934E-01
  18  Prefactor     45.719        1.2002       -.45583E-07    .32155E-04
  19  Prefactor     .10000E-03    7.9745        .14872E-05** at limit **
  20  Prefactor     .10000E-03    6.1982       -.23120E-05** at limit **
  21  norm          .10000E-03    2.9573        .18387E-05** at limit **
  22  norm          4.0893        3.5721        .11834E-06    .87880E-04
  23  Prefactor     71.750        1.1000       -.15119E-07    .64869E-04
  24  Prefactor     .10001E-03    19.921       -.48977E-05** at limit **
  25  Prefactor     48.515        2.3164       -.22271E-06    .62471E-04
  26  norm          .10000E-03    .16564        .45777E-06** at limit **
  27  norm          8.7169        4.8522       -.39349E-06   -.41364E-06
  28  Normalizat    1.0352        .21325       -.87291E-06   -.35081E-05
  29  Prefactor     .79807        .17244        .13953E-05    .17547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0971757
  Prefactor  = 0.000100024
  Prefactor  = 0.000104525
  norm       = 0.000103195
  Prefactor  = 117.673
  Prefactor  = 14.5088
  norm       = 2.08303
  norm       = 0.0001
  Prefactor  = 29.402
  Prefactor  = 39.3391
  norm       = 7.86412
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5976
  Prefactor  = 45.7191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.08931
  Prefactor  = 71.7504
  Prefactor  = 0.000100005
  Prefactor  = 48.5151
  norm       = 0.0001
  norm       = 8.71689
  Normalizat = 1.03517
  Prefactor  = 0.798066
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.860     FROM HESSE     STATUS=OK           637 CALLS     3895 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97176E-01    8.2940        .95066E-01   -1.5646    
   2  Prefactor     .10002E-03    104.65        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10452E-03    49.818        .15042       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10320E-03    1.5110        .72926E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     117.67        81.784        .92719E-03   -1.3534    
   6  Prefactor     14.509        10.669        .26290E-02   -1.4946    
   7  norm          2.0830        .97174        .71527E-02   -1.5419    
   8  norm          .10000E-03    1.1901        .32434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.402        37.778        .18467E-02   -1.4623    
  10  Prefactor     39.339        34.902        .15994E-02   -1.4453    
  11  norm          7.8641        3.0422        .35729E-02   -1.5147    
  12  Prefactor     .10001E-03    21.335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    15.531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.2152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.598        10.987        .19420E-02   -1.4676    
  18  Prefactor     45.719        49.062        .14824E-02   -1.4355    
  19  Prefactor     .10000E-03    7.9708        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.0893        3.7229        .49844E-02   -1.5303    
  23  Prefactor     71.750        58.954        .11849E-02   -1.4012    
  24  Prefactor     .10001E-03    20.792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     48.515        34.484        .14393E-02   -1.4314    
  26  norm          .10000E-03    .16327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.7169        4.9234        .33943E-02   -1.5117    
  28  Normalizat    1.0352        .19431        .61564E-01   -.91861    
  29  Prefactor     .79807        .14764        .43690E-01   -.99800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99671e-07
Minuit parameter uncertainties:
  1  1.79485
  2  0.00317325
  3  0.030053
  4  0.00439471
  5  81.8622
  6  10.6702
  7  0.971744
  8  1.15745e-05
  9  37.8092
  10  34.9202
  11  3.04222
  12  0.000691352
  13  2.52281e-05
  14  0.00109605
  15  5.61135e-05
  16  4.52616e-06
  17  10.9879
  18  49.1052
  19  1.5257e-05
  20  3.76182e-05
  21  1.78838e-05
  22  3.72311
  23  59.0019
  24  0.000650045
  25  34.4979
  26  1.04537e-06
  27  4.9236
  28  0.194447
  29  0.147715
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.526e-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:  7.981e-01  1.477e-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.035e+00  1.944e-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: 4.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628650/likelihoodResults_577065601_577324801_4FGL_J2259.8-1552_daily_bin1303.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) = 7131.86183007
delta logL = -0.00146931162089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7131.86036136
delta logL = -5.98995939072e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1139       1.0000          .0000       10.000    
     3 'Normalizat'    1.0350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7131.860     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      240 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    35.583        .14976E-02** at limit **
   2  Index         2.0668        6.2827        .50000        .37893E-04
   3  Normalizat    1.0352        .14673E-01    .27228E-03   -.19791E-04
   4  Prefactor     .79807        .12049E-01    .24999E-03   -.27195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010093
  Index      = 2.0668
  Normalizat = 1.03517
  Prefactor  = 0.798065
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.860     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10093E-03    150.50        .29953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0668        5.7704        .50000       -.62690    
   3  Normalizat    1.0352        .31461E-01    .10891E-04   -.91861    
   4  Prefactor     .79807        .25835E-01    .99995E-05   -.99800    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.99705e-08
Minuit parameter uncertainties:
  1  0.0237171
  2  387.328
  3  0.0314614
  4  0.0258358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628650': 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) = 7131.86036023
delta logL = 5.35763319931e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.009e-04  2.372e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.067e+00  3.873e+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:  7.981e-01  2.584e-02  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.035e+00  3.146e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/628650/cmap_HighResolution_577065601_577324801_4FGL_J2259.8-1552_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.21e-08', time_completed='2021-09-29 05:11:00.551348', job_id='628650', GAL2='0.80', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632917460.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1303' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:11:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 628650: <4FGL_J2259.8-1552_daily_bin1303> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1303> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:55:23 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:55:24 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:55:24 2021
Terminated at Wed Sep 29 05:11:01 2021
Results reported at Wed Sep 29 05:11:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1303 344.953 -15.8809 577065601 577324801 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 :                                   791.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

