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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1168
RA = 342.879, Dec = -49.4691
tmin = 542073601, tmax = 542332801
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='551330', job_status='RUN', time_executed='2021-09-29 00:36:56.369972', time_epoch_executed='1632901016.37' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551330/ft1_4FGL_J2251.5-4928_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551330/ft2_4FGL_J2251.5-4928_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551330/ft1_4FGL_J2251.5-4928_daily_bin1168.fits outfile=/scratch/kocevski/551330/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1168.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=542073601.0 tmax=542332801.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.64
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551330/ft1_filtered_4FGL_J2251.5-4928_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/551330/ft2_4FGL_J2251.5-4928_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/551330/ltcube_542073601_542332801_4FGL_J2251.5-4928_daily_bin1168.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/551330/ft2_4FGL_J2251.5-4928_daily_bin1168.fits
.....................!
real 15.27
user 14.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551330/ft1_filtered_4FGL_J2251.5-4928_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/551330/ft2_4FGL_J2251.5-4928_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/551330/ltcube_542073601_542332801_4FGL_J2251.5-4928_daily_bin1168.fits outfile=/scratch/kocevski/551330/expmap_542073601_542332801_4FGL_J2251.5-4928_daily_bin1168.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/551330/ltcube_542073601_542332801_4FGL_J2251.5-4928_daily_bin1168.fits
.....................!
real 191.54
user 185.31
sys 5.63

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/551330/ft1_filtered_4FGL_J2251.5-4928_daily_bin1168.fits scfile=/scratch/kocevski/551330/ft2_4FGL_J2251.5-4928_daily_bin1168.fits outfile=/scratch/kocevski/551330/cmap_542073601_542332801_4FGL_J2251.5-4928_daily_bin1168.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551330/ft1_filtered_4FGL_J2251.5-4928_daily_bin1168.fits scfile=/scratch/kocevski/551330/ft2_4FGL_J2251.5-4928_daily_bin1168.fits outfile=/scratch/kocevski/551330/cmap_HighResolution_542073601_542332801_4FGL_J2251.5-4928_daily_bin1168.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6716       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.315       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .65671E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92519       1.0000         .10000E-03   10000.    
     5 'norm      '    8.8132       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.603       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1237       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13171E-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      '    1.0980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.343       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7250       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5088       1.0000         .10000E-03   10000.    
    24 'norm      '    13.200       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6310       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    34.859       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.3043       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .44356       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4897       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=   5537.664     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     3718 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6635        24.218        .43389E-05   -.37645E-02
   2  Prefactor     13.211        15.229        .87113E-07   -.11510E-02
   3  Prefactor     .10000E-03    16.276       -.23709E-05** at limit **
   4  Prefactor     2.4457        6297.5        .16938E-04   -.11023E-04
   5  norm          8.8111        6.2259        .18806E-06   -.21652E-02
   6  Prefactor     6.8287        3.8627        .39648E-07    .29979E-03
   7  Prefactor     .10013E-03    25.151       -.31685E-05** at limit **
   8  Prefactor     .10000E-03    8.6410        .13306E-05** at limit **
   9  Prefactor     28.193        3.6974        .74767E-07    .47617E-02
  10  Prefactor     6.3615        18.248        .30994E-05    .43283E-02
  11  Prefactor     15.598        5.2667       -.39350E-06   -.25868E-02
  12  Prefactor     .10001E-03    34.472       -.29196E-05** at limit **
  13  Prefactor     8.1228        3.6892       -.30440E-07   -.96670E-02
  14  Prefactor     .10009E-03    24.557        .38438E-05** at limit **
  15  Prefactor     .10000E-03    49.563        .34523E-05** at limit **
  16  norm          .10000E-03    4.9119       -.57164E-07** at limit **
  17  norm          .10000E-03    5.2725       -.49644E-06** at limit **
  18  norm          1.0898        5.4845       -.40082E-06   -.25676E-04
  19  Prefactor     .10000E-03    3.1608       -.15335E-06** at limit **
  20  Prefactor     26.306        24.841        .23527E-05   -.11998E-02
  21  norm          2.7256        2.7859       -.78178E-07   -.43320E-04
  22  Prefactor     .10000E-03    5.7478        .44213E-06** at limit **
  23  norm          1.5085        1.1955        .26198E-07   -.93900E-04
  24  norm          13.202        1.4523       -.71921E-07    .73421E-03
  25  Prefactor     .10000E-03    5.8222       -.69361E-07** at limit **
  26  Prefactor     1.6308        3.0194        .69779E-07   -.54932E-04
  27  Prefactor     .10000E-03    8.1052       -.14265E-05** at limit **
  28  norm          34.857        2.4663       -.15452E-07   -.40818E-02
  29  Prefactor     .10000E-03    2.2295        .70322E-07** at limit **
  30  Prefactor     3.3036        4.2672        .12297E-06   -.75034E-04
  31  Normalizat    .44410        .23342       -.13647E-05   -.52434E-04
  32  Prefactor     1.4891        .23202       -.28103E-06   -.10180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.66352
  Prefactor  = 13.2111
  Prefactor  = 0.000100002
  Prefactor  = 2.44569
  norm       = 8.81107
  Prefactor  = 6.82872
  Prefactor  = 0.000100132
  Prefactor  = 0.0001
  Prefactor  = 28.1933
  Prefactor  = 6.36154
  Prefactor  = 15.5976
  Prefactor  = 0.000100008
  Prefactor  = 8.12283
  Prefactor  = 0.000100094
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.08984
  Prefactor  = 0.0001
  Prefactor  = 26.3061
  norm       = 2.72563
  Prefactor  = 0.0001
  norm       = 1.50847
  norm       = 13.2019
  Prefactor  = 0.0001
  Prefactor  = 1.63084
  Prefactor  = 0.0001
  norm       = 34.8569
  Prefactor  = 0.0001
  Prefactor  = 3.30358
  Normalizat = 0.444105
  Prefactor  = 1.48912
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.664     FROM HESSE     STATUS=OK           741 CALLS     4459 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6635        51.777        .34030E-02   -1.5119    
   2  Prefactor     13.211        22.594        .27442E-02   -1.4981    
   3  Prefactor     .10000E-03    2.3688        .69391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4457        7416.1        .12899E-01   -1.5395    
   5  norm          8.8111        7.6702        .33754E-02   -1.5114    
   6  Prefactor     6.8287        3.8734        .38384E-02   -1.5185    
   7  Prefactor     .10013E-03    26.377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.193        20.885        .18864E-02   -1.4646    
  10  Prefactor     6.3615        43.391        .39694E-02   -1.5203    
  11  Prefactor     15.598        15.969        .25349E-02   -1.4918    
  12  Prefactor     .10001E-03    34.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1228        5.3836        .35166E-02   -1.5138    
  14  Prefactor     .10009E-03    25.307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.791        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.9066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.2106        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0898        5.9586        .11355E-01   -1.5499    
  19  Prefactor     .10000E-03    3.1445        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.306        39.315        .19513E-02   -1.4682    
  21  norm          2.7256        2.8120        .61673E-02   -1.5378    
  22  Prefactor     .10000E-03    5.7365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5085        1.2582        .87073E-02   -1.5462    
  24  norm          13.202        6.4031        .27562E-02   -1.4981    
  25  Prefactor     .10000E-03    5.8093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.6308        3.0741        .82777E-02   -1.5453    
  27  Prefactor     .10000E-03    8.0944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          34.857        23.533        .16969E-02   -1.4526    
  29  Prefactor     .10000E-03    2.2136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.3036        4.2846        .55679E-02   -1.5344    
  31  Normalizat    .44410        .21404        .79340E-01   -1.1508    
  32  Prefactor     1.4891        .20423        .47088E-01   -.77845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07638e-07
