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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1382
RA = 342.879, Dec = -49.4691
tmin = 597542401, tmax = 597801601
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='552861', job_status='RUN', time_executed='2021-09-29 00:41:15.581138', time_epoch_executed='1632901275.58' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552861/ft1_4FGL_J2251.5-4928_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552861/ft2_4FGL_J2251.5-4928_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552861/ft1_4FGL_J2251.5-4928_daily_bin1382.fits outfile=/scratch/kocevski/552861/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1382.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=597542401.0 tmax=597801601.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552861/ft1_filtered_4FGL_J2251.5-4928_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/552861/ft2_4FGL_J2251.5-4928_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/552861/ltcube_597542401_597801601_4FGL_J2251.5-4928_daily_bin1382.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/552861/ft2_4FGL_J2251.5-4928_daily_bin1382.fits
.....................!
real 11.81
user 11.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552861/ft1_filtered_4FGL_J2251.5-4928_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/552861/ft2_4FGL_J2251.5-4928_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/552861/ltcube_597542401_597801601_4FGL_J2251.5-4928_daily_bin1382.fits outfile=/scratch/kocevski/552861/expmap_597542401_597801601_4FGL_J2251.5-4928_daily_bin1382.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/552861/ltcube_597542401_597801601_4FGL_J2251.5-4928_daily_bin1382.fits
.....................!
real 190.73
user 185.81
sys 4.61

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/552861/ft1_filtered_4FGL_J2251.5-4928_daily_bin1382.fits scfile=/scratch/kocevski/552861/ft2_4FGL_J2251.5-4928_daily_bin1382.fits outfile=/scratch/kocevski/552861/cmap_597542401_597801601_4FGL_J2251.5-4928_daily_bin1382.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8515       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9047       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0106       1.0000         .10000E-03   10000.    
     5 'norm      '    13.823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3839       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2568       1.0000         .10000E-03   10000.    
    17 'norm      '    .62783       1.0000         .10000E-03   10000.    
    18 'norm      '    .28988E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16207E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7167       1.0000         .10000E-03   10000.    
    21 'norm      '    2.2277       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.409       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3901       1.0000         .10000E-03   10000.    
    24 'norm      '    .91129       1.0000         .10000E-03   10000.    
    25 'Prefactor '    38.953       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    24.814       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.1879       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.0353       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .52346       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3425       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=   6932.247     FROM MIGRAD    STATUS=CONVERGED    851 CALLS     3784 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8443        22.974        .11682E-05   -.91255E-06
   2  Prefactor     .10000E-03    5.3129        .11885E-05** at limit **
   3  Prefactor     5.9032        4.2014        .62636E-07   -.17172E-03
   4  Prefactor     8.0294        108.42       -.68464E-05   -.28094E-04
   5  norm          13.821        7.2864        .30886E-08   -.67371E-04
   6  Prefactor     2.3844        2.4621        .10456E-06    .55121E-04
   7  Prefactor     .10000E-03    15.364       -.17852E-05** at limit **
   8  Prefactor     .10000E-03    1.9064        .11862E-06** at limit **
   9  Prefactor     .10000E-03    6.7834       -.41412E-06** at limit **
  10  Prefactor     9.5749        20.181       -.24919E-05   -.30846E-03
  11  Prefactor     .10000E-03    16.157        .24755E-05** at limit **
  12  Prefactor     .10000E-03    67.733        .35658E-05** at limit **
  13  Prefactor     .10000E-03    1.4293       -.22105E-08** at limit **
  14  Prefactor     .10000E-03    57.513       -.22461E-05** at limit **
  15  Prefactor     .10000E-03    2.8127        .15139E-07** at limit **
  16  norm          2.2568        7.8838        .59360E-05   -.24531E-03
  17  norm          .62689        3.5117        .84306E-06   -.52128E-04
  18  norm          .10000E-03    3.3980        .83004E-06** at limit **
  19  Prefactor     .10003E-03    5.4303        .11348E-05** at limit **
  20  Prefactor     8.7069        14.628       -.50041E-07   -.87295E-05
  21  norm          2.2219        2.9846        .19667E-06   -.14391E-04
  22  Prefactor     41.394        16.749       -.35525E-06   -.49271E-03
  23  norm          1.3900        .88080       -.15150E-07   -.65001E-03
  24  norm          .91176        2.3945        .16098E-06   -.75038E-04
  25  Prefactor     38.949        17.808       -.11770E-06   -.79188E-04
  26  Prefactor     .10000E-03    .97086       -.70712E-07** at limit **
  27  Prefactor     .10000E-03    7.2385        .34193E-06** at limit **
  28  norm          24.822        24.135       -.98342E-06   -.96928E-04
  29  Prefactor     1.1859        5.3895        .13971E-05   -.92945E-05
  30  Prefactor     3.0349        2.8612        .54988E-07   -.46907E-04
  31  Normalizat    .52340        .17092       -.10933E-06   -.27255E-03
  32  Prefactor     1.3426        .16712       -.24717E-06   -.31819E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84432
  Prefactor  = 0.000100001
  Prefactor  = 5.90323
  Prefactor  = 8.02941
  norm       = 13.8215
  Prefactor  = 2.3844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.57491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.25679
  norm       = 0.62689
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 8.70691
  norm       = 2.22191
  Prefactor  = 41.3939
  norm       = 1.39001
  norm       = 0.911765
  Prefactor  = 38.9495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.8221
  Prefactor  = 1.18589
  Prefactor  = 3.03492
  Normalizat = 0.5234
  Prefactor  = 1.34264
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.247     FROM HESSE     STATUS=OK           665 CALLS     4449 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8443        22.945        .16602E-03   -1.5224    
   2  Prefactor     .10000E-03    5.4363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9032        4.1918        .13460E-03   -1.5222    
   4  Prefactor     8.0294        107.76        .14166E-03   -1.5141    
   5  norm          13.821        7.2891        .10773E-03   -1.4964    
   6  Prefactor     2.3844        2.4502        .12757E-03   -1.5399    
   7  Prefactor     .10000E-03    15.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9217        .11223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5749        20.534        .12962E-03   -1.5089    
  11  Prefactor     .10000E-03    16.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4318        .97204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8143        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2568        7.9887        .13674E-02   -1.5408    
  17  norm          .62689        3.3432        .30219E-03   -1.5550    
  18  norm          .10000E-03    8.3214        .27575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    34.691        .32608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.7069        14.552        .13577E-03   -1.5118    
  21  norm          2.2219        2.7783        .14544E-03   -1.5410    
  22  Prefactor     41.394        15.097        .62294E-04   -1.4420    
  23  norm          1.3900        .87369        .58751E-04   -1.5472    
  24  norm          .91176        2.2589        .19798E-02   -1.5517    
  25  Prefactor     38.949        17.784        .64220E-04   -1.4459    
  26  Prefactor     .10000E-03    .97938        .80044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.2475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          24.822        23.568        .80415E-04   -1.4711    
  29  Prefactor     1.1859        5.1445        .32942E-03   -1.5490    
  30  Prefactor     3.0349        2.8641        .13284E-03   -1.5360    
  31  Normalizat    .52340        .20111        .30735E-03   -1.1134    
  32  Prefactor     1.3426        .19964        .20711E-03   -.82048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3413e-08
