/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 = 7383
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin817
RA = 192.836, Dec = -2.0271
tmin = 451094401, tmax = 451353601
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='948850', job_status='RUN', time_executed='2021-09-06 07:07:11.248048', time_epoch_executed='1630937231.25' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948850/ft1_4FGL_J1251.3-0201_daily_bin817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948850/ft1_4FGL_J1251.3-0201_daily_bin817.fits outfile=/scratch/kocevski/948850/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin817.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=451094401.0 tmax=451353601.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.17
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.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/948850/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin817.fits evtable="EVENTS" outfile="/scratch/kocevski/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.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.65
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.fits" evtable="EVENTS" scfile=/scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits sctable="SC_DATA" outfile=/scratch/kocevski/948850/ltcube_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.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/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits
.....................!
real 12.87
user 12.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits sctable="SC_DATA" expcube=/scratch/kocevski/948850/ltcube_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.fits outfile=/scratch/kocevski/948850/expmap_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.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/948850/ltcube_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.fits
.....................!
real 191.84
user 185.66
sys 5.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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1251.3-0201 @ 192.836 -2.0271

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.fits scfile=/scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits outfile=/scratch/kocevski/948850/cmap_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.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=192.836 yref=-2.0271 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.64
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.fits scfile=/scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits outfile=/scratch/kocevski/948850/cmap_HighResolution_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.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=192.836 yref=-2.0271 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.62
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948850/Model_4FGL_J1251.3-0201_daily_bin817.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/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.fits.....................!
real 50.91
user 49.54
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.fits', '/scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits', expMap='/scratch/kocevski/948850/expmap_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.fits', expCube='/scratch/kocevski/948850/ltcube_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948850/Model_4FGL_J1251.3-0201_daily_bin817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1251.3-0201'

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  5.916e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948850/ft1_filtered_4FGL_J1251.3-0201_daily_bin817.fits
Spacecraft file(s): /scratch/kocevski/948850/ft2_4FGL_J1251.3-0201_daily_bin817.fits
Exposure map: /scratch/kocevski/948850/expmap_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.fits
Exposure cube: /scratch/kocevski/948850/ltcube_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948850/Model_4FGL_J1251.3-0201_daily_bin817.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) = 5877.72930832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.561       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.8482       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5659       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .88561E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.866       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.166       1.0000         .10000E-03   10000.    
    15 'norm      '    21.501       1.0000         .10000E-03   10000.    
    16 'norm      '    .19052       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4823       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4720       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2894       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4415       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5877.725     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2765 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.570        25.200        .48520E-06    .84337E-05
   2  Prefactor     .10000E-03    81.691        .57745E-06** at limit **
   3  Prefactor     .10000E-03    4.5770       -.16658E-07** at limit **
   4  norm          4.8484        3.0430        .50222E-07   -.49366E-04
   5  norm          2.5645        2.8186        .14550E-06   -.10160E-03
   6  norm          .10000E-03    19.621       -.10101E-06** at limit **
   7  Prefactor     .10000E-03    49.783       -.53027E-06** at limit **
   8  norm          1.3244        .60279        .35619E-07   -.57940E-03
   9  Prefactor     .10000E-03    3.6291       -.13616E-07** at limit **
  10  Prefactor     .10000E-03    5.1757        .11621E-07** at limit **
  11  norm          .93638E-01    .85654        .24491E-06   -.32459E-03
  12  Prefactor     11.867        9.0805       -.21971E-06   -.67186E-04
  13  Prefactor     .10000E-03    24.223        .20170E-06** at limit **
  14  Prefactor     51.205        63.766        .31503E-05    .79164E-04
  15  norm          21.503        29.581       -.33396E-06   -.16265E-04
  16  norm          .19039        .27406        .31047E-06   -.56286E-04
  17  Prefactor     3.4886        161.85       -.10373E-05   -.35956E-05
  18  norm          .10000E-03    2.9879        .21629E-07** at limit **
  19  norm          .10000E-03    12.600       -.10005E-06** at limit **
  20  Prefactor     .10000E-03    9.3116       -.11456E-07** at limit **
  21  Prefactor     9.4730        13.803        .19966E-05   -.16256E-03
  22  norm          1.2900        2.0445        .21302E-06   -.13990E-03
  23  Normalizat    1.4414        .24864       -.21359E-05   -.89774E-04
  24  Prefactor     .89922        .16741       -.84419E-07   -.19047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.57
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.84835
  norm       = 2.56452
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0936385
  Prefactor  = 11.8674
  Prefactor  = 0.0001
  Prefactor  = 51.2054
  norm       = 21.5032
  norm       = 0.190395
  Prefactor  = 3.48858
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.473
  norm       = 1.28999
  Normalizat = 1.4414
  Prefactor  = 0.899223
 **********
 **   18 **HESSE 
 **********

 FCN=   5877.725     FROM HESSE     STATUS=OK           403 CALLS     3168 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.570        25.204        .69170E-04   -1.4549    
   2  Prefactor     .10000E-03    83.804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5821        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.8484        3.0402        .10134E-03   -1.5268    
   5  norm          2.5645        2.8031        .12784E-03   -1.5388    
   6  norm          .10000E-03    19.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3244        .59840        .36967E-04   -1.5478    
   9  Prefactor     .10000E-03    3.6343        .14262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1895        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .93638E-01    7.4791        .13084E-02   -1.5647    
  12  Prefactor     11.867        9.0945        .11629E-03   -1.5019    
  13  Prefactor     .10000E-03    24.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.205        65.017        .56067E-04   -1.4276    
  15  norm          21.503        29.565        .86380E-04   -1.4780    
  16  norm          .19039        .26796        .40598E-03   -1.5621    
  17  Prefactor     3.4886        161.00        .21668E-03   -1.5334    
  18  norm          .10000E-03    2.9894        .12941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.3371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.4730        13.724        .65107E-03   -1.5092    
  22  norm          1.2900        2.0312        .12795E-03   -1.5481    
  23  Normalizat    1.4414        .29399        .28246E-03   -.79439    
  24  Prefactor     .89922        .19888        .25116E-03   -.96168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39688e-09
