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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1768
RA = 342.879, Dec = -49.4691
tmin = 697593601, tmax = 697852801
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='284725', job_status='RUN', time_executed='2023-02-12 01:50:17.058893', time_epoch_executed='1676195417.06' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284725/ft1_4FGL_J2251.5-4928_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284725/ft1_4FGL_J2251.5-4928_daily_bin1768.fits outfile=/scratch/kocevski/284725/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1768.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=697593601.0 tmax=697852801.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.75
user 3.45
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.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/284725/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1768.fits evtable="EVENTS" outfile="/scratch/kocevski/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.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.54
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 571

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/284725/ltcube_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.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/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits
.....................!
real 15.73
user 15.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/284725/ltcube_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.fits outfile=/scratch/kocevski/284725/expmap_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.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/284725/ltcube_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.fits
.....................!
real 195.63
user 187.27
sys 6.04

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J2251.5-4928 @ 342.879 -49.4691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.fits scfile=/scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits outfile=/scratch/kocevski/284725/cmap_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.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=342.879 yref=-49.4691 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.62
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.fits scfile=/scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits outfile=/scratch/kocevski/284725/cmap_HighResolution_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.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=342.879 yref=-49.4691 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.59
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284725/Model_4FGL_J2251.5-4928_daily_bin1768.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/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.fits.....................!
real 45.70
user 43.70
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.fits', '/scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits', expMap='/scratch/kocevski/284725/expmap_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.fits', expCube='/scratch/kocevski/284725/ltcube_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/284725/Model_4FGL_J2251.5-4928_daily_bin1768.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2251.5-4928'

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.449e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/284725/ft1_filtered_4FGL_J2251.5-4928_daily_bin1768.fits
Spacecraft file(s): /scratch/kocevski/284725/ft2_4FGL_J2251.5-4928_daily_bin1768.fits
Exposure map: /scratch/kocevski/284725/expmap_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.fits
Exposure cube: /scratch/kocevski/284725/ltcube_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/284725/Model_4FGL_J2251.5-4928_daily_bin1768.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) = 6244.31113301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.687       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15782E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.9733       1.0000          .0000       .10000E+07
     4 'Prefactor '    .47270E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .34317E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.7434       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.8025       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35679       1.0000          .0000       .10000E+07
     9 'Prefactor '    35.636       1.0000          .0000       .10000E+07
    10 'Prefactor '    25.456       1.0000          .0000       .10000E+07
    11 'Prefactor '    .56304       1.0000          .0000       .10000E+07
    12 'Prefactor '    74.690       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12138E-04   1.0000          .0000       .10000E+07
    14 'norm      '    4.7916       1.0000          .0000       .10000E+07
    15 'norm      '    .27666E-05   1.0000          .0000       .10000E+07
    16 'norm      '    8.5859       1.0000          .0000       .10000E+07
    17 'Prefactor '    16.297       1.0000          .0000       .10000E+07
    18 'Prefactor '    27.380       1.0000          .0000       .10000E+07
    19 'norm      '    .51630E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .26973E-04   1.0000          .0000       .10000E+07
    21 'norm      '    .13531E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .50810E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .14553E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .15776E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    .21299E-01   1.0000          .0000       .10000E+07
    26 'norm      '    .19955E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    1.5758       1.0000          .0000       .10000E+07
    28 'Prefactor '    5.8740       1.0000          .0000       .10000E+07
    29 'Normalizat'    .91034       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95908       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6244.137     FROM MIGRAD    STATUS=CONVERGED    228 CALLS     2912 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.245        9.8403        .63365E-07   -.64439E-01
   2  Prefactor     .57176E-08    3.8123       -.48782E-07** at limit **
   3  Prefactor     7.9709        3.9832        .12321E-08    .11640E-03
   4  Prefactor     .81873E-06    60.309        .11883E-06** at limit **
   5  norm          .55511E-10    2.6887       -.16300E-06** at limit **
   6  Prefactor     3.7389        3.9303        .67403E-07   -.69237E-03
   7  Prefactor     5.9625        2.5275        .49043E-07   -.30654E-02
   8  Prefactor     .38688        7.9629        .86427E-07   -.13960E-04
   9  Prefactor     35.767        1.4068       -.95697E-08    .23046E-01
  10  Prefactor     25.264        24.461       -.19636E-06   -.20023E-01
  11  Prefactor     .51775        13.159        .13757E-06    .14787E-02
  12  Prefactor     73.829        5.9839        .20392E-07   -.28714E-01
  13  Prefactor     .11102E-07    2.4882        .66982E-07** at limit **
  14  norm          4.7271        6.6244       -.14339E-07   -.10207E-03
  15  norm          .41078E-08    3.7988        .18885E-06** at limit **
  16  norm          8.5794        5.4416        .20770E-07    .80888E-03
  17  Prefactor     16.279        6.9359        .16345E-06   -.28805E-02
  18  Prefactor     27.517        10.495        .82123E-07   -.35136E-01
  19  norm           .0000        17.218        .43387E-06** at limit **
  20  Prefactor     .58353E-06    109.47        .11147E-05** at limit **
  21  norm          .55511E-10    3.3342       -.32506E-06** at limit **
  22  norm          .55511E-10    8.8476        .19799E-06** at limit **
  23  Prefactor     .33307E-09    4.1229        .89619E-07** at limit **
  24  Prefactor      .0000        1.2681       -.25017E-08** at limit **
  25  Prefactor      .0000        18.103       -.91320E-07** at limit **
  26  norm          .16653E-09    9.3235       -.21497E-07** at limit **
  27  Prefactor     1.5757        3.5315       -.13668E-06    .47978E-03
  28  Prefactor     5.8710        4.2749        .35922E-08   -.37668E-03
  29  Normalizat    .91060        .21056        .47465E-06   -.11501E-04
  30  Prefactor     .95888        .20532       -.63576E-06   -.11582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.2451
  Prefactor  = 5.71765e-09
  Prefactor  = 7.97087
  Prefactor  = 8.18734e-07
  norm       = 5.55112e-11
  Prefactor  = 3.73891
  Prefactor  = 5.96253
  Prefactor  = 0.386876
  Prefactor  = 35.7673
  Prefactor  = 25.2641
  Prefactor  = 0.517745
  Prefactor  = 73.8288
  Prefactor  = 1.11022e-08
  norm       = 4.72713
  norm       = 4.10783e-09
  norm       = 8.57942
  Prefactor  = 16.2789
  Prefactor  = 27.5168
  norm       = 0
  Prefactor  = 5.83533e-07
  norm       = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.66533e-10
  Prefactor  = 1.57568
  Prefactor  = 5.87096
  Normalizat = 0.9106
  Prefactor  = 0.95888
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.137     FROM HESSE     STATUS=OK           664 CALLS     3576 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.245        34.479        .14047E-03   -1.5565    
   2  Prefactor     .57176E-08    4.4470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9709        3.9933        .35485E-03   -1.5651    
   4  Prefactor     .81873E-06    66.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    2.6919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7389        3.9872        .52162E-03   -1.5669    
   7  Prefactor     5.9625        49.168        .41670E-03   -1.5659    
   8  Prefactor     .38688        3.5136        .43910E-02   -1.5696    
   9  Prefactor     35.767        23.934        .16754E-03   -1.5588    
  10  Prefactor     25.264        26.215        .19824E-03   -1.5607    
  11  Prefactor     .51775        14.948        .72606E-03   -1.5694    
  12  Prefactor     73.829        40.014        .11572E-03   -1.5536    
  13  Prefactor     .11102E-07    4.4814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7271        6.6438        .45937E-03   -1.5664    
  15  norm          .41078E-08    5.0521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.5794        5.7572        .34186E-03   -1.5649    
  17  Prefactor     16.279        7.1275        .24783E-03   -1.5627    
  18  Prefactor     27.517        32.103        .19114E-03   -1.5603    
  19  norm           .0000        17.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .58353E-06    110.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    .58678        .31766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .55511E-10    8.4531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .33307E-09    4.1986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        1.2674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        17.650        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .16653E-09    9.3219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.5757        3.5729        .84611E-03   -1.5683    
  28  Prefactor     5.8710        4.2874        .41412E-03   -1.5660    
  29  Normalizat    .91060        .18231        .45034E-01   -.96089    
  30  Prefactor     .95888        .17274        .45754E-01   -.94113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12313e-07
