/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 8 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 = 7416
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin419
RA = 192.836, Dec = -2.0271
tmin = 347932801, tmax = 348192001
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='946744', job_status='RUN', time_executed='2021-09-06 07:00:43.853845', time_epoch_executed='1630936843.85' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946744

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946744/ft1_4FGL_J1251.3-0201_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946744/ft2_4FGL_J1251.3-0201_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946744/ft1_4FGL_J1251.3-0201_daily_bin419.fits outfile=/scratch/kocevski/946744/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin419.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=347932801.0 tmax=348192001.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.43
user 3.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946744/ft1_filtered_4FGL_J1251.3-0201_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/946744/ft2_4FGL_J1251.3-0201_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/946744/ltcube_347932801_348192001_4FGL_J1251.3-0201_daily_bin419.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/946744/ft2_4FGL_J1251.3-0201_daily_bin419.fits
.....................!
real 12.31
user 11.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946744/ft1_filtered_4FGL_J1251.3-0201_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/946744/ft2_4FGL_J1251.3-0201_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/946744/ltcube_347932801_348192001_4FGL_J1251.3-0201_daily_bin419.fits outfile=/scratch/kocevski/946744/expmap_347932801_348192001_4FGL_J1251.3-0201_daily_bin419.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/946744/ltcube_347932801_348192001_4FGL_J1251.3-0201_daily_bin419.fits
.....................!
real 190.53
user 184.26
sys 5.79

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/946744/ft1_filtered_4FGL_J1251.3-0201_daily_bin419.fits scfile=/scratch/kocevski/946744/ft2_4FGL_J1251.3-0201_daily_bin419.fits outfile=/scratch/kocevski/946744/cmap_347932801_348192001_4FGL_J1251.3-0201_daily_bin419.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 4.33
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946744/ft1_filtered_4FGL_J1251.3-0201_daily_bin419.fits scfile=/scratch/kocevski/946744/ft2_4FGL_J1251.3-0201_daily_bin419.fits outfile=/scratch/kocevski/946744/cmap_HighResolution_347932801_348192001_4FGL_J1251.3-0201_daily_bin419.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 3.66
user 0.38
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/946744/ft1_filtered_4FGL_J1251.3-0201_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/946744/ft2_4FGL_J1251.3-0201_daily_bin419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/946744/Model_4FGL_J1251.3-0201_daily_bin419.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/946744/ft1_filtered_4FGL_J1251.3-0201_daily_bin419.fits.....................!
real 84.64
user 68.95
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.642       1.0000         .10000E-03   10000.    
     4 'norm      '    .11055E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8288       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .60330       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32610E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5012       1.0000         .10000E-03   10000.    
    11 'norm      '    .18808       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.463       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.552       1.0000         .10000E-03   10000.    
    18 'norm      '    11.089       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2732       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.019       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8553       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1779       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1256       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=   9648.179     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2794 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.008        .17180E-06** at limit **
   2  Prefactor     .10000E-03    15.447        .66342E-07** at limit **
   3  Prefactor     15.642        9.1886       -.12472E-06   -.16277E-03
   4  norm          .10000E-03    1.1089        .15391E-06** at limit **
   5  norm          2.8290        2.5839        .64993E-07   -.15000E-03
   6  norm          .10000E-03    30.709        .16060E-06** at limit **
   7  Prefactor     .10000E-03    32.666        .88695E-08** at limit **
   8  norm          .60330        .40900        .11199E-07   -.82155E-03
   9  Prefactor     .10004E-03    4.7746        .69486E-06** at limit **
  10  Prefactor     1.4982        8.7063        .29479E-05   -.84646E-05
  11  norm          .18790        .56926        .32159E-06   -.61318E-03
  12  Prefactor     3.2691        6.5703        .50855E-06   -.87317E-04
  13  Prefactor     .10000E-03    11.776        .68153E-07** at limit **
  14  Prefactor     .10000E-03    11.126        .44633E-07** at limit **
  15  norm          15.464        17.835        .31663E-08   -.17471E-04
  16  norm          1.2879        .23789        .11159E-07   -.68926E-03
  17  Prefactor     46.447        59.152       -.53213E-06   -.62955E-04
  18  norm          11.094        8.3508        .47032E-06   -.37045E-04
  19  norm          1.2719        8.1115        .30550E-05   -.13365E-04
  20  Prefactor     13.020        17.492        .18016E-06   -.11170E-04
  21  Prefactor     7.8561        6.5528        .38303E-08   -.42156E-04
  22  norm          .10000E-03    .38137        .84266E-07** at limit **
  23  Normalizat    1.1775        .19088        .44447E-06   -.33694E-03
  24  Prefactor     1.1259        .13835       -.15622E-05   -.21282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6419
  norm       = 0.0001
  norm       = 2.82904
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.603299
  Prefactor  = 0.000100043
  Prefactor  = 1.49821
  norm       = 0.187896
  Prefactor  = 3.26915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.4638
  norm       = 1.28791
  Prefactor  = 46.4469
  norm       = 11.0937
  norm       = 1.27195
  Prefactor  = 13.0202
  Prefactor  = 7.85614
  norm       = 0.0001
  Normalizat = 1.17753
  Prefactor  = 1.12588
 **********
 **   18 **HESSE 
 **********

 FCN=   9648.179     FROM HESSE     STATUS=OK           411 CALLS     3205 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.642        8.9050        .10127E-03   -1.4917    
   4  norm          .10000E-03    3.4321        .19464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8290        2.5639        .14014E-03   -1.5372    
   6  norm          .10000E-03    31.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .60330        .38886        .47133E-03   -1.5553    
   9  Prefactor     .10004E-03    37.925        .40351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4982        8.8605        .34947E-03   -1.5463    
  11  norm          .18790        .68755        .12086E-02   -1.5621    
  12  Prefactor     3.2691        6.5008        .22400E-03   -1.5346    
  13  Prefactor     .10000E-03    11.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.464        17.821        .10185E-03   -1.4921    
  16  norm          1.2879        .23846        .19398E-04   -1.5481    
  17  Prefactor     46.447        59.236        .29383E-03   -1.4344    
  18  norm          11.094        8.3452        .60155E-03   -1.5042    
  19  norm          1.2719        8.1245        .39405E-03   -1.5482    
  20  Prefactor     13.020        17.571        .11102E-03   -1.4986    
  21  Prefactor     7.8561        6.5521        .14307E-03   -1.5147    
  22  norm          .10000E-03    .39841        .11850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1775        .22593        .30771E-03   -.87300    
  24  Prefactor     1.1259        .16028        .23466E-03   -.88644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21825e-08
