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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1037
RA = 342.879, Dec = -49.4691
tmin = 508118401, tmax = 508377601
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='551130', job_status='RUN', time_executed='2021-09-29 00:36:57.114712', time_epoch_executed='1632901017.11' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551130

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551130/ft1_4FGL_J2251.5-4928_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551130/ft1_4FGL_J2251.5-4928_daily_bin1037.fits outfile=/scratch/kocevski/551130/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1037.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=508118401.0 tmax=508377601.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.67
user 3.41
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.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/551130/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/551130/ltcube_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.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/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits
.....................!
real 15.33
user 14.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/551130/ltcube_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.fits outfile=/scratch/kocevski/551130/expmap_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.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/551130/ltcube_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.fits
.....................!
real 191.05
user 185.74
sys 4.89

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/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.fits scfile=/scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits outfile=/scratch/kocevski/551130/cmap_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.fits scfile=/scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits outfile=/scratch/kocevski/551130/cmap_HighResolution_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551130/Model_4FGL_J2251.5-4928_daily_bin1037.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/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.fits.....................!
real 42.17
user 40.92
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.fits', '/scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits', expMap='/scratch/kocevski/551130/expmap_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.fits', expCube='/scratch/kocevski/551130/ltcube_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551130/Model_4FGL_J2251.5-4928_daily_bin1037.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/551130/ft1_filtered_4FGL_J2251.5-4928_daily_bin1037.fits
Spacecraft file(s): /scratch/kocevski/551130/ft2_4FGL_J2251.5-4928_daily_bin1037.fits
Exposure map: /scratch/kocevski/551130/expmap_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.fits
Exposure cube: /scratch/kocevski/551130/ltcube_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551130/Model_4FGL_J2251.5-4928_daily_bin1037.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) = 5515.29209515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8196       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.790       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4422       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.328       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.145       1.0000         .10000E-03   10000.    
    21 'norm      '    .30610       1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.474       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8735       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4939       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .15897       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .68306       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1343       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .72451       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.

 FCN=   5515.287     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4387 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.063       -.67445E-05** at limit **
   2  Prefactor     5.8187        7.4283        .25869E-05    .36961E-04
   3  Prefactor     3.0257        2.7892        .13878E-07   -.94317E-04
   4  Prefactor     34.777        64.955       -.99399E-05   -.23787E-04
   5  norm          .10000E-03    2.5377        .87931E-07** at limit **
   6  Prefactor     .10000E-03    1.3489       -.64636E-07** at limit **
   7  Prefactor     .10000E-03    15.311        .23559E-05** at limit **
   8  Prefactor     1.8420        2.2340        .10495E-05   -.31861E-02
   9  Prefactor     6.4393        19.177        .41404E-05    .12926E-04
  10  Prefactor     15.299        28.310        .83980E-05   -.49023E-04
  11  Prefactor     .10000E-03    22.533        .37759E-05** at limit **
  12  Prefactor     .10000E-03    49.065        .82289E-05** at limit **
  13  Prefactor     .10000E-03    2.7859        .79047E-07** at limit **
  14  Prefactor     .10000E-03    12.368        .75119E-05** at limit **
  15  Prefactor     .10000E-03    7.1326        .64125E-06** at limit **
  16  norm          .10000E-03    5.8523        .17905E-06** at limit **
  17  norm          .10000E-03    2.0700        .40967E-07** at limit **
  18  norm          .10000E-03    6.6877       -.98818E-06** at limit **
  19  Prefactor     7.9531        7.0462        .94282E-07    .30794E-04
  20  Prefactor     18.212        33.789        .13019E-04    .39379E-03
  21  norm          .26670        3.5896       -.20793E-05    .45209E-03
  22  Prefactor     36.471        18.995        .51527E-06    .81668E-04
  23  norm          .10000E-03    .34072        .10431E-07** at limit **
  24  norm          1.8759        4.2813       -.83250E-06    .27161E-03
  25  Prefactor     .10000E-03    35.262        .17488E-05** at limit **
  26  Prefactor     3.4963        3.0019        .17074E-06    .13638E-03
  27  Prefactor     .10000E-03    39.789       -.67280E-05** at limit **
  28  norm          .10000E-03    11.864       -.65818E-05** at limit **
  29  Prefactor     .10538        2.9665        .52779E-07    .19258E-03
  30  Prefactor     .68324        2.9497        .18903E-06   -.15522E-03
  31  Normalizat    1.1343        .18297       -.31406E-05    .28550E-03
  32  Prefactor     .72461        .16451        .67749E-06    .11539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.81872
  Prefactor  = 3.02572
  Prefactor  = 34.7771
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.84197
  Prefactor  = 6.43926
  Prefactor  = 15.2995
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.95311
  Prefactor  = 18.212
  norm       = 0.266698
  Prefactor  = 36.4708
  norm       = 0.0001
  norm       = 1.87588
  Prefactor  = 0.0001
  Prefactor  = 3.49633
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.105383
  Prefactor  = 0.683243
  Normalizat = 1.13429
  Prefactor  = 0.724606
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.287     FROM HESSE     STATUS=OK           655 CALLS     5042 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8187        7.4179        .16648E-03   -1.5225    
   3  Prefactor     3.0257        2.7861        .11467E-03   -1.5360    
   4  Prefactor     34.777        64.898        .67942E-04   -1.4528    
   5  norm          .10000E-03    2.5406        .11553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3653        .84197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8420        5.1043        .13000E-02   -1.5437    
   9  Prefactor     6.4393        19.194        .15813E-03   -1.5200    
  10  Prefactor     15.299        28.659        .10230E-03   -1.4925    
  11  Prefactor     .10000E-03    22.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8054        .12104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.8641        .17547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0710        .10435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.9326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9531        7.0537        .14217E-03   -1.5144    
  20  Prefactor     18.212        38.834        .94024E-04   -1.4854    
  21  norm          .26670        30.346        .22661E-02   -1.5605    
  22  Prefactor     36.471        19.061        .66359E-04   -1.4499    
  23  norm          .10000E-03    .34612        .42263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8759        4.2435        .21265E-03   -1.5434    
  25  Prefactor     .10000E-03    36.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.4963        2.9994        .11386E-03   -1.5334    
  27  Prefactor     .10000E-03    40.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    11.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10538        48.420        .24346E-02   -1.5643    
  30  Prefactor     .68324        2.8392        .24837E-03   -1.5543    
  31  Normalizat    1.1343        .21318        .21586E-03   -.88658    
  32  Prefactor     .72461        .19080        .25278E-03   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69321e-08
