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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin739
RA = 192.836, Dec = -2.0271
tmin = 430876801, tmax = 431136001
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='950368', job_status='RUN', time_executed='2021-09-06 07:13:39.624222', time_epoch_executed='1630937619.62' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950368/ft1_4FGL_J1251.3-0201_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950368/ft1_4FGL_J1251.3-0201_daily_bin739.fits outfile=/scratch/kocevski/950368/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin739.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=430876801.0 tmax=431136001.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 6.75
user 5.17
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950368/ft1_filtered_4FGL_J1251.3-0201_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/950368/ltcube_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.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/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits
.....................!
real 13.36
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950368/ft1_filtered_4FGL_J1251.3-0201_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/950368/ltcube_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.fits outfile=/scratch/kocevski/950368/expmap_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.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/950368/ltcube_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.fits
.....................!
real 190.41
user 184.82
sys 3.97

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/950368/ft1_filtered_4FGL_J1251.3-0201_daily_bin739.fits scfile=/scratch/kocevski/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits outfile=/scratch/kocevski/950368/cmap_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.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 3.17
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950368/ft1_filtered_4FGL_J1251.3-0201_daily_bin739.fits scfile=/scratch/kocevski/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits outfile=/scratch/kocevski/950368/cmap_HighResolution_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.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 1.71
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950368/ft1_filtered_4FGL_J1251.3-0201_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950368/Model_4FGL_J1251.3-0201_daily_bin739.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/950368/ft1_filtered_4FGL_J1251.3-0201_daily_bin739.fits.....................!
real 56.99
user 51.11
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950368/ft1_filtered_4FGL_J1251.3-0201_daily_bin739.fits', '/scratch/kocevski/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits', expMap='/scratch/kocevski/950368/expmap_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.fits', expCube='/scratch/kocevski/950368/ltcube_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950368/Model_4FGL_J1251.3-0201_daily_bin739.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/950368/ft1_filtered_4FGL_J1251.3-0201_daily_bin739.fits
Spacecraft file(s): /scratch/kocevski/950368/ft2_4FGL_J1251.3-0201_daily_bin739.fits
Exposure map: /scratch/kocevski/950368/expmap_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.fits
Exposure cube: /scratch/kocevski/950368/ltcube_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950368/Model_4FGL_J1251.3-0201_daily_bin739.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) = 6218.24892794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12727E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7097       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6152       1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14773E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3173       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.553       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.414       1.0000         .10000E-03   10000.    
    15 'norm      '    .13542E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3416       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67500E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70828       1.0000         .10000E-03   10000.    
    22 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.0361       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .48779       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=   6218.243     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2705 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.188       -.14356E-05** at limit **
   2  Prefactor     .10000E-03    68.295        .75333E-05** at limit **
   3  Prefactor     .10000E-03    46.682        .66911E-05** at limit **
   4  norm          4.7166        3.4015       -.28890E-06   -.53850E-03
   5  norm          4.6139        4.1001       -.22372E-06   -.52148E-03
   6  norm          .10000E-03    22.498        .35287E-05** at limit **
   7  Prefactor     .10000E-03    71.935        .17785E-05** at limit **
   8  norm          2.3175        .74316       -.10678E-07   -.63069E-03
   9  Prefactor     .10000E-03    6.6787       -.95845E-07** at limit **
  10  Prefactor     13.547        9.3174       -.18489E-06   -.55110E-05
  11  norm          .10000E-03    .58542       -.62195E-07** at limit **
  12  Prefactor     .10000E-03    4.8055        .30061E-06** at limit **
  13  Prefactor     .10000E-03    23.105        .18805E-06** at limit **
  14  Prefactor     76.414        51.194       -.17898E-06    .42809E-04
  15  norm          .10000E-03    42.525       -.75441E-05** at limit **
  16  norm          2.3418        .40861        .40410E-08    .36242E-02
  17  Prefactor     .10000E-03    177.33       -.74612E-04** at limit **
  18  norm          .10000E-03    9.4651        .57815E-07** at limit **
  19  norm          .10000E-03    5.6947        .53949E-06** at limit **
  20  Prefactor     .10000E-03    5.6013       -.29345E-06** at limit **
  21  Prefactor     .62936        10.160       -.38184E-05    .44616E-03
  22  norm          .10000E-03    .89351        .98074E-08** at limit **
  23  Normalizat    2.0368        .25431        .12958E-05    .40601E-03
  24  Prefactor     .48767        .16589       -.20761E-06    .25922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.7166
  norm       = 4.6139
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31755
  Prefactor  = 0.0001
  Prefactor  = 13.5468
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.4142
  norm       = 0.0001
  norm       = 2.3418
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.629357
  norm       = 0.0001
  Normalizat = 2.03681
  Prefactor  = 0.487668
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.243     FROM HESSE     STATUS=OK           389 CALLS     3094 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    69.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7166        3.3855        .11773E-03   -1.5274    
   5  norm          4.6139        4.1060        .13963E-03   -1.5278    
   6  norm          .10000E-03    22.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    71.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3175        .74405        .35203E-04   -1.5403    
   9  Prefactor     .10000E-03    6.7260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.547        9.3226        .10880E-03   -1.4972    
  11  norm          .10000E-03    .59634        .58880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8285        .16879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     76.414        51.366        .45936E-04   -1.3957    
  15  norm          .10000E-03    42.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3418        .41235        .19469E-04   -1.5402    
  17  Prefactor     .10000E-03    178.01        .21000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.5278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.7192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .62936        52.503        .46012E-02   -1.5549    
  22  norm          .10000E-03    1.4825        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.0368        .29519        .26381E-03   -.63631    
  24  Prefactor     .48767        .18930        .33939E-03   -1.1255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95349e-09