Minuit parameter uncertainties:
  1  7.26153e-06
  2  2.04565e-06
  3  8.90573
  4  1.46869e-05
  5  2.56404
  6  2.16845e-05
  7  8.51798e-06
  8  0.388864
  9  0.00254428
  10  7.2883
  11  0.687575
  12  6.5022
  13  5.75038e-06
  14  9.22939e-08
  15  17.827
  16  0.238459
  17  59.3114
  18  8.34612
  19  6.43031
  20  17.5775
  21  6.55274
  22  6.22127e-07
  23  0.226117
  24  0.160353
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.546e+01  1.783e+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.126e+00  1.604e-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.178e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.33e-08 +/- 1.53e-08
Energy Flux (Fixed Index): 9.16e-06 +/- 1.06e-05

TS (Fixed Index): 1.67
Ra Dec: 192.836 -2.027
Photon Flux Upper Limit: 5.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946744/likelihoodResults_347932801_348192001_4FGL_J1251.3-0201_daily_bin419.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) = 9647.91824794
delta logL = 0.260619799295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9647.90817469
delta logL = 0.270693045737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.906       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2798       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1250       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=   9647.908     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      252 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.902        16.849        .11150E-03   -.41616E-03
   2  alpha         1.2794        .82305        .28988E-01    .35800E-04
   3  Normalizat    1.1833        .20983        .30707E-03    .32869E-03
   4  Prefactor     1.1250        .15789        .23474E-03    .34634E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9015
  alpha      = 1.27945
  Normalizat = 1.18331
  Prefactor  = 1.12496
 **********
 **   18 **HESSE 
 **********

 FCN=   9647.908     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.902        17.457        .22300E-04   -1.4989    
   2  alpha         1.2794        .85153        .11595E-02   -.51005    
   3  Normalizat    1.1833        .21000        .12283E-04   -.87120    
   4  Prefactor     1.1250        .15803        .46948E-04   -.88673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32936e-10
Minuit parameter uncertainties:
  1  17.4642
  2  0.87478
  3  0.210148
  4  0.158098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946744': 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) = 9647.90817458
delta logL = 0.27069315979

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.290e+01  1.746e+01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  1.279e+00  8.748e-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.125e+00  1.581e-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.183e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.28 +/- 0.87
Photon Flux (Free Index): 6.36e-09 +/- 9.68e-09
Energy Flux (Free Index): 1.67e-05 +/- 2.43e-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/946744/cmap_HighResolution_347932801_348192001_4FGL_J1251.3-0201_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-05', comment='SUCCESS', photon_flux='1.33e-08', energy_flux2='1.67e-05', photon_flux_error='1.53e-08', dlogl='2.71e-01', energy_flux='9.16e-06', photon_flux2='6.36e-09', job_status='DONE', time_completed='2021-09-06 07:16:02.529868', photon_index_error2='0.87', photon_index2='1.28', ts='1.67', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='5.66e-08', energy_flux_error2='2.43e-05', EG='1.18', time_epoch_completed='1630937762.53', return_code='0', job_id='946744', GAL2='1.12', EG2='1.18', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='9.68e-09', ts2='2.21', photon_index='1.95' WHERE bin_id='419' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:16:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 946744: <4FGL_J1251.3-0201_daily_bin419> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin419> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 07:00:25 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:00:27 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:00:27 2021
Terminated at Mon Sep  6 07:16:03 2021
Results reported at Mon Sep  6 07:16:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin419 192.836 -2.0271 347932801 348192001 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 :                                   894.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

