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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin887
RA = 342.879, Dec = -49.4691
tmin = 469238401, tmax = 469497601
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='549724', job_status='RUN', time_executed='2021-09-29 00:30:36.319662', time_epoch_executed='1632900636.32' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549724/ft1_4FGL_J2251.5-4928_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549724/ft2_4FGL_J2251.5-4928_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549724/ft1_4FGL_J2251.5-4928_daily_bin887.fits outfile=/scratch/kocevski/549724/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin887.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=469238401.0 tmax=469497601.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.46
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549724/ft1_filtered_4FGL_J2251.5-4928_daily_bin887.fits" evtable="EVENTS" scfile=/scratch/kocevski/549724/ft2_4FGL_J2251.5-4928_daily_bin887.fits sctable="SC_DATA" outfile=/scratch/kocevski/549724/ltcube_469238401_469497601_4FGL_J2251.5-4928_daily_bin887.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/549724/ft2_4FGL_J2251.5-4928_daily_bin887.fits
.....................!
real 12.14
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549724/ft1_filtered_4FGL_J2251.5-4928_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/549724/ft2_4FGL_J2251.5-4928_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/549724/ltcube_469238401_469497601_4FGL_J2251.5-4928_daily_bin887.fits outfile=/scratch/kocevski/549724/expmap_469238401_469497601_4FGL_J2251.5-4928_daily_bin887.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/549724/ltcube_469238401_469497601_4FGL_J2251.5-4928_daily_bin887.fits
.....................!
real 191.85
user 186.60
sys 4.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/549724/ft1_filtered_4FGL_J2251.5-4928_daily_bin887.fits scfile=/scratch/kocevski/549724/ft2_4FGL_J2251.5-4928_daily_bin887.fits outfile=/scratch/kocevski/549724/cmap_469238401_469497601_4FGL_J2251.5-4928_daily_bin887.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549724/ft1_filtered_4FGL_J2251.5-4928_daily_bin887.fits scfile=/scratch/kocevski/549724/ft2_4FGL_J2251.5-4928_daily_bin887.fits outfile=/scratch/kocevski/549724/cmap_HighResolution_469238401_469497601_4FGL_J2251.5-4928_daily_bin887.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549724/ft1_filtered_4FGL_J2251.5-4928_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/549724/ft2_4FGL_J2251.5-4928_daily_bin887.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549724/Model_4FGL_J2251.5-4928_daily_bin887.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/549724/ft1_filtered_4FGL_J2251.5-4928_daily_bin887.fits.....................!
real 46.38
user 45.03
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0881       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2720       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18457E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0289       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.225       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16660E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.481       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8099       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.233       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5700       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.7311       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.7742       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .80018       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1402       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=   6291.426     FROM MIGRAD    STATUS=CONVERGED   1529 CALLS     4443 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1200        156.91        .71526E-02   -.27971E-03
   2  Prefactor     .10000E-03    6.9381        .18142E-02** at limit **
   3  Prefactor     5.2738        4.4353        .14365E-03    .51284E-04
   4  Prefactor     .10000E-03    54.970        .18142E-02** at limit **
   5  norm          .10000E-03    4.4042        .16198E-02** at limit **
   6  Prefactor     4.0292        4.1604        .15406E-03   -.16242E-03
   7  Prefactor     .10001E-03    155.88        .18142E-02** at limit **
   8  Prefactor     .10000E-03    5.6588        .36285E-03** at limit **
   9  Prefactor     5.8481        17.760        .16612E-03   -.61524E-04
  10  Prefactor     .10000E-03    41.270        .18142E-02** at limit **
  11  Prefactor     18.230        11.618        .93819E-04   -.14905E-04
  12  Prefactor     .10000E-03    25.837        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.6482        .14718E-02** at limit **
  14  Prefactor     .10044E-03    36.926        .13753    ** at limit **
  15  Prefactor     16.456        18.353        .98658E-04    .28359E-03
  16  norm          .10000E-03    4.6197        .16630E-02** at limit **
  17  norm          .10000E-03    1.6753        .10026E-02** at limit **
  18  norm          .10000E-03    1.5295        .95721E-03** at limit **
  19  Prefactor     .10000E-03    5.5995        .18142E-02** at limit **
  20  Prefactor     8.8052        26.638        .13504E-03   -.17174E-04
  21  norm          .10000E-03    2.8136        .25638E-03** at limit **
  22  Prefactor     48.239        19.060        .57738E-04    .22754E-03
  23  norm          .10000E-03    .73204        .10432E-02** at limit **
  24  norm          .10000E-03    6.9197        .36285E-03** at limit **
  25  Prefactor     .10000E-03    5.7728        .18142E-02** at limit **
  26  Prefactor     2.5697        2.7958        .12396E-03    .60713E-04
  27  Prefactor     3.7184        22.702        .20904E-03    .78476E-04
  28  norm          .10000E-03    5.4467        .18078E-02** at limit **
  29  Prefactor     1.7756        3.8610        .10977E-02    .13149E-02
  30  Prefactor     .10000E-03    1.0762        .80277E-03** at limit **
  31  Normalizat    .80014        .21953        .26075E-03    .19384E-03
  32  Prefactor     1.1402        .19987        .22249E-03    .11750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12004
  Prefactor  = 0.0001
  Prefactor  = 5.2738
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.0292
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 5.84809
  Prefactor  = 0.0001
  Prefactor  = 18.2304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100436
  Prefactor  = 16.4559
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.80519
  norm       = 0.0001
  Prefactor  = 48.2394
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56972
  Prefactor  = 3.71837
  norm       = 0.0001
  Prefactor  = 1.77563
  Prefactor  = 0.0001
  Normalizat = 0.800143
  Prefactor  = 1.14018
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.426     FROM HESSE     STATUS=OK           637 CALLS     5080 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1200        158.50        .28610E-03   -1.5496    
   2  Prefactor     .10000E-03    6.9408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2738        4.4349        .57460E-05   -1.5249    
   4  Prefactor     .10000E-03    54.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.4052        .32397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0292        4.1596        .61624E-05   -1.5306    
   7  Prefactor     .10001E-03    155.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6590        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8481        17.756        .66448E-05   -1.5224    
  10  Prefactor     .10000E-03    41.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.230        11.616        .37528E-05   -1.4854    
  12  Prefactor     .10000E-03    25.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6492        .29435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10044E-03    36.390        .13900       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.456        18.347        .39463E-05   -1.4896    
  16  norm          .10000E-03    4.6200        .33259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6753        .20051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5295        .19144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8052        26.627        .54017E-05   -1.5114    
  21  norm          .10000E-03    2.8136        .51275E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.239        19.054        .11548E-04   -1.4318    
  23  norm          .10000E-03    .73249        .20863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.9201        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.7735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.5697        2.7941        .49585E-05   -1.5387    
  27  Prefactor     3.7184        22.678        .83618E-05   -1.5322    
  28  norm          .10000E-03    5.4467        .36156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.7756        3.8578        .43909E-04   -1.5441    
  30  Prefactor     .10000E-03    1.0762        .16055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .80014        .21963        .10430E-04   -1.0006    
  32  Prefactor     1.1402        .19988        .44497E-04   -.88193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7695e-09
