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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1564
RA = 192.836, Dec = -2.0271
tmin = 644716801, tmax = 644976001
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='952206', job_status='RUN', time_executed='2021-09-06 07:19:31.259629', time_epoch_executed='1630937971.26' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952206/ft1_4FGL_J1251.3-0201_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952206/ft2_4FGL_J1251.3-0201_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952206/ft1_4FGL_J1251.3-0201_daily_bin1564.fits outfile=/scratch/kocevski/952206/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1564.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=644716801.0 tmax=644976001.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 2.92
user 2.70
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952206/ft1_filtered_4FGL_J1251.3-0201_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/952206/ft2_4FGL_J1251.3-0201_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/952206/ltcube_644716801_644976001_4FGL_J1251.3-0201_daily_bin1564.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/952206/ft2_4FGL_J1251.3-0201_daily_bin1564.fits
.....................!
real 12.58
user 12.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952206/ft1_filtered_4FGL_J1251.3-0201_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/952206/ft2_4FGL_J1251.3-0201_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/952206/ltcube_644716801_644976001_4FGL_J1251.3-0201_daily_bin1564.fits outfile=/scratch/kocevski/952206/expmap_644716801_644976001_4FGL_J1251.3-0201_daily_bin1564.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/952206/ltcube_644716801_644976001_4FGL_J1251.3-0201_daily_bin1564.fits
.....................!
real 191.17
user 185.87
sys 4.93

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/952206/ft1_filtered_4FGL_J1251.3-0201_daily_bin1564.fits scfile=/scratch/kocevski/952206/ft2_4FGL_J1251.3-0201_daily_bin1564.fits outfile=/scratch/kocevski/952206/cmap_644716801_644976001_4FGL_J1251.3-0201_daily_bin1564.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.83
user 0.38
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952206/ft1_filtered_4FGL_J1251.3-0201_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/952206/ft2_4FGL_J1251.3-0201_daily_bin1564.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952206/Model_4FGL_J1251.3-0201_daily_bin1564.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/952206/ft1_filtered_4FGL_J1251.3-0201_daily_bin1564.fits.....................!
real 65.97
user 64.58
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8834       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.336       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2556       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6265       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.6543       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.644       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.639       1.0000         .10000E-03   10000.    
    15 'norm      '    32.636       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8734       1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.904       1.0000         .10000E-03   10000.    
    18 'norm      '    22.357       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.5278       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2065       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84049       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=   8513.361     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2727 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.984        .99824E-05** at limit **
   2  Prefactor     .10000E-03    17.851       -.20409E-05** at limit **
   3  Prefactor     .10000E-03    2.6352       -.66718E-07** at limit **
   4  norm          .10000E-03    .45864        .12383E-06** at limit **
   5  norm          4.8828        3.7789       -.57413E-06   -.44051E-03
   6  norm          .10000E-03    25.915       -.70397E-05** at limit **
   7  Prefactor     37.337        78.111        .12359E-05    .24285E-05
   8  norm          3.2557        .67195        .25160E-07    .12063E-03
   9  Prefactor     3.6263        4.4811       -.12292E-05   -.20124E-02
  10  Prefactor     .10000E-03    4.0204        .24884E-07** at limit **
  11  norm          6.6546        1.8501       -.18441E-07   -.71450E-05
  12  Prefactor     .10000E-03    6.2310        .13900E-06** at limit **
  13  Prefactor     32.645        27.670        .16575E-05    .18996E-05
  14  Prefactor     27.630        35.009       -.11969E-04    .12119E-04
  15  norm          32.635        25.218        .10946E-06    .33245E-05
  16  norm          2.8737        .41657        .11649E-06   -.15575E-02
  17  Prefactor     87.894        69.499       -.10052E-04    .97085E-05
  18  norm          22.358        12.753        .77704E-06    .66604E-05
  19  norm          .10000E-03    3.5342       -.41610E-07** at limit **
  20  Prefactor     10.151        19.601       -.24042E-05   -.19405E-04
  21  Prefactor     .10000E-03    4.7785       -.98936E-07** at limit **
  22  norm          4.5280        1.9246       -.29420E-06   -.35030E-02
  23  Normalizat    1.2063        .21986        .14054E-05   -.50091E-04
  24  Prefactor     .84057        .15120        .14213E-06    .93118E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.88283
  norm       = 0.0001
  Prefactor  = 37.3366
  norm       = 3.25565
  Prefactor  = 3.62635
  Prefactor  = 0.0001
  norm       = 6.65456
  Prefactor  = 0.0001
  Prefactor  = 32.6454
  Prefactor  = 27.6303
  norm       = 32.6354
  norm       = 2.87368
  Prefactor  = 87.8944
  norm       = 22.3578
  norm       = 0.0001
  Prefactor  = 10.1511
  Prefactor  = 0.0001
  norm       = 4.52795
  Normalizat = 1.20628
  Prefactor  = 0.840571
 **********
 **   18 **HESSE 
 **********

 FCN=   8513.361     FROM HESSE     STATUS=OK           393 CALLS     3120 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6394        .14627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .45933        .61010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8828        3.8014        .14086E-03   -1.5266    
   6  norm          .10000E-03    25.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.337        78.101        .65592E-04   -1.4485    
   8  norm          3.2557        .67562        .30671E-04   -1.5347    
   9  Prefactor     3.6263        4.6799        .10608E-02   -1.5327    
  10  Prefactor     .10000E-03    4.0340        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.6546        1.8518        .62599E-04   -1.5192    
  12  Prefactor     .10000E-03    6.3687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.645        27.653        .70133E-04   -1.4565    
  14  Prefactor     27.630        34.452        .76203E-04   -1.4656    
  15  norm          32.635        25.196        .70142E-04   -1.4565    
  16  norm          2.8737        .41815        .20735E-04   -1.5369    
  17  Prefactor     87.894        68.858        .42853E-04   -1.3830    
  18  norm          22.358        12.748        .84712E-04   -1.4762    
  19  norm          .10000E-03    3.5357        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.151        19.628        .12575E-03   -1.5071    
  21  Prefactor     .10000E-03    4.7887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.5280        1.9594        .41065E-03   -1.5282    
  23  Normalizat    1.2063        .25931        .32786E-03   -.86409    
  24  Prefactor     .84057        .17740        .27678E-03   -.98250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60901e-09