Minuit parameter uncertainties:
  1  8.31599e-06
  2  0.000120785
  3  0.000115225
  4  3.38567
  5  4.10624
  6  1.95573e-06
  7  5.31581e-06
  8  0.74405
  9  5.78601e-06
  10  9.32359
  11  8.32075e-07
  12  2.83609e-06
  13  9.87307e-06
  14  51.3963
  15  2.31564e-05
  16  0.412355
  17  0.000429406
  18  1.87612e-05
  19  6.85498e-06
  20  6.49718e-07
  21  11.5062
  22  9.48189e-06
  23  0.295452
  24  0.189543
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  2.316e-05  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:  4.877e-01  1.895e-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:  2.037e+00  2.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950368/likelihoodResults_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.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) = 6218.24272644
delta logL = -0.00011093093508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6218.24261572
delta logL = -2.11599399336e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9123       1.0000          .0000       5.0000    
     3 'Normalizat'    2.0368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48767       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6218.243     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    63.110        .18142E-02** at limit **
   2  alpha         2.0092        3.4374        .50000       -.13848E-04
   3  Normalizat    2.0368        .27011        .26381E-03    .59497E-03
   4  Prefactor     .48767        .18569        .33939E-03    .42753E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100013
  alpha      = 2.00915
  Normalizat = 2.03681
  Prefactor  = 0.487669
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.243     FROM HESSE     STATUS=OK            29 CALLS      308 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    58.160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0092        3.4193        .50000       -.19762    
   3  Normalizat    2.0368        .27026        .52761E-04   -.63631    
   4  Prefactor     .48767        .18579        .13575E-04   -1.1255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05245e-10
Minuit parameter uncertainties:
  1  0.00174925
  2  2.45547
  3  0.270469
  4  0.186023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950368': 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) = 6218.24261519
delta logL = 3.21855623042e-07

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.749e-03  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.009e+00  2.455e+00  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:  4.877e-01  1.860e-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:  2.037e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.836 -2.027

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/950368/cmap_HighResolution_430876801_431136001_4FGL_J1251.3-0201_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-05', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-06 07:25:54.718894', job_id='950368', GAL2='0.49', fit_tolerance='1e-08', EG2='2.04', EG='2.04', time_epoch_completed='1630938354.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='3.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='739' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:25:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 950368: <4FGL_J1251.3-0201_daily_bin739> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin739> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:10:43 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:10:44 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:10:44 2021
Terminated at Mon Sep  6 07:25:55 2021
Results reported at Mon Sep  6 07:25:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin739 192.836 -2.0271 430876801 431136001 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

