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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1011
RA = 342.879, Dec = -49.4691
tmin = 501379201, tmax = 501638401
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='551085', job_status='RUN', time_executed='2021-09-29 00:36:34.114399', time_epoch_executed='1632900994.11' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551085

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551085/ft1_4FGL_J2251.5-4928_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551085/ft2_4FGL_J2251.5-4928_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551085/ft1_4FGL_J2251.5-4928_daily_bin1011.fits outfile=/scratch/kocevski/551085/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1011.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=501379201.0 tmax=501638401.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.59
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551085/ft1_filtered_4FGL_J2251.5-4928_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/551085/ft2_4FGL_J2251.5-4928_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/551085/ltcube_501379201_501638401_4FGL_J2251.5-4928_daily_bin1011.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/551085/ft2_4FGL_J2251.5-4928_daily_bin1011.fits
.....................!
real 12.46
user 11.88
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551085/ft1_filtered_4FGL_J2251.5-4928_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/551085/ft2_4FGL_J2251.5-4928_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/551085/ltcube_501379201_501638401_4FGL_J2251.5-4928_daily_bin1011.fits outfile=/scratch/kocevski/551085/expmap_501379201_501638401_4FGL_J2251.5-4928_daily_bin1011.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/551085/ltcube_501379201_501638401_4FGL_J2251.5-4928_daily_bin1011.fits
.....................!
real 190.78
user 185.43
sys 4.83

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/551085/ft1_filtered_4FGL_J2251.5-4928_daily_bin1011.fits scfile=/scratch/kocevski/551085/ft2_4FGL_J2251.5-4928_daily_bin1011.fits outfile=/scratch/kocevski/551085/cmap_501379201_501638401_4FGL_J2251.5-4928_daily_bin1011.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551085/ft1_filtered_4FGL_J2251.5-4928_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/551085/ft2_4FGL_J2251.5-4928_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551085/Model_4FGL_J2251.5-4928_daily_bin1011.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/551085/ft1_filtered_4FGL_J2251.5-4928_daily_bin1011.fits.....................!
real 44.55
user 43.15
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13896E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7733       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5593       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8835       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18473E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12230E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0515       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11304E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1131       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.7694       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .33640E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .37445E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.6479       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73887       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=   5966.122     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     4417 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.157        36.374        .68520E-05    .34122E-05
   2  Prefactor     .10000E-03    8.8342       -.16322E-06** at limit **
   3  Prefactor     1.8002        2.9723       -.58488E-07   -.26438E-04
   4  Prefactor     .10000E-03    41.721       -.32146E-05** at limit **
   5  norm          .10000E-03    1.8013        .35837E-08** at limit **
   6  Prefactor     2.7717        2.5365       -.12509E-07   -.22788E-05
   7  Prefactor     34.409        35.595        .19287E-05    .14805E-05
   8  Prefactor     .10000E-03    2.1936       -.25812E-07** at limit **
   9  Prefactor     .10000E-03    12.576        .55996E-06** at limit **
  10  Prefactor     .10000E-03    8.5490        .79900E-07** at limit **
  11  Prefactor     4.5534        9.4972       -.17197E-07   -.10231E-04
  12  Prefactor     .10000E-03    22.864        .62804E-05** at limit **
  13  Prefactor     3.8840        4.8750       -.23552E-05   -.27538E-04
  14  Prefactor     .10000E-03    17.334        .10522E-05** at limit **
  15  Prefactor     .10000E-03    5.5396        .30666E-07** at limit **
  16  norm          .10000E-03    3.2118       -.62600E-09** at limit **
  17  norm          .10000E-03    1.9485       -.26524E-08** at limit **
  18  norm          .10000E-03    1.3656       -.18266E-08** at limit **
  19  Prefactor     .14628        5.7581        .52123E-07    .29646E-04
  20  Prefactor     .10000E-03    64.083        .28648E-05** at limit **
  21  norm          .10000E-03    2.7845        .12007E-07** at limit **
  22  Prefactor     5.1466        15.817       -.68842E-07   -.72729E-04
  23  norm          .10000E-03    .30193        .64542E-08** at limit **
  24  norm          .10000E-03    3.9902       -.17656E-07** at limit **
  25  Prefactor     1.1081        3.2598        .15135E-06   -.19318E-03
  26  Prefactor     1.7675        2.0796        .74419E-07    .31277E-03
  27  Prefactor     .10000E-03    20.357       -.60856E-05** at limit **
  28  norm          .10005E-03    15.760        .14216E-05** at limit **
  29  Prefactor     .10004E-03    2.7351       -.85843E-06** at limit **
  30  Prefactor     4.6461        4.2634        .20562E-06    .62537E-04
  31  Normalizat    1.1565        .16583        .10083E-06    .13218E-03
  32  Prefactor     .73874        .15918       -.34820E-06    .83210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1573
  Prefactor  = 0.0001
  Prefactor  = 1.80025
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.77168
  Prefactor  = 34.4089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55345
  Prefactor  = 0.0001
  Prefactor  = 3.88403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.146282
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.14656
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.10807
  Prefactor  = 1.76754
  Prefactor  = 0.0001
  norm       = 0.000100049
  Prefactor  = 0.000100038
  Prefactor  = 4.64614
  Normalizat = 1.15647
  Prefactor  = 0.738745
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.122     FROM HESSE     STATUS=OK           657 CALLS     5074 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.157        36.454        .10652E-03   -1.4955    
   2  Prefactor     .10000E-03    9.0606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8002        2.9523        .16368E-03   -1.5440    
   4  Prefactor     .10000E-03    41.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8018        .10124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7717        2.5355        .11315E-03   -1.5375    
   7  Prefactor     34.409        35.590        .68324E-04   -1.4534    
   8  Prefactor     .10000E-03    2.2141        .11168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5534        9.5067        .18853E-03   -1.5281    
  12  Prefactor     .10000E-03    22.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8840        4.8837        .18547E-03   -1.5314    
  14  Prefactor     .10000E-03    17.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5606        .17751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2130        .13519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9505        .10529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3667        .88149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14628        343.73        .26957E-02   -1.5631    
  20  Prefactor     .10000E-03    65.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8668        .25146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1466        39.240        .89452E-03   -1.5254    
  23  norm          .10000E-03    .30660        .41291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.1545        .30107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1081        48.441        .22350E-02   -1.5497    
  26  Prefactor     1.7675        2.0455        .11531E-03   -1.5442    
  27  Prefactor     .10000E-03    20.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10005E-03    101.80        .56537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10004E-03    15.591        .22897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.6461        4.2717        .14745E-03   -1.5277    
  31  Normalizat    1.1565        .19624        .20657E-03   -.87959    
  32  Prefactor     .73874        .18705        .24768E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55693e-09
