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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin813
RA = 342.879, Dec = -49.4691
tmin = 450057601, tmax = 450316801
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='549568', job_status='RUN', time_executed='2021-09-29 00:30:33.557701', time_epoch_executed='1632900633.56' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549568/ft1_4FGL_J2251.5-4928_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549568/ft2_4FGL_J2251.5-4928_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549568/ft1_4FGL_J2251.5-4928_daily_bin813.fits outfile=/scratch/kocevski/549568/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin813.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=450057601.0 tmax=450316801.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.53
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549568/ft2_4FGL_J2251.5-4928_daily_bin813.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/549568/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin813.fits evtable="EVENTS" outfile="/scratch/kocevski/549568/ft1_filtered_4FGL_J2251.5-4928_daily_bin813.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549568/ft1_filtered_4FGL_J2251.5-4928_daily_bin813.fits" evtable="EVENTS" scfile=/scratch/kocevski/549568/ft2_4FGL_J2251.5-4928_daily_bin813.fits sctable="SC_DATA" outfile=/scratch/kocevski/549568/ltcube_450057601_450316801_4FGL_J2251.5-4928_daily_bin813.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/549568/ft2_4FGL_J2251.5-4928_daily_bin813.fits
.....................!
real 12.08
user 11.74
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549568/ft1_filtered_4FGL_J2251.5-4928_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/549568/ft2_4FGL_J2251.5-4928_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/549568/ltcube_450057601_450316801_4FGL_J2251.5-4928_daily_bin813.fits outfile=/scratch/kocevski/549568/expmap_450057601_450316801_4FGL_J2251.5-4928_daily_bin813.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/549568/ltcube_450057601_450316801_4FGL_J2251.5-4928_daily_bin813.fits
.....................!
real 189.49
user 185.07
sys 3.93

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/549568/ft1_filtered_4FGL_J2251.5-4928_daily_bin813.fits scfile=/scratch/kocevski/549568/ft2_4FGL_J2251.5-4928_daily_bin813.fits outfile=/scratch/kocevski/549568/cmap_450057601_450316801_4FGL_J2251.5-4928_daily_bin813.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549568/ft1_filtered_4FGL_J2251.5-4928_daily_bin813.fits scfile=/scratch/kocevski/549568/ft2_4FGL_J2251.5-4928_daily_bin813.fits outfile=/scratch/kocevski/549568/cmap_HighResolution_450057601_450316801_4FGL_J2251.5-4928_daily_bin813.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.975       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41542       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18817E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .95604E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7380       1.0000         .10000E-03   10000.    
    17 'norm      '    .52464E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.557       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4665       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.593       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1452       1.0000         .10000E-03   10000.    
    24 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.4547       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16449E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .16343E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .94881       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1519       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=   5096.977     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     4516 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.917       -.44062E-06** at limit **
   2  Prefactor     5.4396        6.7352       -.22365E-05   -.54362E-04
   3  Prefactor     3.7742        4.5330       -.33322E-06    .21246E-04
   4  Prefactor     .10000E-03    52.006       -.16464E-05** at limit **
   5  norm          18.977        10.019        .20735E-06    .84479E-04
   6  Prefactor     .10000E-03    2.3118       -.13573E-06** at limit **
   7  Prefactor     .10000E-03    17.673       -.45058E-07** at limit **
   8  Prefactor     .41027        5.0655        .14216E-05   -.21535E-03
   9  Prefactor     .10004E-03    23.033       -.35057E-07** at limit **
  10  Prefactor     .10000E-03    11.790        .11063E-05** at limit **
  11  Prefactor     .10000E-03    5.7159       -.48536E-07** at limit **
  12  Prefactor     .10000E-03    33.243        .71532E-06** at limit **
  13  Prefactor     .10000E-03    9.0744       -.11388E-06** at limit **
  14  Prefactor     .10000E-03    54.754        .72221E-06** at limit **
  15  Prefactor     .10032E-03    22.465        .39395E-05** at limit **
  16  norm          3.7392        8.6362       -.72569E-06   -.35399E-04
  17  norm          .62469E-01    9.0530        .30107E-05   -.51521E-03
  18  norm          .10000E-03    3.4950        .56597E-06** at limit **
  19  Prefactor     .10000E-03    5.1149        .20040E-06** at limit **
  20  Prefactor     17.469        53.430        .45011E-05    .63337E-04
  21  norm          2.4734        5.6315       -.16252E-05   -.12911E-03
  22  Prefactor     23.587        19.773       -.15326E-06   -.22055E-04
  23  norm          2.1454        1.5654       -.57851E-07   -.29217E-03
  24  norm          .10000E-03    3.7174        .76217E-06** at limit **
  25  Prefactor     5.4513        15.948       -.85529E-06    .82794E-05
  26  Prefactor     .10000E-03    2.1646       -.61347E-07** at limit **
  27  Prefactor     .10000E-03    11.701       -.11296E-05** at limit **
  28  norm          .10007E-03    80.500       -.10986E-04** at limit **
  29  Prefactor     .10000E-03    7.4493       -.35309E-06** at limit **
  30  Prefactor     .10000E-03    2.8695       -.18320E-07** at limit **
  31  Normalizat    .94947        .21300        .10083E-05    .55420E-04
  32  Prefactor     1.1513        .19749        .34162E-06    .17012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.43959
  Prefactor  = 3.77422
  Prefactor  = 0.000100001
  norm       = 18.9775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.410269
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100325
  norm       = 3.73916
  norm       = 0.0624695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4687
  norm       = 2.47343
  Prefactor  = 23.5874
  norm       = 2.14545
  norm       = 0.0001
  Prefactor  = 5.45128
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.949473
  Prefactor  = 1.15133
 **********
 **   18 **HESSE 
 **********

 FCN=   5096.977     FROM HESSE     STATUS=OK           679 CALLS     5195 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4396        6.7210        .86150E-03   -1.5241    
   3  Prefactor     3.7742        4.5216        .15715E-03   -1.5319    
   4  Prefactor     .10000E-03    52.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.977        10.021        .91946E-04   -1.4836    
   6  Prefactor     .10000E-03    2.3416        .10598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .41027        31.981        .26892E-02   -1.5580    
   9  Prefactor     .10004E-03    27.897        .98961E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7527        .16669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.2094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10032E-03    127.13        .52168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7392        8.6199        .20884E-03   -1.5321    
  17  norm          .62469E-01    6.0570        .59153E-01   -1.5658    
  18  norm          .10000E-03    3.5081        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1293        .15726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.469        53.419        .95585E-04   -1.4872    
  21  norm          2.4734        5.6218        .18558E-03   -1.5393    
  22  Prefactor     23.587        19.789        .82467E-04   -1.4736    
  23  norm          2.1454        1.5157        .67850E-04   -1.5415    
  24  norm          .10000E-03    3.8258        .26784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.4513        15.969        .17205E-03   -1.5241    
  26  Prefactor     .10000E-03    8.1903        .19902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10007E-03    87.194        .62028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.6163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.8821        .11809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .94947        .26101        .25966E-03   -.94743    
  32  Prefactor     1.1513        .24122        .23401E-03   -.87842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13584e-09
