/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 158 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 = 7686
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2151.8-3027_daily_bin114
RA = 327.966, Dec = -30.46
tmin = 268876801, tmax = 269136001
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='8961', job_status='RUN', time_executed='2021-09-27 19:41:48.394547', time_epoch_executed='1632796908.39' WHERE source_name='4FGL J2151.8-3027' and cadence='daily' and bin_id='114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8961/ft1_4FGL_J2151.8-3027_daily_bin114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8961/ft1_4FGL_J2151.8-3027_daily_bin114.fits outfile=/scratch/kocevski/8961/ft1_filteredMKT_4FGL_J2151.8-3027_daily_bin114.fits ra=327.966 dec=-30.46 rad=12.0 tmin=268876801.0 tmax=269136001.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 1.72
user 1.52
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.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/8961/ft1_filteredMKT_4FGL_J2151.8-3027_daily_bin114.fits evtable="EVENTS" outfile="/scratch/kocevski/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.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.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.fits" evtable="EVENTS" scfile=/scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits sctable="SC_DATA" outfile=/scratch/kocevski/8961/ltcube_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.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/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits
.....................!
real 19.69
user 19.19
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits sctable="SC_DATA" expcube=/scratch/kocevski/8961/ltcube_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.fits outfile=/scratch/kocevski/8961/expmap_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.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/8961/ltcube_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.fits
.....................!
real 196.78
user 190.01
sys 5.07

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

Setting source of interest to:
4FGL J2151.8-3027 @ 327.966 -30.46

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.fits scfile=/scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits outfile=/scratch/kocevski/8961/cmap_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.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.966 yref=-30.46 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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.fits scfile=/scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits outfile=/scratch/kocevski/8961/cmap_HighResolution_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.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.966 yref=-30.46 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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8961/Model_4FGL_J2151.8-3027_daily_bin114.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/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.fits.....................!
real 62.54
user 60.42
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.fits', '/scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits', expMap='/scratch/kocevski/8961/expmap_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.fits', expCube='/scratch/kocevski/8961/ltcube_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8961/Model_4FGL_J2151.8-3027_daily_bin114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2151.8-3027'

4FGL J2151.8-3027
   Spectrum: LogParabola
276         norm:  7.814e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.749e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  1.851e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/8961/ft1_filtered_4FGL_J2151.8-3027_daily_bin114.fits
Spacecraft file(s): /scratch/kocevski/8961/ft2_4FGL_J2151.8-3027_daily_bin114.fits
Exposure map: /scratch/kocevski/8961/expmap_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.fits
Exposure cube: /scratch/kocevski/8961/ltcube_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8961/Model_4FGL_J2151.8-3027_daily_bin114.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) = 7438.78896378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.332       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5628       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11272E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6593       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12941E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.521       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.068       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85390       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7438.739     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1736 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.334        15.619        .15709E-05   -.13794E-04
   2  Prefactor     7.5671        20.356        .66620E-05    .11130E-03
   3  Prefactor     .10010E-03    4.2904        .21133E-05** at limit **
   4  norm          .10000E-03    1.7142        .17741E-07** at limit **
   5  Prefactor     4.6595        4.5418       -.74565E-09   -.15508E-03
   6  Prefactor     .10000E-03    3.7079       -.45394E-06** at limit **
   7  Prefactor     .10000E-03    9.3102        .25986E-05** at limit **
   8  Prefactor     .10005E-03    3.8427       -.99781E-06** at limit **
   9  norm          11.331        6.5694        .28177E-07   -.19173E-04
  10  Prefactor     .10000E-03    4.8806        .28552E-06** at limit **
  11  Prefactor     .10000E-03    13.675        .46096E-06** at limit **
  12  norm          15.520        5.6319        .87327E-08   -.19394E-03
  13  norm          3.7119        .61195        .72930E-08   -.45255E-05
  14  Prefactor     .10000E-03    2.4938        .54409E-07** at limit **
  15  Prefactor     21.071        15.514        .12127E-05    .10933E-03
  16  Prefactor     .10000E-03    4.2223       -.17510E-05** at limit **
  17  norm          .10000E-03    11.467       -.66343E-05** at limit **
  18  Prefactor     .10000E-03    4.0264        .20284E-05** at limit **
  19  Normalizat    .85374        .15605       -.44537E-06   -.13154E-03
  20  Prefactor     .87093        .10827       -.53108E-06   -.22818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3344
  Prefactor  = 7.56711
  Prefactor  = 0.000100098
  norm       = 0.0001
  Prefactor  = 4.65946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  norm       = 11.3306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5202
  norm       = 3.71192
  Prefactor  = 0.0001
  Prefactor  = 21.0706
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.853741
  Prefactor  = 0.870928
 **********
 **   18 **HESSE 
 **********

 FCN=   7438.739     FROM HESSE     STATUS=OK           289 CALLS     2025 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.334        15.582        .10580E-03   -1.4951    
   2  Prefactor     7.5671        20.318        .14583E-03   -1.5158    
   3  Prefactor     .10010E-03    16.388        .31910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7147        .11028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6595        4.5409        .17603E-03   -1.5276    
   6  Prefactor     .10000E-03    3.7584        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    20.271        .32072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.331        6.5672        .11902E-03   -1.5035    
  10  Prefactor     .10000E-03    4.8848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.520        5.6609        .10166E-03   -1.4920    
  13  norm          3.7119        .61464        .25209E-04   -1.5323    
  14  Prefactor     .10000E-03    2.4996        .13300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.071        15.560        .87262E-04   -1.4790    
  16  Prefactor     .10000E-03    4.2743        .17284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0423        .16933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .85374        .17811        .28385E-03   -.98105    
  20  Prefactor     .87093        .12357        .19706E-03   -.97164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.649e-09