Minuit parameter uncertainties:
  1  0.000128008
  2  1.59308e-05
  3  2.10817e-06
  4  4.6213e-07
  5  3.80161
  6  3.42475e-05
  7  78.3164
  8  0.675625
  9  4.68042
  10  1.93452e-06
  11  1.85179
  12  8.44466e-06
  13  27.6637
  14  34.4772
  15  25.2043
  16  0.418147
  17  68.9203
  18  12.7498
  19  2.54965e-07
  20  19.6406
  21  3.49339e-07
  22  1.95946
  23  0.259587
  24  0.177526
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.264e+01  2.520e+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.406e-01  1.775e-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.206e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.76
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.49e-05

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) = 8513.35581302
delta logL = 0.00486071150408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8513.35571405
delta logL = 0.00495968224823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.734       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0162       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84074       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=   8513.356     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      224 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.800        735.91        .17509E-02   -.50321E-04
   2  alpha         2.0186        2.7563        .42170        .19768E-04
   3  Normalizat    1.2045        .12567        .74125E-01    .14733E-04
   4  Prefactor     .84069        .67577E-01    .44245E-01    .61328E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7999
  alpha      = 2.01862
  Normalizat = 1.2045
  Prefactor  = 0.840693
 **********
 **   18 **HESSE 
 **********

 FCN=   8513.356     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.800        24.732        .70036E-04   -1.4562    
   2  alpha         2.0186        .66340        .17732E-01   -.19376    
   3  Normalizat    1.2045        .24348        .32803E-03   -.86464    
   4  Prefactor     .84069        .17562        .27673E-03   -.98245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27069e-12
Minuit parameter uncertainties:
  1  24.7399
  2  0.671763
  3  0.24371
  4  0.175736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952206': 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) = 8513.35570429
delta logL = 0.00496944474435

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.280e+01  2.474e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.019e+00  6.718e-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:  8.407e-01  1.757e-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.204e+00  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.77
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.02 +/- 0.67
Photon Flux (Free Index): 3.07e-08 +/- 3.47e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.48e-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/952206/cmap_HighResolution_644716801_644976001_4FGL_J1251.3-0201_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='1.90e-05', photon_flux_error='2.16e-08', dlogl='4.97e-03', energy_flux='1.93e-05', photon_flux2='3.07e-08', job_status='DONE', time_completed='2021-09-06 07:31:44.943312', photon_index_error2='0.67', photon_index2='2.02', ts='6.76', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.21', time_epoch_completed='1630938704.94', return_code='0', job_id='952206', GAL2='0.84', EG2='1.20', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='3.47e-08', ts2='6.77', photon_index='1.95' WHERE bin_id='1564' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 952206: <4FGL_J1251.3-0201_daily_bin1564> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1564> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 07:16:02 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:16:03 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:16:03 2021
Terminated at Mon Sep  6 07:31:45 2021
Results reported at Mon Sep  6 07:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1564 192.836 -2.0271 644716801 644976001 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 :                                   727.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