Minuit parameter uncertainties:
  1  9.21185e-05
  2  7.41906
  3  2.78619
  4  65.0302
  5  1.55315e-06
  6  1.87249e-06
  7  3.14978e-05
  8  5.10549
  9  19.2128
  10  28.6847
  11  0.000587136
  12  8.51676e-05
  13  1.72744e-06
  14  8.00695e-05
  15  6.17703e-06
  16  2.2079e-06
  17  3.45201e-07
  18  7.93633e-05
  19  7.05448
  20  38.8884
  21  5.69158
  22  19.0637
  23  3.77156e-07
  24  4.24416
  25  0.000200625
  26  2.99948
  27  3.15114e-05
  28  6.57579e-05
  29  4.51932
  30  2.7856
  31  0.213346
  32  0.190977
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  8.007e-05  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:  7.246e-01  1.910e-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:  1.134e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/551130/likelihoodResults_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.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) = 5515.28751755
delta logL = -0.000385065589398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5515.28713316
delta logL = -6.7078963184e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11205E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8332       1.0000          .0000       10.000    
     3 'Normalizat'    1.1344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72448       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.

 FCN=   5515.287     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1020.3        .90712E-02** at limit **
   2  Index         1.8151        7.6170        .50000        .10593E-04
   3  Normalizat    1.1343        .42723E-01    .36745E-01    .11738E-04
   4  Prefactor     .72461        .41072E-01    .42726E-01    .21943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81506
  Normalizat = 1.13429
  Prefactor  = 0.724608
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.287     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8151        5.8791        .50000       -.69059    
   3  Normalizat    1.1343        .19450        .21587E-03   -.88658    
   4  Prefactor     .72461        .18687        .25277E-03   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36648e-10
Minuit parameter uncertainties:
  1  5.75319e-05
  2  3.9749
  3  0.194623
  4  0.187033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551130': 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) = 5515.28713238
delta logL = 1.03732418211e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  5.753e-05  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.815e+00  3.975e+00  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:  7.246e-01  1.870e-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:  1.134e+00  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.879 -49.469

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/551130/cmap_HighResolution_508118401_508377601_4FGL_J2251.5-4928_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.50e-08', time_completed='2021-09-29 00:51:20.451924', job_id='551130', GAL2='0.72', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632901880.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1037' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 551130: <4FGL_J2251.5-4928_daily_bin1037> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1037> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:17 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:19 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:19 2021
Terminated at Wed Sep 29 00:51:21 2021
Results reported at Wed Sep 29 00:51:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1037 342.879 -49.4691 508118401 508377601 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 :                                   846.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

