aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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


Waiting 53 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1758
RA = 192.836, Dec = -2.0271
tmin = 695001601, tmax = 695260801
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='366361', job_status='RUN', time_executed='2023-01-13 00:46:52.795302', time_epoch_executed='1673599612.8' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366361/ft1_4FGL_J1251.3-0201_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366361/ft1_4FGL_J1251.3-0201_daily_bin1758.fits outfile=/scratch/kocevski/366361/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1758.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.79
user 2.58
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.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/366361/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 896

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/366361/ltcube_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.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/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits
.....................!
real 15.45
user 15.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/366361/ltcube_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.fits outfile=/scratch/kocevski/366361/expmap_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.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/366361/ltcube_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.fits
.....................!
real 191.40
user 185.94
sys 4.83

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/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.fits scfile=/scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits outfile=/scratch/kocevski/366361/cmap_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.fits scfile=/scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits outfile=/scratch/kocevski/366361/cmap_HighResolution_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366361/Model_4FGL_J1251.3-0201_daily_bin1758.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/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.fits.....................!
real 71.26
user 69.70
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.fits', '/scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits', expMap='/scratch/kocevski/366361/expmap_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.fits', expCube='/scratch/kocevski/366361/ltcube_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/366361/Model_4FGL_J1251.3-0201_daily_bin1758.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  0.000e+00  1.000e+06 ( 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 -5.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/366361/ft1_filtered_4FGL_J1251.3-0201_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/366361/ft2_4FGL_J1251.3-0201_daily_bin1758.fits
Exposure map: /scratch/kocevski/366361/expmap_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.fits
Exposure cube: /scratch/kocevski/366361/ltcube_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/366361/Model_4FGL_J1251.3-0201_daily_bin1758.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) = 9678.58646268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.178       1.0000          .0000       .10000E+07
     2 'Prefactor '    .82995E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .41274E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .26207E-06   1.0000          .0000       .10000E+07
     5 'norm      '    4.8422       1.0000          .0000       .10000E+07
     6 'norm      '    .40640E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.4956       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0877       1.0000          .0000       .10000E+07
     9 'Prefactor '    .23262E-03   1.0000          .0000       .10000E+07
    10 'norm      '    1.5236       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11835E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .49021E-04   1.0000          .0000       .10000E+07
    13 'norm      '    14.272       1.0000          .0000       .10000E+07
    14 'norm      '    .35028       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20848E-04   1.0000          .0000       .10000E+07
    16 'norm      '    8.2000       1.0000          .0000       .10000E+07
    17 'norm      '    .44817E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    52.294       1.0000          .0000       .10000E+07
    19 'Prefactor '    .84405E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .98174       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2509       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9678.550     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1358 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.934        1.4171       -.15311E-07    .25793E-01
   2  Prefactor     .14083E-06    4.6382       -.40981E-06** at limit **
   3  Prefactor     .55511E-09    2.3064       -.22306E-07** at limit **
   4  norm           .0000        .42509        .29751E-07** at limit **
   5  norm          4.8425        3.3551        .16852E-07    .26666E-03
   6  norm          .23759E-06    19.096       -.91385E-06** at limit **
   7  norm          1.4962        .52963       -.56409E-07   -.24470E-01
   8  Prefactor     4.0901        2.2551       -.13365E-07    .44557E-01
   9  Prefactor     .38858E-09    1.7964       -.27629E-07** at limit **
  10  norm          1.5229        1.3838        .53646E-07    .28602E-02
  11  Prefactor     .69389E-08    4.9621        .21304E-07** at limit **
  12  Prefactor     .47684E-07    5.9311        .87256E-08** at limit **
  13  norm          14.276        1.0756        .98137E-08   -.46697E-02
  14  norm          .35013        .13447        .16457E-07    .25082E-01
  15  Prefactor     .20970E-05    4.5499       -.41624E-06** at limit **
  16  norm          8.2031        6.0565       -.67726E-08   -.26024E-01
  17  norm          .68037E-05    3.1188       -.22448E-06** at limit **
  18  Prefactor     52.287        1.0667       -.45727E-08   -.23933E-01
  19  Prefactor     .11657E-08    1.6795       -.10929E-07** at limit **
  20  norm          .98295        .91402        .18119E-07    .21288E-02
  21  Normalizat    1.2512        .20606        .21473E-05   -.86482E-04
  22  Prefactor     .89722        .14600       -.24562E-05   -.16126E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.9344
  Prefactor  = 1.40832e-07
  Prefactor  = 5.55112e-10
  norm       = 0
  norm       = 4.84252
  norm       = 2.37588e-07
  norm       = 1.49621
  Prefactor  = 4.09009
  Prefactor  = 3.88578e-10
  norm       = 1.5229
  Prefactor  = 6.93889e-09
  Prefactor  = 4.76841e-08
  norm       = 14.2756
  norm       = 0.350129
  Prefactor  = 2.09699e-06
  norm       = 8.2031
  norm       = 6.80367e-06
  Prefactor  = 52.2868
  Prefactor  = 1.16573e-09
  norm       = 0.982949
  Normalizat = 1.25119
  Prefactor  = 0.897215
 **********
 **   18 **HESSE 
 **********

 FCN=   9678.550     FROM HESSE     STATUS=OK           388 CALLS     1746 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.934        21.311        .14717E-03   -1.5572    
   2  Prefactor     .14083E-06    11.427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-09    2.3134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .42451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8425        3.3561        .45691E-03   -1.5664    
   6  norm          .23759E-06    19.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4962        .53700        .86757E-03   -1.5683    
   8  Prefactor     4.0901        6.4084        .49841E-03   -1.5668    
   9  Prefactor     .38858E-09    1.8218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5229        1.4009        .86500E-03   -1.5683    
  11  Prefactor     .69389E-08    4.9333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .47684E-07    6.0045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.276        13.750        .26487E-03   -1.5632    
  14  norm          .35013        .13553        .48579E-03   -1.5696    
  15  Prefactor     .20970E-05    11.592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2031        6.2383        .34987E-03   -1.5651    
  17  norm          .68037E-05    12.626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.287        18.640        .13829E-03   -1.5563    
  19  Prefactor     .11657E-08    1.7113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .98295        .91826        .43118E-03   -1.5688    
  21  Normalizat    1.2512        .17612        .63262E-01   -.85035    
  22  Prefactor     .89722        .12345        .44971E-01   -.96238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60983e-07
