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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1595
RA = 342.879, Dec = -49.4691
tmin = 652752001, tmax = 653011201
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='554301', job_status='RUN', time_executed='2021-09-29 00:46:47.576661', time_epoch_executed='1632901607.58' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554301/ft1_4FGL_J2251.5-4928_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554301/ft2_4FGL_J2251.5-4928_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554301/ft1_4FGL_J2251.5-4928_daily_bin1595.fits outfile=/scratch/kocevski/554301/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1595.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=652752001.0 tmax=653011201.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.14
user 2.93
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554301/ft1_filtered_4FGL_J2251.5-4928_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/554301/ft2_4FGL_J2251.5-4928_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/554301/ltcube_652752001_653011201_4FGL_J2251.5-4928_daily_bin1595.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/554301/ft2_4FGL_J2251.5-4928_daily_bin1595.fits
.....................!
real 12.50
user 12.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554301/ft1_filtered_4FGL_J2251.5-4928_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/554301/ft2_4FGL_J2251.5-4928_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/554301/ltcube_652752001_653011201_4FGL_J2251.5-4928_daily_bin1595.fits outfile=/scratch/kocevski/554301/expmap_652752001_653011201_4FGL_J2251.5-4928_daily_bin1595.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/554301/ltcube_652752001_653011201_4FGL_J2251.5-4928_daily_bin1595.fits
.....................!
real 191.41
user 186.16
sys 4.95

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/554301/ft1_filtered_4FGL_J2251.5-4928_daily_bin1595.fits scfile=/scratch/kocevski/554301/ft2_4FGL_J2251.5-4928_daily_bin1595.fits outfile=/scratch/kocevski/554301/cmap_652752001_653011201_4FGL_J2251.5-4928_daily_bin1595.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554301/ft1_filtered_4FGL_J2251.5-4928_daily_bin1595.fits scfile=/scratch/kocevski/554301/ft2_4FGL_J2251.5-4928_daily_bin1595.fits outfile=/scratch/kocevski/554301/cmap_HighResolution_652752001_653011201_4FGL_J2251.5-4928_daily_bin1595.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.879 yref=-49.4691 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.494       1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.722       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14779E-03   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 '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    330.61       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.839       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.267       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .44860E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13062E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .34831E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12209E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '    210.16       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .73882E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    .97490E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .69189E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3500       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=   711.0186     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     5023 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.491        153.43       -.10703E-05   -.32057E-04
   2  Prefactor     65.745        47.218       -.53904E-06   -.54500E-03
   3  Prefactor     .10001E-03    40.922        .13804E-04** at limit **
   4  Prefactor     .10000E-03    179.64        .61140E-08** at limit **
   5  norm          .10000E-03    9.9036        .34735E-07** at limit **
   6  Prefactor     .10000E-03    10.346       -.85354E-06** at limit **
   7  Prefactor     330.31        379.24       -.10015E-05   -.81627E-05
   8  Prefactor     13.840        17.893       -.98555E-07   -.67003E-04
   9  Prefactor     .10001E-03    180.92       -.20425E-05** at limit **
  10  Prefactor     .10000E-03    50.278        .64381E-08** at limit **
  11  Prefactor     12.279        37.189       -.90013E-06   -.10433E-03
  12  Prefactor     .10000E-03    177.34        .69644E-07** at limit **
  13  Prefactor     .10000E-03    41.724       -.43540E-06** at limit **
  14  Prefactor     .10000E-03    79.857       -.48347E-07** at limit **
  15  Prefactor     .10000E-03    78.967       -.45020E-07** at limit **
  16  norm          .10000E-03    206.84       -.14696E-06** at limit **
  17  norm          .10000E-03    81.922       -.17700E-07** at limit **
  18  norm          .10000E-03    977.62        .83649E-06** at limit **
  19  Prefactor     .10000E-03    94.185        .89639E-07** at limit **
  20  Prefactor     .10000E-03    8478.0        .45598E-05** at limit **
  21  norm          .10000E-03    2290.9       -.30693E-06** at limit **
  22  Prefactor     .10000E-03    409.00       -.14238E-06** at limit **
  23  norm          .10000E-03    17.339       -.27848E-07** at limit **
  24  norm         10000.0        7251.1       -.10204E-05** at limit **
  25  Prefactor     210.05        246.24       -.28861E-05   -.62617E-04
  26  Prefactor     .10000E-03    338.14       -.57271E-06** at limit **
  27  Prefactor     .10000E-03    7923.0        .32013E-05** at limit **
  28  norm          .10000E-03    2222.4        .14869E-06** at limit **
  29  Prefactor     .10005E-03    6650.3       -.28245E-05** at limit **
  30  Prefactor    10000.0        6375.3       -.86057E-06** at limit **
  31  Normalizat    .10000E-01    .68156       -.13474E-04** at limit **
  32  Prefactor     1.3503        .27012       -.18264E-05   -.19888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.4907
  Prefactor  = 65.7449
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 330.314
  Prefactor  = 13.8396
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 12.2789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 210.054
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100001
  Prefactor  = 0.000100054
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.3503
 **********
 **   18 **HESSE 
 **********

 FCN=   711.0186     FROM HESSE     STATUS=OK           631 CALLS     5654 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.491        148.09        .65454E-04   -1.4483    
   2  Prefactor     65.745        46.255        .49505E-04   -1.4085    
   3  Prefactor     .10001E-03    44.148        .18798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    179.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.9045        .81987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.435        .84124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     330.31        378.96        .11186E-03   -1.2053    
   8  Prefactor     13.840        17.891        .10767E-03   -1.4964    
   9  Prefactor     .10001E-03    181.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.279        37.313        .11437E-03   -1.5007    
  12  Prefactor     .10000E-03    177.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.750        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    79.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    78.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    206.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    81.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    977.75        .19348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    94.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8479.1        .18176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2291.1        .21326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    409.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    17.340        .10850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm         10000.0        7251.1        .20651E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     210.05        246.99        .13943E-03   -1.2799    
  26  Prefactor     .10000E-03    338.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7923.7        .18611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2222.7        .20779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10005E-03    6652.0        .18718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor    10000.0        6375.3        .20747E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    1.3195        .12162E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.3503        .28270        .18788E-03   -.81824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34455e-09
