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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1006
RA = 342.879, Dec = -49.4691
tmin = 500083201, tmax = 500342401
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='551077', job_status='RUN', time_executed='2021-09-29 00:35:33.215478', time_epoch_executed='1632900933.22' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551077/ft1_4FGL_J2251.5-4928_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551077/ft2_4FGL_J2251.5-4928_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551077/ft1_4FGL_J2251.5-4928_daily_bin1006.fits outfile=/scratch/kocevski/551077/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1006.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.65
user 5.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551077/ft1_filtered_4FGL_J2251.5-4928_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/551077/ft2_4FGL_J2251.5-4928_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/551077/ltcube_500083201_500342401_4FGL_J2251.5-4928_daily_bin1006.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/551077/ft2_4FGL_J2251.5-4928_daily_bin1006.fits
.....................!
real 11.93
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551077/ft1_filtered_4FGL_J2251.5-4928_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/551077/ft2_4FGL_J2251.5-4928_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/551077/ltcube_500083201_500342401_4FGL_J2251.5-4928_daily_bin1006.fits outfile=/scratch/kocevski/551077/expmap_500083201_500342401_4FGL_J2251.5-4928_daily_bin1006.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/551077/ltcube_500083201_500342401_4FGL_J2251.5-4928_daily_bin1006.fits
.....................!
real 191.10
user 186.49
sys 4.23

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/551077/ft1_filtered_4FGL_J2251.5-4928_daily_bin1006.fits scfile=/scratch/kocevski/551077/ft2_4FGL_J2251.5-4928_daily_bin1006.fits outfile=/scratch/kocevski/551077/cmap_500083201_500342401_4FGL_J2251.5-4928_daily_bin1006.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/551077/ft1_filtered_4FGL_J2251.5-4928_daily_bin1006.fits scfile=/scratch/kocevski/551077/ft2_4FGL_J2251.5-4928_daily_bin1006.fits outfile=/scratch/kocevski/551077/cmap_HighResolution_500083201_500342401_4FGL_J2251.5-4928_daily_bin1006.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.879 yref=-49.4691 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551077/ft1_filtered_4FGL_J2251.5-4928_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/551077/ft2_4FGL_J2251.5-4928_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551077/Model_4FGL_J2251.5-4928_daily_bin1006.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/551077/ft1_filtered_4FGL_J2251.5-4928_daily_bin1006.fits.....................!
real 27.70
user 26.52
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.690       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89567E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6778       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7652       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5659       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3478       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    110.35       1.0000         .10000E-03   10000.    
    16 'norm      '    31.430       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17737E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.5461       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.625       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.1359       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.7795       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12063E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.4795       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93140       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .67124       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=   2368.677     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     5410 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.699        37.569        .35980E-06   -.59718E-04
   2  Prefactor     .10187E-03    10.809        .92178E-06** at limit **
   3  Prefactor     .48501        7.7004        .85162E-06   -.13853E-03
   4  Prefactor     .10000E-03    162.01        .58453E-06** at limit **
   5  norm          .10000E-03    4.2908       -.23141E-07** at limit **
   6  Prefactor     8.6815        7.8626        .18036E-06   -.59935E-04
   7  Prefactor     .10000E-03    32.972       -.45320E-07** at limit **
   8  Prefactor     5.7646        10.745        .18451E-07   -.65031E-04
   9  Prefactor     4.5384        93.447        .13550E-05   -.20257E-05
  10  Prefactor     .10000E-03    85.550       -.10542E-05** at limit **
  11  Prefactor     .10000E-03    21.117       -.31352E-06** at limit **
  12  Prefactor     .10000E-03    149.35        .17483E-06** at limit **
  13  Prefactor     3.3508        11.057        .65934E-06   -.17787E-05
  14  Prefactor     .10000E-03    61.855        .45714E-06** at limit **
  15  Prefactor     110.35        49.367        .97688E-07   -.28307E-04
  16  norm          31.422        28.204       -.42338E-07   -.94540E-05
  17  norm          .10000E-03    6.5296        .41020E-07** at limit **
  18  norm          .10000E-03    7.1693        .17023E-06** at limit **
  19  Prefactor     .10000E-03    20.741        .59131E-06** at limit **
  20  Prefactor     .10000E-03    494.04        .14114E-05** at limit **
  21  norm          8.5279        11.613       -.57158E-06   -.18666E-04
  22  Prefactor     19.594        33.551       -.33740E-06   -.17089E-04
  23  norm          .10000E-03    1.2613        .69867E-07** at limit **
  24  norm          4.0986        15.839       -.97631E-06   -.74698E-05
  25  Prefactor     .10000E-03    20.722        .32918E-07** at limit **
  26  Prefactor     4.7794        7.0602        .13243E-06   -.79031E-04
  27  Prefactor     .10000E-03    30.545        .66482E-07** at limit **
  28  norm          .10000E-03    36.188       -.15118E-06** at limit **
  29  Prefactor     .10000E-03    10.992        .59838E-06** at limit **
  30  Prefactor     7.4796        13.423        .31728E-05    .22480E-04
  31  Normalizat    .93105        .30126       -.25000E-05   -.14755E-03
  32  Prefactor     .67133        .23906        .73194E-06   -.19582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.699
  Prefactor  = 0.00010187
  Prefactor  = 0.485008
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.68146
  Prefactor  = 0.0001
  Prefactor  = 5.76456
  Prefactor  = 4.53842
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35082
  Prefactor  = 0.0001
  Prefactor  = 110.353
  norm       = 31.4222
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.52789
  Prefactor  = 19.5935
  norm       = 0.0001
  norm       = 4.09865
  Prefactor  = 0.0001
  Prefactor  = 4.77935
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.47964
  Normalizat = 0.931051
  Prefactor  = 0.671326
 **********
 **   18 **HESSE 
 **********

 FCN=   2368.677     FROM HESSE     STATUS=OK           661 CALLS     6071 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.699        37.610        .76133E-04   -1.4655    
   2  Prefactor     .10187E-03    28.219        .45978E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .48501        14.872        .23684E-02   -1.5569    
   4  Prefactor     .10000E-03    162.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.2919        .98459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6815        7.8702        .11955E-03   -1.5119    
   7  Prefactor     .10000E-03    32.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7646        10.730        .16728E-03   -1.5228    
   9  Prefactor     4.5384        93.860        .18839E-03   -1.5282    
  10  Prefactor     .10000E-03    85.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    149.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3508        11.025        .22119E-03   -1.5342    
  14  Prefactor     .10000E-03    61.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     110.35        49.531        .38290E-04   -1.3603    
  16  norm          31.422        28.201        .71471E-04   -1.4586    
  17  norm          .10000E-03    6.5315        .12147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.1776        .12725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    497.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5279        11.521        .13712E-03   -1.5124    
  22  Prefactor     19.594        33.404        .90411E-04   -1.4822    
  23  norm          .10000E-03    1.2755        .53257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.0986        15.733        .19821E-03   -1.5303    
  25  Prefactor     .10000E-03    20.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.7794        6.9075        .14681E-03   -1.5271    
  27  Prefactor     .10000E-03    30.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    36.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    31.432        .30375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     7.4796        13.418        .73322E-03   -1.5161    
  31  Normalizat    .93105        .35526        .24087E-03   -.95377    
  32  Prefactor     .67133        .28268        .24021E-03   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23607e-10