Minuit parameter uncertainties:
  1  21.3111
  2  0.00253697
  3  7.18266e-05
  4  1.58972e-06
  5  3.35614
  6  0.00429844
  7  0.536998
  8  6.40843
  9  5.43896e-05
  10  1.40087
  11  0.000369815
  12  0.00107043
  13  13.7496
  14  0.135533
  15  0.00986085
  16  6.23828
  17  0.018537
  18  18.6403
  19  8.93591e-05
  20  0.918263
  21  0.176208
  22  0.123493
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.428e+01  1.375e+01  0.000e+00  1.000e+06 ( 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 -5.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.972e-01  1.235e-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.251e+00  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.22e-08 +/- 1.18e-08
Energy Flux (Fixed Index): 8.46e-06 +/- 8.15e-06

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

Saving results to:
/scratch/kocevski/366361/likelihoodResults_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.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) = 9678.48273102
delta logL = 0.0676130339634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9678.4823751
delta logL = 0.0679689479566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.025       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6108       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89622       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9678.482     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.015        27.285        .26720E-03   -.32805E-03
   2  alpha         1.6108        1.3174        .45052       -.20876E-05
   3  Normalizat    1.2554        .16958        .63173E-01    .81978E-04
   4  Prefactor     .89608        .12346        .44957E-01    .53862E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.015
  alpha      = 1.61077
  Normalizat = 1.25539
  Prefactor  = 0.896085
 **********
 **   18 **HESSE 
 **********

 FCN=   9678.482     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.015        14.653        .10688E-04   -1.5633    
   2  alpha         1.6108        .89377        .29612E-01   -.36366    
   3  Normalizat    1.2554        .19732        .27944E-03   -.84908    
   4  Prefactor     .89608        .14487        .23701E-03   -.96278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30728e-11
Minuit parameter uncertainties:
  1  14.6533
  2  0.91714
  3  0.197438
  4  0.144936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366361': 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) = 9678.48237434
delta logL = 0.0679697154192

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  1.402e+01  1.465e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        alpha:  1.611e+00  9.171e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.558e-01  0.000e+00 -5.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.961e-01  1.449e-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.255e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.61 +/- 0.92
Photon Flux (Free Index): 8.40e-09 +/- 1.22e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.40e-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/366361/cmap_HighResolution_695001601_695260801_4FGL_J1251.3-0201_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-05', comment='SUCCESS', photon_flux='1.22e-08', energy_flux2='1.08e-05', photon_flux_error='1.18e-08', dlogl='6.80e-02', energy_flux='8.46e-06', photon_flux2='8.40e-09', job_status='DONE', time_completed='2023-01-13 00:58:15.325840', photon_index_error2='0.92', photon_index2='1.61', ts='2.77', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='4.49e-08', energy_flux_error2='1.40e-05', EG='1.25', time_epoch_completed='1673600295.33', return_code='0', job_id='366361', GAL2='0.90', EG2='1.26', return_code2='0', energy_flux_error='8.15e-06', photon_flux_error2='1.22e-08', ts2='2.91', photon_index='1.95' WHERE bin_id='1758' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:58:15 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 366361: <4FGL_J1251.3-0201_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1758> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Jan 13 00:45:17 2023
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:45:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:45:50 2023
Terminated at Fri Jan 13 00:58:16 2023
Results reported at Fri Jan 13 00:58:16 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1758 192.836 -2.0271 695001601 695260801 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 :                                   684.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            779 sec.

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

