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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin569
RA = 192.836, Dec = -2.0271
tmin = 386812801, tmax = 387072001
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='947001', job_status='RUN', time_executed='2021-09-06 07:03:26.934803', time_epoch_executed='1630937006.93' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947001/ft1_4FGL_J1251.3-0201_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947001/ft2_4FGL_J1251.3-0201_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947001/ft1_4FGL_J1251.3-0201_daily_bin569.fits outfile=/scratch/kocevski/947001/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin569.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=386812801.0 tmax=387072001.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.54
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947001/ft1_filtered_4FGL_J1251.3-0201_daily_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/947001/ft2_4FGL_J1251.3-0201_daily_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/947001/ltcube_386812801_387072001_4FGL_J1251.3-0201_daily_bin569.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/947001/ft2_4FGL_J1251.3-0201_daily_bin569.fits
.....................!
real 12.34
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947001/ft1_filtered_4FGL_J1251.3-0201_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/947001/ft2_4FGL_J1251.3-0201_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/947001/ltcube_386812801_387072001_4FGL_J1251.3-0201_daily_bin569.fits outfile=/scratch/kocevski/947001/expmap_386812801_387072001_4FGL_J1251.3-0201_daily_bin569.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/947001/ltcube_386812801_387072001_4FGL_J1251.3-0201_daily_bin569.fits
.....................!
real 206.87
user 189.55
sys 4.07

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/947001/ft1_filtered_4FGL_J1251.3-0201_daily_bin569.fits scfile=/scratch/kocevski/947001/ft2_4FGL_J1251.3-0201_daily_bin569.fits outfile=/scratch/kocevski/947001/cmap_386812801_387072001_4FGL_J1251.3-0201_daily_bin569.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 1.06
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947001/ft1_filtered_4FGL_J1251.3-0201_daily_bin569.fits scfile=/scratch/kocevski/947001/ft2_4FGL_J1251.3-0201_daily_bin569.fits outfile=/scratch/kocevski/947001/cmap_HighResolution_386812801_387072001_4FGL_J1251.3-0201_daily_bin569.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.96
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/947001/ft1_filtered_4FGL_J1251.3-0201_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/947001/ft2_4FGL_J1251.3-0201_daily_bin569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/947001/Model_4FGL_J1251.3-0201_daily_bin569.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/947001/ft1_filtered_4FGL_J1251.3-0201_daily_bin569.fits.....................!
real 55.54
user 50.37
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .96463E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8891       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3773       1.0000         .10000E-03   10000.    
     5 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.040       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50065       1.0000         .10000E-03   10000.    
    11 'norm      '    6.8006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .63345       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.619       1.0000         .10000E-03   10000.    
    19 'norm      '    9.0918       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0812       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4839       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6325       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74442       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=   6001.328     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2727 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.828        .11566E-05** at limit **
   2  Prefactor     .10005E-03    32.887        .10094E-04** at limit **
   3  Prefactor     9.8917        12.803        .13823E-05    .35958E-03
   4  norm          1.3768        3.6299       -.14440E-05    .71534E-03
   5  norm          .10000E-03    2.8030       -.67657E-07** at limit **
   6  norm          .10000E-03    14.740       -.84412E-06** at limit **
   7  Prefactor     .10001E-03    70.435       -.12129E-04** at limit **
   8  norm          1.4739        .64069       -.37099E-08    .16769E-02
   9  Prefactor     19.041        11.166        .17311E-07    .10960E-03
  10  Prefactor     .41433        89.608       -.32200E-04    .48285E-04
  11  norm          6.8002        2.1962       -.62606E-07    .30187E-03
  12  Prefactor     .10000E-03    4.1286       -.10174E-06** at limit **
  13  Prefactor     .10000E-03    9.4255        .89191E-07** at limit **
  14  Prefactor     .10000E-03    24.292       -.92199E-06** at limit **
  15  norm          .10000E-03    8.1486       -.10614E-07** at limit **
  16  norm          .63333        .27911       -.31836E-07   -.77966E-03
  17  Prefactor     .10000E-03    155.94        .86721E-05** at limit **
  18  norm          13.610        13.089        .20888E-06   -.38447E-04
  19  norm          9.0924        14.961       -.73626E-06   -.86753E-04
  20  Prefactor     .10000E-03    8.7605       -.23014E-06** at limit **
  21  Prefactor     1.0823        9.5676       -.90129E-06   -.47018E-04
  22  norm          3.4839        1.7213       -.39502E-07   -.19733E-03
  23  Normalizat    1.6325        .24482        .12307E-05    .69790E-04
  24  Prefactor     .74439        .16852        .10662E-05    .38809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100049
  Prefactor  = 9.8917
  norm       = 1.37685
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100014
  norm       = 1.47394
  Prefactor  = 19.0409
  Prefactor  = 0.414333
  norm       = 6.80024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.633325
  Prefactor  = 0.000100002
  norm       = 13.6101
  norm       = 9.09237
  Prefactor  = 0.0001
  Prefactor  = 1.08233
  norm       = 3.48388
  Normalizat = 1.63252
  Prefactor  = 0.744393
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.328     FROM HESSE     STATUS=OK           403 CALLS     3130 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    179.16        .75099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8917        12.794        .12743E-03   -1.5079    
   4  norm          1.3768        3.7249        .19198E-03   -1.5473    
   5  norm          .10000E-03    2.8978        .25248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    74.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4739        .63403        .38325E-04   -1.5465    
   9  Prefactor     19.041        11.167        .91789E-04   -1.4835    
  10  Prefactor     .41433        94.347        .41207E-02   -1.5579    
  11  norm          6.8002        2.1998        .62158E-04   -1.5186    
  12  Prefactor     .10000E-03    4.1419        .15371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.4274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.1502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .63333        .27763        .25634E-04   -1.5549    
  17  Prefactor     .10000E-03    157.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.610        13.085        .10854E-03   -1.4970    
  19  norm          9.0924        14.946        .13292E-03   -1.5105    
  20  Prefactor     .10000E-03    8.7767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0823        32.057        .44527E-02   -1.5500    
  22  norm          3.4839        1.7197        .68901E-04   -1.5335    
  23  Normalizat    1.6325        .29229        .27816E-03   -.74120    
  24  Prefactor     .74439        .19983        .27780E-03   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00997e-08
