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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1307
RA = 344.953, Dec = -15.8809
tmin = 578102401, tmax = 578361601
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='628656', job_status='RUN', time_executed='2021-09-29 04:56:54.827216', time_epoch_executed='1632916614.83' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628656/ft1_4FGL_J2259.8-1552_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628656/ft2_4FGL_J2259.8-1552_daily_bin1307.fits


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

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

Done.
real 5.03
user 4.74
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628656/ft1_filtered_4FGL_J2259.8-1552_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/628656/ft2_4FGL_J2259.8-1552_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/628656/ltcube_578102401_578361601_4FGL_J2259.8-1552_daily_bin1307.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/628656/ft2_4FGL_J2259.8-1552_daily_bin1307.fits
.....................!
real 11.58
user 11.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628656/ft1_filtered_4FGL_J2259.8-1552_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/628656/ft2_4FGL_J2259.8-1552_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/628656/ltcube_578102401_578361601_4FGL_J2259.8-1552_daily_bin1307.fits outfile=/scratch/kocevski/628656/expmap_578102401_578361601_4FGL_J2259.8-1552_daily_bin1307.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/628656/ltcube_578102401_578361601_4FGL_J2259.8-1552_daily_bin1307.fits
.....................!
real 192.12
user 186.68
sys 5.09

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/628656/ft1_filtered_4FGL_J2259.8-1552_daily_bin1307.fits scfile=/scratch/kocevski/628656/ft2_4FGL_J2259.8-1552_daily_bin1307.fits outfile=/scratch/kocevski/628656/cmap_578102401_578361601_4FGL_J2259.8-1552_daily_bin1307.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.59
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628656/ft1_filtered_4FGL_J2259.8-1552_daily_bin1307.fits scfile=/scratch/kocevski/628656/ft2_4FGL_J2259.8-1552_daily_bin1307.fits outfile=/scratch/kocevski/628656/cmap_HighResolution_578102401_578361601_4FGL_J2259.8-1552_daily_bin1307.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628656/ft1_filtered_4FGL_J2259.8-1552_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/628656/ft2_4FGL_J2259.8-1552_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628656/Model_4FGL_J2259.8-1552_daily_bin1307.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/628656/ft1_filtered_4FGL_J2259.8-1552_daily_bin1307.fits.....................!
real 45.74
user 44.40
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    102.99       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    145.68       1.0000         .10000E-03   10000.    
     4 'norm      '    .88561       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12080E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0875       1.0000         .10000E-03   10000.    
     8 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.225       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.501       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7098       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.205       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0166       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4842       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    25.087       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88738       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88028       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=   4869.023     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3790 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     102.98        38.675       -.10269E-05   -.15589E-03
   2  Prefactor     .10000E-03    246.72       -.86081E-06** at limit **
   3  Prefactor     145.67        97.285        .33282E-06   -.29334E-04
   4  norm          .88585        5.5897        .68807E-05    .10611E-03
   5  Prefactor     43.210        121.05        .21508E-05    .53366E-04
   6  Prefactor     .10000E-03    18.803        .27021E-06** at limit **
   7  norm          1.0875        1.0728        .57075E-07   -.24509E-03
   8  norm          .10000E-03    1.7765       -.11073E-05** at limit **
   9  Prefactor     49.167        54.242       -.16974E-05   -.49669E-04
  10  Prefactor     .10000E-03    41.142       -.20296E-06** at limit **
  11  norm          13.566        3.1963        .18099E-06   -.53833E-03
  12  Prefactor     47.934        67.385       -.41006E-05   -.81251E-04
  13  Prefactor     .10000E-03    13.951        .12030E-06** at limit **
  14  Prefactor     18.495        13.845        .73605E-06    .65854E-04
  15  Prefactor     14.171        17.790        .11403E-05    .64300E-05
  16  Prefactor     1.7101        20.558        .31074E-05    .18516E-04
  17  Prefactor     .10000E-03    4.8494       -.63205E-07** at limit **
  18  Prefactor     61.135        72.777       -.34445E-05    .17914E-04
  19  Prefactor     .10000E-03    6.8453        .23261E-07** at limit **
  20  Prefactor     .10000E-03    27.838       -.93356E-05** at limit **
  21  norm          4.0165        5.5053        .38550E-06    .21541E-03
  22  norm          .10000E-03    2.3181        .13818E-06** at limit **
  23  Prefactor     9.4661        34.528        .16449E-06    .65745E-06
  24  Prefactor     .10000E-03    7.1983       -.68196E-07** at limit **
  25  Prefactor     .10000E-03    17.133       -.13039E-05** at limit **
  26  norm          .10000E-03    .28985        .26973E-07** at limit **
  27  norm          25.083        8.9713       -.27920E-07    .15737E-05
  28  Normalizat    .88812        .25473        .53817E-05   -.29186E-03
  29  Prefactor     .87972        .19435       -.66782E-05   -.31062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 102.984
  Prefactor  = 0.0001
  Prefactor  = 145.67
  norm       = 0.885851
  Prefactor  = 43.21
  Prefactor  = 0.0001
  norm       = 1.0875
  norm       = 0.0001
  Prefactor  = 49.1671
  Prefactor  = 0.0001
  norm       = 13.5662
  Prefactor  = 47.9336
  Prefactor  = 0.0001
  Prefactor  = 18.4953
  Prefactor  = 14.1709
  Prefactor  = 1.71011
  Prefactor  = 0.0001
  Prefactor  = 61.1348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01647
  norm       = 0.0001
  Prefactor  = 9.46607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.0833
  Normalizat = 0.888119
  Prefactor  = 0.879722
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.023     FROM HESSE     STATUS=OK           543 CALLS     4333 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     102.98        38.693        .39619E-04   -1.3675    
   2  Prefactor     .10000E-03    247.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     145.67        97.044        .33385E-04   -1.3288    
   4  norm          .88585        5.8373        .29736E-03   -1.5520    
   5  Prefactor     43.210        121.44        .30565E-03   -1.4392    
   6  Prefactor     .10000E-03    19.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0875        1.0455        .67614E-04   -1.5499    
   8  norm          .10000E-03    1.7861        .90301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.167        54.198        .57156E-04   -1.4304    
  10  Prefactor     .10000E-03    41.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.566        3.2351        .44684E-04   -1.4971    
  12  Prefactor     47.934        68.468        .57902E-04   -1.4322    
  13  Prefactor     .10000E-03    13.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.495        13.878        .46558E-03   -1.4848    
  15  Prefactor     14.171        17.787        .10638E-03   -1.4955    
  16  Prefactor     1.7101        20.615        .32150E-03   -1.5446    
  17  Prefactor     .10000E-03    4.8550        .15004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     61.135        71.936        .51288E-04   -1.4143    
  19  Prefactor     .10000E-03    6.8454        .17831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0165        5.4901        .18084E-03   -1.5307    
  22  norm          .10000E-03    2.3607        .10371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.4661        34.544        .13013E-03   -1.5093    
  24  Prefactor     .10000E-03    7.1996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .29359        .72581E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          25.083        8.9101        .79977E-04   -1.4706    
  28  Normalizat    .88812        .28784        .30848E-03   -.96879    
  29  Prefactor     .87972        .21712        .25137E-03   -.96853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52002e-10
