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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1468
RA = 342.879, Dec = -49.4691
tmin = 619833601, tmax = 620092801
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='553000', job_status='RUN', time_executed='2021-09-29 00:41:44.281421', time_epoch_executed='1632901304.28' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/553000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/553000/ft1_4FGL_J2251.5-4928_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/553000/ft2_4FGL_J2251.5-4928_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/553000/ft1_4FGL_J2251.5-4928_daily_bin1468.fits outfile=/scratch/kocevski/553000/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1468.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=619833601.0 tmax=620092801.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.48
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/553000/ft2_4FGL_J2251.5-4928_daily_bin1468.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/553000/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1468.fits evtable="EVENTS" outfile="/scratch/kocevski/553000/ft1_filtered_4FGL_J2251.5-4928_daily_bin1468.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/553000/ft1_filtered_4FGL_J2251.5-4928_daily_bin1468.fits" evtable="EVENTS" scfile=/scratch/kocevski/553000/ft2_4FGL_J2251.5-4928_daily_bin1468.fits sctable="SC_DATA" outfile=/scratch/kocevski/553000/ltcube_619833601_620092801_4FGL_J2251.5-4928_daily_bin1468.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/553000/ft2_4FGL_J2251.5-4928_daily_bin1468.fits
.....................!
real 12.13
user 11.46
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/553000/ft1_filtered_4FGL_J2251.5-4928_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/553000/ft2_4FGL_J2251.5-4928_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/553000/ltcube_619833601_620092801_4FGL_J2251.5-4928_daily_bin1468.fits outfile=/scratch/kocevski/553000/expmap_619833601_620092801_4FGL_J2251.5-4928_daily_bin1468.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/553000/ltcube_619833601_620092801_4FGL_J2251.5-4928_daily_bin1468.fits
.....................!
real 191.19
user 185.22
sys 5.62

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/553000/ft1_filtered_4FGL_J2251.5-4928_daily_bin1468.fits scfile=/scratch/kocevski/553000/ft2_4FGL_J2251.5-4928_daily_bin1468.fits outfile=/scratch/kocevski/553000/cmap_619833601_620092801_4FGL_J2251.5-4928_daily_bin1468.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/553000/ft1_filtered_4FGL_J2251.5-4928_daily_bin1468.fits scfile=/scratch/kocevski/553000/ft2_4FGL_J2251.5-4928_daily_bin1468.fits outfile=/scratch/kocevski/553000/cmap_HighResolution_619833601_620092801_4FGL_J2251.5-4928_daily_bin1468.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1648       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.111       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.484       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4619       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.161       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    23.482       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2942       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2034       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.520       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5626       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1461       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .87131       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=   5509.884     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4319 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.054        .23278E-05** at limit **
   2  Prefactor     .10000E-03    12.361       -.28899E-06** at limit **
   3  Prefactor     4.1654        4.0596        .19272E-06    .23483E-03
   4  Prefactor     .10000E-03    30.082       -.22227E-05** at limit **
   5  norm          .10000E-03    3.2567        .13790E-07** at limit **
   6  Prefactor     2.5505        2.8114        .69499E-06   -.26867E-02
   7  Prefactor     48.860        58.504       -.59099E-06   -.15625E-04
   8  Prefactor     .10000E-03    2.6527       -.47356E-08** at limit **
   9  Prefactor     12.108        34.269       -.69781E-06   -.36948E-04
  10  Prefactor     .10000E-03    19.881       -.15050E-06** at limit **
  11  Prefactor     .10000E-03    6.3029        .80816E-07** at limit **
  12  Prefactor     53.489        53.184        .65494E-06    .61444E-04
  13  Prefactor     9.4612        10.361       -.62599E-07   -.22313E-04
  14  Prefactor     53.163        42.082        .19741E-06    .29280E-04
  15  Prefactor     .10000E-03    18.179        .10555E-05** at limit **
  16  norm          23.478        15.465        .25394E-06    .66657E-04
  17  norm          3.2899        5.5753        .54634E-06    .31141E-05
  18  norm          .10000E-03    1.4744       -.13768E-08** at limit **
  19  Prefactor     1.2289        21.927       -.52086E-05   -.24811E-03
  20  Prefactor     .10000E-03    10.457        .11593E-06** at limit **
  21  norm          .10000E-03    1.2483       -.56602E-08** at limit **
  22  Prefactor     23.463        21.062        .21551E-05    .78142E-04
  23  norm          .10000E-03    .36086        .54735E-08** at limit **
  24  norm          .10000E-03    1.2698       -.53497E-08** at limit **
  25  Prefactor     .10000E-03    5.7784        .80056E-07** at limit **
  26  Prefactor     3.5630        3.3760        .15890E-06   -.14133E-02
  27  Prefactor     .10000E-03    19.916       -.25098E-06** at limit **
  28  norm          .10000E-03    6.0105       -.13239E-06** at limit **
  29  Prefactor     .10000E-03    1.6416       -.11578E-07** at limit **
  30  Prefactor     .10000E-03    1.1984       -.10573E-07** at limit **
  31  Normalizat    1.1462        .19015        .12491E-06    .46041E-04
  32  Prefactor     .87129        .17945       -.12961E-06    .48167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.16536
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 2.55047
  Prefactor  = 48.86
  Prefactor  = 0.0001
  Prefactor  = 12.1085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.4892
  Prefactor  = 9.46122
  Prefactor  = 53.1629
  Prefactor  = 0.000100001
  norm       = 23.4779
  norm       = 3.28994
  norm       = 0.0001
  Prefactor  = 1.2289
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.4631
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56299
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1462
  Prefactor  = 0.871288
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.884     FROM HESSE     STATUS=OK           647 CALLS     4966 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1654        4.0644        .14067E-03   -1.5300    
   4  Prefactor     .10000E-03    30.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2618        .13082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5505        4.8703        .10354E-02   -1.5389    
   7  Prefactor     48.860        59.370        .57368E-04   -1.4309    
   8  Prefactor     .10000E-03    2.6800        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.108        34.308        .11511E-03   -1.5012    
  10  Prefactor     .10000E-03    20.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.489        53.220        .54844E-04   -1.4244    
  13  Prefactor     9.4612        10.361        .13028E-03   -1.5093    
  14  Prefactor     53.163        42.094        .55010E-04   -1.4248    
  15  Prefactor     .10000E-03    18.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.478        15.472        .82661E-04   -1.4739    
  17  norm          3.2899        5.5715        .21757E-03   -1.5345    
  18  norm          .10000E-03    1.4750        .88026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2289        24.507        .41341E-03   -1.5486    
  20  Prefactor     .10000E-03    10.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2534        .80988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.463        21.771        .82594E-04   -1.4739    
  23  norm          .10000E-03    .36744        .43431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.2736        .81685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.7881        .17426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5630        3.5381        .65952E-03   -1.5330    
  27  Prefactor     .10000E-03    20.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.0123        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.6477        .92847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.2000        .79357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1462        .22243        .22886E-03   -.88282    
  32  Prefactor     .87129        .20741        .25225E-03   -.97152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51649e-09
