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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1379
RA = 342.879, Dec = -49.4691
tmin = 596764801, tmax = 597024001
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='552856', job_status='RUN', time_executed='2021-09-29 00:40:59.336545', time_epoch_executed='1632901259.34' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552856/ft1_4FGL_J2251.5-4928_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552856/ft2_4FGL_J2251.5-4928_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552856/ft1_4FGL_J2251.5-4928_daily_bin1379.fits outfile=/scratch/kocevski/552856/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1379.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=596764801.0 tmax=597024001.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.52
user 3.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/552856/ft2_4FGL_J2251.5-4928_daily_bin1379.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/552856/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1379.fits evtable="EVENTS" outfile="/scratch/kocevski/552856/ft1_filtered_4FGL_J2251.5-4928_daily_bin1379.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.55
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552856/ft1_filtered_4FGL_J2251.5-4928_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/552856/ft2_4FGL_J2251.5-4928_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/552856/ltcube_596764801_597024001_4FGL_J2251.5-4928_daily_bin1379.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/552856/ft2_4FGL_J2251.5-4928_daily_bin1379.fits
.....................!
real 11.85
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552856/ft1_filtered_4FGL_J2251.5-4928_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/552856/ft2_4FGL_J2251.5-4928_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/552856/ltcube_596764801_597024001_4FGL_J2251.5-4928_daily_bin1379.fits outfile=/scratch/kocevski/552856/expmap_596764801_597024001_4FGL_J2251.5-4928_daily_bin1379.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/552856/ltcube_596764801_597024001_4FGL_J2251.5-4928_daily_bin1379.fits
.....................!
real 188.90
user 183.88
sys 4.71

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/552856/ft1_filtered_4FGL_J2251.5-4928_daily_bin1379.fits scfile=/scratch/kocevski/552856/ft2_4FGL_J2251.5-4928_daily_bin1379.fits outfile=/scratch/kocevski/552856/cmap_596764801_597024001_4FGL_J2251.5-4928_daily_bin1379.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/552856/ft1_filtered_4FGL_J2251.5-4928_daily_bin1379.fits scfile=/scratch/kocevski/552856/ft2_4FGL_J2251.5-4928_daily_bin1379.fits outfile=/scratch/kocevski/552856/cmap_HighResolution_596764801_597024001_4FGL_J2251.5-4928_daily_bin1379.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.809       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.620       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2320       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7853       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5392       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5824       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.4498       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.009       1.0000         .10000E-03   10000.    
    28 'norm      '    .21348E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.0230       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.9207       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2306       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .84078       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=   5291.656     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     5009 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.253        .29883E-06** at limit **
   2  Prefactor     11.811        11.152        .26742E-05    .37959E-03
   3  Prefactor     6.3909        5.4067       -.90303E-06   -.39875E-03
   4  Prefactor     .10000E-03    102.35        .12763E-05** at limit **
   5  norm          .10000E-03    2.7689        .24894E-08** at limit **
   6  Prefactor     .10000E-03    2.1256       -.51006E-08** at limit **
   7  Prefactor     9.8236        94.231        .11190E-04    .49159E-04
   8  Prefactor     5.4938        6.5669       -.29526E-06   -.14262E-03
   9  Prefactor     .10000E-03    9.6939       -.33937E-06** at limit **
  10  Prefactor     .10000E-03    9.3593        .34566E-06** at limit **
  11  Prefactor     .10000E-03    5.1403        .88290E-07** at limit **
  12  Prefactor     39.621        49.499        .32762E-06    .69124E-05
  13  Prefactor     .10000E-03    2.2923       -.31877E-08** at limit **
  14  Prefactor     2.2321        40.678        .67444E-05   -.36379E-03
  15  Prefactor     .10000E-03    3.8285        .16299E-08** at limit **
  16  norm          3.7850        11.133        .25652E-05   -.75809E-03
  17  norm          .10000E-03    1.8919       -.34423E-09** at limit **
  18  norm          1.1344        4.0508       -.13510E-05   -.27748E-03
  19  Prefactor     9.5401        6.7969       -.81844E-07   -.57678E-04
  20  Prefactor     .10000E-03    15.117       -.34505E-06** at limit **
  21  norm          4.5823        5.0206        .13324E-05    .24538E-03
  22  Prefactor     .10000E-03    15.013        .42673E-07** at limit **
  23  norm          .10000E-03    .40935        .58723E-08** at limit **
  24  norm          .10000E-03    4.8279       -.10257E-06** at limit **
  25  Prefactor     5.4469        15.299       -.69574E-05   -.30047E-03
  26  Prefactor     .10000E-03    1.8962        .69196E-08** at limit **
  27  Prefactor     17.009        22.958        .30442E-06    .38698E-04
  28  norm          .10006E-03    26.469       -.20562E-05** at limit **
  29  Prefactor     7.0242        6.6633        .11107E-05    .73466E-03
  30  Prefactor     8.9202        6.4880        .44423E-06   -.99911E-03
  31  Normalizat    1.2308        .20327       -.25184E-06    .42189E-04
  32  Prefactor     .84062        .18664       -.79987E-06    .60203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.8112
  Prefactor  = 6.39085
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.82364
  Prefactor  = 5.49382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.6209
  Prefactor  = 0.0001
  Prefactor  = 2.23214
  Prefactor  = 0.0001
  norm       = 3.78496
  norm       = 0.0001
  norm       = 1.13435
  Prefactor  = 9.54009
  Prefactor  = 0.0001
  norm       = 4.58232
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.44687
  Prefactor  = 0.0001
  Prefactor  = 17.0093
  norm       = 0.00010006
  Prefactor  = 7.02424
  Prefactor  = 8.9202
  Normalizat = 1.23083
  Prefactor  = 0.840617
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.656     FROM HESSE     STATUS=OK           665 CALLS     5674 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.811        11.191        .11658E-03   -1.5020    
   3  Prefactor     6.3909        5.4407        .14533E-03   -1.5202    
   4  Prefactor     .10000E-03    102.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7705        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1465        .10348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.8236        94.104        .12794E-03   -1.5081    
   8  Prefactor     5.4938        6.5862        .17140E-03   -1.5239    
   9  Prefactor     .10000E-03    9.7017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1665        .16105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.621        49.497        .63680E-04   -1.4448    
  13  Prefactor     .10000E-03    2.2937        .10755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2321        55.951        .13758E-02   -1.5409    
  15  Prefactor     .10000E-03    3.8310        .13900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7850        12.661        .10374E-02   -1.5319    
  17  norm          .10000E-03    1.8921        .97716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1344        4.0511        .23771E-03   -1.5495    
  19  Prefactor     9.5401        6.7824        .12975E-03   -1.5090    
  20  Prefactor     .10000E-03    15.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5823        5.0995        .14444E-03   -1.5280    
  22  Prefactor     .10000E-03    15.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .42195        .90690E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.0081        .31179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.4469        15.712        .17213E-03   -1.5241    
  26  Prefactor     .10000E-03    1.9083        .97492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.009        22.949        .97114E-04   -1.4883    
  28  norm          .10006E-03    31.329        .10618       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.0242        6.8779        .15138E-03   -1.5178    
  30  Prefactor     8.9202        6.6781        .67098E-03   -1.5111    
  31  Normalizat    1.2308        .24562        .23123E-03   -.85655    
  32  Prefactor     .84062        .22269        .26312E-03   -.98248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3382e-09