Minuit parameter uncertainties:
  1  7.40015e-05
  2  6.7219
  3  4.52206
  4  0.000503904
  5  10.0217
  6  6.65424e-06
  7  4.96837e-06
  8  7.24764
  9  0.00220089
  10  0.000148694
  11  6.94665e-06
  12  0.000171407
  13  1.91162e-05
  14  0.000170585
  15  0.0128763
  16  8.62271
  17  1.22939
  18  8.07049e-06
  19  9.7622e-06
  20  53.5653
  21  5.62296
  22  19.7945
  23  1.51572
  24  8.51063e-06
  25  15.9814
  26  0.000152711
  27  0.000161401
  28  0.00511125
  29  2.76897e-05
  30  3.45468e-06
  31  0.261362
  32  0.241449
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.495e-01  2.614e-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: 5.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549568/likelihoodResults_450057601_450316801_4FGL_J2251.5-4928_daily_bin813.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) = 5096.97689811
delta logL = -8.64006306074e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5096.96616567
delta logL = 0.010646033872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2838       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6347       1.0000          .0000       10.000    
     3 'Normalizat'    .94790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1501       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5096.966     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      313 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2886        44.949        .39145E-03    .27648E-04
   2  Index         2.6370        2.9199        .11142E-01    .18458E-04
   3  Normalizat    .94491        .24265        .26023E-03    .66806E-03
   4  Prefactor     1.1525        .23763        .23390E-03    .84085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2886
  Index      = 2.63699
  Normalizat = 0.944909
  Prefactor  = 1.15255
 **********
 **   18 **HESSE 
 **********

 FCN=   5096.966     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2886        25.108        .15658E-04   -1.5481    
   2  Index         2.6370        2.2743        .44569E-03   -.49224    
   3  Normalizat    .94491        .24298        .52046E-04   -.94900    
   4  Prefactor     1.1525        .23786        .46781E-04   -.87804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30818e-10
Minuit parameter uncertainties:
  1  11.3812
  2  2.38976
  3  0.243262
  4  0.238076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549568': 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) = 5096.96608834
delta logL = 0.0107233677909

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.289e+00  1.138e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.637e+00  2.390e+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:  1.153e+00  2.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.449e-01  2.433e-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/549568/cmap_HighResolution_450057601_450316801_4FGL_J2251.5-4928_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-29 00:44:15.918917', job_id='549568', GAL2='1.15', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1632901455.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.07e-02', ts2='0.02', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='813' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:44:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 549568: <4FGL_J2251.5-4928_daily_bin813> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin813> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:30:18 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:30:18 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:30:18 2021
Terminated at Wed Sep 29 00:44:16 2021
Results reported at Wed Sep 29 00:44:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin813 342.879 -49.4691 450057601 450316801 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 :                                   819.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            838 sec.

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