Minuit parameter uncertainties:
  1  0.000668267
  2  7.97131e-05
  3  4.06464
  4  0.000611628
  5  1.25591e-06
  6  4.87109
  7  59.4424
  8  2.16225e-06
  9  34.3638
  10  6.01615e-05
  11  2.07685e-07
  12  53.2677
  13  10.3626
  14  42.1175
  15  0.000195679
  16  15.4742
  17  5.57237
  18  3.73586e-08
  19  10.9804
  20  1.9346e-05
  21  2.08971e-07
  22  21.7779
  23  3.09631e-07
  24  1.74268e-07
  25  9.06127e-06
  26  3.53827
  27  4.61039e-05
  28  1.59047e-05
  29  7.05027e-07
  30  2.75036e-07
  31  0.222617
  32  0.207598
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  5.316e+01  4.212e+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:  8.713e-01  2.076e-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.146e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.93
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 2.29e-05

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

Saving results to:
/scratch/kocevski/553000/likelihoodResults_619833601_620092801_4FGL_J2251.5-4928_daily_bin1468.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) = 5509.43470332
delta logL = 0.448974964557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5509.42229377
delta logL = 0.461384516121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.996       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4066       1.0000          .0000       10.000    
     3 'Normalizat'    1.1161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88717       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=   5509.422     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      259 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.996        361.74        .19642E-02    .10755E-03
   2  Index         2.4065        2.5374        .11189        .13323E-03
   3  Normalizat    1.1158        .79089E-01    .37381E-01    .63230E-05
   4  Prefactor     .88737        .63965E-01    .44841E-01    .11363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.996
  Index      = 2.40653
  Normalizat = 1.11585
  Prefactor  = 0.887365
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.422     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.996        41.931        .78569E-04   -1.4688    
   2  Index         2.4065        .73356        .39880E-02   -.54532    
   3  Normalizat    1.1158        .21519        .23144E-03   -.89245    
   4  Prefactor     .88737        .20771        .25012E-03   -.96584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15091e-09
Minuit parameter uncertainties:
  1  41.9787
  2  0.737212
  3  0.215363
  4  0.207899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/553000': 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) = 5509.42229322
delta logL = 0.46138506151

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.600e+01  4.198e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.407e+00  7.372e-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:  8.874e-01  2.079e-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.116e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 2.41 +/- 0.74
Photon Flux (Free Index): 5.22e-08 +/- 4.17e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.44e-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/553000/cmap_HighResolution_619833601_620092801_4FGL_J2251.5-4928_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='1.70e-05', photon_flux_error='2.23e-08', dlogl='4.61e-01', energy_flux='2.90e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-29 00:56:32.805684', photon_index_error2='0.74', photon_index2='2.41', ts='2.93', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.10e-08', energy_flux_error2='1.44e-05', EG='1.15', time_epoch_completed='1632902192.81', return_code='0', job_id='553000', GAL2='0.89', EG2='1.12', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='4.17e-08', ts2='3.85', photon_index='1.85' WHERE bin_id='1468' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:56:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 553000: <4FGL_J2251.5-4928_daily_bin1468> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1468> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:40:40 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:40:42 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:40:42 2021
Terminated at Wed Sep 29 00:56:33 2021
Results reported at Wed Sep 29 00:56:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1468 342.879 -49.4691 619833601 620092801 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.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

