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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1164
RA = 342.879, Dec = -49.4691
tmin = 541036801, tmax = 541296001
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='551324', job_status='RUN', time_executed='2021-09-29 00:36:07.068383', time_epoch_executed='1632900967.07' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551324

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551324/ft1_4FGL_J2251.5-4928_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551324/ft1_4FGL_J2251.5-4928_daily_bin1164.fits outfile=/scratch/kocevski/551324/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1164.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=541036801.0 tmax=541296001.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.61
user 3.39
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.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/551324/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1164.fits evtable="EVENTS" outfile="/scratch/kocevski/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/551324/ltcube_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.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/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits
.....................!
real 11.96
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/551324/ltcube_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.fits outfile=/scratch/kocevski/551324/expmap_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.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/551324/ltcube_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.fits
.....................!
real 190.45
user 185.10
sys 5.03

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J2251.5-4928 @ 342.879 -49.4691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.fits scfile=/scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits outfile=/scratch/kocevski/551324/cmap_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.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=342.879 yref=-49.4691 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.fits scfile=/scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits outfile=/scratch/kocevski/551324/cmap_HighResolution_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.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=342.879 yref=-49.4691 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551324/Model_4FGL_J2251.5-4928_daily_bin1164.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/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.fits.....................!
real 37.68
user 36.41
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.fits', '/scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits', expMap='/scratch/kocevski/551324/expmap_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.fits', expCube='/scratch/kocevski/551324/ltcube_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551324/Model_4FGL_J2251.5-4928_daily_bin1164.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2251.5-4928'

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.449e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551324/ft1_filtered_4FGL_J2251.5-4928_daily_bin1164.fits
Spacecraft file(s): /scratch/kocevski/551324/ft2_4FGL_J2251.5-4928_daily_bin1164.fits
Exposure map: /scratch/kocevski/551324/expmap_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.fits
Exposure cube: /scratch/kocevski/551324/ltcube_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551324/Model_4FGL_J2251.5-4928_daily_bin1164.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) = 4518.93713679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1545       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29018E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0724       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.733       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.513       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0822       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .14691E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.228       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .17271E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97878       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   4518.911     FROM MIGRAD    STATUS=CONVERGED   1546 CALLS     5130 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0919        207.31        .42996E-03   -.56584E-05
   2  Prefactor     9.0237        10.959        .66755E-03    .11983E-03
   3  Prefactor     .84807E-02    11.075        .34453E-01    .17091E-03
   4  Prefactor     .10000E-03    59.599        .18142E-02** at limit **
   5  norm          .10000E-03    6.2011        .16314E-02** at limit **
   6  Prefactor     1.0722        3.2711        .20756E-03    .99249E-04
   7  Prefactor     .10000E-03    15.916        .18142E-02** at limit **
   8  Prefactor     12.840        8.0866        .11180E-03    .16473E-04
   9  Prefactor     28.310        24.218        .75303E-04    .14644E-04
  10  Prefactor     18.387        40.151        .93382E-04    .40297E-04
  11  Prefactor     15.277        16.900        .10251E-03    .13098E-03
  12  Prefactor     .10000E-03    163.05        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.8213        .12807E-02** at limit **
  14  Prefactor     29.604        35.703        .73642E-04    .61751E-05
  15  Prefactor     .10000E-03    21.596        .18142E-02** at limit **
  16  norm          .10000E-03    5.4248        .15290E-02** at limit **
  17  norm          .10000E-03    3.6242        .12490E-02** at limit **
  18  norm          .10000E-03    3.1389        .11614E-02** at limit **
  19  Prefactor     16.732        14.907        .97911E-04    .37620E-04
  20  Prefactor     10.588        65.978        .12357E-03    .37445E-04
  21  norm          .10000E-03    4.9341        .14470E-02** at limit **
  22  Prefactor     6.0837        38.546        .16280E-03    .24023E-04
  23  norm          .10000E-03    .73796        .11018E-03** at limit **
  24  norm          .10000E-03    60.649        .25352E-02** at limit **
  25  Prefactor     18.236        21.588        .93810E-04    .21814E-05
  26  Prefactor     .10000E-03    1.5132        .79838E-03** at limit **
  27  Prefactor     .10000E-03    7.4609        .17928E-02** at limit **
  28  norm          .10000E-03    13.354        .18142E-02** at limit **
  29  Prefactor     .10000E-03    5.3148        .15015E-02** at limit **
  30  Prefactor     .10000E-03    15.808        .29948E-02** at limit **
  31  Normalizat    .97804        .27588        .25675E-03    .65444E-04
  32  Prefactor     1.0459        .24375        .23961E-03    .36581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09189
  Prefactor  = 9.02368
  Prefactor  = 0.00848074
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.07221
  Prefactor  = 0.0001
  Prefactor  = 12.84
  Prefactor  = 28.31
  Prefactor  = 18.3872
  Prefactor  = 15.277
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 29.6036
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7318
  Prefactor  = 10.588
  norm       = 0.0001
  Prefactor  = 6.08371
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.978037
  Prefactor  = 1.04593
 **********
 **   18 **HESSE 
 **********

 FCN=   4518.911     FROM HESSE     STATUS=OK           635 CALLS     5765 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0919        206.97        .17199E-04   -1.5499    
   2  Prefactor     9.0237        10.940        .26702E-04   -1.5107    
   3  Prefactor     .84807E-02    6.3319        .47413E-01   -1.5690    
   4  Prefactor     .10000E-03    59.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.2018        .32628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0722        3.2703        .83024E-05   -1.5501    
   7  Prefactor     .10000E-03    15.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.840        8.0852        .44720E-05   -1.4991    
   9  Prefactor     28.310        24.215        .30121E-05   -1.4643    
  10  Prefactor     18.387        40.145        .37353E-05   -1.4850    
  11  Prefactor     15.277        16.897        .41003E-05   -1.4926    
  12  Prefactor     .10000E-03    163.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8216        .25614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.604        35.691        .29457E-05   -1.4619    
  15  Prefactor     .10000E-03    21.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.4248        .30580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6243        .24979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1391        .23228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.732        14.889        .39165E-05   -1.4890    
  20  Prefactor     10.588        65.212        .49428E-05   -1.5057    
  21  norm          .10000E-03    4.9345        .28941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.0837        38.435        .65119E-05   -1.5215    
  23  norm          .10000E-03    .73797        .22036E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    62.443        .10141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.236        21.579        .37524E-05   -1.4854    
  26  Prefactor     .10000E-03    1.5135        .15968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.4611        .35856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    13.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.3170        .30029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    15.946        .59896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .97804        .27564        .10270E-04   -.93770    
  32  Prefactor     1.0459        .24399        .95845E-05   -.91214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5324e-10
