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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin897
RA = 342.879, Dec = -49.4691
tmin = 471830401, tmax = 472089601
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='549738', job_status='RUN', time_executed='2021-09-29 00:33:21.834660', time_epoch_executed='1632900801.83' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549738

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549738/ft1_4FGL_J2251.5-4928_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549738/ft2_4FGL_J2251.5-4928_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549738/ft1_4FGL_J2251.5-4928_daily_bin897.fits outfile=/scratch/kocevski/549738/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin897.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=471830401.0 tmax=472089601.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.61
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549738/ft2_4FGL_J2251.5-4928_daily_bin897.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/549738/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin897.fits evtable="EVENTS" outfile="/scratch/kocevski/549738/ft1_filtered_4FGL_J2251.5-4928_daily_bin897.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/549738/ft1_filtered_4FGL_J2251.5-4928_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/549738/ft2_4FGL_J2251.5-4928_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/549738/ltcube_471830401_472089601_4FGL_J2251.5-4928_daily_bin897.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/549738/ft2_4FGL_J2251.5-4928_daily_bin897.fits
.....................!
real 11.82
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549738/ft1_filtered_4FGL_J2251.5-4928_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/549738/ft2_4FGL_J2251.5-4928_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/549738/ltcube_471830401_472089601_4FGL_J2251.5-4928_daily_bin897.fits outfile=/scratch/kocevski/549738/expmap_471830401_472089601_4FGL_J2251.5-4928_daily_bin897.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/549738/ltcube_471830401_472089601_4FGL_J2251.5-4928_daily_bin897.fits
.....................!
real 190.72
user 185.40
sys 4.98

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549738/ft1_filtered_4FGL_J2251.5-4928_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/549738/ft2_4FGL_J2251.5-4928_daily_bin897.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549738/Model_4FGL_J2251.5-4928_daily_bin897.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/549738/ft1_filtered_4FGL_J2251.5-4928_daily_bin897.fits.....................!
real 40.01
user 38.68
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .87967E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    8.1611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.896       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6896       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.220       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.259       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0376       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4319       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9735       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.836       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15870E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.5573       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .80302       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92757       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=   5028.693     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     3616 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6321        2.3841       -.44262E-06   -.66564E-03
   2  Prefactor     .10000E-03    4.2922       -.22055E-06** at limit **
   3  Prefactor     6.9599        4.4658       -.40459E-05   -.19517E-03
   4  Prefactor     .10073E-03    563.42       -.79346E-04** at limit **
   5  norm          8.1624        1.2443        .67600E-07    .40420E-03
   6  Prefactor     .10000E-03    1.1388       -.92530E-06** at limit **
   7  Prefactor     31.102        6.1934       -.11257E-05   -.26585E-02
   8  Prefactor     9.3478        2.0742        .50463E-06   -.11473E-02
   9  Prefactor     .10000E-03    15.440        .11850E-04** at limit **
  10  Prefactor     26.906        2.7350        .21847E-07    .12863E-02
  11  Prefactor     .10000E-03    3.7082        .38138E-06** at limit **
  12  Prefactor     .10002E-03    86.197        .28779E-05** at limit **
  13  Prefactor     9.6891        1.0802       -.94938E-07    .35430E-05
  14  Prefactor     28.224        1.4464        .47589E-07    .57397E-03
  15  Prefactor     .10000E-03    38.535        .17544E-05** at limit **
  16  norm          14.262        1.0592       -.53287E-08   -.29065E-03
  17  norm          .10000E-03    2.3570        .22807E-06** at limit **
  18  norm          5.2314        1.9330        .42203E-06   -.51521E-03
  19  Prefactor     .10000E-03    6.8757        .50940E-07** at limit **
  20  Prefactor     .10000E-03    18.090       -.24605E-05** at limit **
  21  norm          2.0368        3.1165        .94437E-06   -.21886E-03
  22  Prefactor     .10000E-03    14.852       -.58129E-05** at limit **
  23  norm          1.4314        1.1270       -.62716E-06   -.98401E-04
  24  norm          2.9714        2.6127       -.14024E-05    .53778E-03
  25  Prefactor     .10000E-03    4.6409       -.74892E-07** at limit **
  26  Prefactor     12.841        5.4063        .33116E-05    .64154E-03
  27  Prefactor     .10001E-03    72.903       -.11465E-04** at limit **
  28  norm          .10000E-03    9.4552       -.80396E-06** at limit **
  29  Prefactor     5.5546        5.2011        .56842E-06    .70714E-04
  30  Prefactor     .10000E-03    3.7981        .65234E-07** at limit **
  31  Normalizat    .80310        .21357       -.27825E-05    .16598E-04
  32  Prefactor     .92757        .20294        .26176E-05    .32532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.63208
  Prefactor  = 0.0001
  Prefactor  = 6.95987
  Prefactor  = 0.000100735
  norm       = 8.16237
  Prefactor  = 0.0001
  Prefactor  = 31.1016
  Prefactor  = 9.34777
  Prefactor  = 0.0001
  Prefactor  = 26.9063
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 9.68909
  Prefactor  = 28.224
  Prefactor  = 0.0001
  norm       = 14.2616
  norm       = 0.0001
  norm       = 5.23142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03679
  Prefactor  = 0.0001
  norm       = 1.43144
  norm       = 2.97138
  Prefactor  = 0.0001
  Prefactor  = 12.841
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 5.5546
  Prefactor  = 0.0001
  Normalizat = 0.803095
  Prefactor  = 0.927574
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.693     FROM HESSE     STATUS=OK           721 CALLS     4337 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6321        31.994        .32265E-02   -1.5087    
   2  Prefactor     .10000E-03    4.2578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9599        4.5190        .38019E-02   -1.5180    
   4  Prefactor     .10073E-03    570.30        .91550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.1624        7.9204        .35085E-02   -1.5136    
   6  Prefactor     .10000E-03    1.1326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.102        36.200        .17954E-02   -1.4592    
   8  Prefactor     9.3478        6.3814        .32771E-02   -1.5096    
   9  Prefactor     .10000E-03    15.467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.906        28.460        .19312E-02   -1.4670    
  11  Prefactor     .10000E-03    3.7044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    86.739        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.6891        6.9927        .32184E-02   -1.5085    
  14  Prefactor     28.224        32.003        .18854E-02   -1.4645    
  15  Prefactor     .10000E-03    37.618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.262        13.207        .26517E-02   -1.4952    
  17  norm          .10000E-03    2.3569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2314        5.6212        .43932E-02   -1.5250    
  19  Prefactor     .10000E-03    6.7124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0368        5.0562        .72433E-02   -1.5423    
  22  Prefactor     .10000E-03    14.747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4314        1.1313        .90238E-03   -1.5469    
  24  norm          2.9714        4.9300        .58865E-02   -1.5363    
  25  Prefactor     .10000E-03    4.6350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.841        5.5942        .27951E-02   -1.4991    
  27  Prefactor     .10001E-03    72.112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    9.4559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.5546        5.5938        .42606E-02   -1.5237    
  30  Prefactor     .10000E-03    3.7684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .80310        .18847        .43650E-01   -.99954    
  32  Prefactor     .92757        .17405        .45355E-01   -.95184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11683e-08
