/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 56 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 = 7474
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1150
RA = 327.925, Dec = -27.8234
tmin = 537408001, tmax = 537667201
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='6473', job_status='RUN', time_executed='2021-09-27 19:29:48.048426', time_epoch_executed='1632796188.05' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6473/ft1_4FGL_J2151.7-2749_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6473/ft1_4FGL_J2151.7-2749_daily_bin1150.fits outfile=/scratch/kocevski/6473/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1150.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=537408001.0 tmax=537667201.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.56
user 4.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6473/ft1_filtered_4FGL_J2151.7-2749_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/6473/ltcube_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.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/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits
.....................!
real 14.39
user 14.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6473/ft1_filtered_4FGL_J2151.7-2749_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/6473/ltcube_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.fits outfile=/scratch/kocevski/6473/expmap_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.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/6473/ltcube_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.fits
.....................!
real 191.39
user 186.19
sys 4.56

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/6473/ft1_filtered_4FGL_J2151.7-2749_daily_bin1150.fits scfile=/scratch/kocevski/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits outfile=/scratch/kocevski/6473/cmap_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6473/ft1_filtered_4FGL_J2151.7-2749_daily_bin1150.fits scfile=/scratch/kocevski/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits outfile=/scratch/kocevski/6473/cmap_HighResolution_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6473/ft1_filtered_4FGL_J2151.7-2749_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6473/Model_4FGL_J2151.7-2749_daily_bin1150.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/6473/ft1_filtered_4FGL_J2151.7-2749_daily_bin1150.fits.....................!
real 43.93
user 42.61
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/6473/ft1_filtered_4FGL_J2151.7-2749_daily_bin1150.fits', '/scratch/kocevski/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits', expMap='/scratch/kocevski/6473/expmap_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.fits', expCube='/scratch/kocevski/6473/ltcube_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/6473/Model_4FGL_J2151.7-2749_daily_bin1150.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/6473/ft1_filtered_4FGL_J2151.7-2749_daily_bin1150.fits
Spacecraft file(s): /scratch/kocevski/6473/ft2_4FGL_J2151.7-2749_daily_bin1150.fits
Exposure map: /scratch/kocevski/6473/expmap_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.fits
Exposure cube: /scratch/kocevski/6473/ltcube_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/6473/Model_4FGL_J2151.7-2749_daily_bin1150.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) = 4667.82366572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.993       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40546E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .27294E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1576       1.0000         .10000E-03   10000.    
    11 'norm      '    .47233       1.0000         .10000E-03   10000.    
    12 'norm      '    .91772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1690       1.0000         .10000E-03   10000.    
    16 'norm      '    23.644       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8023       1.0000         .10000E-03   10000.    
    18 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17078E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0913       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98523       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4667.817     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     2918 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.002        35.606        .60444E-04    .31222E-04
   2  Prefactor     .10000E-03    6.6622        .17134E-02** at limit **
   3  norm          .10000E-03    4.0511        .13420E-02** at limit **
   4  Prefactor     .10000E-03    1.9053        .92057E-03** at limit **
   5  Prefactor     .10000E-03    11.278        .58960E-01** at limit **
   6  Prefactor     28.982        20.083        .74424E-04   -.27181E-03
   7  Prefactor     .10000E-03    3.7527        .12924E-02** at limit **
   8  norm          .10000E-03    26.357        .38211E-02** at limit **
   9  Prefactor     .10000E-03    15.349        .18142E-02** at limit **
  10  Prefactor     9.1042        149.99        .13244E-03   -.15451E-04
  11  norm          .49072        34.966        .24465E-02    .92473E-03
  12  norm          .91747        .49133        .31259E-04   -.19825E-02
  13  Prefactor     .10000E-03    3.1589        .11855E-02** at limit **
  14  Prefactor     .10000E-03    7.7558        .18142E-02** at limit **
  15  Prefactor     2.1789        12.985        .27962E-03    .44398E-04
  16  norm          23.613        25.709        .82378E-04    .10635E-03
  17  Prefactor     2.7960        26.762        .24302E-03    .26754E-03
  18  norm          .10000E-03    1.6373        .85173E-03** at limit **
  19  Prefactor     .56110        114.12        .19506        .54551E-04
  20  Normalizat    1.0908        .30170        .28715E-03    .28674E-03
  21  Prefactor     .98538        .18685        .20614E-03    .38346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.0022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 28.9822
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.10419
  norm       = 0.490719
  norm       = 0.917474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17886
  norm       = 23.6131
  Prefactor  = 2.79603
  norm       = 0.0001
  Prefactor  = 0.561103
  Normalizat = 1.0908
  Prefactor  = 0.985383
 **********
 **   18 **HESSE 
 **********

 FCN=   4667.817     FROM HESSE     STATUS=OK           317 CALLS     3235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.002        35.604        .24178E-05   -1.4380    
   2  Prefactor     .10000E-03    6.6644        .34269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.0512        .26841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9053        .18411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.473        .62058E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.982        20.082        .14885E-04   -1.4631    
   7  Prefactor     .10000E-03    3.7527        .25847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    26.576        .76422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1042        147.03        .52976E-05   -1.5104    
  11  norm          .49072        32.884        .48930E-03   -1.5568    
  12  norm          .91747        .48629        .62518E-05   -1.5516    
  13  Prefactor     .10000E-03    3.1590        .23709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.7561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1789        12.964        .11185E-04   -1.5413    
  16  norm          23.613        25.716        .16476E-04   -1.4736    
  17  Prefactor     2.7960        26.800        .97208E-05   -1.5374    
  18  norm          .10000E-03    1.6373        .17035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .56110        124.87        .18411       -1.5558    
  20  Normalizat    1.0908        .29991        .57430E-04   -.90048    
  21  Prefactor     .98538        .18663        .41227E-04   -.93218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02666e-09
