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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1076
RA = 342.879, Dec = -49.4691
tmin = 518227201, tmax = 518486401
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='551190', job_status='RUN', time_executed='2021-09-29 00:37:23.653037', time_epoch_executed='1632901043.65' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551190/ft1_4FGL_J2251.5-4928_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551190/ft2_4FGL_J2251.5-4928_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551190/ft1_4FGL_J2251.5-4928_daily_bin1076.fits outfile=/scratch/kocevski/551190/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1076.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=518227201.0 tmax=518486401.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.60
user 3.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551190/ft1_filtered_4FGL_J2251.5-4928_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/551190/ft2_4FGL_J2251.5-4928_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/551190/ltcube_518227201_518486401_4FGL_J2251.5-4928_daily_bin1076.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/551190/ft2_4FGL_J2251.5-4928_daily_bin1076.fits
.....................!
real 12.04
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551190/ft1_filtered_4FGL_J2251.5-4928_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/551190/ft2_4FGL_J2251.5-4928_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/551190/ltcube_518227201_518486401_4FGL_J2251.5-4928_daily_bin1076.fits outfile=/scratch/kocevski/551190/expmap_518227201_518486401_4FGL_J2251.5-4928_daily_bin1076.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/551190/ltcube_518227201_518486401_4FGL_J2251.5-4928_daily_bin1076.fits
.....................!
real 190.47
user 185.40
sys 4.74

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/551190/ft1_filtered_4FGL_J2251.5-4928_daily_bin1076.fits scfile=/scratch/kocevski/551190/ft2_4FGL_J2251.5-4928_daily_bin1076.fits outfile=/scratch/kocevski/551190/cmap_518227201_518486401_4FGL_J2251.5-4928_daily_bin1076.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551190/ft1_filtered_4FGL_J2251.5-4928_daily_bin1076.fits scfile=/scratch/kocevski/551190/ft2_4FGL_J2251.5-4928_daily_bin1076.fits outfile=/scratch/kocevski/551190/cmap_HighResolution_518227201_518486401_4FGL_J2251.5-4928_daily_bin1076.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6402       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23338E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6275       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.768       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.733       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17924E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .78982E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.118       1.0000         .10000E-03   10000.    
    21 'norm      '    6.8230       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10993E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.561       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9288       1.0000         .10000E-03   10000.    
    28 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.9684       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.7057       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2032       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94251       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=   5351.794     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4425 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.704        35.591        .25939E-05    .57986E-04
   2  Prefactor     2.6567        4.7456        .46582E-06   -.19868E-02
   3  Prefactor     .10000E-03    2.3380        .26457E-07** at limit **
   4  Prefactor     .10000E-03    770.70       -.28949E-04** at limit **
   5  norm          .10000E-03    3.0410       -.96760E-07** at limit **
   6  Prefactor     .10000E-03    2.1333        .19760E-07** at limit **
   7  Prefactor     39.685        40.562       -.24489E-05   -.40908E-04
   8  Prefactor     17.112        8.5316        .15154E-06   -.75773E-05
   9  Prefactor     4.6428        45.515        .93666E-05    .23852E-04
  10  Prefactor     24.389        39.018       -.14423E-05   -.32051E-04
  11  Prefactor     4.0436        17.799        .40446E-05   -.50059E-03
  12  Prefactor     38.747        112.46       -.17059E-04   -.37102E-04
  13  Prefactor     .10000E-03    5.3693       -.17406E-06** at limit **
  14  Prefactor     .10000E-03    40.182       -.48611E-06** at limit **
  15  Prefactor     15.734        13.283        .30208E-06    .11126E-03
  16  norm          .10000E-03    6.4777       -.17938E-06** at limit **
  17  norm          .10033E-03    5.8866       -.17292E-05** at limit **
  18  norm          .46618E-01    6.2416        .37050E-06   -.25650E-03
  19  Prefactor     13.061        8.2552        .12352E-05    .38123E-03
  20  Prefactor     65.055        54.387        .88669E-05    .10389E-03
  21  norm          6.8522        6.7186       -.13481E-05   -.15193E-03
  22  Prefactor     .10000E-03    32.706       -.24100E-06** at limit **
  23  norm          .10000E-03    .53656       -.29402E-07** at limit **
  24  norm          .10000E-03    2.0715       -.15943E-07** at limit **
  25  Prefactor     11.561        13.015       -.17942E-07   -.20908E-04
  26  Prefactor     .10000E-03    1.8264        .15760E-06** at limit **
  27  Prefactor     2.9271        51.113       -.79554E-05   -.39210E-04
  28  norm          .10000E-03    48.199        .12008E-04** at limit **
  29  Prefactor     5.9693        6.3368        .28243E-08   -.39523E-03
  30  Prefactor     4.7054        7.1453        .27920E-07   -.55574E-04
  31  Normalizat    1.2032        .22298       -.17711E-05    .86557E-04
  32  Prefactor     .94245        .19748        .18584E-06   -.13117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7043
  Prefactor  = 2.6567
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.6852
  Prefactor  = 17.112
  Prefactor  = 4.64278
  Prefactor  = 24.3891
  Prefactor  = 4.04359
  Prefactor  = 38.7474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7339
  norm       = 0.0001
  norm       = 0.000100329
  norm       = 0.046618
  Prefactor  = 13.0608
  Prefactor  = 65.0546
  norm       = 6.85218
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.561
  Prefactor  = 0.0001
  Prefactor  = 2.92709
  norm       = 0.000100001
  Prefactor  = 5.96931
  Prefactor  = 4.70538
  Normalizat = 1.2032
  Prefactor  = 0.942452
 **********
 **   18 **HESSE 
 **********

 FCN=   5351.794     FROM HESSE     STATUS=OK           663 CALLS     5088 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.704        36.109        .68012E-04   -1.4529    
   2  Prefactor     2.6567        8.1135        .12546E-02   -1.5382    
   3  Prefactor     .10000E-03    2.3809        .10918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    780.50        .18278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0463        .12459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1554        .10429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.685        40.571        .63635E-04   -1.4447    
   8  Prefactor     17.112        8.5357        .96819E-04   -1.4880    
   9  Prefactor     4.6428        45.552        .18710E-03   -1.5277    
  10  Prefactor     24.389        39.485        .81110E-04   -1.4720    
  11  Prefactor     4.0436        20.075        .10031E-02   -1.5306    
  12  Prefactor     38.747        112.36        .64373E-04   -1.4462    
  13  Prefactor     .10000E-03    5.3940        .16551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.734        13.255        .10098E-03   -1.4914    
  16  norm          .10000E-03    6.4871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10033E-03    48.627        .33718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .46618E-01    6.6922        .54422E-01   -1.5665    
  19  Prefactor     13.061        8.1862        .11084E-03   -1.4985    
  20  Prefactor     65.055        54.456        .49733E-04   -1.4093    
  21  norm          6.8522        6.8023        .14555E-03   -1.5184    
  22  Prefactor     .10000E-03    33.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .55291        .10415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.0754        .10278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.561        13.026        .11782E-03   -1.5028    
  26  Prefactor     .10000E-03    1.8405        .96365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.9271        51.311        .23736E-03   -1.5366    
  28  norm          .10000E-03    48.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.9693        6.3123        .16436E-03   -1.5219    
  30  Prefactor     4.7054        7.1508        .18550E-03   -1.5274    
  31  Normalizat    1.2032        .27264        .25140E-03   -.86504    
  32  Prefactor     .94245        .23934        .26512E-03   -.94673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3084e-07