Minuit parameter uncertainties:
  1  22.9796
  2  0.000143648
  3  4.19201
  4  58.9588
  5  7.28955
  6  2.4503
  7  3.6722e-05
  8  1.08539e-05
  9  7.37645e-06
  10  20.5491
  11  0.000177874
  12  0.000171149
  13  7.88227e-07
  14  0.000112193
  15  1.82859e-07
  16  7.99242
  17  2.89539
  18  0.000119219
  19  0.00205361
  20  14.558
  21  2.77841
  22  15.0987
  23  0.873696
  24  2.25908
  25  17.7867
  26  4.63566e-06
  27  6.81626e-06
  28  23.5764
  29  4.94045
  30  2.86422
  31  0.201392
  32  0.199753
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.122e-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.343e+00  1.998e-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:  5.234e-01  2.014e-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: 4.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552861/likelihoodResults_597542401_597801601_4FGL_J2251.5-4928_daily_bin1382.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) = 6932.24752987
delta logL = -8.24007993288e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6931.79354338
delta logL = 0.453904094778

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6931.794     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      285 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96717        20.633        .13069E-01    .82658E-03
   2  Index         3.4273        2.4300        .84045E-01    .19866E-03
   3  Normalizat    .47633        .33842E-01    .72659E-01    .24335E-04
   4  Prefactor     1.3686        .35030E-01    .46469E-01   -.11250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.967167
  Index      = 3.42728
  Normalizat = 0.476328
  Prefactor  = 1.36865
 **********
 **   18 **HESSE 
 **********

 FCN=   6931.794     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      316 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96717        58.416        .89407E-04   -1.5511    
   2  Index         3.4273        6.7046        .52857E-02   -.31998    
   3  Normalizat    .47633        .15854        .32168E-03   -1.1353    
   4  Prefactor     1.3686        .16051        .20541E-03   -.81288    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27328e-06
Minuit parameter uncertainties:
  1  15.0477
  2  5.53285
  3  0.158689
  4  0.160564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552861': 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) = 6931.79354214
delta logL = 0.453905329709

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  9.672e-01  1.505e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  3.427e+00  5.533e+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.369e+00  1.606e-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:  4.763e-01  1.587e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/552861/cmap_HighResolution_597542401_597801601_4FGL_J2251.5-4928_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-03', job_status='DONE', photon_flux_upper_limit='4.20e-08', time_completed='2021-09-29 00:57:01.545273', job_id='552861', GAL2='1.37', fit_tolerance='1e-08', EG2='0.48', EG='0.52', time_epoch_completed='1632902221.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='4.54e-01', ts2='0.96', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1382' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:57:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 552861: <4FGL_J2251.5-4928_daily_bin1382> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1382> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:40:30 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:40:32 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:32 2021
Terminated at Wed Sep 29 00:57:02 2021
Results reported at Wed Sep 29 00:57:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1382 342.879 -49.4691 597542401 597801601 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 :                                   905.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