Minuit parameter uncertainties:
  1  38.7028
  2  0.000656368
  3  97.1504
  4  4.54836
  5  122.147
  6  0.000159675
  7  1.04551
  8  1.74444e-06
  9  54.2521
  10  6.04465e-05
  11  3.2351
  12  68.5802
  13  4.15081e-06
  14  13.8803
  15  17.7933
  16  11.8798
  17  1.38874e-06
  18  72.0381
  19  1.51839e-06
  20  8.09316e-05
  21  5.49084
  22  7.93469e-06
  23  34.617
  24  3.20177e-06
  25  0.000122178
  26  4.14439e-07
  27  8.91058
  28  0.288335
  29  0.217331
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.710e+00  1.188e+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:  8.797e-01  2.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.881e-01  2.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628656/likelihoodResults_578102401_578361601_4FGL_J2259.8-1552_daily_bin1307.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) = 4869.02208244
delta logL = 0.00135419071648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4869.0218344
delta logL = 0.00160223399962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9770       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9647       1.0000          .0000       10.000    
     3 'Normalizat'    .88916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87936       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=   4869.022     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      297 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9834        21.879        .14741E-02    .16031E-03
   2  Index         1.9667        2.4874        .92309E-02   -.26602E-06
   3  Normalizat    .88928        .25754        .30829E-03   -.62321E-05
   4  Prefactor     .87892        .21119        .25148E-03   -.21609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98335
  Index      = 1.96669
  Normalizat = 0.889278
  Prefactor  = 0.878919
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.022     FROM HESSE     STATUS=OK            27 CALLS      324 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9834        21.252        .29482E-03   -1.5426    
   2  Index         1.9667        2.4579        .36924E-03   -.65185    
   3  Normalizat    .88928        .25771        .12332E-04   -.96838    
   4  Prefactor     .87892        .21129        .10059E-04   -.96882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38075e-12
Minuit parameter uncertainties:
  1  12.9903
  2  2.64981
  3  0.258064
  4  0.211486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628656': 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) = 4869.02182834
delta logL = 0.00160828678418

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.983e+00  1.299e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.967e+00  2.650e+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.789e-01  2.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.893e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/628656/cmap_HighResolution_578102401_578361601_4FGL_J2259.8-1552_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-29 05:09:40.018064', job_id='628656', GAL2='0.88', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632917380.02', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.61e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1307' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:09:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 628656: <4FGL_J2259.8-1552_daily_bin1307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1307 344.953 -15.8809 578102401 578361601 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 :                                   674.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             318.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