Minuit parameter uncertainties:
  1  37.6419
  2  0.0145365
  3  5.37241
  4  0.000669368
  5  1.1977e-06
  6  7.87117
  7  4.18473e-05
  8  10.7336
  9  41.3522
  10  0.000579515
  11  5.76582e-06
  12  0.000332735
  13  11.0322
  14  0.000338808
  15  49.5501
  16  28.213
  17  1.19449e-06
  18  1.28245e-05
  19  3.64871e-05
  20  0.00138687
  21  11.5238
  22  33.4359
  23  8.03859e-07
  24  15.7485
  25  1.49175e-05
  26  6.90865
  27  4.45623e-05
  28  9.04015e-05
  29  0.000561005
  30  13.4233
  31  0.356165
  32  0.283289
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  3.388e-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:  6.713e-01  2.833e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.311e-01  3.562e-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: 9.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551077/likelihoodResults_500083201_500342401_4FGL_J2251.5-4928_daily_bin1006.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) = 2368.67754946
delta logL = -7.67904421082e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2368.67747329
delta logL = -6.21712842985e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16756E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7985       1.0000          .0000       10.000    
     3 'Normalizat'    .93105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67133       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=   2368.677     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1566.7        .90712E-02** at limit **
   2  Index         1.8232        7.2848        .50000       -.34076E-05
   3  Normalizat    .93105        .35790E-01    .45297E-01   -.30587E-04
   4  Prefactor     .67133        .30904E-01    .42018E-01   -.39257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.82322
  Normalizat = 0.931051
  Prefactor  = 0.671327
 **********
 **   18 **HESSE 
 **********

 FCN=   2368.677     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7129.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8232        7.8729        .50000       -.68847    
   3  Normalizat    .93105        .67704E-01    .24087E-03   -.95377    
   4  Prefactor     .67133        .58460E-01    .24021E-03   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.48777e-09
Minuit parameter uncertainties:
  1  0.0109029
  2  35.8153
  3  0.0677102
  4  0.0584648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551077': 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) = 2368.67747269
delta logL = -2.50156517723e-08

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.090e-02  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.823e+00  3.582e+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:  6.713e-01  5.846e-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:  9.311e-01  6.771e-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/551077/cmap_HighResolution_500083201_500342401_4FGL_J2251.5-4928_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='9.65e-08', time_completed='2021-09-29 00:45:06.585290', job_id='551077', GAL2='0.67', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632901506.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='-2.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1006' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:45:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 551077: <4FGL_J2251.5-4928_daily_bin1006> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1006> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:13 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:15 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:15 2021
Terminated at Wed Sep 29 00:45:07 2021
Results reported at Wed Sep 29 00:45:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1006 342.879 -49.4691 500083201 500342401 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 :                                   566.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            594 sec.

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

