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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1092
RA = 342.879, Dec = -49.4691
tmin = 522374401, tmax = 522633601
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='551214', job_status='RUN', time_executed='2021-09-29 00:36:52.513895', time_epoch_executed='1632901012.51' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551214

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551214/ft1_4FGL_J2251.5-4928_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551214/ft2_4FGL_J2251.5-4928_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551214/ft1_4FGL_J2251.5-4928_daily_bin1092.fits outfile=/scratch/kocevski/551214/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1092.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=522374401.0 tmax=522633601.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.76
user 3.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551214/ft1_filtered_4FGL_J2251.5-4928_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/551214/ft2_4FGL_J2251.5-4928_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/551214/ltcube_522374401_522633601_4FGL_J2251.5-4928_daily_bin1092.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/551214/ft2_4FGL_J2251.5-4928_daily_bin1092.fits
.....................!
real 11.88
user 11.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551214/ft1_filtered_4FGL_J2251.5-4928_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/551214/ft2_4FGL_J2251.5-4928_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/551214/ltcube_522374401_522633601_4FGL_J2251.5-4928_daily_bin1092.fits outfile=/scratch/kocevski/551214/expmap_522374401_522633601_4FGL_J2251.5-4928_daily_bin1092.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/551214/ltcube_522374401_522633601_4FGL_J2251.5-4928_daily_bin1092.fits
.....................!
real 189.78
user 185.46
sys 4.00

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/551214/ft1_filtered_4FGL_J2251.5-4928_daily_bin1092.fits scfile=/scratch/kocevski/551214/ft2_4FGL_J2251.5-4928_daily_bin1092.fits outfile=/scratch/kocevski/551214/cmap_522374401_522633601_4FGL_J2251.5-4928_daily_bin1092.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551214/ft1_filtered_4FGL_J2251.5-4928_daily_bin1092.fits scfile=/scratch/kocevski/551214/ft2_4FGL_J2251.5-4928_daily_bin1092.fits outfile=/scratch/kocevski/551214/cmap_HighResolution_522374401_522633601_4FGL_J2251.5-4928_daily_bin1092.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551214/ft1_filtered_4FGL_J2251.5-4928_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/551214/ft2_4FGL_J2251.5-4928_daily_bin1092.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551214/Model_4FGL_J2251.5-4928_daily_bin1092.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/551214/ft1_filtered_4FGL_J2251.5-4928_daily_bin1092.fits.....................!
real 41.43
user 40.22
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.559       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.8931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9531       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0239       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.870       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.298       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2720       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .41933E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7490       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.132       1.0000         .10000E-03   10000.    
    21 'norm      '    .10874E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .14593       1.0000         .10000E-03   10000.    
    24 'norm      '    2.6949       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.1087       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.4636       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 '    4.7478       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91172       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0389       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=   5237.644     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     5443 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.044        33.249        .11361E-06   -.69121E-05
   2  Prefactor     .10000E-03    2.3243       -.26081E-08** at limit **
   3  Prefactor     12.559        5.1167        .42475E-07   -.18296E-04
   4  Prefactor     .10000E-03    22.987        .15905E-05** at limit **
   5  norm          8.8935        7.7635        .29269E-07   -.66252E-05
   6  Prefactor     4.9522        4.2728        .49767E-07   -.33731E-05
   7  Prefactor     .10000E-03    27.295       -.13137E-05** at limit **
   8  Prefactor     9.0225        7.5788        .53193E-06    .20314E-03
   9  Prefactor     .10000E-03    23.771        .93477E-06** at limit **
  10  Prefactor     22.860        43.799        .87211E-06   -.25678E-04
  11  Prefactor     15.299        17.916       -.33124E-06   -.43369E-04
  12  Prefactor     .10000E-03    48.783        .35495E-05** at limit **
  13  Prefactor     2.2719        7.3316        .45265E-06    .29223E-04
  14  Prefactor     .10000E-03    12.360       -.36860E-06** at limit **
  15  Prefactor     .10000E-03    6.8745       -.84163E-07** at limit **
  16  norm          .10000E-03    4.4986        .20766E-06** at limit **
  17  norm          .10028E-03    9.9909        .34830E-05** at limit **
  18  norm          .10000E-03    4.2592       -.49100E-06** at limit **
  19  Prefactor     5.7482        5.5104       -.28518E-07   -.31740E-03
  20  Prefactor     35.115        44.576        .26155E-05    .25338E-04
  21  norm          .10000E-03    4.4827       -.10686E-05** at limit **
  22  Prefactor     .10000E-03    8.3195        .13405E-06** at limit **
  23  norm          .14532        1.0350        .19724E-06   -.83382E-03
  24  norm          2.6942        4.6494       -.21517E-06   -.93740E-05
  25  Prefactor     4.1079        14.915       -.24099E-06    .43148E-05
  26  Prefactor     6.4621        4.9610       -.34720E-06    .15506E-04
  27  Prefactor     .10000E-03    26.382       -.85786E-06** at limit **
  28  norm          .10000E-03    39.835       -.15963E-05** at limit **
  29  Prefactor     4.7467        7.4281        .29332E-05    .61431E-03
  30  Prefactor     .10000E-03    3.4802        .21690E-07** at limit **
  31  Normalizat    .91203        .21713       -.11632E-06   -.70829E-05
  32  Prefactor     1.0386        .19334       -.92830E-06   -.13485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.0438
  Prefactor  = 0.0001
  Prefactor  = 12.5586
  Prefactor  = 0.0001
  norm       = 8.89353
  Prefactor  = 4.95222
  Prefactor  = 0.0001
  Prefactor  = 9.02248
  Prefactor  = 0.0001
  Prefactor  = 22.8603
  Prefactor  = 15.2986
  Prefactor  = 0.0001
  Prefactor  = 2.27189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100278
  norm       = 0.0001
  Prefactor  = 5.74821
  Prefactor  = 35.1148
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.145325
  norm       = 2.69415
  Prefactor  = 4.10785
  Prefactor  = 6.46214
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.74667
  Prefactor  = 0.0001
  Normalizat = 0.91203
  Prefactor  = 1.03857
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.644     FROM HESSE     STATUS=OK           659 CALLS     6102 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.044        33.250        .55070E-04   -1.4250    
   2  Prefactor     .10000E-03    2.3302        .10774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.559        5.1161        .99500E-04   -1.4999    
   4  Prefactor     .10000E-03    22.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.8935        7.7669        .13441E-03   -1.5111    
   6  Prefactor     4.9522        4.2768        .13154E-03   -1.5263    
   7  Prefactor     .10000E-03    27.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0225        7.6043        .66712E-03   -1.5107    
   9  Prefactor     .10000E-03    23.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.860        43.708        .83758E-04   -1.4751    
  11  Prefactor     15.299        17.827        .10240E-03   -1.4925    
  12  Prefactor     .10000E-03    48.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2719        7.3104        .27245E-03   -1.5407    
  14  Prefactor     .10000E-03    12.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.5015        .14991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10028E-03    41.701        .33712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2973        .14602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7482        5.4645        .15593E-03   -1.5228    
  20  Prefactor     35.115        45.012        .67611E-04   -1.4522    
  21  norm          .10000E-03    4.5972        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.3486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .14532        1.8803        .12752E-02   -1.5632    
  24  norm          2.6942        4.6215        .19310E-03   -1.5380    
  25  Prefactor     4.1079        14.912        .19888E-03   -1.5303    
  26  Prefactor     6.4621        4.9262        .12699E-03   -1.5199    
  27  Prefactor     .10000E-03    26.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    40.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.7467        7.6236        .92330E-03   -1.5272    
  30  Prefactor     .10000E-03    3.5151        .13181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .91203        .25522        .26388E-03   -.96039    
  32  Prefactor     1.0386        .22639        .24038E-03   -.91455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1108e-09