Minuit parameter uncertainties:
  1  0.000110044
  2  0.00592815
  3  12.7971
  4  3.72551
  5  5.86591e-06
  6  6.48973e-05
  7  0.00202335
  8  0.634033
  9  11.1685
  10  12.523
  11  2.19984
  12  1.15025e-05
  13  1.39508e-06
  14  0.000100315
  15  4.53841e-06
  16  0.277628
  17  0.00124757
  18  13.0874
  19  14.9525
  20  3.03853e-05
  21  11.7871
  22  1.71973
  23  0.292598
  24  0.200023
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  4.538e-06  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:  7.444e-01  2.000e-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.633e+00  2.926e-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: 3.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947001/likelihoodResults_386812801_387072001_4FGL_J1251.3-0201_daily_bin569.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) = 6001.32851766
delta logL = -0.000570616207369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6001.32794705
delta logL = -7.31688487576e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9493       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74441       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=   6001.328     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    1742.3        .18142E-02** at limit **
   2  alpha         1.9116        4.0015        .16996        .40415E-06
   3  Normalizat    1.6325        .17838        .27816E-03   -.51498E-05
   4  Prefactor     .74439        .12681        .27780E-03   -.56065E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100049
  alpha      = 1.9116
  Normalizat = 1.63252
  Prefactor  = 0.744393
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.328     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    8.1859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9116        2.7844        .67984E-02   -.23759    
   3  Normalizat    1.6325        .27680        .11126E-04   -.74120    
   4  Prefactor     .74439        .19678        .11112E-04   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23087e-08
Minuit parameter uncertainties:
  1  0.00126314
  2  503.243
  3  0.277066
  4  0.196963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947001': 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) = 6001.32794704
delta logL = 6.4628693508e-09

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.000e-04  1.263e-03  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.912e+00  5.032e+02  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:  7.444e-01  1.970e-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.633e+00  2.771e-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/947001/cmap_HighResolution_386812801_387072001_4FGL_J1251.3-0201_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='3.91e-08', time_completed='2021-09-06 07:15:06.662061', job_id='947001', GAL2='0.74', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1630937706.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='6.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='569' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:15:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 947001: <4FGL_J1251.3-0201_daily_bin569> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin569> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 07:00:45 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:00:46 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:00:46 2021
Terminated at Mon Sep  6 07:15:07 2021
Results reported at Mon Sep  6 07:15:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin569 192.836 -2.0271 386812801 387072001 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 :                                   670.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

