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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1028
RA = 342.879, Dec = -49.4691
tmin = 505785601, tmax = 506044801
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='551116', job_status='RUN', time_executed='2021-09-29 00:35:31.161593', time_epoch_executed='1632900931.16' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551116

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551116/ft1_4FGL_J2251.5-4928_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551116/ft2_4FGL_J2251.5-4928_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551116/ft1_4FGL_J2251.5-4928_daily_bin1028.fits outfile=/scratch/kocevski/551116/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1028.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=505785601.0 tmax=506044801.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.75
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551116/ft1_filtered_4FGL_J2251.5-4928_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/551116/ft2_4FGL_J2251.5-4928_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/551116/ltcube_505785601_506044801_4FGL_J2251.5-4928_daily_bin1028.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/551116/ft2_4FGL_J2251.5-4928_daily_bin1028.fits
.....................!
real 12.17
user 11.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551116/ft1_filtered_4FGL_J2251.5-4928_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/551116/ft2_4FGL_J2251.5-4928_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/551116/ltcube_505785601_506044801_4FGL_J2251.5-4928_daily_bin1028.fits outfile=/scratch/kocevski/551116/expmap_505785601_506044801_4FGL_J2251.5-4928_daily_bin1028.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/551116/ltcube_505785601_506044801_4FGL_J2251.5-4928_daily_bin1028.fits
.....................!
real 190.57
user 185.40
sys 4.84

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/551116/ft1_filtered_4FGL_J2251.5-4928_daily_bin1028.fits scfile=/scratch/kocevski/551116/ft2_4FGL_J2251.5-4928_daily_bin1028.fits outfile=/scratch/kocevski/551116/cmap_505785601_506044801_4FGL_J2251.5-4928_daily_bin1028.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551116/ft1_filtered_4FGL_J2251.5-4928_daily_bin1028.fits scfile=/scratch/kocevski/551116/ft2_4FGL_J2251.5-4928_daily_bin1028.fits outfile=/scratch/kocevski/551116/cmap_HighResolution_505785601_506044801_4FGL_J2251.5-4928_daily_bin1028.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9949       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.793       1.0000         .10000E-03   10000.    
    17 'norm      '    12.843       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1641       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15992E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .32804E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2427       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84800       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=   5935.284     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4319 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    88.046        .90712E-02** at limit **
   2  Prefactor     .10000E-03    4.3523        .90712E-02** at limit **
   3  Prefactor     .10000E-03    4.2346        .90712E-02** at limit **
   4  Prefactor     .10018E-03    40.697        .90712E-02** at limit **
   5  norm          .10000E-03    7.3285        .90712E-02** at limit **
   6  Prefactor     7.9944        4.4490        .35451E-02    .11112E-03
   7  Prefactor     .10000E-03    18.971        .90712E-02** at limit **
   8  Prefactor     14.221        6.9605        .26549E-02    .83608E-04
   9  Prefactor     .10001E-03    10.819        .90712E-02** at limit **
  10  Prefactor     16.312        25.003        .24794E-02   -.28816E-03
  11  Prefactor     .10000E-03    6.5402        .90712E-02** at limit **
  12  Prefactor     .10012E-03    37.726        .90712E-02** at limit **
  13  Prefactor     .10000E-03    8.5326        .90712E-02** at limit **
  14  Prefactor     .10000E-03    8.6206        .90712E-02** at limit **
  15  Prefactor     .10000E-03    3.6451        .90712E-02** at limit **
  16  norm          11.790        12.017        .29164E-02    .15162E-03
  17  norm          12.843        8.0123        .27943E-02    .11497E-04
  18  norm          .10000E-03    1.5819        .90712E-02** at limit **
  19  Prefactor     .10000E-03    2.2745        .90712E-02** at limit **
  20  Prefactor     .10002E-03    13.499        .90712E-02** at limit **
  21  norm          .10000E-03    1.6650        .90712E-02** at limit **
  22  Prefactor     .10000E-03    4.9333        .90712E-02** at limit **
  23  norm          1.1644        .92656        .10661E-01    .29587E-03
  24  norm          .10000E-03    2.4312        .90712E-02** at limit **
  25  Prefactor     .10001E-03    4.6251        .90712E-02** at limit **
  26  Prefactor     .10000E-03    1.7376        .37213E-01** at limit **
  27  Prefactor     .10000E-03    9.5887        .90712E-02** at limit **
  28  norm          .10001E-03    11.251        .90712E-02** at limit **
  29  Prefactor     .10000E-03    2.5605        .63871E-01** at limit **
  30  Prefactor     .10000E-03    2.5740        .90712E-02** at limit **
  31  Normalizat    1.2428        .18365        .50974E-01    .21274E-04
  32  Prefactor     .84793        .17598        .44339E-01    .29450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100177
  norm       = 0.000100005
  Prefactor  = 7.99438
  Prefactor  = 0.000100002
  Prefactor  = 14.2208
  Prefactor  = 0.000100008
  Prefactor  = 16.3124
  Prefactor  = 0.0001
  Prefactor  = 0.000100125
  Prefactor  = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 11.7898
  norm       = 12.843
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.16444
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24284
  Prefactor  = 0.847927
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.284     FROM HESSE     STATUS=OK           643 CALLS     4962 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    89.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3801        .15693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3589        .30922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10018E-03    40.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.4134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9944        4.4527        .11586E-03   -1.5142    
   7  Prefactor     .10000E-03    18.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.221        6.9593        .10620E-03   -1.4954    
   9  Prefactor     .10001E-03    10.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.312        25.035        .99176E-04   -1.4900    
  11  Prefactor     .10000E-03    6.5753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10012E-03    37.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.7694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6480        .14365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.790        12.016        .11665E-03   -1.5021    
  17  norm          12.843        8.0321        .11177E-03   -1.4991    
  18  norm          .10000E-03    1.5841        .94630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2905        .11342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    13.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6918        .97059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9483        .16709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1644        .91363        .62476E-04   -1.5492    
  24  norm          .10000E-03    2.4801        .11729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    4.6338        .16181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.2040        .19524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.6135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10001E-03    11.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    9.8104        .23713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.5969        .12068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2428        .22029        .22537E-03   -.85289    
  32  Prefactor     .84793        .21174        .26190E-03   -.97985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66283e-08
