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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1123
RA = 192.836, Dec = -2.0271
tmin = 530409601, tmax = 530668801
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='950541', job_status='RUN', time_executed='2021-09-06 07:13:02.127566', time_epoch_executed='1630937582.13' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950541

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950541/ft1_4FGL_J1251.3-0201_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950541/ft2_4FGL_J1251.3-0201_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950541/ft1_4FGL_J1251.3-0201_daily_bin1123.fits outfile=/scratch/kocevski/950541/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1123.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=530409601.0 tmax=530668801.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 4.15
user 3.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950541/ft1_filtered_4FGL_J1251.3-0201_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/950541/ft2_4FGL_J1251.3-0201_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/950541/ltcube_530409601_530668801_4FGL_J1251.3-0201_daily_bin1123.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/950541/ft2_4FGL_J1251.3-0201_daily_bin1123.fits
.....................!
real 12.50
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950541/ft1_filtered_4FGL_J1251.3-0201_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/950541/ft2_4FGL_J1251.3-0201_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/950541/ltcube_530409601_530668801_4FGL_J1251.3-0201_daily_bin1123.fits outfile=/scratch/kocevski/950541/expmap_530409601_530668801_4FGL_J1251.3-0201_daily_bin1123.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/950541/ltcube_530409601_530668801_4FGL_J1251.3-0201_daily_bin1123.fits
.....................!
real 193.04
user 185.44
sys 5.51

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/950541/ft1_filtered_4FGL_J1251.3-0201_daily_bin1123.fits scfile=/scratch/kocevski/950541/ft2_4FGL_J1251.3-0201_daily_bin1123.fits outfile=/scratch/kocevski/950541/cmap_530409601_530668801_4FGL_J1251.3-0201_daily_bin1123.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.76
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950541/ft1_filtered_4FGL_J1251.3-0201_daily_bin1123.fits scfile=/scratch/kocevski/950541/ft2_4FGL_J1251.3-0201_daily_bin1123.fits outfile=/scratch/kocevski/950541/cmap_HighResolution_530409601_530668801_4FGL_J1251.3-0201_daily_bin1123.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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950541/ft1_filtered_4FGL_J1251.3-0201_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/950541/ft2_4FGL_J1251.3-0201_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950541/Model_4FGL_J1251.3-0201_daily_bin1123.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/950541/ft1_filtered_4FGL_J1251.3-0201_daily_bin1123.fits.....................!
real 68.99
user 60.89
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1928       1.0000         .10000E-03   10000.    
     5 'norm      '    .12179E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5199       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.794       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0636       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .72175E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.482       1.0000         .10000E-03   10000.    
    15 'norm      '    41.804       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.079       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .37635       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4325       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95115       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=   7687.666     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2849 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.337        .41057E-06** at limit **
   2  Prefactor     .10283E-03    46.270       -.11714E-05** at limit **
   3  Prefactor     .10000E-03    4.1020        .28331E-08** at limit **
   4  norm          4.1927        2.5061        .56579E-07    .46381E-04
   5  norm          .10000E-03    2.3409       -.14461E-07** at limit **
   6  norm          .10000E-03    48.280       -.26033E-06** at limit **
   7  Prefactor     .10000E-03    70.178       -.87412E-06** at limit **
   8  norm          1.5206        .65924       -.89582E-09    .15683E-03
   9  Prefactor     1.8635        12.251        .19287E-05    .11285E-03
  10  Prefactor     11.790        13.995        .29535E-06    .24696E-05
  11  norm          1.0639        2.0728        .72468E-06    .26022E-03
  12  Prefactor     .48322E-02    5.7977       -.13301E-05    .55761E-03
  13  Prefactor     .10000E-03    10.874       -.16993E-07** at limit **
  14  Prefactor     32.479        36.731        .58604E-07    .27248E-04
  15  norm          41.805        28.732        .72285E-07    .47705E-04
  16  norm          4.1109        .48316        .23329E-07    .95881E-03
  17  Prefactor     .10000E-03    75.652        .11126E-05** at limit **
  18  norm          .10000E-03    10.004        .15971E-06** at limit **
  19  norm          .10000E-03    3.4476       -.77671E-08** at limit **
  20  Prefactor     10.067        25.379        .47283E-06   -.28686E-05
  21  Prefactor     .10000E-03    5.3045       -.54786E-07** at limit **
  22  norm          .37653        1.3348        .13759E-05    .31458E-03
  23  Normalizat    1.4325        .25211       -.13684E-05    .71755E-04
  24  Prefactor     .95125        .16344        .20714E-06    .16074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000102827
  Prefactor  = 0.0001
  norm       = 4.19267
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.52058
  Prefactor  = 1.86349
  Prefactor  = 11.7904
  norm       = 1.06394
  Prefactor  = 0.00483217
  Prefactor  = 0.0001
  Prefactor  = 32.4789
  norm       = 41.8054
  norm       = 4.11092
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.067
  Prefactor  = 0.0001
  norm       = 0.376533
  Normalizat = 1.43253
  Prefactor  = 0.951248
 **********
 **   18 **HESSE 
 **********

 FCN=   7687.666     FROM HESSE     STATUS=OK           413 CALLS     3262 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10283E-03    39.853        .15504       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1089        .17337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1927        2.5041        .10371E-03   -1.5298    
   5  norm          .10000E-03    17.312        .22920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    48.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    70.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5206        .63915        .41887E-04   -1.5461    
   9  Prefactor     1.8635        12.255        .30518E-03   -1.5435    
  10  Prefactor     11.790        13.999        .11665E-03   -1.5021    
  11  norm          1.0639        2.0546        .15927E-03   -1.5502    
  12  Prefactor     .48322E-02    8.0524        .64074E-01   -1.5694    
  13  Prefactor     .10000E-03    10.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.479        36.798        .35153E-03   -1.4568    
  15  norm          41.805        28.743        .62000E-04   -1.4414    
  16  norm          4.1109        .48562        .19395E-04   -1.5302    
  17  Prefactor     .10000E-03    76.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4502        .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.067        25.547        .12621E-03   -1.5073    
  21  Prefactor     .10000E-03    5.3306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .37653        1.3341        .18216E-03   -1.5585    
  23  Normalizat    1.4325        .29312        .32557E-03   -.79692    
  24  Prefactor     .95125        .19102        .27452E-03   -.94373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61523e-09