Minuit parameter uncertainties:
  1  8.88416e-06
  2  11.1928
  3  5.44113
  4  0.000144933
  5  1.14242e-06
  6  9.84894e-06
  7  60.9351
  8  6.58704
  9  3.24764e-05
  10  1.87824e-05
  11  5.90977e-06
  12  49.5482
  13  3.13984e-06
  14  22.3737
  15  1.19423e-06
  16  12.6697
  17  1.92669e-07
  18  4.05205
  19  6.78298
  20  5.31219e-05
  21  5.09999
  22  9.2772e-06
  23  4.24217e-07
  24  3.38312e-05
  25  15.7234
  26  2.78229e-06
  27  22.9608
  28  0.00274151
  29  6.87863
  30  6.67869
  31  0.245856
  32  0.222933
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  2.232e+00  2.237e+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:  8.406e-01  2.229e-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.231e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/552856/likelihoodResults_596764801_597024001_4FGL_J2251.5-4928_daily_bin1379.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) = 5291.62143595
delta logL = 0.0343197786597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5291.62116013
delta logL = 0.0345956016045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3210       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4382       1.0000          .0000       10.000    
     3 'Normalizat'    1.2276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84121       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=   5291.621     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3269        346.27        .67311E-02    .31267E-03
   2  Index         2.4330        3.4737        .23759        .60081E-04
   3  Normalizat    1.2276        .32553E-01    .52355E-01    .16216E-03
   4  Prefactor     .84117        .30877E-01    .44251E-01    .21996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32691
  Index      = 2.43297
  Normalizat = 1.22762
  Prefactor  = 0.841174
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.621     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3269        31.677        .26924E-03   -1.5403    
   2  Index         2.4330        2.5940        .10469E-01   -.53915    
   3  Normalizat    1.2276        .22583        .23148E-03   -.85754    
   4  Prefactor     .84117        .21735        .26302E-03   -.98228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52248e-10
Minuit parameter uncertainties:
  1  17.1815
  2  2.78558
  3  0.226009
  4  0.217569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552856': 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) = 5291.62115485
delta logL = 0.0346008793076

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  8.412e-01  2.176e-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.228e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/552856/cmap_HighResolution_596764801_597024001_4FGL_J2251.5-4928_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-03', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-29 00:55:25.328953', job_id='552856', GAL2='0.84', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632902125.33', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.46e-02', ts2='0.08', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1379' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:55:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 552856: <4FGL_J2251.5-4928_daily_bin1379> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1379> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:40:30 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:40:31 2021
Terminated at Wed Sep 29 00:55:26 2021
Results reported at Wed Sep 29 00:55:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1379 342.879 -49.4691 596764801 597024001 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 :                                   855.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