Minuit parameter uncertainties:
  1  36.5117
  2  6.08106e-05
  3  2.95255
  4  3.06447e-05
  5  1.49659e-08
  6  2.53562
  7  35.6119
  8  7.85856e-07
  9  1.83481e-06
  10  1.36062e-06
  11  9.50985
  12  9.84444e-07
  13  4.88419
  14  7.84057e-07
  15  1.43228e-06
  16  3.81971e-07
  17  1.69964e-07
  18  1.18786e-08
  19  14.2597
  20  2.62883e-05
  21  4.51089e-07
  22  28.4476
  23  3.4956e-07
  24  1.92096e-07
  25  14.6649
  26  2.04554
  27  5.97521e-05
  28  0.00449062
  29  0.00154698
  30  4.27201
  31  0.196369
  32  0.187212
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  7.841e-07  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.387e-01  1.872e-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.156e+00  1.964e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551085/likelihoodResults_501379201_501638401_4FGL_J2251.5-4928_daily_bin1011.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) = 5966.12268025
delta logL = -0.000274371026535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5966.12240576
delta logL = 1.22180608741e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9427       1.0000          .0000       10.000    
     3 'Normalizat'    1.1565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73875       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=   5966.122     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    482.68        .90712E-02** at limit **
   2  Index         1.9578        7.5839        .50000       -.69325E-05
   3  Normalizat    1.1565        .20807E-01    .36059E-01    .61354E-05
   4  Prefactor     .73875        .20489E-01    .42915E-01    .11017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.9578
  Normalizat = 1.15647
  Prefactor  = 0.738746
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.122     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6585.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9578        5.6562        .50000       -.65409    
   3  Normalizat    1.1565        .84786E-01    .20657E-03   -.87959    
   4  Prefactor     .73875        .83436E-01    .24768E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.63912e-08
Minuit parameter uncertainties:
  1  0.00660351
  2  55.5393
  3  0.0847962
  4  0.0834503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551085': 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) = 5966.12240572
delta logL = 1.61107891472e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  6.604e-03  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.958e+00  5.554e+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:  7.387e-01  8.345e-02  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.156e+00  8.480e-02  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/551085/cmap_HighResolution_501379201_501638401_4FGL_J2251.5-4928_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-29 00:51:38.343012', job_id='551085', GAL2='0.74', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632901898.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1011' 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@bullet0225>
Subject: Job 551085: <4FGL_J2251.5-4928_daily_bin1011> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1011 342.879 -49.4691 501379201 501638401 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 :                                   901.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

