/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin675
RA = 192.836, Dec = -2.0271
tmin = 414288001, tmax = 414547201
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='948636', job_status='RUN', time_executed='2021-09-06 07:07:49.866398', time_epoch_executed='1630937269.87' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948636/ft1_4FGL_J1251.3-0201_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948636/ft2_4FGL_J1251.3-0201_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948636/ft1_4FGL_J1251.3-0201_daily_bin675.fits outfile=/scratch/kocevski/948636/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin675.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=414288001.0 tmax=414547201.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.61
user 5.23
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948636/ft1_filtered_4FGL_J1251.3-0201_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/948636/ft2_4FGL_J1251.3-0201_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/948636/ltcube_414288001_414547201_4FGL_J1251.3-0201_daily_bin675.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/948636/ft2_4FGL_J1251.3-0201_daily_bin675.fits
.....................!
real 13.14
user 11.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948636/ft1_filtered_4FGL_J1251.3-0201_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/948636/ft2_4FGL_J1251.3-0201_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/948636/ltcube_414288001_414547201_4FGL_J1251.3-0201_daily_bin675.fits outfile=/scratch/kocevski/948636/expmap_414288001_414547201_4FGL_J1251.3-0201_daily_bin675.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/948636/ltcube_414288001_414547201_4FGL_J1251.3-0201_daily_bin675.fits
.....................!
real 191.95
user 186.24
sys 3.87

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/948636/ft1_filtered_4FGL_J1251.3-0201_daily_bin675.fits scfile=/scratch/kocevski/948636/ft2_4FGL_J1251.3-0201_daily_bin675.fits outfile=/scratch/kocevski/948636/cmap_414288001_414547201_4FGL_J1251.3-0201_daily_bin675.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948636/ft1_filtered_4FGL_J1251.3-0201_daily_bin675.fits scfile=/scratch/kocevski/948636/ft2_4FGL_J1251.3-0201_daily_bin675.fits outfile=/scratch/kocevski/948636/cmap_HighResolution_414288001_414547201_4FGL_J1251.3-0201_daily_bin675.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948636/ft1_filtered_4FGL_J1251.3-0201_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/948636/ft2_4FGL_J1251.3-0201_daily_bin675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948636/Model_4FGL_J1251.3-0201_daily_bin675.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/948636/ft1_filtered_4FGL_J1251.3-0201_daily_bin675.fits.....................!
real 52.69
user 51.32
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.125       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8702       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6371       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70439E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    28.875       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4185       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.980       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4553       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4892       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83683       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=   6101.588     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2700 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.126        28.640        .21786E-02    .51953E-04
   2  Prefactor     .10001E-03    14.935        .90712E-02** at limit **
   3  Prefactor     .10000E-03    8.6194        .90712E-02** at limit **
   4  norm          .10000E-03    1.1320        .90712E-02** at limit **
   5  norm          3.8710        4.6847        .51279E-02    .48755E-03
   6  norm          .10000E-03    32.148        .90712E-02** at limit **
   7  Prefactor     .10000E-03    143.93        .90712E-02** at limit **
   8  norm          1.3507        .81473        .94109E-02    .66982E-03
   9  Prefactor     .10001E-03    14.619        .90712E-02** at limit **
  10  Prefactor     .10000E-03    18.593        .90712E-02** at limit **
  11  norm          2.6378        2.4364        .62772E-02    .10490E-02
  12  Prefactor     .10000E-03    4.4221        .90712E-02** at limit **
  13  Prefactor     .10000E-03    11.432        .90712E-02** at limit **
  14  Prefactor     .10016E-03    393.21        .93448E-02** at limit **
  15  norm          28.873        23.111        .18639E-02    .37482E-03
  16  norm          3.4167        .49816        .44485E-02   -.68850E-03
  17  Prefactor     .10000E-03    34.847        .90712E-02** at limit **
  18  norm          .10000E-03    11.851        .90712E-02** at limit **
  19  norm          .10000E-03    4.5128        .90712E-02** at limit **
  20  Prefactor     .10000E-03    8.5334        .90712E-02** at limit **
  21  Prefactor     22.983        12.401        .20890E-02    .28039E-04
  22  norm          2.4556        1.5408        .65258E-02    .13287E-02
  23  Normalizat    1.4890        .26507        .71975E-01    .11365E-03
  24  Prefactor     .83675        .17317        .63602E-01    .16775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1263
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.871
  norm       = 0.000100003
  Prefactor  = 0.000100004
  norm       = 1.3507
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 2.63781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100159
  norm       = 28.8733
  norm       = 3.41672
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9829
  norm       = 2.45564
  Normalizat = 1.48903
  Prefactor  = 0.83675
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.588     FROM HESSE     STATUS=OK           389 CALLS     3089 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.126        28.669        .87145E-04   -1.4788    
   2  Prefactor     .10001E-03    14.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1383        .81140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8710        4.6725        .16990E-03   -1.5314    
   6  norm          .10000E-03    32.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    143.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3507        .80179        .49051E-04   -1.5476    
   9  Prefactor     .10001E-03    14.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6378        2.4306        .10919E-03   -1.5383    
  12  Prefactor     .10000E-03    4.4301        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10016E-03    398.97        .18690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.873        23.111        .74557E-04   -1.4633    
  16  norm          3.4167        .50134        .19665E-04   -1.5338    
  17  Prefactor     .10000E-03    34.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.5203        .16205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.983        12.405        .83558E-04   -1.4749    
  22  norm          2.4556        1.5362        .73714E-04   -1.5395    
  23  Normalizat    1.4890        .31790        .31844E-03   -.78087    
  24  Prefactor     .83675        .20596        .28132E-03   -.98388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9566e-09