Minuit parameter uncertainties:
  1  0.000184418
  2  0.0212448
  3  3.99544e-07
  4  2.50416
  5  0.000348031
  6  9.49633e-05
  7  0.000701559
  8  0.639152
  9  9.56006
  10  14.0026
  11  2.05474
  12  0.390465
  13  1.06098e-06
  14  36.8233
  15  28.7522
  16  0.485617
  17  0.000779816
  18  8.19219e-07
  19  4.14601e-07
  20  25.5751
  21  2.97593e-06
  22  1.33422
  23  0.293462
  24  0.191155
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  4.181e+01  2.875e+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.512e-01  1.912e-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.433e+00  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.04
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.70e-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) = 7686.80060265
delta logL = 0.865495402551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7686.74701042
delta logL = 0.919087636267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.783       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1165       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94890       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=   7686.747     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.775        28.808       -.48243E-05   -.14355E-03
   2  alpha         1.1146        .57328       -.44237E-04    .17651E-04
   3  Normalizat    1.4475        .22700        .13542E-06    .18699E-03
   4  Prefactor     .94877        .16101        .32590E-06    .18988E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.7754
  alpha      = 1.11463
  Normalizat = 1.44754
  Prefactor  = 0.948775
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.747     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.775        27.950        .71073E-04   -1.4580    
   2  alpha         1.1146        .55729        .17474E-01   -.58734    
   3  Normalizat    1.4475        .26380        .32434E-03   -.79263    
   4  Prefactor     .94877        .18720        .27488E-03   -.94457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75542e-11
Minuit parameter uncertainties:
  1  27.9616
  2  0.564175
  3  0.26405
  4  0.18733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950541': 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) = 7686.74700231
delta logL = 0.919095748068

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.178e+01  2.796e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.115e+00  5.642e-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:  9.488e-01  1.873e-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.448e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.88
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.11 +/- 0.56
Photon Flux (Free Index): 1.53e-08 +/- 1.34e-08
Energy Flux (Free Index): 5.81e-05 +/- 5.86e-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/950541/cmap_HighResolution_530409601_530668801_4FGL_J1251.3-0201_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='5.81e-05', photon_flux_error='2.47e-08', dlogl='9.19e-01', energy_flux='2.48e-05', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-09-06 07:26:14.735375', photon_index_error2='0.56', photon_index2='1.11', ts='8.04', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='5.86e-05', EG='1.43', time_epoch_completed='1630938374.74', return_code='0', job_id='950541', GAL2='0.95', EG2='1.45', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='1.34e-08', ts2='9.88', photon_index='1.95' WHERE bin_id='1123' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:26:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 950541: <4FGL_J1251.3-0201_daily_bin1123> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1123 192.836 -2.0271 530409601 530668801 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 :                                   702.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