Minuit parameter uncertainties:
  1  32.0511
  2  6.4748e-08
  3  4.51919
  4  0.0413345
  5  7.92137
  6  2.54514e-06
  7  36.2252
  8  6.38186
  9  3.31884e-06
  10  28.4746
  11  2.96799e-06
  12  0.00288284
  13  6.99327
  14  32.0228
  15  5.86432e-05
  16  13.2096
  17  1.05591e-08
  18  5.62179
  19  2.03315e-06
  20  4.01531e-06
  21  5.05728
  22  2.16794e-05
  23  1.1313
  24  4.93066
  25  1.08913e-07
  26  5.59438
  27  0.00180628
  28  1.74182e-06
  29  5.59433
  30  1.10787e-06
  31  0.188622
  32  0.174153
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  9.276e-01  1.742e-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:  8.031e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.74e-05

TS (Fixed Index): 1.88
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549738/likelihoodResults_471830401_472089601_4FGL_J2251.5-4928_daily_bin897.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): 0
logL (Free Index) = 5028.67927917
delta logL = 0.0136936744839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5028.67221559
delta logL = 0.0207572554473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.898       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0136       1.0000          .0000       10.000    
     3 'Normalizat'    .79894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92986       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=   5028.672     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.895        38.324        .81939E-04    .18509E-03
   2  Index         2.0150        .88140        .79227E-02    .60009E-04
   3  Normalizat    .79885        .20825        .25073E-03   -.24839E-03
   4  Prefactor     .92989        .20188        .22668E-03   -.34946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8946
  Index      = 2.01496
  Normalizat = 0.798853
  Prefactor  = 0.929889
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.672     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.895        35.735        .16388E-04   -1.4730    
   2  Index         2.0150        .82234        .31691E-03   -.63977    
   3  Normalizat    .79885        .20815        .10029E-04   -1.0011    
   4  Prefactor     .92989        .20192        .45337E-04   -.95104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62593e-10
Minuit parameter uncertainties:
  1  35.767
  2  0.82821
  3  0.208355
  4  0.202084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549738': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5028.67221339
delta logL = 0.0207594579651

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.389e+01  3.577e+01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  2.015e+00  8.282e-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:  9.299e-01  2.021e-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:  7.989e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 2.01 +/- 0.83
Photon Flux (Free Index): 1.82e-08 +/- 2.61e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.88e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='1.22e-05', photon_flux_error='1.69e-08', dlogl='2.08e-02', energy_flux='1.54e-05', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-09-29 00:45:40.112433', photon_index_error2='0.83', photon_index2='2.01', ts='1.88', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='6.53e-08', energy_flux_error2='1.88e-05', EG='0.80', time_epoch_completed='1632901540.11', return_code='0', job_id='549738', GAL2='0.93', EG2='0.80', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='2.61e-08', ts2='1.92', photon_index='1.85' WHERE bin_id='897' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:45:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 549738: <4FGL_J2251.5-4928_daily_bin897> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin897> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:30:25 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:30:26 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:30:26 2021
Terminated at Wed Sep 29 00:45:40 2021
Results reported at Wed Sep 29 00:45:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin897 342.879 -49.4691 471830401 472089601 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 :                                   736.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