Minuit parameter uncertainties:
  1  28.6876
  2  0.00062046
  3  3.48553e-05
  4  5.35238e-06
  5  4.67296
  6  0.000605775
  7  0.00152889
  8  0.801793
  9  0.000621047
  10  2.07204e-05
  11  2.43069
  12  7.47487e-05
  13  1.9069e-06
  14  0.0160136
  15  23.1182
  16  0.501339
  17  0.000231613
  18  6.52546e-05
  19  2.74281e-05
  20  1.88571e-05
  21  12.4068
  22  1.5362
  23  0.318323
  24  0.20615
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.887e+01  2.312e+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.367e-01  2.062e-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.489e+00  3.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.76
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.48e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.37e-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) = 6101.57494965
delta logL = 0.0135502881358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6101.57446992
delta logL = 0.0140300186067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.534       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8069       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83575       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=   6101.574     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      222 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.534        46.432        .18431E-02    .17395E-04
   2  alpha         1.8077        1.3858        .43354       -.38800E-05
   3  Normalizat    1.4919        .25816        .71922E-01    .62050E-05
   4  Prefactor     .83575        .17374        .63638E-01    .15917E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.5337
  alpha      = 1.80771
  Normalizat = 1.49194
  Prefactor  = 0.835752
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.574     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .82E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.534        23.840        .73724E-04   -1.4621    
   2  alpha         1.8077        .82032        .23497E-01   -.28058    
   3  Normalizat    1.4919        .29594        .31821E-03   -.78005    
   4  Prefactor     .83575        .20382        .28148E-03   -.98424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16113e-13
Minuit parameter uncertainties:
  1  23.8472
  2  0.837166
  3  0.296281
  4  0.204007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948636': 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) = 6101.57446613
delta logL = 0.0140338128886

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  2.953e+01  2.385e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.808e+00  8.372e-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.358e-01  2.040e-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.492e+00  2.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.81 +/- 0.84
Photon Flux (Free Index): 2.14e-08 +/- 2.45e-08
Energy Flux (Free Index): 1.89e-05 +/- 2.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/948636/cmap_HighResolution_414288001_414547201_4FGL_J1251.3-0201_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.48e-08', energy_flux2='1.89e-05', photon_flux_error='1.98e-08', dlogl='1.40e-02', energy_flux='1.71e-05', photon_flux2='2.14e-08', job_status='DONE', time_completed='2021-09-06 07:18:11.509781', photon_index_error2='0.84', photon_index2='1.81', ts='4.76', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.49', time_epoch_completed='1630937891.51', return_code='0', job_id='948636', GAL2='0.84', EG2='1.49', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='2.45e-08', ts2='4.78', photon_index='1.95' WHERE bin_id='675' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:18:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 948636: <4FGL_J1251.3-0201_daily_bin675> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin675 192.836 -2.0271 414288001 414547201 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 :                                   611.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