Minuit parameter uncertainties:
  1  42.4139
  2  22.6084
  3  0.000126097
  4  245.336
  5  7.67103
  6  3.87356
  7  0.00373239
  8  0.000112833
  9  20.89
  10  33.2629
  11  15.9737
  12  0.00106161
  13  5.38395
  14  0.00308598
  15  0.00022059
  16  3.80273e-06
  17  3.22198e-05
  18  5.09717
  19  7.26588e-06
  20  39.3539
  21  2.81216
  22  1.96378e-05
  23  1.25821
  24  6.40343
  25  4.75791e-05
  26  3.07445
  27  0.000115648
  28  23.539
  29  2.70841e-06
  30  4.28496
  31  0.214437
  32  0.20434
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.001e-04  3.086e-03  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.489e+00  2.043e-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.441e-01  2.144e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551330/likelihoodResults_542073601_542332801_4FGL_J2251.5-4928_daily_bin1168.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) = 5537.66447074
delta logL = -0.000187661653399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5537.66428325
delta logL = -1.70772182173e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0409       1.0000          .0000       10.000    
     3 'Normalizat'    .44410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4891       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=   5537.664     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.114        .90712E-02** at limit **
   2  Index         2.0277        7.7021        .50000        .42457E-05
   3  Normalizat    .44410        .30002E-02    .79340E-01    .48434E-04
   4  Prefactor     1.4891        .31064E-02    .47088E-01    .52130E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02775
  Normalizat = 0.444105
  Prefactor  = 1.48912
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.664     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0277        5.8468        .50000       -.63658    
   3  Normalizat    .44410        .84047E-02    .35137E-03   -1.1508    
   4  Prefactor     1.4891        .87235E-02    .20814E-03   -.77845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81176e-08
Minuit parameter uncertainties:
  1  5.71524e-05
  2  128.591
  3  0.00840468
  4  0.0087235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551330': 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) = 5537.66428319
delta logL = -1.07666892291e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  5.715e-05  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.028e+00  1.286e+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:  1.489e+00  8.723e-03  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.441e-01  8.405e-03  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/551330/cmap_HighResolution_542073601_542332801_4FGL_J2251.5-4928_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-09-29 00:50:43.700624', job_id='551330', GAL2='1.49', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1632901843.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='-1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1168' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 551330: <4FGL_J2251.5-4928_daily_bin1168> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:32 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:34 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:34 2021
Terminated at Wed Sep 29 00:50:44 2021
Results reported at Wed Sep 29 00:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1168 342.879 -49.4691 542073601 542332801 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 :                                   810.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