Minuit parameter uncertainties:
  1  36.1314
  2  8.11684
  3  6.64622e-06
  4  0.00214626
  5  4.24047e-07
  6  2.74345e-06
  7  40.5992
  8  8.53631
  9  29.1137
  10  39.5269
  11  18.0288
  12  112.983
  13  8.11756e-06
  14  3.21375e-05
  15  13.2577
  16  7.63299e-06
  17  0.00800698
  18  1.11602
  19  8.18693
  20  54.498
  21  6.80309
  22  0.00015771
  23  2.23644e-06
  24  1.51894e-05
  25  13.0292
  26  1.7363e-05
  27  24.5347
  28  0.000469304
  29  6.31297
  30  7.15211
  31  0.272966
  32  0.239605
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  3.214e-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:  9.425e-01  2.396e-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.203e+00  2.730e-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: 4.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551190/likelihoodResults_518227201_518486401_4FGL_J2251.5-4928_daily_bin1076.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) = 5351.79377127
delta logL = -0.000117865312859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5351.79365358
delta logL = -1.69975464814e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9877       1.0000          .0000       10.000    
     3 'Normalizat'    1.2032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94245       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=   5351.794     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    19.407        .90712E-02** at limit **
   2  Index         1.9578        5.6986        .50000        .57368E-05
   3  Normalizat    1.2032        .36939E-02    .56849E-01   -.70795E-04
   4  Prefactor     .94245        .35130E-02    .45544E-01   -.28283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 1.9578
  Normalizat = 1.2032
  Prefactor  = 0.942454
 **********
 **   18 **HESSE 
 **********

 FCN=   5351.794     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    118.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9578        5.9366        .50000       -.65409    
   3  Normalizat    1.2032        .91466E-02    .25140E-03   -.86504    
   4  Prefactor     .94245        .87011E-02    .26512E-03   -.94673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.50837e-08
Minuit parameter uncertainties:
  1  0.00194218
  2  127.565
  3  0.00914665
  4  0.00870114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551190': 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) = 5351.79365352
delta logL = -1.07153937279e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.942e-03  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.958e+00  1.276e+02  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:  9.425e-01  8.701e-03  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.203e+00  9.147e-03  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/551190/cmap_HighResolution_518227201_518486401_4FGL_J2251.5-4928_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.92e-08', time_completed='2021-09-29 00:51:38.041355', job_id='551190', GAL2='0.94', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632901898.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1076' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 551190: <4FGL_J2251.5-4928_daily_bin1076> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1076 342.879 -49.4691 518227201 518486401 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 :                                   823.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

