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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1010
RA = 192.836, Dec = -2.0271
tmin = 501120001, tmax = 501379201
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='950411', job_status='RUN', time_executed='2021-09-06 07:14:20.698398', time_epoch_executed='1630937660.7' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950411

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950411/ft1_4FGL_J1251.3-0201_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950411/ft2_4FGL_J1251.3-0201_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950411/ft1_4FGL_J1251.3-0201_daily_bin1010.fits outfile=/scratch/kocevski/950411/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1010.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=501120001.0 tmax=501379201.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.13
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950411/ft1_filtered_4FGL_J1251.3-0201_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/950411/ft2_4FGL_J1251.3-0201_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/950411/ltcube_501120001_501379201_4FGL_J1251.3-0201_daily_bin1010.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/950411/ft2_4FGL_J1251.3-0201_daily_bin1010.fits
.....................!
real 13.06
user 12.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950411/ft1_filtered_4FGL_J1251.3-0201_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/950411/ft2_4FGL_J1251.3-0201_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/950411/ltcube_501120001_501379201_4FGL_J1251.3-0201_daily_bin1010.fits outfile=/scratch/kocevski/950411/expmap_501120001_501379201_4FGL_J1251.3-0201_daily_bin1010.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/950411/ltcube_501120001_501379201_4FGL_J1251.3-0201_daily_bin1010.fits
.....................!
real 193.45
user 185.24
sys 5.44

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/950411/ft1_filtered_4FGL_J1251.3-0201_daily_bin1010.fits scfile=/scratch/kocevski/950411/ft2_4FGL_J1251.3-0201_daily_bin1010.fits outfile=/scratch/kocevski/950411/cmap_501120001_501379201_4FGL_J1251.3-0201_daily_bin1010.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.18
user 0.38
sys 0.18

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950411/ft1_filtered_4FGL_J1251.3-0201_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/950411/ft2_4FGL_J1251.3-0201_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950411/Model_4FGL_J1251.3-0201_daily_bin1010.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/950411/ft1_filtered_4FGL_J1251.3-0201_daily_bin1010.fits.....................!
real 73.37
user 64.44
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2282       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5218       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6695       1.0000         .10000E-03   10000.    
     6 'norm      '    19.453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4453       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.115       1.0000         .10000E-03   10000.    
    11 'norm      '    8.0922       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 '    36.145       1.0000         .10000E-03   10000.    
    15 'norm      '    64.528       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0066       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    73.901       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.690       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5848       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1282       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0596       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=   8254.507     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2684 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7997        .52175E-07** at limit **
   2  Prefactor     10.153        28.229        .49490E-06   -.12514E-04
   3  Prefactor     3.2288        7.2061       -.29749E-05   -.39938E-03
   4  norm          2.5219        2.3181        .34514E-06   -.33402E-03
   5  norm          2.6679        5.8852        .26268E-05   -.68186E-03
   6  norm          19.453        44.496        .18024E-06    .17535E-04
   7  Prefactor     .10000E-03    72.710        .37237E-05** at limit **
   8  norm          2.4457        .74223       -.12990E-06   -.63795E-03
   9  Prefactor     .10000E-03    4.1393        .22116E-06** at limit **
  10  Prefactor     27.116        13.360        .22692E-05    .18959E-03
  11  norm          8.0923        2.3582       -.67441E-07   -.33337E-03
  12  Prefactor     .10000E-03    2.3543        .28966E-07** at limit **
  13  Prefactor     .10000E-03    12.140       -.10128E-06** at limit **
  14  Prefactor     36.148        35.473        .17057E-05    .24104E-04
  15  norm          64.524        30.927       -.13757E-05   -.62174E-04
  16  norm          1.0064        .29530       -.13043E-07   -.38042E-03
  17  Prefactor     .10000E-03    109.74       -.11744E-05** at limit **
  18  norm          73.888        18.644       -.43617E-06   -.78125E-04
  19  norm          .10000E-03    2.6478        .11970E-06** at limit **
  20  Prefactor     12.689        22.709       -.64222E-06   -.38932E-04
  21  Prefactor     .10000E-03    2.6691       -.99142E-09** at limit **
  22  norm          2.5849        1.8732       -.37298E-07   -.70988E-03
  23  Normalizat    1.1281        .23716       -.79452E-06   -.50064E-04
  24  Prefactor     1.0597        .15827       -.74765E-07   -.73936E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.1527
  Prefactor  = 3.22882
  norm       = 2.52188
  norm       = 2.66789
  norm       = 19.4526
  Prefactor  = 0.0001
  norm       = 2.44569
  Prefactor  = 0.0001
  Prefactor  = 27.1159
  norm       = 8.09229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.1476
  norm       = 64.5236
  norm       = 1.00645
  Prefactor  = 0.0001
  norm       = 73.8881
  norm       = 0.0001
  Prefactor  = 12.6894
  Prefactor  = 0.0001
  norm       = 2.58489
  Normalizat = 1.12807
  Prefactor  = 1.05969
 **********
 **   18 **HESSE 
 **********

 FCN=   8254.507     FROM HESSE     STATUS=OK           399 CALLS     3083 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.153        28.101        .12576E-03   -1.5071    
   3  Prefactor     3.2288        7.3873        .22546E-03   -1.5349    
   4  norm          2.5219        2.3004        .11997E-03   -1.5390    
   5  norm          2.6679        5.3431        .20984E-03   -1.5381    
   6  norm          19.453        44.091        .90810E-04   -1.4826    
   7  Prefactor     .10000E-03    72.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4457        .73561        .36785E-04   -1.5395    
   9  Prefactor     .10000E-03    4.1723        .18052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.116        13.340        .76934E-04   -1.4666    
  11  norm          8.0923        2.3613        .70132E-04   -1.5139    
  12  Prefactor     .10000E-03    2.3593        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.148        35.615        .66660E-04   -1.4505    
  15  norm          64.524        30.975        .24979E-03   -1.4100    
  16  norm          1.0064        .29631        .24450E-04   -1.5507    
  17  Prefactor     .10000E-03    109.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          73.888        18.641        .46704E-04   -1.3987    
  19  norm          .10000E-03    2.6483        .14439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.689        22.809        .11245E-03   -1.4995    
  21  Prefactor     .10000E-03    2.6739        .14495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5849        1.8676        .10090E-03   -1.5386    
  23  Normalizat    1.1281        .28245        .34921E-03   -.88856    
  24  Prefactor     1.0597        .18895        .25870E-03   -.90765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41019e-10
