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


Performing analysis on: 4FGL_J1251.3-0201_daily_bin1752
RA = 192.836, Dec = -2.0271
tmin = 693446401, tmax = 693705601
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='263371', job_status='RUN', time_executed='2022-12-26 00:56:39.583497', time_epoch_executed='1672044999.58' WHERE source_name='4FGL J1251.3-0201' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263371

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263371/ft1_4FGL_J1251.3-0201_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263371/ft2_4FGL_J1251.3-0201_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263371/ft1_4FGL_J1251.3-0201_daily_bin1752.fits outfile=/scratch/kocevski/263371/ft1_filteredMKT_4FGL_J1251.3-0201_daily_bin1752.fits ra=192.836 dec=-2.0271 rad=12.0 tmin=693446401.0 tmax=693705601.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.20
user 3.23
sys 0.23

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

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

Number of photons that the gtmktime cut: 535

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263371/ft1_filtered_4FGL_J1251.3-0201_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/263371/ft2_4FGL_J1251.3-0201_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/263371/ltcube_693446401_693705601_4FGL_J1251.3-0201_daily_bin1752.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/263371/ft2_4FGL_J1251.3-0201_daily_bin1752.fits
.....................!
real 15.24
user 14.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263371/ft1_filtered_4FGL_J1251.3-0201_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/263371/ft2_4FGL_J1251.3-0201_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/263371/ltcube_693446401_693705601_4FGL_J1251.3-0201_daily_bin1752.fits outfile=/scratch/kocevski/263371/expmap_693446401_693705601_4FGL_J1251.3-0201_daily_bin1752.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/263371/ltcube_693446401_693705601_4FGL_J1251.3-0201_daily_bin1752.fits
.....................!
real 194.54
user 186.37
sys 5.76

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/263371/ft1_filtered_4FGL_J1251.3-0201_daily_bin1752.fits scfile=/scratch/kocevski/263371/ft2_4FGL_J1251.3-0201_daily_bin1752.fits outfile=/scratch/kocevski/263371/cmap_693446401_693705601_4FGL_J1251.3-0201_daily_bin1752.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263371/ft1_filtered_4FGL_J1251.3-0201_daily_bin1752.fits scfile=/scratch/kocevski/263371/ft2_4FGL_J1251.3-0201_daily_bin1752.fits outfile=/scratch/kocevski/263371/cmap_HighResolution_693446401_693705601_4FGL_J1251.3-0201_daily_bin1752.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64790E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.9890       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18235E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .12808E-02   1.0000          .0000       .10000E+07
     5 'norm      '    1.4705       1.0000          .0000       .10000E+07
     6 'norm      '    8.0290       1.0000          .0000       .10000E+07
     7 'norm      '    1.4838       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4722       1.0000          .0000       .10000E+07
     9 'Prefactor '    8.5683       1.0000          .0000       .10000E+07
    10 'norm      '    .24313       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.8155       1.0000          .0000       .10000E+07
    12 'Prefactor '    .53370E-01   1.0000          .0000       .10000E+07
    13 'norm      '    34.775       1.0000          .0000       .10000E+07
    14 'norm      '    .34245       1.0000          .0000       .10000E+07
    15 'Prefactor '    .58708E-04   1.0000          .0000       .10000E+07
    16 'norm      '    5.2140       1.0000          .0000       .10000E+07
    17 'norm      '    1.2502       1.0000          .0000       .10000E+07
    18 'Prefactor '    .46964E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    4.5037       1.0000          .0000       .10000E+07
    20 'norm      '    .21871E-07   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.4826       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67903       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=   5840.591     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1426 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52736E-08    7.0363        .50580E-06** at limit **
   2  Prefactor     5.6819        4.6065        .12607E-05   -.19277E-01
   3  Prefactor     .78104E-07    3.1085       -.15522E-05** at limit **
   4  norm          .66613E-09    15.411        .54776E-05** at limit **
   5  norm          1.4555        3.5641       -.58333E-07    .32566E-02
   6  norm          8.1622        8.1213        .22607E-05   -.55923E-01
   7  norm          1.4834        .66627       -.85412E-07    .64522E-02
   8  Prefactor     4.4457        7.2114       -.41188E-06    .47642E-01
   9  Prefactor     8.2633        8.7950       -.18786E-05   -.56614E-02
  10  norm          .23957        2.7490       -.91877E-07** at limit **
  11  Prefactor     6.8211        5.2177        .16038E-05    .10227    
  12  Prefactor     .17097E-07    1.2256        .11478E-06** at limit **
  13  norm          34.119        25.408       -.15118E-05   -.96109E-02
  14  norm          .34255        .18631        .60336E-08   -.74868E-02
  15  Prefactor     .34972E-08    12.580        .20862E-05** at limit **
  16  norm          5.2664        6.3583       -.45443E-08    .21405E-02
  17  norm          1.2366        12.874        .76689E-06    .49959E-02
  18  Prefactor     .41522E-07    4.0263       -.43406E-06** at limit **
  19  Prefactor     4.5053        5.5476       -.53642E-08    .17946E-02
  20  norm          .55511E-10    1.2894       -.52493E-07** at limit **
  21  Normalizat    1.4830        .24906        .14944E-04   -.15439E-03
  22  Prefactor     .67957        .17355       -.18455E-04   -.10563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.27356e-09
  Prefactor  = 5.68194
  Prefactor  = 7.81042e-08
  norm       = 6.66134e-10
  norm       = 1.45551
  norm       = 8.16223
  norm       = 1.48339
  Prefactor  = 4.44573
  Prefactor  = 8.26326
  norm       = 0.239573
  Prefactor  = 6.82115
  Prefactor  = 1.70974e-08
  norm       = 34.1194
  norm       = 0.342552
  Prefactor  = 3.4972e-09
  norm       = 5.26636
  norm       = 1.23659
  Prefactor  = 4.15223e-08
  Prefactor  = 4.50533
  norm       = 5.55112e-11
  Normalizat = 1.48303
  Prefactor  = 0.679573
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.591     FROM HESSE     STATUS=OK           402 CALLS     1828 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52736E-08    7.1113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6819        19.170        .41006E-03   -1.5660    
   3  Prefactor     .78104E-07    6.0475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .66613E-09    1.2823        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4555        4.0956        .88584E-03   -1.5684    
   6  norm          8.1622        52.825        .35360E-03   -1.5651    
   7  norm          1.4834        .68657        .82059E-03   -1.5684    
   8  Prefactor     4.4457        8.2018        .47589E-03   -1.5666    
   9  Prefactor     8.2633        10.552        .34221E-03   -1.5650    
  10  norm          .23957        1.1955        .26762E-02   -1.5718    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8211        7.5250        .38409E-03   -1.5656    
  12  Prefactor     .17097E-07    93.833        .15409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          34.119        26.121        .16960E-03   -1.5591    
  14  norm          .34255        .18936        .52779E-03   -1.5696    
  15  Prefactor     .34972E-08    12.927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2664        6.3757        .43999E-03   -1.5662    
  17  norm          1.2366        13.005        .99984E-03   -1.5686    
  18  Prefactor     .41522E-07    5.5349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5053        5.5551        .47418E-03   -1.5666    
  20  norm          .55511E-10    1.2690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4830        .21355        .56318E-01   -.78256    
  22  Prefactor     .67957        .15057        .42121E-01   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65034e-07
