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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1392
RA = 342.879, Dec = -49.4691
tmin = 600134401, tmax = 600393601
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='552879', job_status='RUN', time_executed='2021-09-29 00:41:13.832056', time_epoch_executed='1632901273.83' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552879/ft1_4FGL_J2251.5-4928_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552879/ft2_4FGL_J2251.5-4928_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552879/ft1_4FGL_J2251.5-4928_daily_bin1392.fits outfile=/scratch/kocevski/552879/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1392.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=600134401.0 tmax=600393601.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 4.92
user 4.67
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552879/ft1_filtered_4FGL_J2251.5-4928_daily_bin1392.fits" evtable="EVENTS" scfile=/scratch/kocevski/552879/ft2_4FGL_J2251.5-4928_daily_bin1392.fits sctable="SC_DATA" outfile=/scratch/kocevski/552879/ltcube_600134401_600393601_4FGL_J2251.5-4928_daily_bin1392.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/552879/ft2_4FGL_J2251.5-4928_daily_bin1392.fits
.....................!
real 11.68
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552879/ft1_filtered_4FGL_J2251.5-4928_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/552879/ft2_4FGL_J2251.5-4928_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/552879/ltcube_600134401_600393601_4FGL_J2251.5-4928_daily_bin1392.fits outfile=/scratch/kocevski/552879/expmap_600134401_600393601_4FGL_J2251.5-4928_daily_bin1392.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/552879/ltcube_600134401_600393601_4FGL_J2251.5-4928_daily_bin1392.fits
.....................!
real 192.54
user 187.76
sys 4.40

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/552879/ft1_filtered_4FGL_J2251.5-4928_daily_bin1392.fits scfile=/scratch/kocevski/552879/ft2_4FGL_J2251.5-4928_daily_bin1392.fits outfile=/scratch/kocevski/552879/cmap_600134401_600393601_4FGL_J2251.5-4928_daily_bin1392.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552879/ft1_filtered_4FGL_J2251.5-4928_daily_bin1392.fits scfile=/scratch/kocevski/552879/ft2_4FGL_J2251.5-4928_daily_bin1392.fits outfile=/scratch/kocevski/552879/cmap_HighResolution_600134401_600393601_4FGL_J2251.5-4928_daily_bin1392.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/552879/ft1_filtered_4FGL_J2251.5-4928_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/552879/ft2_4FGL_J2251.5-4928_daily_bin1392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552879/Model_4FGL_J2251.5-4928_daily_bin1392.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/552879/ft1_filtered_4FGL_J2251.5-4928_daily_bin1392.fits.....................!
real 39.28
user 38.02
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    163.28       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11808E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14747E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0186       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.167       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11251E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.468       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-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 '    9.4243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.8120       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.062       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8422       1.0000         .10000E-03   10000.    
    24 'norm      '    9.1587       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13337E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.0239       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.7368       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3956       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0355       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1370       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=   4863.110     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4353 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     163.26        68.151       -.16565E-04    .13250E-04
   2  Prefactor     .10000E-03    6.2028        .14012E-06** at limit **
   3  Prefactor     3.7417        3.5417        .26496E-07    .15992E-04
   4  Prefactor     .10000E-03    75.478       -.24243E-04** at limit **
   5  norm          .10006E-03    6.2119        .37257E-05** at limit **
   6  Prefactor     5.0162        5.0515       -.79877E-07   -.23710E-03
   7  Prefactor     .10000E-03    61.623        .28007E-04** at limit **
   8  Prefactor     .10000E-03    1.8327        .13241E-06** at limit **
   9  Prefactor     36.201        29.777       -.75628E-05   -.24075E-04
  10  Prefactor     40.144        33.175       -.15278E-04   -.46491E-04
  11  Prefactor     .10000E-03    10.297       -.28212E-05** at limit **
  12  Prefactor     .10000E-03    69.834        .78818E-06** at limit **
  13  Prefactor     .10000E-03    3.2929        .68246E-07** at limit **
  14  Prefactor     51.466        41.926       -.61450E-06    .93431E-05
  15  Prefactor     .10000E-03    9.6830        .31959E-05** at limit **
  16  norm          .10000E-03    5.5582       -.92746E-07** at limit **
  17  norm          .10000E-03    2.5617        .11652E-06** at limit **
  18  norm          .10000E-03    4.3278       -.26747E-06** at limit **
  19  Prefactor     9.4253        12.353        .29860E-05    .66318E-05
  20  Prefactor     .10000E-03    20.616       -.75865E-05** at limit **
  21  norm          7.8104        6.8161       -.34442E-06    .14403E-04
  22  Prefactor     12.051        27.442       -.98788E-05    .28675E-04
  23  norm          1.8417        1.5248        .38166E-07    .24484E-03
  24  norm          9.1580        7.0961       -.17783E-06    .15980E-04
  25  Prefactor     .10000E-03    35.301       -.38365E-05** at limit **
  26  Prefactor     2.0220        4.1801       -.36484E-05   -.54249E-03
  27  Prefactor     .10000E-03    12.620       -.18555E-05** at limit **
  28  norm          9.7360        15.952       -.22228E-06    .16643E-05
  29  Prefactor     .10000E-03    4.6178        .85086E-07** at limit **
  30  Prefactor     1.3960        4.4276       -.26201E-05   -.61666E-03
  31  Normalizat    1.0365        .23880        .92649E-05   -.19257E-03
  32  Prefactor     1.1361        .21594       -.29727E-07    .14645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 163.256
  Prefactor  = 0.000100001
  Prefactor  = 3.74165
  Prefactor  = 0.0001
  norm       = 0.000100059
  Prefactor  = 5.01617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2011
  Prefactor  = 40.1439
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.4662
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.4253
  Prefactor  = 0.0001
  norm       = 7.81039
  Prefactor  = 12.0509
  norm       = 1.84166
  norm       = 9.15798
  Prefactor  = 0.000100001
  Prefactor  = 2.02202
  Prefactor  = 0.0001
  norm       = 9.73605
  Prefactor  = 0.0001
  Prefactor  = 1.396
  Normalizat = 1.03647
  Prefactor  = 1.13606
 **********
 **   18 **HESSE 
 **********

 FCN=   4863.110     FROM HESSE     STATUS=OK           653 CALLS     5006 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     163.26        68.079        .15781E-03   -1.3146    
   2  Prefactor     .10000E-03    6.2354        .16955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7417        3.5443        .12293E-03   -1.5321    
   4  Prefactor     .10000E-03    75.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10006E-03    17.296        .33497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0162        5.0516        .15015E-03   -1.5260    
   7  Prefactor     .10000E-03    61.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8356        .92194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.201        29.807        .66597E-04   -1.4504    
  10  Prefactor     40.144        33.180        .63246E-04   -1.4440    
  11  Prefactor     .10000E-03    10.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    69.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2990        .12358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.466        41.925        .55903E-04   -1.4272    
  15  Prefactor     .10000E-03    9.7024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5600        .16058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5618        .10900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.3379        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4253        12.312        .13054E-03   -1.5094    
  20  Prefactor     .10000E-03    20.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.8104        6.8088        .14346E-03   -1.5149    
  22  Prefactor     12.051        27.341        .11534E-03   -1.5014    
  23  norm          1.8417        1.5180        .72036E-04   -1.5437    
  24  norm          9.1580        7.0927        .13243E-03   -1.5103    
  25  Prefactor     .10000E-03    35.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.0220        4.1826        .19427E-03   -1.5424    
  27  Prefactor     .10000E-03    12.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.7360        15.939        .12842E-03   -1.5084    
  29  Prefactor     .10000E-03    4.6643        .14616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.3960        4.4014        .25521E-03   -1.5472    
  31  Normalizat    1.0365        .29293        .27813E-03   -.91818    
  32  Prefactor     1.1361        .26638        .25543E-03   -.88322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16158e-09