Minuit parameter uncertainties:
  1  26.7193
  2  9.8796e-06
  3  4.43516
  4  0.000131849
  5  3.42772e-06
  6  4.15994
  7  0.00203341
  8  4.55048e-05
  9  17.7716
  10  0.000165186
  11  11.6179
  12  4.14069e-06
  13  2.56093e-05
  14  0.00797242
  15  18.3535
  16  5.88468e-06
  17  1.352e-06
  18  9.74632e-07
  19  7.51627e-05
  20  26.6627
  21  4.28391e-06
  22  19.0566
  23  1.77183e-06
  24  1.74661e-05
  25  1.15596e-05
  26  2.79425
  27  18.3759
  28  2.20031e-07
  29  3.85832
  30  3.17361e-07
  31  0.219876
  32  0.200015
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.004e-04  7.972e-03  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.140e+00  2.000e-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:  8.001e-01  2.199e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549724/likelihoodResults_469238401_469497601_4FGL_J2251.5-4928_daily_bin887.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) = 6291.42591063
delta logL = -9.21426999412e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6291.42591063
delta logL = -9.21134596865e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6290.527     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      304 TOTAL
                     EDM=   .49E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64098        3.6691       -.28179E-05   -.36898E-05
   2  Index         3.7959        1.6685       -.23946E-04    .34154E-06
   3  Normalizat    .71759        .20082       -.20600E-05   -.78257E-05
   4  Prefactor     1.1854        .19848        .20302E-05   -.95083E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.64098
  Index      = 3.79585
  Normalizat = 0.717591
  Prefactor  = 1.18544
 **********
 **   18 **HESSE 
 **********

 FCN=   6290.527     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      341 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64098        19.105        .90712E-02   -1.5868    
   2  Index         3.7959        3.0163        .73809E-01   -.24322    
   3  Normalizat    .71759        .23515        .43612E-01   -1.0320    
   4  Prefactor     1.1854        .14245        .36227E-01   -.86781    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4376e-09
Minuit parameter uncertainties:
  1  7.00079
  2  3.25489
  3  0.235478
  4  0.142499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549724': 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) = 6290.5266692
delta logL = 0.899232215201

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  6.410e-01  7.001e+00  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  3.796e+00  3.255e+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.185e+00  1.425e-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:  7.176e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 3.80 +/- 3.25
Photon Flux (Free Index): 6.38e-08 +/- 1.30e-06
Energy Flux (Free Index): 9.92e-06 +/- 1.97e-04

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/549724/cmap_HighResolution_469238401_469497601_4FGL_J2251.5-4928_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', comment='SUCCESS', energy_flux2='9.92e-06', dlogl='8.99e-01', photon_flux2='6.38e-08', job_status='DONE', time_completed='2021-09-29 00:46:06.134787', photon_index_error2='3.25', photon_index2='3.80', ts='-0.00', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='5.26e-08', energy_flux_error2='1.97e-04', EG='0.80', time_epoch_completed='1632901566.13', return_code='0', job_id='549724', GAL2='1.19', EG2='0.72', return_code2='102', photon_flux_error2='1.30e-06', ts2='1.93', photon_index='1.85' WHERE bin_id='887' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:46:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 549724: <4FGL_J2251.5-4928_daily_bin887> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin887 342.879 -49.4691 469238401 469497601 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 :                                   926.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            941 sec.

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