Minuit parameter uncertainties:
  1  0.000387714
  2  19.1703
  3  0.00137434
  4  5.88343e-05
  5  4.09558
  6  41.5297
  7  0.686566
  8  8.20177
  9  10.5521
  10  1.07035
  11  7.52498
  12  0.00253125
  13  26.1216
  14  0.189356
  15  0.000426914
  16  6.37566
  17  8.02057
  18  0.000958697
  19  5.55512
  20  1.64514e-05
  21  0.21368
  22  0.150664
Done.

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

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.412e+01  2.612e+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:  6.796e-01  1.507e-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.483e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 192.836 -2.027
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.93e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.55e-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) = 5840.58973052
delta logL = 0.00137867657941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5840.58970105
delta logL = 0.00140814212682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.223       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9148       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67945       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=   5840.590     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      225 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.264        874.74        .17096E-03   -.63839E-04
   2  alpha         1.9161        2.6027        .42675        .15976E-04
   3  Normalizat    1.4839        .15039        .56306E-01   -.22375E-05
   4  Prefactor     .67942        .74694E-01    .42127E-01    .13736E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 34.2635
  alpha      = 1.9161
  Normalizat = 1.4839
  Prefactor  = 0.679416
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.590     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.264        26.240        .68384E-05   -1.5591    
   2  alpha         1.9161        .64471        .15301E-01   -.23574    
   3  Normalizat    1.4839        .23460        .24897E-03   -.78232    
   4  Prefactor     .67942        .16989        .25433E-03   -1.0434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19106e-10
Minuit parameter uncertainties:
  1  26.2398
  2  0.652521
  3  0.234773
  4  0.170019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263371': 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) = 5840.58969758
delta logL = 0.00141161612282

Extracting fit parameters...

4FGL J1251.3-0201
   Spectrum: LogParabola
290         norm:  3.426e+01  2.624e+01  0.000e+00  1.000e+06 ( 1.000e-13)
291        alpha:  1.916e+00  6.525e-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:  6.794e-01  1.700e-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.484e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.80
Ra Dec: 192.836 -2.027
Photon Index (Free Index): 1.92 +/- 0.65
Photon Flux (Free Index): 2.82e-08 +/- 2.92e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.75e-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/263371/cmap_HighResolution_693446401_693705601_4FGL_J1251.3-0201_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.93e-08', energy_flux2='2.06e-05', photon_flux_error='2.24e-08', dlogl='1.41e-03', energy_flux='2.02e-05', photon_flux2='2.82e-08', job_status='DONE', time_completed='2022-12-26 01:05:18.393150', photon_index_error2='0.65', photon_index2='1.92', ts='4.79', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.48', time_epoch_completed='1672045518.39', return_code='0', job_id='263371', GAL2='0.68', EG2='1.48', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='2.92e-08', ts2='4.80', photon_index='1.95' WHERE bin_id='1752' AND source_name='4FGL J1251.3-0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:05:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 263371: <4FGL_J1251.3-0201_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1251.3-0201_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:55:15 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:55:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:55:36 2022
Terminated at Mon Dec 26 01:05:18 2022
Results reported at Mon Dec 26 01:05:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1251.3-0201_daily_bin1752 192.836 -2.0271 693446401 693705601 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 :                                   515.22 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             338.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            603 sec.

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