Minuit parameter uncertainties:
  1  68.1117
  2  0.000113031
  3  3.54452
  4  0.000258796
  5  0.00201929
  6  5.05201
  7  3.68127e-05
  8  1.15427e-05
  9  29.8195
  10  33.1952
  11  0.000163776
  12  0.000164032
  13  5.61608e-06
  14  41.9495
  15  1.23491e-05
  16  3.22952e-06
  17  5.73105e-07
  18  6.02516e-06
  19  12.315
  20  1.81127e-05
  21  6.80948
  22  27.369
  23  1.51803
  24  7.09336
  25  0.000323072
  26  4.18316
  27  5.27897e-05
  28  15.9463
  29  4.91404e-06
  30  4.40247
  31  0.29339
  32  0.266693
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  5.147e+01  4.195e+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.136e+00  2.667e-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.036e+00  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 2.28e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4862.9616699
delta logL = 0.148688466858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4862.96044774
delta logL = 0.149910629903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.898       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5624       1.0000          .0000       10.000    
     3 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1308       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=   4862.960     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      304 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.912        53.906        .25101E-03    .16803E-04
   2  Index         1.5623        .51035        .72692E-02    .93121E-04
   3  Normalizat    1.0462        .27415        .27698E-03   -.12970E-04
   4  Prefactor     1.1308        .26335        .25594E-03    .38201E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.9116
  Index      = 1.56231
  Normalizat = 1.04623
  Prefactor  = 1.13079
 **********
 **   18 **HESSE 
 **********

 FCN=   4862.960     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.912        53.614        .10040E-04   -1.4107    
   2  Index         1.5623        .50763        .14538E-02   -.75809    
   3  Normalizat    1.0462        .27446        .11079E-04   -.91497    
   4  Prefactor     1.1308        .26367        .10238E-04   -.88489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31706e-12
Minuit parameter uncertainties:
  1  53.655
  2  0.509294
  3  0.27483
  4  0.263972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552879': 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) = 4862.96044767
delta logL = 0.149910701954

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  6.391e+01  5.365e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.562e+00  5.093e-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:  1.131e+00  2.640e-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.046e+00  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.56
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 1.56 +/- 0.51
Photon Flux (Free Index): 1.94e-08 +/- 2.04e-08
Energy Flux (Free Index): 4.97e-05 +/- 6.58e-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/552879/cmap_HighResolution_600134401_600393601_4FGL_J2251.5-4928_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='4.97e-05', photon_flux_error='2.22e-08', dlogl='1.50e-01', energy_flux='2.80e-05', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-09-29 00:53:23.427531', photon_index_error2='0.51', photon_index2='1.56', ts='4.25', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='6.58e-05', EG='1.04', time_epoch_completed='1632902003.43', return_code='0', job_id='552879', GAL2='1.13', EG2='1.05', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='2.04e-08', ts2='4.56', photon_index='1.85' WHERE bin_id='1392' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:53:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 552879: <4FGL_J2251.5-4928_daily_bin1392> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1392> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:40:31 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:40:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:40:35 2021
Terminated at Wed Sep 29 00:53:24 2021
Results reported at Wed Sep 29 00:53:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1392 342.879 -49.4691 600134401 600393601 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 :                                   694.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            773 sec.

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