Minuit parameter uncertainties:
  1  34.4787
  2  0.000319275
  3  3.99332
  4  0.0147946
  5  1.91704e-05
  6  3.9872
  7  34.2444
  8  2.3318
  9  23.9343
  10  26.215
  11  5.56384
  12  40.0139
  13  0.000446103
  14  6.64382
  15  0.000288239
  16  5.75718
  17  7.12747
  18  32.1033
  19  1.32366e-05
  20  0.016031
  21  8.99289e-06
  22  3.64024e-05
  23  7.32658e-05
  24  1.28294e-06
  25  2.61602e-05
  26  8.22058e-05
  27  3.57286
  28  4.28737
  29  0.182435
  30  0.172844
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.383e+01  4.001e+01  0.000e+00  1.000e+06 ( 1.000e-14)
404        Index:  1.851e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  9.589e-01  1.728e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.106e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.84
Ra Dec: 342.879 -49.469
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 2.18e-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) = 6244.13399221
delta logL = 0.00275392579351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6244.13220099
delta logL = 0.00454514622652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.991       1.0000          .0000       .10000E+07
     2 'Index     '    1.8892       1.0000          .0000       10.000    
     3 'Normalizat'    .90864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   6244.132     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      250 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.999        50.374        .23739E-04   -.53069E-02
   2  Index         1.8891        .41298        .47951E-02   -.41323E-03
   3  Normalizat    .90854        .20424        .24812E-03    .37724E-03
   4  Prefactor     .95995        .20395        .24185E-03    .45290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.999
  Index      = 1.88914
  Normalizat = 0.908542
  Prefactor  = 0.95995
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.132     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.999        48.737        .47477E-05   -1.5539    
   2  Index         1.8891        .39947        .19180E-03   -.67151    
   3  Normalizat    .90854        .20433        .49624E-04   -.96161    
   4  Prefactor     .95995        .20411        .48369E-04   -.94077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4995e-09
