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


Performing analysis on: 4FGL_J2251.5-4928_daily_bin1697
RA = 342.879, Dec = -49.4691
tmin = 679190401, tmax = 679449601
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='857718', job_status='RUN', time_executed='2022-07-14 00:36:38.144504', time_epoch_executed='1657784198.14' WHERE source_name='4FGL J2251.5-4928' and cadence='daily' and bin_id='1697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857718/ft1_4FGL_J2251.5-4928_daily_bin1697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857718/ft1_4FGL_J2251.5-4928_daily_bin1697.fits outfile=/scratch/kocevski/857718/ft1_filteredMKT_4FGL_J2251.5-4928_daily_bin1697.fits ra=342.879 dec=-49.4691 rad=12.0 tmin=679190401.0 tmax=679449601.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.45
user 3.20
sys 0.24

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

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

Number of photons that the gtmktime cut: 476

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857718/ft1_filtered_4FGL_J2251.5-4928_daily_bin1697.fits" evtable="EVENTS" scfile=/scratch/kocevski/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits sctable="SC_DATA" outfile=/scratch/kocevski/857718/ltcube_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.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/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits
.....................!
real 11.80
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857718/ft1_filtered_4FGL_J2251.5-4928_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits sctable="SC_DATA" expcube=/scratch/kocevski/857718/ltcube_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.fits outfile=/scratch/kocevski/857718/expmap_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.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/857718/ltcube_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.fits
.....................!
real 191.15
user 185.54
sys 5.23

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/857718/ft1_filtered_4FGL_J2251.5-4928_daily_bin1697.fits scfile=/scratch/kocevski/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits outfile=/scratch/kocevski/857718/cmap_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857718/ft1_filtered_4FGL_J2251.5-4928_daily_bin1697.fits scfile=/scratch/kocevski/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits outfile=/scratch/kocevski/857718/cmap_HighResolution_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857718/ft1_filtered_4FGL_J2251.5-4928_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857718/Model_4FGL_J2251.5-4928_daily_bin1697.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/857718/ft1_filtered_4FGL_J2251.5-4928_daily_bin1697.fits.....................!
real 40.71
user 39.36
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857718/ft1_filtered_4FGL_J2251.5-4928_daily_bin1697.fits', '/scratch/kocevski/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits', expMap='/scratch/kocevski/857718/expmap_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.fits', expCube='/scratch/kocevski/857718/ltcube_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857718/Model_4FGL_J2251.5-4928_daily_bin1697.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  1.000e-04  1.000e+04 ( 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/857718/ft1_filtered_4FGL_J2251.5-4928_daily_bin1697.fits
Spacecraft file(s): /scratch/kocevski/857718/ft2_4FGL_J2251.5-4928_daily_bin1697.fits
Exposure map: /scratch/kocevski/857718/expmap_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.fits
Exposure cube: /scratch/kocevski/857718/ltcube_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857718/Model_4FGL_J2251.5-4928_daily_bin1697.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) = 5202.78668053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.834       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13132E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .76085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1940       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.603       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.411       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7884       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.676       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.5306       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4861       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.0508       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.0530       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .54794       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1495       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73215       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.

 FCN=   5202.782     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4346 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.823        37.612        .78524E-07   -.18540E-04
   2  Prefactor     10.798        10.432        .10473E-06   -.45870E-04
   3  Prefactor     6.0045        4.4598        .74161E-07   -.18494E-04
   4  Prefactor     .10000E-03    271.84       -.42647E-06** at limit **
   5  norm          .10000E-03    2.7159       -.99654E-08** at limit **
   6  Prefactor     .76113        2.1688        .10429E-05    .61683E-03
   7  Prefactor     .10000E-03    15.008        .24204E-06** at limit **
   8  Prefactor     .10000E-03    1.7730        .79433E-09** at limit **
   9  Prefactor     .10000E-03    22.653       -.42350E-06** at limit **
  10  Prefactor     .10000E-03    13.687        .48279E-07** at limit **
  11  Prefactor     4.1870        13.356        .11884E-05    .69049E-04
  12  Prefactor     25.645        137.54        .88376E-06    .57103E-04
  13  Prefactor     .10000E-03    4.9456       -.18183E-07** at limit **
  14  Prefactor     .10000E-03    10.331        .17744E-06** at limit **
  15  Prefactor     11.410        15.162        .20245E-06   -.28239E-04
  16  norm          .10000E-03    3.5157        .88275E-08** at limit **
  17  norm          .10000E-03    3.3824       -.97312E-08** at limit **
  18  norm          4.7872        4.1037        .92072E-09   -.40412E-04
  19  Prefactor     15.676        7.0096        .16439E-07   -.10239E-03
  20  Prefactor     .10000E-03    25.474        .28109E-06** at limit **
  21  norm          .10000E-03    2.8267       -.17149E-07** at limit **
  22  Prefactor     .10000E-03    4.1765       -.59418E-08** at limit **
  23  norm          .10000E-03    .79015       -.24441E-07** at limit **
  24  norm          4.5297        4.2832        .14685E-06   -.27467E-04
  25  Prefactor     8.4865        12.236        .18058E-06   -.40901E-05
  26  Prefactor     6.0508        3.2980       -.41906E-07   -.32987E-03
  27  Prefactor     .10000E-03    9.0681       -.70278E-08** at limit **
  28  norm          .10000E-03    11.012       -.30530E-06** at limit **
  29  Prefactor     1.0536        2.6284        .11929E-05    .80182E-03
  30  Prefactor     .55333        5.4990        .24777E-05   -.83617E-03
  31  Normalizat    1.1494        .18461       -.92202E-06   -.29741E-03
  32  Prefactor     .73222        .17224       -.79196E-07   -.19638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8229
  Prefactor  = 10.798
  Prefactor  = 6.0045
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.76113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18702
  Prefactor  = 25.6451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.41
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.78718
  Prefactor  = 15.6758
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.52973
  Prefactor  = 8.48653
  Prefactor  = 6.05082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.05364
  Prefactor  = 0.553334
  Normalizat = 1.14942
  Prefactor  = 0.732216
 **********
 **   18 **HESSE 
 **********

 FCN=   5202.782     FROM HESSE     STATUS=OK           659 CALLS     5005 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.823        37.580        .68905E-04   -1.4544    
   2  Prefactor     10.798        10.406        .12172E-03   -1.5051    
   3  Prefactor     6.0045        4.4525        .12413E-03   -1.5218    
   4  Prefactor     .10000E-03    272.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7182        .11609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .76113        2.1017        .18071E-02   -1.5533    
   7  Prefactor     .10000E-03    15.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7807        .93781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1870        13.258        .19679E-03   -1.5299    
  12  Prefactor     25.645        139.58        .79169E-04   -1.4695    
  13  Prefactor     .10000E-03    4.9986        .15660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.410        14.960        .11860E-03   -1.5032    
  16  norm          .10000E-03    3.5189        .13209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3937        .12951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7872        4.0983        .13167E-03   -1.5270    
  19  Prefactor     15.676        6.9624        .10116E-03   -1.4916    
  20  Prefactor     .10000E-03    25.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8686        .11814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1810        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4914        .12058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.5297        4.2745        .14037E-03   -1.5282    
  25  Prefactor     8.4865        12.218        .13761E-03   -1.5125    
  26  Prefactor     6.0508        3.2871        .92785E-04   -1.5216    
  27  Prefactor     .10000E-03    9.0905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    11.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.0536        2.5451        .20157E-02   -1.5503    
  30  Prefactor     .55333        10.453        .24519E-02   -1.5559    
  31  Normalizat    1.1494        .20994        .21898E-03   -.88181    
  32  Prefactor     .73222        .19576        .25926E-03   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45539e-09
