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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1017
RA = 192.836, Dec = -2.0271
tmin = 502934401, tmax = 503193601
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='950422', job_status='RUN', time_executed='2021-09-06 07:12:59.131226', time_epoch_executed='1630937579.13' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950422

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950422/ft1_4FGL_J1251.3-0201_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950422/ft2_4FGL_J1251.3-0201_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950422/ft1_4FGL_J1251.3-0201_daily_bin1017.fits outfile=/scratch/kocevski/950422/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1017.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=502934401.0 tmax=503193601.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.78
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950422/ft2_4FGL_J1251.3-0201_daily_bin1017.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/950422/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/950422/ft1_filtered_4FGL_J1251.3-0201_daily_bin1017.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.59
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950422/ft1_filtered_4FGL_J1251.3-0201_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/950422/ft2_4FGL_J1251.3-0201_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/950422/ltcube_502934401_503193601_4FGL_J1251.3-0201_daily_bin1017.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/950422/ft2_4FGL_J1251.3-0201_daily_bin1017.fits
.....................!
real 12.29
user 11.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950422/ft1_filtered_4FGL_J1251.3-0201_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/950422/ft2_4FGL_J1251.3-0201_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/950422/ltcube_502934401_503193601_4FGL_J1251.3-0201_daily_bin1017.fits outfile=/scratch/kocevski/950422/expmap_502934401_503193601_4FGL_J1251.3-0201_daily_bin1017.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/950422/ltcube_502934401_503193601_4FGL_J1251.3-0201_daily_bin1017.fits
.....................!
real 194.46
user 187.57
sys 5.63

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/950422/ft1_filtered_4FGL_J1251.3-0201_daily_bin1017.fits scfile=/scratch/kocevski/950422/ft2_4FGL_J1251.3-0201_daily_bin1017.fits outfile=/scratch/kocevski/950422/cmap_502934401_503193601_4FGL_J1251.3-0201_daily_bin1017.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.67
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950422/ft1_filtered_4FGL_J1251.3-0201_daily_bin1017.fits scfile=/scratch/kocevski/950422/ft2_4FGL_J1251.3-0201_daily_bin1017.fits outfile=/scratch/kocevski/950422/cmap_HighResolution_502934401_503193601_4FGL_J1251.3-0201_daily_bin1017.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950422/ft1_filtered_4FGL_J1251.3-0201_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/950422/ft2_4FGL_J1251.3-0201_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950422/Model_4FGL_J1251.3-0201_daily_bin1017.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/950422/ft1_filtered_4FGL_J1251.3-0201_daily_bin1017.fits.....................!
real 65.01
user 61.61
sys 1.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.422       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4068       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1475       1.0000         .10000E-03   10000.    
     6 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    145.19       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3745       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4706       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.397       1.0000         .10000E-03   10000.    
    11 'norm      '    .60039E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    75.647       1.0000         .10000E-03   10000.    
    15 'norm      '    26.703       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6510       1.0000         .10000E-03   10000.    
    17 'Prefactor '    83.315       1.0000         .10000E-03   10000.    
    18 'norm      '    25.701       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4674       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.239       1.0000         .10000E-03   10000.    
    22 'norm      '    1.8799       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1852       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91218       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=   7985.697     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2716 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.417        16.638        .17390E-06    .40729E-05
   2  Prefactor     .10000E-03    14.891       -.21433E-06** at limit **
   3  Prefactor     .10000E-03    5.3552        .49843E-07** at limit **
   4  norm          1.4059        1.5831        .27541E-07    .18671E-04
   5  norm          3.1489        3.8003        .84516E-06    .43160E-03
   6  norm          .10000E-03    40.109        .54878E-06** at limit **
   7  Prefactor     145.00        170.12        .70864E-05    .53746E-04
   8  norm          6.3751        .94352       -.39090E-07    .10738E-02
   9  Prefactor     9.4696        7.9256        .18418E-07    .12154E-04
  10  Prefactor     22.394        13.016        .12879E-06   -.28008E-05
  11  norm          .10061E-03    .85017       -.56522E-06** at limit **
  12  Prefactor     .10000E-03    4.1813       -.33036E-06** at limit **
  13  Prefactor     .10000E-03    13.396        .10618E-06** at limit **
  14  Prefactor     75.640        48.230        .32746E-06    .97732E-05
  15  norm          26.646        34.979        .33925E-05    .79204E-04
  16  norm          1.6511        .34339       -.74223E-08    .34323E-04
  17  Prefactor     83.301        70.890        .65868E-06    .13527E-04
  18  norm          25.700        14.421       -.19808E-07   -.37983E-05
  19  norm          1.4671        5.0535        .26656E-06    .20349E-04
  20  Prefactor     14.090        20.418        .38967E-06    .60563E-05
  21  Prefactor     19.237        11.233        .10323E-06   -.32914E-05
  22  norm          1.8799        1.4398        .35451E-07    .44215E-07
  23  Normalizat    1.1851        .23378       -.61956E-06    .12608E-03
  24  Prefactor     .91246        .15901       -.32406E-06    .13595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40595
  norm       = 3.14887
  norm       = 0.0001
  Prefactor  = 145
  norm       = 6.37514
  Prefactor  = 9.46961
  Prefactor  = 22.3944
  norm       = 0.000100611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.6395
  norm       = 26.6459
  norm       = 1.65107
  Prefactor  = 83.3007
  norm       = 25.7003
  norm       = 1.46705
  Prefactor  = 14.09
  Prefactor  = 19.2374
  norm       = 1.87994
  Normalizat = 1.18506
  Prefactor  = 0.912463
 **********
 **   18 **HESSE 
 **********

 FCN=   7985.697     FROM HESSE     STATUS=OK           411 CALLS     3127 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.417        16.626        .12411E-03   -1.5062    
   2  Prefactor     .10000E-03    14.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4059        1.5678        .11555E-03   -1.5471    
   5  norm          3.1489        3.8078        .88419E-03   -1.5353    
   6  norm          .10000E-03    40.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     145.00        170.22        .16720E-03   -1.3294    
   8  norm          6.3751        .94707        .30331E-04   -1.5203    
   9  Prefactor     9.4696        7.9252        .13022E-03   -1.5092    
  10  Prefactor     22.394        13.024        .84637E-04   -1.4761    
  11  norm          .10061E-03    1.4037        .25834E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2116        .17852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     75.640        48.408        .46166E-04   -1.3966    
  15  norm          26.646        35.022        .77524E-04   -1.4675    
  16  norm          1.6511        .34515        .21776E-04   -1.5451    
  17  Prefactor     83.301        70.941        .44007E-04   -1.3880    
  18  norm          25.700        14.414        .79018E-04   -1.4694    
  19  norm          1.4671        5.0045        .35488E-03   -1.5466    
  20  Prefactor     14.090        20.475        .10668E-03   -1.4957    
  21  Prefactor     19.237        11.239        .91314E-04   -1.4830    
  22  norm          1.8799        1.4304        .89910E-04   -1.5434    
  23  Normalizat    1.1851        .27158        .34106E-03   -.87066    
  24  Prefactor     .91246        .18443        .27235E-03   -.95707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46652e-09
