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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1225
RA = 192.836, Dec = -2.0271
tmin = 556848001, tmax = 557107201
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='950696', job_status='RUN', time_executed='2021-09-06 07:12:41.917858', time_epoch_executed='1630937561.92' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950696/ft1_4FGL_J1251.3-0201_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950696/ft2_4FGL_J1251.3-0201_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950696/ft1_4FGL_J1251.3-0201_daily_bin1225.fits outfile=/scratch/kocevski/950696/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1225.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=556848001.0 tmax=557107201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.59
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950696/ft1_filtered_4FGL_J1251.3-0201_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/950696/ft2_4FGL_J1251.3-0201_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/950696/ltcube_556848001_557107201_4FGL_J1251.3-0201_daily_bin1225.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/950696/ft2_4FGL_J1251.3-0201_daily_bin1225.fits
.....................!
real 12.41
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950696/ft1_filtered_4FGL_J1251.3-0201_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/950696/ft2_4FGL_J1251.3-0201_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/950696/ltcube_556848001_557107201_4FGL_J1251.3-0201_daily_bin1225.fits outfile=/scratch/kocevski/950696/expmap_556848001_557107201_4FGL_J1251.3-0201_daily_bin1225.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/950696/ltcube_556848001_557107201_4FGL_J1251.3-0201_daily_bin1225.fits
.....................!
real 190.76
user 184.82
sys 5.14

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/950696/ft1_filtered_4FGL_J1251.3-0201_daily_bin1225.fits scfile=/scratch/kocevski/950696/ft2_4FGL_J1251.3-0201_daily_bin1225.fits outfile=/scratch/kocevski/950696/cmap_556848001_557107201_4FGL_J1251.3-0201_daily_bin1225.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.70
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950696/ft1_filtered_4FGL_J1251.3-0201_daily_bin1225.fits scfile=/scratch/kocevski/950696/ft2_4FGL_J1251.3-0201_daily_bin1225.fits outfile=/scratch/kocevski/950696/cmap_HighResolution_556848001_557107201_4FGL_J1251.3-0201_daily_bin1225.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.69
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950696/ft1_filtered_4FGL_J1251.3-0201_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/950696/ft2_4FGL_J1251.3-0201_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950696/Model_4FGL_J1251.3-0201_daily_bin1225.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/950696/ft1_filtered_4FGL_J1251.3-0201_daily_bin1225.fits.....................!
real 44.01
user 41.66
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.584       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.695       1.0000         .10000E-03   10000.    
     4 'norm      '    .67944       1.0000         .10000E-03   10000.    
     5 'norm      '    .10603E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    92.909       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1448       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    32.237       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5735       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89015       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=   4763.326     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2766 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.168       -.17900E-06** at limit **
   2  Prefactor     60.621        83.201        .74356E-07    .13013E-04
   3  Prefactor     11.704        28.338       -.56622E-05   -.87299E-04
   4  norm          .68034        6.0521        .38659E-05   -.10173E-03
   5  norm          .10000E-03    5.0150        .46319E-06** at limit **
   6  norm          .10000E-03    29.891       -.52572E-07** at limit **
   7  Prefactor     92.684        252.82       -.19068E-05   -.19996E-04
   8  norm          1.3393        1.0232        .81177E-07   -.30693E-03
   9  Prefactor     .10000E-03    5.3350        .82772E-08** at limit **
  10  Prefactor     .10000E-03    65.287        .15152E-05** at limit **
  11  norm          4.1448        2.8868       -.34824E-08   -.64848E-04
  12  Prefactor     .10000E-03    10.297        .93430E-07** at limit **
  13  Prefactor     .10000E-03    26.821        .14035E-06** at limit **
  14  Prefactor     .10000E-03    129.36       -.37223E-06** at limit **
  15  norm          32.246        31.428       -.26096E-07    .36005E-05
  16  norm          1.6724        .39839       -.99991E-08    .12667E-03
  17  Prefactor     .10000E-03    60.961        .14110E-06** at limit **
  18  norm          .10000E-03    22.507       -.10214E-06** at limit **
  19  norm          .10000E-03    3.6008        .23899E-08** at limit **
  20  Prefactor     .10000E-03    28.368        .10614E-07** at limit **
  21  Prefactor     .10000E-03    3.5373        .50921E-08** at limit **
  22  norm          .10000E-03    .64859       -.10687E-07** at limit **
  23  Normalizat    1.5735        .28582       -.29516E-06   -.77981E-04
  24  Prefactor     .89013        .19713        .60166E-06   -.16098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 60.6207
  Prefactor  = 11.7038
  norm       = 0.680341
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 92.6837
  norm       = 1.33928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.14478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.2461
  norm       = 1.67245
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.57352
  Prefactor  = 0.890129
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.326     FROM HESSE     STATUS=OK           389 CALLS     3155 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.621        83.051        .51548E-04   -1.4149    
   3  Prefactor     11.704        28.670        .11714E-03   -1.5024    
   4  norm          .68034        6.1549        .26008E-03   -1.5543    
   5  norm          .10000E-03    5.0354        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    29.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     92.684        253.42        .20847E-03   -1.3780    
   8  norm          1.3393        1.0037        .55519E-04   -1.5477    
   9  Prefactor     .10000E-03    5.3411        .15568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1448        2.8787        .91936E-04   -1.5301    
  12  Prefactor     .10000E-03    10.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    129.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          32.246        31.415        .70573E-04   -1.4572    
  16  norm          1.6724        .39905        .20070E-04   -1.5449    
  17  Prefactor     .10000E-03    61.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    22.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.6052        .12791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6004        .12676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0009        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5735        .33654        .29700E-03   -.75733    
  24  Prefactor     .89013        .23095        .26673E-03   -.96487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30898e-10