Minuit parameter uncertainties:
  1  25.2117
  2  0.000135409
  3  1.24206e-06
  4  3.04028
  5  2.80326
  6  3.88803e-06
  7  3.79829e-05
  8  0.5984
  9  1.31117e-06
  10  2.90314e-06
  11  1.67304
  12  9.09552
  13  2.77637e-05
  14  65.1073
  15  29.5853
  16  0.267967
  17  47.5344
  18  6.02215e-07
  19  7.35029e-06
  20  8.64938e-06
  21  13.729
  22  2.03131
  23  0.29434
  24  0.199039
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.150e+01  2.959e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.951e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  8.992e-01  1.990e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.441e+00  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 8.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948850/likelihoodResults_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.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) = 5877.41886416
delta logL = 0.305703498982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5877.41011248
delta logL = 0.314455176716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.755       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6306       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90476       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5877.410     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.755        616.81        .23121E-02    .44390E-03
   2  alpha         2.6314        3.4341        .30739        .46216E-04
   3  Normalizat    1.4189        .10509        .64238E-01    .79222E-05
   4  Prefactor     .90460        .63358E-01    .45066E-01    .12781E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.755
  alpha      = 2.63144
  Normalizat = 1.41893
  Prefactor  = 0.904602
 **********
 **   18 **HESSE 
 **********

 FCN=   5877.410     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.755        25.791        .92484E-04   -1.4842    
   2  alpha         2.6314        .86006        .15496E-01    .52600E-01
   3  Normalizat    1.4189        .27340        .28414E-03   -.80083    
   4  Prefactor     .90460        .19716        .25031E-03   -.95980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80675e-09
Minuit parameter uncertainties:
  1  25.8064
  2  0.878051
  3  0.273686
  4  0.197317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948850': 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) = 5877.4101113
delta logL = 0.314456358048

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.875e+01  2.581e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.631e+00  8.781e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.195e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.046e-01  1.973e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.419e+00  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.63 +/- 0.88
Photon Flux (Free Index): 4.47e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.40e-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/948850/cmap_HighResolution_451094401_451353601_4FGL_J1251.3-0201_daily_bin817.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-05', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='3.14e-01', photon_flux2='4.47e-08', job_status='DONE', time_completed='2021-09-06 07:18:11.187004', photon_index_error2='0.88', photon_index2='2.63', ts='0.79', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='8.39e-08', energy_flux_error2='1.40e-05', EG='1.44', time_epoch_completed='1630937891.19', return_code='0', job_id='948850', GAL2='0.90', EG2='1.42', return_code2='0', photon_flux_error2='5.18e-08', ts2='1.42', photon_index='1.95' WHERE bin_id='817' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:18:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 948850: <4FGL_J1251.3-0201_daily_bin817> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin817> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 07:06:31 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:06:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:06:32 2021
Terminated at Mon Sep  6 07:18:11 2021
Results reported at Mon Sep  6 07:18:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin817 192.836 -2.0271 451094401 451353601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1251.3-0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            700 sec.

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