Minuit parameter uncertainties:
  1  0.00182137
  2  4.96232e-05
  3  0.000154548
  4  0.00536526
  5  0.000380757
  6  4.45289
  7  0.000380447
  8  6.95973
  9  0.000600357
  10  25.0516
  11  2.24613e-05
  12  0.00433769
  13  0.00038316
  14  0.000361157
  15  1.40059e-05
  16  12.0182
  17  8.03279
  18  2.75765e-07
  19  7.20511e-07
  20  0.00108132
  21  4.73379e-07
  22  0.000292065
  23  0.91364
  24  1.09738e-07
  25  0.000448372
  26  2.16926e-06
  27  0.000110253
  28  0.000667126
  29  8.05051e-05
  30  2.47679e-07
  31  0.220454
  32  0.211939
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  3.612e-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:  8.479e-01  2.119e-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.243e+00  2.205e-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: 2.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551116/likelihoodResults_505785601_506044801_4FGL_J2251.5-4928_daily_bin1028.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) = 5935.2849237
delta logL = -0.000536753427696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5935.28438711
delta logL = -1.61837306223e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8241       1.0000          .0000       10.000    
     3 'Normalizat'    1.2428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84794       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=   5935.284     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10158E-03    69.372        .18142E-02** at limit **
   2  Index         1.7629        5.5412        .50000        .20526E-04
   3  Normalizat    1.2428        .11991E-01    .22537E-03    .21200E-03
   4  Prefactor     .84792        .11813E-01    .26190E-03   -.44537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101576
  Index      = 1.76287
  Normalizat = 1.24284
  Prefactor  = 0.847923
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.284     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10158E-03    296.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7629        9.0474        .50000       -.70420    
   3  Normalizat    1.2428        .25573E-01    .45073E-04   -.85289    
   4  Prefactor     .84792        .25194E-01    .10476E-04   -.97985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.30986e-08
Minuit parameter uncertainties:
  1  0.0434699
  2  445.336
  3  0.0255736
  4  0.0251947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551116': 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) = 5935.2843865
delta logL = 4.42073542217e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.016e-04  4.347e-02  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.763e+00  4.453e+02  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:  8.479e-01  2.519e-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:  1.243e+00  2.557e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.879 -49.469

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/551116/cmap_HighResolution_505785601_506044801_4FGL_J2251.5-4928_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-03', job_status='DONE', photon_flux_upper_limit='2.66e-08', time_completed='2021-09-29 00:50:08.182255', job_id='551116', GAL2='0.85', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632901808.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1028' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:50:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 551116: <4FGL_J2251.5-4928_daily_bin1028> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1028> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:16 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:35:18 2021
Terminated at Wed Sep 29 00:50:08 2021
Results reported at Wed Sep 29 00:50:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1028 342.879 -49.4691 505785601 506044801 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 :                                   874.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