Minuit parameter uncertainties:
  1  48.7375
  2  0.40017
  3  0.204508
  4  0.204269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284725': 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) = 6244.13220086
delta logL = 0.00454527672628

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  7.100e+01  4.874e+01  0.000e+00  1.000e+06 ( 1.000e-14)
404        Index:  1.889e+00  4.002e-01  0.000e+00  1.000e+01 (-1.000e+00)
405        Scale:  2.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  9.599e-01  2.043e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.085e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.83
Ra Dec: 342.879 -49.469
Photon Index (Free Index): 1.89 +/- 0.40
Photon Flux (Free Index): 4.08e-08 +/- 2.83e-08
Energy Flux (Free Index): 3.77e-05 +/- 3.22e-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/284725/cmap_HighResolution_697593601_697852801_4FGL_J2251.5-4928_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='3.77e-05', photon_flux_error='2.12e-08', dlogl='4.55e-03', energy_flux='4.02e-05', photon_flux2='4.08e-08', job_status='DONE', time_completed='2023-02-12 02:01:53.906745', photon_index_error2='0.40', photon_index2='1.89', ts='12.84', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.22e-05', EG='0.91', time_epoch_completed='1676196113.91', return_code='0', job_id='284725', GAL2='0.96', EG2='0.91', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='2.83e-08', ts2='12.83', photon_index='1.85' WHERE bin_id='1768' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 02:01:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 284725: <4FGL_J2251.5-4928_daily_bin1768> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1768> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Feb 12 01:45:17 2023
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 01:46:41 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 01:46:41 2023
Terminated at Sun Feb 12 02:01:54 2023
Results reported at Sun Feb 12 02:01:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1768 342.879 -49.4691 697593601 697852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2251.5-4928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            997 sec.

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