Minuit parameter uncertainties:
  1  35.6213
  2  4.45506e-05
  3  1.29309e-05
  4  5.93786e-06
  5  0.000275632
  6  20.087
  7  2.17347e-06
  8  0.000185708
  9  7.34422e-05
  10  73.3876
  11  8.03796
  12  0.486294
  13  5.86887e-06
  14  2.63503e-06
  15  10.6327
  16  25.7281
  17  17.3226
  18  2.09798e-06
  19  16.775
  20  0.300379
  21  0.186756
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  9.104e+00  7.339e+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:  9.854e-01  1.868e-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.091e+00  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/6473/likelihoodResults_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.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) = 4667.24055838
delta logL = 0.57645363369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4667.21332718
delta logL = 0.603684836709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57662E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9992       1.0000          .0000       10.000    
     3 'Normalizat'    1.0255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0160       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=   4667.213     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      489 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57585E-03    .35705E-01    .43736E-03** at limit **
   2  Index        10.0000        9.7964        .50000    ** at limit **
   3  Normalizat    1.0253        .10855        .66634E-01   -.17819E-03
   4  Prefactor     1.0161        .73094E-01    .42561E-01   -.20860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000575848
  Index      = 10
  Normalizat = 1.02528
  Prefactor  = 1.01612
 **********
 **   18 **HESSE 
 **********

 FCN=   4667.213     FROM HESSE     STATUS=OK            35 CALLS      524 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57585E-03    .70588E-03    .19529E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.6632        .46677        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0253        .26884        .29476E-03   -.92188    
   4  Prefactor     1.0161        .18216        .20331E-03   -.92194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51652e-10
Minuit parameter uncertainties:
  1  0.000705882
  2  2.63056e-05
  3  0.269201
  4  0.18227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6473': 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) = 4667.2133187
delta logL = 0.603693317008

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  5.758e-04  7.059e-04  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  1.000e+01  2.631e-05  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:  1.016e+00  1.823e-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.025e+00  2.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 327.925 -27.823
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 7.23e-08 +/- 8.58e-08
Energy Flux (Free Index): 8.08e-06 +/- 9.66e-06

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/6473/cmap_HighResolution_537408001_537667201_4FGL_J2151.7-2749_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', energy_flux2='8.08e-06', dlogl='6.04e-01', photon_flux2='7.23e-08', job_status='DONE', time_completed='2021-09-27 19:39:35.619613', photon_index_error2='0.00', photon_index2='10.00', ts='0.02', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='9.66e-06', EG='1.09', time_epoch_completed='1632796775.62', return_code='0', job_id='6473', GAL2='1.02', EG2='1.03', return_code2='0', photon_flux_error2='8.58e-08', ts2='1.29', photon_index='2.71' WHERE bin_id='1150' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:39:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 6473: <4FGL_J2151.7-2749_daily_bin1150> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1150> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 27 19:25:41 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:28:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 19:28:42 2021
Terminated at Mon Sep 27 19:39:36 2021
Results reported at Mon Sep 27 19:39:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1150 327.925 -27.8234 537408001 537667201 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 :                                   566.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            835 sec.

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

