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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1687
RA = 327.925, Dec = -27.8234
tmin = 676598401, tmax = 676857601
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='700232', job_status='RUN', time_executed='2022-06-14 01:39:45.627771', time_epoch_executed='1655195985.63' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700232/ft1_4FGL_J2151.7-2749_daily_bin1687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700232/ft1_4FGL_J2151.7-2749_daily_bin1687.fits outfile=/scratch/kocevski/700232/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1687.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=676598401.0 tmax=676857601.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.93
user 2.69
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.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/700232/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1687.fits evtable="EVENTS" outfile="/scratch/kocevski/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 626

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.fits" evtable="EVENTS" scfile=/scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits sctable="SC_DATA" outfile=/scratch/kocevski/700232/ltcube_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.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/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits
.....................!
real 16.41
user 15.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits sctable="SC_DATA" expcube=/scratch/kocevski/700232/ltcube_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.fits outfile=/scratch/kocevski/700232/expmap_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.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/700232/ltcube_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.fits
.....................!
real 195.37
user 188.95
sys 5.68

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

Setting source of interest to:
4FGL J2151.7-2749 @ 327.925 -27.8234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.fits scfile=/scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits outfile=/scratch/kocevski/700232/cmap_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.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=327.925 yref=-27.8234 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.fits scfile=/scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits outfile=/scratch/kocevski/700232/cmap_HighResolution_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.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=327.925 yref=-27.8234 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700232/Model_4FGL_J2151.7-2749_daily_bin1687.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/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.fits.....................!
real 57.74
user 56.30
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.fits', '/scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits', expMap='/scratch/kocevski/700232/expmap_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.fits', expCube='/scratch/kocevski/700232/ltcube_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/700232/Model_4FGL_J2151.7-2749_daily_bin1687.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2151.7-2749'

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  7.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.714e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  6.367e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/700232/ft1_filtered_4FGL_J2151.7-2749_daily_bin1687.fits
Spacecraft file(s): /scratch/kocevski/700232/ft2_4FGL_J2151.7-2749_daily_bin1687.fits
Exposure map: /scratch/kocevski/700232/expmap_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.fits
Exposure cube: /scratch/kocevski/700232/ltcube_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/700232/Model_4FGL_J2151.7-2749_daily_bin1687.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) = 6832.18757213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.733       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13313       1.0000         .10000E-03   10000.    
     3 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9862       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14482E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3517       1.0000         .10000E-03   10000.    
     8 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19340E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.086       1.0000         .10000E-03   10000.    
    11 'norm      '    .27479E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .88191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6099       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4583       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2105       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6832.175     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2275 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.732        36.732       -.13463E-05   -.71803E-04
   2  Prefactor     .61314E-01    5.0215        .14506E-05   -.58655E-03
   3  norm          .10000E-03    6.7317       -.13589E-06** at limit **
   4  Prefactor     2.9866        4.4893        .43543E-06    .50252E-03
   5  Prefactor     .10000E-03    4.5640       -.89119E-06** at limit **
   6  Prefactor     .10000E-03    4.5416        .67367E-07** at limit **
   7  Prefactor     1.3458        10.404       -.42020E-06    .74784E-04
   8  norm          .10000E-03    4.6871       -.19229E-06** at limit **
   9  Prefactor     .10001E-03    36.310        .42483E-05** at limit **
  10  Prefactor     22.202        51.216       -.62781E-05   -.25203E-03
  11  norm          .10000E-03    5.3382        .46706E-05** at limit **
  12  norm          .88248        .33774        .10662E-06   -.30556E-02
  13  Prefactor     9.8552        8.9902       -.17335E-06   -.36495E-04
  14  Prefactor     .10000E-03    4.0794       -.83509E-07** at limit **
  15  Prefactor     .10000E-03    1.7958       -.13373E-06** at limit **
  16  norm          5.6078        14.822       -.30834E-06    .48406E-05
  17  Prefactor     .10000E-03    8.7274       -.46693E-06** at limit **
  18  norm          1.4582        1.4605       -.32721E-07   -.30028E-04
  19  Prefactor     .10000E-03    30.531       -.68998E-06** at limit **
  20  Normalizat    1.2107        .18006       -.37344E-06   -.25029E-03
  21  Prefactor     .89064        .12868        .19911E-05    .73127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.7321
  Prefactor  = 0.0613135
  norm       = 0.0001
  Prefactor  = 2.98663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34575
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 22.2021
  norm       = 0.000100001
  norm       = 0.882476
  Prefactor  = 9.85524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.60784
  Prefactor  = 0.0001
  norm       = 1.45817
  Prefactor  = 0.0001
  Normalizat = 1.21072
  Prefactor  = 0.890644
 **********
 **   18 **HESSE 
 **********

 FCN=   6832.175     FROM HESSE     STATUS=OK           321 CALLS     2596 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.732        36.816        .47075E-04   -1.4000    
   2  Prefactor     .61314E-01    11.210        .53147E-01   -1.5658    
   3  norm          .10000E-03    6.8667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9866        4.6487        .10824E-02   -1.5362    
   5  Prefactor     .10000E-03    22.878        .33066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5481        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3458        10.004        .37623E-03   -1.5476    
   8  norm          .10000E-03    4.7226        .17477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    37.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.202        53.864        .85231E-04   -1.4765    
  11  norm          .10000E-03    5.9025        .27028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .88248        .33163        .27899E-04   -1.5520    
  13  Prefactor     9.8552        8.9865        .12764E-03   -1.5080    
  14  Prefactor     .10000E-03    4.0833        .16305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8016        .10819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6078        14.805        .16961E-03   -1.5234    
  17  Prefactor     .10000E-03    8.8144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4582        1.4746        .97186E-04   -1.5466    
  19  Prefactor     .10000E-03    30.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2107        .20720        .25762E-03   -.86272    
  21  Prefactor     .89064        .15004        .21582E-03   -.96469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18642e-09