Minuit parameter uncertainties:
  1  33.2617
  2  8.52291e-08
  3  5.11625
  4  5.96294e-05
  5  7.76781
  6  4.27708
  7  5.83692e-05
  8  7.60513
  9  3.25564e-05
  10  43.7693
  11  17.8333
  12  0.000201545
  13  7.31325
  14  6.19477e-06
  15  4.38173e-06
  16  5.0377e-06
  17  0.00681762
  18  4.26291e-05
  19  5.46493
  20  45.0555
  21  9.57935e-05
  22  1.76265e-05
  23  1.04517
  24  4.62216
  25  14.9254
  26  4.9265
  27  2.44288e-05
  28  0.00011482
  29  7.62515
  30  2.24278e-07
  31  0.255555
  32  0.226595
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  6.195e-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.039e+00  2.266e-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.120e-01  2.556e-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: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551214/likelihoodResults_522374401_522633601_4FGL_J2251.5-4928_daily_bin1092.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) = 5237.64398435
delta logL = -0.000381716731681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5237.6436026
delta logL = 3.32929630531e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8322       1.0000          .0000       10.000    
     3 'Normalizat'    .91201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0386       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=   5237.644     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6268.4        .90712E-02** at limit **
   2  Index         1.8134        6.1497        .50000        .10945E-04
   3  Normalizat    .91203        .12540        .45055E-01   -.50872E-05
   4  Prefactor     1.0386        .12171        .40629E-01    .70601E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81345
  Normalizat = 0.912028
  Prefactor  = 1.03857
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.644     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8134        5.8338        .50000       -.69100    
   3  Normalizat    .91203        .22530        .26388E-03   -.96039    
   4  Prefactor     1.0386        .21882        .24038E-03   -.91455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78808e-10
Minuit parameter uncertainties:
  1  5.0106e-05
  2  4.3228
  3  0.225536
  4  0.219005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551214': 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) = 5237.64360252
delta logL = 1.11836925498e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  5.011e-05  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.813e+00  4.323e+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:  1.039e+00  2.190e-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.120e-01  2.255e-01  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/551214/cmap_HighResolution_522374401_522633601_4FGL_J2251.5-4928_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-29 00:51:41.369805', job_id='551214', GAL2='1.04', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632901901.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1092' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 551214: <4FGL_J2251.5-4928_daily_bin1092> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1092> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 00:35:23 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:35:24 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:24 2021
Terminated at Wed Sep 29 00:51:42 2021
Results reported at Wed Sep 29 00:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1092 342.879 -49.4691 522374401 522633601 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 :                                   877.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