Minuit parameter uncertainties:
  1  149.579
  2  46.2805
  3  0.00152242
  4  0.000160178
  5  6.09325e-07
  6  0.000193884
  7  381.856
  8  17.898
  9  0.00197772
  10  5.99139e-05
  11  37.3837
  12  1.00925e-05
  13  0.000216963
  14  1.4639e-06
  15  5.9282e-06
  16  4.55896e-06
  17  5.86365e-06
  18  0.000761346
  19  3.47711e-05
  20  0.0129607
  21  0.00309191
  22  4.83342e-05
  23  8.53269e-06
  24  0.00317778
  25  248.231
  26  0.000309824
  27  0.00894225
  28  0.00315057
  29  0.0284676
  30  0.0015215
  31  9.4117e-05
  32  0.283024
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  1.464e-06  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.350e+00  2.830e-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.000e-02  9.412e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 2.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554301/likelihoodResults_652752001_653011201_4FGL_J2251.5-4928_daily_bin1595.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) = 711.018612901
delta logL = -5.91375661543e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 711.018557529
delta logL = -3.76468892682e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12162E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0574       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3503       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=   711.0186     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    332.73        .18142E-02** at limit **
   2  Index         1.9886        6.1078        .50000        .49840E-05
   3  Normalizat    .10000E-01    .14304E-01    .12163E-01** at limit **
   4  Prefactor     1.3503        .25142E-01    .18788E-03   -.15415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102186
  Index      = 1.98858
  Normalizat = 0.01
  Prefactor  = 1.3503
 **********
 **   18 **HESSE 
 **********

 FCN=   711.0186     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10219E-03    1374.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9886        7.5387        .50000       -.64636    
   3  Normalizat    .10000E-01    .63737E-01    .24326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3503        .52973E-01    .75151E-05   -.81823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.39914e-09
Minuit parameter uncertainties:
  1  0.11233
  2  723.004
  3  6.52602e-07
  4  0.0529756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554301': 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) = 711.018553922
delta logL = -1.57823819791e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.022e-04  1.123e-01  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.989e+00  7.230e+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.350e+00  5.298e-02  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.000e-02  6.526e-07  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/554301/cmap_HighResolution_652752001_653011201_4FGL_J2251.5-4928_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', job_status='DONE', photon_flux_upper_limit='2.53e-07', time_completed='2021-09-29 00:53:28.884909', job_id='554301', GAL2='1.35', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632902008.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='-1.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1595' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:53:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 554301: <4FGL_J2251.5-4928_daily_bin1595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1595 342.879 -49.4691 652752001 653011201 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 :                                   394.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   484 sec.
    Turnaround time :                            486 sec.

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