Minuit parameter uncertainties:
  1  36.8279
  2  1.65703
  3  2.21122e-05
  4  4.64921
  5  7.66233e-05
  6  7.08736e-06
  7  7.33985
  8  3.15959e-05
  9  0.0011054
  10  53.9823
  11  0.000185073
  12  0.331635
  13  8.98769
  14  7.88752e-06
  15  8.64266e-06
  16  14.8147
  17  6.80307e-05
  18  1.47462
  19  9.24123e-05
  20  0.207338
  21  0.150112
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  2.220e+01  5.398e+01  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.714e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  6.367e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  8.906e-01  1.501e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.211e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 327.925 -27.823
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700232/likelihoodResults_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.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) = 6831.6554829
delta logL = 0.519584524567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6831.63731516
delta logL = 0.537752266018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5112       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4425       1.0000          .0000       10.000    
     3 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91437       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6831.637     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      266 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5113        144.37        .39319E-02    .87848E-03
   2  Index         4.4434        4.1196        .14232        .13193E-03
   3  Normalizat    1.1540        .59712E-01    .59420E-01    .34817E-05
   4  Prefactor     .91422        .42293E-01    .45188E-01    .41185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5113
  Index      = 4.44339
  Normalizat = 1.15404
  Prefactor  = 0.91422
 **********
 **   18 **HESSE 
 **********

 FCN=   6831.637     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      299 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5113        262.98        .15728E-03   -1.5198    
   2  Index         4.4434        7.1761        .75183E-02   -.11155    
   3  Normalizat    1.1540        .18600        .26279E-03   -.88035    
   4  Prefactor     .91422        .13367        .21323E-03   -.95646    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.39268e-07
Minuit parameter uncertainties:
  1  83.1543
  2  8.20114
  3  0.186109
  4  0.133719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700232': 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) = 6831.63731293
delta logL = 0.537754501067

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  6.511e+00  8.315e+01  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  4.443e+00  8.201e+00  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  6.367e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  9.142e-01  1.337e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.154e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 327.925 -27.823
Photon Index (Free Index): 4.44 +/- 8.20
Photon Flux (Free Index): 7.09e-08 +/- 6.61e-08
Energy Flux (Free Index): 9.97e-06 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/700232/cmap_HighResolution_676598401_676857601_4FGL_J2151.7-2749_daily_bin1687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', comment='SUCCESS', energy_flux2='9.97e-06', dlogl='5.38e-01', photon_flux2='7.09e-08', job_status='DONE', time_completed='2022-06-14 01:50:09.797385', photon_index_error2='8.20', photon_index2='4.44', ts='0.20', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.30e-05', EG='1.21', time_epoch_completed='1655196609.8', return_code='0', job_id='700232', GAL2='0.91', EG2='1.15', return_code2='102', photon_flux_error2='6.61e-08', ts2='1.36', photon_index='2.71' WHERE bin_id='1687' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 14 01:50:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 700232: <4FGL_J2151.7-2749_daily_bin1687> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1687> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jun 14 01:35:19 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 01:35:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 01:35:44 2022
Terminated at Tue Jun 14 01:50:10 2022
Results reported at Tue Jun 14 01:50:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1687 327.925 -27.8234 676598401 676857601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2151.7-2749 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            891 sec.

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