Minuit parameter uncertainties:
  1  30.1711
  2  10.9428
  3  0.46077
  4  0.000126289
  5  1.12386e-05
  6  3.27082
  7  8.3116e-06
  8  8.08585
  9  24.2234
  10  40.2045
  11  16.9022
  12  0.00113487
  13  1.13137e-06
  14  35.7171
  15  6.23962e-05
  16  1.09382e-05
  17  4.93935e-06
  18  3.86407e-06
  19  14.8924
  20  52.6384
  21  1.76609e-05
  22  30.6116
  23  5.31463e-06
  24  0.000226122
  25  21.588
  26  8.85333e-07
  27  3.24347e-06
  28  1.59407e-05
  29  2.84e-06
  30  7.38253e-05
  31  0.276045
  32  0.244254
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.960e+01  3.572e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.046e+00  2.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.780e-01  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.57e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.95e-05

TS (Fixed Index): 1.33
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 7.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551324/likelihoodResults_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.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) = 4518.61668412
delta logL = 0.294266317797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4518.61160887
delta logL = 0.299341566883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.437       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4953       1.0000          .0000       10.000    
     3 'Normalizat'    .95966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0548       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   4518.612     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      294 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.438        31.172        .10927E-03    .22473E-04
   2  Index         2.4951        1.0442        .55823E-02    .28223E-04
   3  Normalizat    .95970        .25125        .25875E-03    .57996E-04
   4  Prefactor     1.0547        .24092        .23859E-03    .67138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4376
  Index      = 2.49515
  Normalizat = 0.959699
  Prefactor  = 1.05473
 **********
 **   18 **HESSE 
 **********

 FCN=   4518.612     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.438        25.433        .43708E-05   -1.4975    
   2  Index         2.4951        .85408        .22329E-03   -.52472    
   3  Normalizat    .95970        .25100        .10350E-04   -.94393    
   4  Prefactor     1.0547        .24095        .95436E-05   -.90927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77716e-12
Minuit parameter uncertainties:
  1  25.4539
  2  0.859723
  3  0.251303
  4  0.2412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551324': 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) = 4518.61160875
delta logL = 0.29934168452

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.344e+01  2.545e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.495e+00  8.597e-01  0.000e+00  1.000e+01 (-1.000e+00)
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.055e+00  2.412e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.597e-01  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 2.50 +/- 0.86
Photon Flux (Free Index): 3.40e-08 +/- 4.04e-08
Energy Flux (Free Index): 9.94e-06 +/- 1.03e-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/551324/cmap_HighResolution_541036801_541296001_4FGL_J2251.5-4928_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', comment='SUCCESS', photon_flux='1.57e-08', energy_flux2='9.94e-06', photon_flux_error='1.89e-08', dlogl='2.99e-01', energy_flux='1.61e-05', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-09-29 00:49:26.273449', photon_index_error2='0.86', photon_index2='2.50', ts='1.33', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.13e-08', energy_flux_error2='1.03e-05', EG='0.98', time_epoch_completed='1632901766.27', return_code='0', job_id='551324', GAL2='1.05', EG2='0.96', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='4.04e-08', ts2='1.94', photon_index='1.85' WHERE bin_id='1164' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 551324: <4FGL_J2251.5-4928_daily_bin1164> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1164> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:32 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:35:33 2021
Terminated at Wed Sep 29 00:49:27 2021
Results reported at Wed Sep 29 00:49:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1164 342.879 -49.4691 541036801 541296001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2251.5-4928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   784.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