Minuit parameter uncertainties:
  1  2.28205e-06
  2  28.138
  3  7.3894
  4  2.3005
  5  5.34407
  6  44.1654
  7  0.000133816
  8  0.735615
  9  7.91882e-06
  10  13.3411
  11  2.36138
  12  3.06864e-06
  13  3.98778e-06
  14  35.6355
  15  30.9828
  16  0.296307
  17  0.000111703
  18  18.6421
  19  1.87392e-06
  20  22.8245
  21  1.31961e-06
  22  1.86769
  23  0.282825
  24  0.189066
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  6.452e+01  3.098e+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:  1.060e+00  1.891e-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.128e+00  2.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.43
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 3.82e-05 +/- 1.84e-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) = 8254.48786821
delta logL = 0.0188830615898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8254.48666567
delta logL = 0.0200856081028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    63.530       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0668       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0629       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=   8254.487     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      279 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          63.536        31.085        .25173E-03    .14632E-04
   2  alpha         2.0667        .57635        .15675E-01    .17593E-03
   3  Normalizat    1.1189        .25843        .35039E-03    .24399E-04
   4  Prefactor     1.0628        .18441        .25832E-03   -.35032E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 63.5364
  alpha      = 2.06665
  Normalizat = 1.11887
  Prefactor  = 1.06282
 **********
 **   18 **HESSE 
 **********

 FCN=   8254.487     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          63.536        30.788        .10069E-04   -1.4112    
   2  alpha         2.0667        .57034        .31351E-02   -.17422    
   3  Normalizat    1.1189        .25839        .14016E-04   -.89148    
   4  Prefactor     1.0628        .18450        .10333E-04   -.90664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6551e-11
Minuit parameter uncertainties:
  1  30.7954
  2  0.575565
  3  0.258685
  4  0.184612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950411': 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) = 8254.48666539
delta logL = 0.0200858847566

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  6.354e+01  3.080e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.067e+00  5.756e-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:  1.063e+00  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.119e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.42
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 2.07 +/- 0.58
Photon Flux (Free Index): 6.33e-08 +/- 5.07e-08
Energy Flux (Free Index): 3.66e-05 +/- 1.85e-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/950411/cmap_HighResolution_501120001_501379201_4FGL_J1251.3-0201_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='3.66e-05', photon_flux_error='2.66e-08', dlogl='2.01e-02', energy_flux='3.82e-05', photon_flux2='6.33e-08', job_status='DONE', time_completed='2021-09-06 07:26:35.405723', photon_index_error2='0.58', photon_index2='2.07', ts='16.43', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.13', time_epoch_completed='1630938395.41', return_code='0', job_id='950411', GAL2='1.06', EG2='1.12', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='5.07e-08', ts2='16.42', photon_index='1.95' WHERE bin_id='1010' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:26:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 950411: <4FGL_J1251.3-0201_daily_bin1010> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1010> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 07:10:46 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:10:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:10:47 2021
Terminated at Mon Sep  6 07:26:36 2021
Results reported at Mon Sep  6 07:26:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1010 192.836 -2.0271 501120001 501379201 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