Minuit parameter uncertainties:
  1  0.000127975
  2  83.2104
  3  28.7039
  4  4.09291
  5  3.01136e-05
  6  4.31902e-05
  7  256.471
  8  1.00368
  9  1.03806e-06
  10  0.000205271
  11  2.87875
  12  1.29542e-05
  13  5.13988e-05
  14  0.000281642
  15  31.4311
  16  0.399052
  17  8.99443e-05
  18  2.07974e-05
  19  6.02488e-07
  20  3.98467e-07
  21  1.45206e-06
  22  1.29553e-06
  23  0.337024
  24  0.231203
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.225e+01  3.143e+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.901e-01  2.312e-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.574e+00  3.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.86e-05

TS (Fixed Index): 1.95
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950696/likelihoodResults_556848001_557107201_4FGL_J1251.3-0201_daily_bin1225.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4763.26639712
delta logL = 0.0594024561133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4763.26465814
delta logL = 0.0611414298291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.961       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6743       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88804       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=   4763.265     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      220 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.960        28.533       -.17119E-05    .44932E-03
   2  alpha         1.6743        .61233        .81501E-05    .11195E-03
   3  Normalizat    1.5795        .27734       -.23775E-06   -.58633E-04
   4  Prefactor     .88793        .19544        .16294E-06   -.55412E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 33.9603
  alpha      = 1.67428
  Normalizat = 1.57953
  Prefactor  = 0.887926
 **********
 **   18 **HESSE 
 **********

 FCN=   4763.265     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.960        32.706        .68763E-04   -1.4542    
   2  alpha         1.6743        .75871        .18908E-01   -.33661    
   3  Normalizat    1.5795        .32495        .29656E-03   -.75567    
   4  Prefactor     .88793        .22923        .26702E-03   -.96564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00817e-09
Minuit parameter uncertainties:
  1  32.7232
  2  0.772433
  3  0.32538
  4  0.229475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950696': 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) = 4763.26465802
delta logL = 0.061141549616

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.396e+01  3.272e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.674e+00  7.724e-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.879e-01  2.295e-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.580e+00  3.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.67 +/- 0.77
Photon Flux (Free Index): 2.15e-08 +/- 2.59e-08
Energy Flux (Free Index): 2.44e-05 +/- 3.04e-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/950696/cmap_HighResolution_556848001_557107201_4FGL_J1251.3-0201_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-05', comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='2.44e-05', photon_flux_error='2.70e-08', dlogl='6.11e-02', energy_flux='1.91e-05', photon_flux2='2.15e-08', job_status='DONE', time_completed='2021-09-06 07:23:45.283702', photon_index_error2='0.77', photon_index2='1.67', ts='1.95', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='3.04e-05', EG='1.57', time_epoch_completed='1630938225.28', return_code='0', job_id='950696', GAL2='0.89', EG2='1.58', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='2.59e-08', ts2='2.08', photon_index='1.95' WHERE bin_id='1225' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:23:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 950696: <4FGL_J1251.3-0201_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1225 192.836 -2.0271 556848001 557107201 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 :                                   594.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

