/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 5 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 = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2251.5-4928_daily_bin223
RA = 342.879, Dec = -49.4691
tmin = 297129601, tmax = 297388801
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='535527', job_status='RUN', time_executed='2021-09-28 23:50:34.459897', time_epoch_executed='1632898234.46' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535527

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535527/ft1_4FGL_J2251.5-4928_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535527/ft2_4FGL_J2251.5-4928_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535527/ft1_4FGL_J2251.5-4928_daily_bin223.fits outfile=/scratch/kocevski/535527/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin223.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=297129601.0 tmax=297388801.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.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535527/ft1_filtered_4FGL_J2251.5-4928_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/535527/ft2_4FGL_J2251.5-4928_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/535527/ltcube_297129601_297388801_4FGL_J2251.5-4928_daily_bin223.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/535527/ft2_4FGL_J2251.5-4928_daily_bin223.fits
.....................!
real 11.85
user 11.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535527/ft1_filtered_4FGL_J2251.5-4928_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/535527/ft2_4FGL_J2251.5-4928_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/535527/ltcube_297129601_297388801_4FGL_J2251.5-4928_daily_bin223.fits outfile=/scratch/kocevski/535527/expmap_297129601_297388801_4FGL_J2251.5-4928_daily_bin223.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/535527/ltcube_297129601_297388801_4FGL_J2251.5-4928_daily_bin223.fits
.....................!
real 191.22
user 185.59
sys 5.17

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/535527/ft1_filtered_4FGL_J2251.5-4928_daily_bin223.fits scfile=/scratch/kocevski/535527/ft2_4FGL_J2251.5-4928_daily_bin223.fits outfile=/scratch/kocevski/535527/cmap_297129601_297388801_4FGL_J2251.5-4928_daily_bin223.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535527/ft1_filtered_4FGL_J2251.5-4928_daily_bin223.fits scfile=/scratch/kocevski/535527/ft2_4FGL_J2251.5-4928_daily_bin223.fits outfile=/scratch/kocevski/535527/cmap_HighResolution_297129601_297388801_4FGL_J2251.5-4928_daily_bin223.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/535527/ft1_filtered_4FGL_J2251.5-4928_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/535527/ft2_4FGL_J2251.5-4928_daily_bin223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/535527/Model_4FGL_J2251.5-4928_daily_bin223.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/535527/ft1_filtered_4FGL_J2251.5-4928_daily_bin223.fits.....................!
real 45.21
user 43.86
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.949       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12456E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0955       1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.309       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .83455E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17566E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    149.82       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .62023       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2471       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.614       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18248E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.162       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9065       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0759       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.8443       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.3310       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91577       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2046       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=   6023.067     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4392 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.921        43.053       -.27907E-06    .95535E-04
   2  Prefactor     .10000E-03    7.5665       -.17062E-05** at limit **
   3  Prefactor     1.0998        4.3020        .21750E-06    .14502E-03
   4  Prefactor     62.160        93.061       -.13919E-05   -.15538E-04
   5  norm          2.5108        5.4308       -.93401E-07    .19735E-04
   6  Prefactor     .10000E-03    3.8284        .67412E-06** at limit **
   7  Prefactor     .10000E-03    20.908        .14291E-06** at limit **
   8  Prefactor     .10000E-03    9.9116        .65053E-06** at limit **
   9  Prefactor     34.489        30.662        .23058E-06   -.33355E-04
  10  Prefactor     .10000E-03    140.65        .19339E-04** at limit **
  11  Prefactor     .10000E-03    8.4543        .40909E-06** at limit **
  12  Prefactor     149.82        103.19       -.45576E-06   -.33443E-04
  13  Prefactor     .61954        12.451       -.41295E-05    .13020E-04
  14  Prefactor     8.2512        24.603       -.15914E-06   -.23564E-04
  15  Prefactor     .10000E-03    13.286        .42833E-06** at limit **
  16  norm          .10000E-03    8.7762        .18650E-06** at limit **
  17  norm          .10000E-03    2.7658        .26651E-07** at limit **
  18  norm          .10000E-03    2.2125       -.28681E-08** at limit **
  19  Prefactor     14.612        9.8860       -.83784E-08   -.51162E-04
  20  Prefactor     .10000E-03    217.59        .58671E-06** at limit **
  21  norm          14.153        7.6645       -.18243E-06   -.10443E-03
  22  Prefactor     .10000E-03    14.749        .28530E-06** at limit **
  23  norm          3.9066        1.8223       -.98728E-08   -.16162E-03
  24  norm          2.0728        6.2729        .14108E-06   -.11674E-04
  25  Prefactor     .10000E-03    6.7951        .22727E-06** at limit **
  26  Prefactor     6.8469        4.7329       -.73244E-08   -.14309E-03
  27  Prefactor     .10000E-03    30.376        .33085E-08** at limit **
  28  norm          .10000E-03    10.965        .12056E-07** at limit **
  29  Prefactor     7.3315        5.6896        .16033E-07   -.55265E-04
  30  Prefactor     .10000E-03    4.2668        .24970E-06** at limit **
  31  Normalizat    .91565        .20367       -.34446E-06   -.29576E-04
  32  Prefactor     1.2047        .18982       -.56096E-06    .10367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.9207
  Prefactor  = 0.0001
  Prefactor  = 1.09976
  Prefactor  = 62.1595
  norm       = 2.51084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.4892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 149.816
  Prefactor  = 0.619536
  Prefactor  = 8.25116
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.612
  Prefactor  = 0.000100002
  norm       = 14.1527
  Prefactor  = 0.0001
  norm       = 3.90657
  norm       = 2.07281
  Prefactor  = 0.0001
  Prefactor  = 6.84692
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.33154
  Prefactor  = 0.0001
  Normalizat = 0.915654
  Prefactor  = 1.20469
 **********
 **   18 **HESSE 
 **********

 FCN=   6023.067     FROM HESSE     STATUS=OK           659 CALLS     5051 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.921        42.990        .62642E-04   -1.4428    
   2  Prefactor     .10000E-03    7.5802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0998        4.3007        .29195E-03   -1.5498    
   4  Prefactor     62.160        93.394        .25417E-03   -1.4129    
   5  norm          2.5108        5.4063        .25787E-03   -1.5391    
   6  Prefactor     .10000E-03    3.9768        .29784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.489        30.750        .68238E-04   -1.4533    
  10  Prefactor     .10000E-03    137.67        .65450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     149.82        102.45        .32927E-04   -1.3254    
  13  Prefactor     .61954        5.4749        .59752E-01   -1.5551    
  14  Prefactor     8.2512        24.573        .13960E-03   -1.5133    
  15  Prefactor     .10000E-03    13.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.8142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7671        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2129        .11271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.612        9.8871        .52386E-03   -1.4943    
  20  Prefactor     .10000E-03    219.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.153        7.5660        .10643E-03   -1.4955    
  22  Prefactor     .10000E-03    14.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9066        1.8217        .64144E-04   -1.5313    
  24  norm          2.0728        6.1915        .28666E-03   -1.5420    
  25  Prefactor     .10000E-03    6.8354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.8469        4.7250        .13056E-03   -1.5185    
  27  Prefactor     .10000E-03    30.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    10.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.3315        5.6875        .14813E-03   -1.5166    
  30  Prefactor     .10000E-03    4.3159        .15665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .91565        .24127        .27795E-03   -.95912    
  32  Prefactor     1.2047        .22536        .24051E-03   -.86187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34502e-09