Minuit parameter uncertainties:
  1  15.586
  2  20.3364
  3  0.00253777
  4  4.35241e-07
  5  4.54121
  6  2.24152e-06
  7  9.4827e-05
  8  0.00207557
  9  6.56765
  10  7.86879e-06
  11  2.0904e-05
  12  5.6611
  13  0.614639
  14  1.0344e-06
  15  15.5632
  16  3.31839e-05
  17  0.000260848
  18  4.94167e-05
  19  0.178235
  20  0.123608
Done.

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

Extracting fit parameters...

4FGL J2151.8-3027
   Spectrum: LogParabola
276         norm:  1.552e+01  5.661e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.749e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
278         beta:  1.851e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.709e-01  1.236e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  8.537e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.20
Ra Dec: 327.966 -30.460
Photon Index (Fixed Index): 2.75 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 6.30e-08
Energy Flux (Fixed Index): 3.73e-05 +/- 1.36e-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) = 7437.53926797
delta logL = 1.1999311831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7437.53831364
delta logL = 1.20088551823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.691       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9926       1.0000          .0000       5.0000    
     3 'Normalizat'    .90513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84648       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7437.538     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      206 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.691        5.5099        .25278E-02    .45784E-02
   2  alpha         1.9926        .34890        .29651        .27854E-05
   3  Normalizat    .90511        .15523        .44967E-01    .96704E-04
   4  Prefactor     .84649        .10787        .44319E-01    .63046E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.691
  alpha      = 1.99265
  Normalizat = 0.90511
  Prefactor  = 0.846495
 **********
 **   18 **HESSE 
 **********

 FCN=   7437.538     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.691        6.1884        .10111E-03   -1.4916    
   2  alpha         1.9926        .42981        .11939E-01   -.20436    
   3  Normalizat    .90511        .17713        .27677E-03   -.96281    
   4  Prefactor     .84649        .12200        .19938E-03   -.98037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2472e-09
Minuit parameter uncertainties:
  1  6.18864
  2  0.432048
  3  0.177245
  4  0.122037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8961': 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) = 7437.53831363
delta logL = 1.20088552645

Extracting fit parameters...

4FGL J2151.8-3027
   Spectrum: LogParabola
276         norm:  1.569e+01  6.189e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  1.993e+00  4.320e-01  0.000e+00  5.000e+00 ( 1.000e+00)
278         beta:  1.851e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
279           Eb:  3.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  8.465e-01  1.220e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.051e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.25
Ra Dec: 327.966 -30.460
Photon Index (Free Index): 1.99 +/- 0.43
Photon Flux (Free Index): 1.28e-07 +/- 5.79e-08
Energy Flux (Free Index): 4.59e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/8961/cmap_HighResolution_268876801_269136001_4FGL_J2151.8-3027_daily_bin114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='4.59e-05', photon_flux_error='6.30e-08', dlogl='1.20e+00', energy_flux='3.73e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-27 19:51:20.572757', photon_index_error2='0.43', photon_index2='1.99', ts='14.20', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.85', time_epoch_completed='1632797480.57', return_code='0', job_id='8961', GAL2='0.85', EG2='0.91', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='5.79e-08', ts2='17.25', photon_index='2.75' WHERE bin_id='114' AND source_name='4FGL J2151.8-3027' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 8961: <4FGL_J2151.8-3027_daily_bin114> in cluster <slac> Done

Job <4FGL_J2151.8-3027_daily_bin114> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 19:35:14 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:39:01 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:39:01 2021
Terminated at Mon Sep 27 19:51:21 2021
Results reported at Mon Sep 27 19:51:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.8-3027_daily_bin114 327.966 -30.46 268876801 269136001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2151.8-3027 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            967 sec.

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