Minuit parameter uncertainties:
  1  37.6062
  2  10.4075
  3  4.45278
  4  0.000293338
  5  2.49551e-07
  6  2.10194
  7  9.9375e-05
  8  3.86138e-07
  9  0.000163956
  10  3.94848e-05
  11  13.2671
  12  120.095
  13  1.66115e-06
  14  4.50792e-05
  15  14.965
  16  1.98224e-06
  17  6.57095e-07
  18  4.09853
  19  6.96271
  20  0.000142259
  21  2.86275e-07
  22  2.39839e-06
  23  1.4185e-07
  24  4.27475
  25  12.2215
  26  3.28717
  27  6.02867e-06
  28  8.48373e-05
  29  2.54533
  30  4.81048
  31  0.210089
  32  0.195945
Done.

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

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.000e-04  4.508e-05  1.000e-04  1.000e+04 ( 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:  7.322e-01  1.959e-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:  1.149e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.879 -49.469
Photon Flux Upper Limit: 3.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857718/likelihoodResults_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.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): 102
logL (Free Index) = 5202.78251883
delta logL = -0.000443049197202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5202.78207683
delta logL = -1.05406525108e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12434E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8280       1.0000          .0000       10.000    
     3 'Normalizat'    1.1494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73218       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=   5202.782     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10218E-03    112.88        .18142E-02** at limit **
   2  Index         1.7532        8.4003        .50000        .14854E-04
   3  Normalizat    1.1494        .14081E-01    .21898E-03    .13239E-04
   4  Prefactor     .73222        .13670E-01    .25926E-03    .11138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102179
  Index      = 1.75316
  Normalizat = 1.14942
  Prefactor  = 0.732216
 **********
 **   18 **HESSE 
 **********

 FCN=   5202.782     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10218E-03    469.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7532        7.4427        .50000       -.70675    
   3  Normalizat    1.1494        .29980E-01    .87591E-05   -.88180    
   4  Prefactor     .73222        .29104E-01    .10371E-04   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.47747e-08
Minuit parameter uncertainties:
  1  0.0644962
  2  760.556
  3  0.0299807
  4  0.0291051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857718': 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): 102
logL (Free Index) = 5202.78207545
delta logL = 3.30875082e-07

Extracting fit parameters...

4FGL J2251.5-4928
   Spectrum: PowerLaw
403    Prefactor:  1.022e-04  6.450e-02  1.000e-04  1.000e+04 ( 1.000e-14)
404        Index:  1.753e+00  7.606e+02  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:  7.322e-01  2.911e-02  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:  1.149e+00  2.998e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.879 -49.469

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/857718/cmap_HighResolution_679190401_679449601_4FGL_J2251.5-4928_daily_bin1697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-03', job_status='DONE', photon_flux_upper_limit='3.09e-08', time_completed='2022-07-14 00:49:52.055582', job_id='857718', GAL2='0.73', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1657784992.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1697' AND source_name='4FGL J2251.5-4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul 14 00:49:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 857718: <4FGL_J2251.5-4928_daily_bin1697> in cluster <slac> Done

Job <4FGL_J2251.5-4928_daily_bin1697> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jul 14 00:35:54 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 14 00:35:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 14 00:35:55 2022
Terminated at Thu Jul 14 00:49:52 2022
Results reported at Thu Jul 14 00:49:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2251.5-4928_daily_bin1697 342.879 -49.4691 679190401 679449601 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 :                                   796.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