Minuit parameter uncertainties:
  1  16.6335
  2  1.19948e-05
  3  3.31323e-06
  4  1.56789
  5  3.80808
  6  5.50776e-05
  7  170.803
  8  0.94707
  9  7.92608
  10  13.0258
  11  0.00185254
  12  2.13739e-05
  13  2.00316e-06
  14  48.4332
  15  35.0491
  16  0.345154
  17  71.0129
  18  14.4162
  19  5.00588
  20  20.4856
  21  11.2398
  22  1.43047
  23  0.271906
  24  0.184556
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.665e+01  3.505e+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:  9.125e-01  1.846e-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.185e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950422/likelihoodResults_502934401_503193601_4FGL_J1251.3-0201_daily_bin1017.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) = 7985.04418544
delta logL = 0.652868749425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7985.04083243
delta logL = 0.656221759525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.712       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0742       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93590       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7985.041     FROM MIGRAD    STATUS=FAILED       104 CALLS      332 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.738        98.943        .52212E-03   -.47686E-04
   2  alpha         3.0730        3.8828        .13556E-01    .34201E-03
   3  Normalizat    1.1246        .29396        .34826E-03    .57029E-04
   4  Prefactor     .93674        .20817        .26892E-03    .23530E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7985.041     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      412 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.738        98.943        .20750E-03   -1.4940    
   2  alpha         3.0730        3.8828        .11038E-02    .23125    
   3  Normalizat    1.1246        .29396        .26561E-03   -.88967    
   4  Prefactor     .93674        .20817        .17442E-03   -.94869    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7985.041     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      440 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.738        29.214        .20885E-04    .42460E-05
   2  alpha         3.0730        1.1589        .27112E-02   -.89735E-06
   3  Normalizat    1.1246        .26377        .13931E-04    .97932E-07
   4  Prefactor     .93674        .18601        .10757E-04    .42275E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 14.7384
  alpha      = 3.07298
  Normalizat = 1.12457
  Prefactor  = 0.936741
 **********
 **   18 **HESSE 
 **********

 FCN=   7985.041     FROM HESSE     STATUS=OK            23 CALLS      463 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.738        27.121        .41769E-05   -1.4940    
   2  alpha         3.0730        1.0816        .10845E-03    .23125    
   3  Normalizat    1.1246        .26302        .13931E-04   -.88967    
   4  Prefactor     .93674        .18547        .21514E-05   -.94869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03696e-13
Minuit parameter uncertainties:
  1  27.1439
  2  1.12081
  3  0.263324
  4  0.185597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950422': 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) = 7985.04081995
delta logL = 0.656234235715

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.474e+01  2.714e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  3.073e+00  1.121e+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:  9.367e-01  1.856e-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.125e+00  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 3.07 +/- 1.12
Photon Flux (Free Index): 7.76e-08 +/- 6.99e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/950422/cmap_HighResolution_502934401_503193601_4FGL_J1251.3-0201_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-05', comment='SUCCESS', energy_flux2='1.77e-05', dlogl='6.56e-01', photon_flux2='7.76e-08', job_status='DONE', time_completed='2021-09-06 07:26:50.136376', photon_index_error2='1.12', photon_index2='3.07', ts='0.72', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.99e-08', energy_flux_error2='1.42e-05', EG='1.19', time_epoch_completed='1630938410.14', return_code='0', job_id='950422', GAL2='0.94', EG2='1.12', return_code2='0', photon_flux_error2='6.99e-08', ts2='2.05', photon_index='1.95' WHERE bin_id='1017' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 950422: <4FGL_J1251.3-0201_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1017> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:10:47 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:10:49 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:49 2021
Terminated at Mon Sep  6 07:26:50 2021
Results reported at Mon Sep  6 07:26:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1017 192.836 -2.0271 502934401 503193601 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 :                                   816.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