Minuit parameter uncertainties:
  1  43.0221
  2  1.07528e-05
  3  4.30191
  4  93.6157
  5  5.40732
  6  1.14361e-05
  7  4.22908e-05
  8  3.78914e-05
  9  30.7637
  10  0.000162216
  11  2.69419e-07
  12  102.569
  13  3.68358
  14  24.6028
  15  1.03063e-05
  16  1.83891e-05
  17  1.48445e-06
  18  5.10681e-06
  19  9.88825
  20  0.00121176
  21  7.5665
  22  5.62777e-05
  23  1.82172
  24  6.19338
  25  1.5358e-05
  26  4.72527
  27  3.31622e-05
  28  7.43408e-06
  29  5.68789
  30  8.31919e-06
  31  0.241552
  32  0.225538
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  8.251e+00  2.460e+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:  1.205e+00  2.255e-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.157e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/535527/likelihoodResults_297129601_297388801_4FGL_J2251.5-4928_daily_bin223.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) = 6022.92050964
delta logL = 0.146907771712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6021.86284732
delta logL = 1.20457009325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.6937       1.0000          .0000       10.000    
     3 'Normalizat'    .80463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2812       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=   6021.863     FROM MIGRAD    STATUS=CONVERGED    197 CALLS      526 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95651E-03    .17788E-06** at limit **
   2  Index         6.6935        .24503       -.21881E-05    .23551E-03
   3  Normalizat    .80453        .23690        .12534E-05   -.77666E-04
   4  Prefactor     1.2813        .22931        .62598E-05    .12368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.69349
  Normalizat = 0.804532
  Prefactor  = 1.28134
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.863     FROM HESSE     STATUS=NOT POSDEF    45 CALLS      571 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30653E-02    .30645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6935        1.7915        .84685E-01    .34553    
   3  Normalizat    .80453        .49523E-01    .66674E-01   -.99901    
   4  Prefactor     1.2813        .47519E-01    .53001E-01   -.83864    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.99191e-08
Minuit parameter uncertainties:
  1  4.76295e-11
  2  1.8379
  3  0.0495255
  4  0.0475205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535527': 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) = 6021.86283481
delta logL = 1.20458260782

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  4.763e-11  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  6.693e+00  1.838e+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.281e+00  4.752e-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:  8.045e-01  4.953e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 6.69 +/- 1.84
Photon Flux (Free Index): 7.06e-08 +/- 4.00e-07
Energy Flux (Free Index): 8.53e-06 +/- 4.80e-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/535527/cmap_HighResolution_297129601_297388801_4FGL_J2251.5-4928_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-03', comment='SUCCESS', energy_flux2='8.53e-06', dlogl='1.20e+00', photon_flux2='7.06e-08', job_status='DONE', time_completed='2021-09-29 00:05:55.122150', photon_index_error2='1.84', photon_index2='6.69', ts='0.14', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='5.01e-08', energy_flux_error2='4.80e-05', EG='0.92', time_epoch_completed='1632899155.12', return_code='0', job_id='535527', GAL2='1.28', EG2='0.80', return_code2='102', photon_flux_error2='4.00e-07', ts2='2.75', photon_index='1.85' WHERE bin_id='223' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:05:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 535527: <4FGL_J2251.5-4928_daily_bin223> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin223> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 23:50:17 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 23:50:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 23:50:18 2021
Terminated at Wed Sep 29 00:05:55 2021
Results reported at Wed Sep 29 00:05:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin223 342.879 -49.4691 297129601 297388801 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 :                                   916.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

