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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1528
RA = 327.925, Dec = -27.8234
tmin = 635385601, tmax = 635644801
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='7585', job_status='RUN', time_executed='2021-09-27 19:36:58.020231', time_epoch_executed='1632796618.02' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7585/ft1_4FGL_J2151.7-2749_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7585/ft2_4FGL_J2151.7-2749_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7585/ft1_4FGL_J2151.7-2749_daily_bin1528.fits outfile=/scratch/kocevski/7585/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1528.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=635385601.0 tmax=635644801.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.91
user 2.66
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7585/ft2_4FGL_J2151.7-2749_daily_bin1528.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/7585/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1528.fits evtable="EVENTS" outfile="/scratch/kocevski/7585/ft1_filtered_4FGL_J2151.7-2749_daily_bin1528.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7585/ft1_filtered_4FGL_J2151.7-2749_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/7585/ft2_4FGL_J2151.7-2749_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/7585/ltcube_635385601_635644801_4FGL_J2151.7-2749_daily_bin1528.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/7585/ft2_4FGL_J2151.7-2749_daily_bin1528.fits
.....................!
real 17.80
user 17.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7585/ft1_filtered_4FGL_J2151.7-2749_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/7585/ft2_4FGL_J2151.7-2749_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/7585/ltcube_635385601_635644801_4FGL_J2151.7-2749_daily_bin1528.fits outfile=/scratch/kocevski/7585/expmap_635385601_635644801_4FGL_J2151.7-2749_daily_bin1528.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/7585/ltcube_635385601_635644801_4FGL_J2151.7-2749_daily_bin1528.fits
.....................!
real 193.64
user 188.67
sys 4.45

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/7585/ft1_filtered_4FGL_J2151.7-2749_daily_bin1528.fits scfile=/scratch/kocevski/7585/ft2_4FGL_J2151.7-2749_daily_bin1528.fits outfile=/scratch/kocevski/7585/cmap_635385601_635644801_4FGL_J2151.7-2749_daily_bin1528.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.52
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7585/ft1_filtered_4FGL_J2151.7-2749_daily_bin1528.fits scfile=/scratch/kocevski/7585/ft2_4FGL_J2151.7-2749_daily_bin1528.fits outfile=/scratch/kocevski/7585/cmap_HighResolution_635385601_635644801_4FGL_J2151.7-2749_daily_bin1528.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7585/ft1_filtered_4FGL_J2151.7-2749_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/7585/ft2_4FGL_J2151.7-2749_daily_bin1528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7585/Model_4FGL_J2151.7-2749_daily_bin1528.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/7585/ft1_filtered_4FGL_J2151.7-2749_daily_bin1528.fits...........!
real 14.79
user 13.60
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.614       1.0000         .10000E-03   10000.    
     3 'norm      '    .14792E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0742       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9506.4       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9930.9       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.164       1.0000         .10000E-03   10000.    
     8 'norm      '    9971.5       1.0000         .10000E-03   10000.    
     9 'Prefactor '    148.29       1.0000         .10000E-03   10000.    
    10 'Prefactor '    263.49       1.0000         .10000E-03   10000.    
    11 'norm      '    9980.5       1.0000         .10000E-03   10000.    
    12 'norm      '    44.033       1.0000         .10000E-03   10000.    
    13 'Prefactor '    419.66       1.0000         .10000E-03   10000.    
    14 'Prefactor '    85.778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31462E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.5940       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .74200E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0509       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .36396       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   115.4417     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1886 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.506        51.526        .14709E-03    .95137E-02
   2  Prefactor     31.887        37.586       -.25606E-04   -.95143E-02
   3  norm          .12490E-03    642.53        .83383E-04** at limit **
   4  Prefactor     .12794E-03    306.74        .89987E-04** at limit **
   5  Prefactor     9643.0        459.73        .14903E-03   -.55319E-01
   6  Prefactor    10000.0        40.691        .65158E-04   -.10477E-02
   7  Prefactor     .39191E-01    1657.2        .75843E-03    .56456E-02
   8  norm         10000.0        41.598       -.77179E-04    .55222E-03
   9  Prefactor     229.11        421.41        .17315E-03   -.21898E-01
  10  Prefactor     300.79        170.05        .60008E-04   -.12825E-01
  11  norm          9999.5        7424.1       -.23056E-02    .56980E-02
  12  norm         10000.0        1080.9        .21250E-03** at limit **
  13  Prefactor     533.91        412.42        .11075E-03   -.37331E-01
  14  Prefactor     1.8742        6261.6       -.74420E-03   -.25857E-01
  15  Prefactor     .19451E-03    21.594        .16524E-03** at limit **
  16  norm          .10003E-03    123.27        .13596E-05** at limit **
  17  Prefactor     .12162E-03    88.273       -.80131E-04** at limit **
  18  norm          .10001E-03    9.3341        .15738E-05** at limit **
  19  Prefactor     .16877E-03    202.21       -.13646E-03** at limit **
  20  Normalizat    .10000E-01    .95491       -.37606E-03** at limit **
  21  Prefactor     .31831        .26319       -.24059E-05   -.31481E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5059
  Prefactor  = 31.887
  norm       = 0.000124899
  Prefactor  = 0.000127936
  Prefactor  = 9643.04
  Prefactor  = 9999.98
  Prefactor  = 0.0391906
  norm       = 9999.96
  Prefactor  = 229.108
  Prefactor  = 300.794
  norm       = 9999.53
  norm       = 10000
  Prefactor  = 533.913
  Prefactor  = 1.87424
  Prefactor  = 0.000194514
  norm       = 0.000100026
  Prefactor  = 0.000121622
  norm       = 0.000100013
  Prefactor  = 0.000168769
  Normalizat = 0.0100005
  Prefactor  = 0.318306
 **********
 **   18 **HESSE 
 **********

 FCN=   115.4417     FROM HESSE     STATUS=OK           343 CALLS     2229 TOTAL
                     EDM=   .49E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.506        50.823        .18493E-02   -1.4973    
   2  Prefactor     31.887        37.757        .17816E-02   -1.6838    
   3  norm          .12490E-03    505.82        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12794E-03    272.71        .11680E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9643.0        1785.9        .46163E-03    1.1906    
   6  Prefactor    10000.0        1662.5        .12074E-02    1.5677    
   7  Prefactor     .39191E-01    966.52        .14298E-02   -1.5668    
   8  norm         10000.0        1916.6        .18747E-02    1.5746    
   9  Prefactor     229.11        2185.0        .82736E-03   -1.2669    
  10  Prefactor     300.79        2086.5        .62433E-03   -1.2222    
  11  norm          9999.5        1587.5        .22664E-02    1.5845    
  12  norm         10000.0        740.95        .15104E-02    1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     533.91        5080.7        .49873E-03   -1.1045    
  14  Prefactor     1.8742        1188.1        .10844E-02   -1.5982    
  15  Prefactor     .19451E-03    21.297        .10685E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    117.38        .36382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12162E-03    85.348        .93875E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    9.3002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16877E-03    186.74        .37769E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    .66197        .14772       -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .31831        .28983        .37730E-01   -1.9295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00492666
Minuit parameter uncertainties:
  1  50.9864
  2  37.785
  3  0.226385
  4  0.175372
  5  1684.51
  6  12.8061
  7  12.5006
  8  17.416
  9  1493.14
  10  1676.03
  11  56.3135
  12  1.52586
  13  2248.13
  14  96.3612
  15  0.0897608
  16  0.00349673
  17  0.0860396
  18  0.000695868
  19  0.227359
  20  0.00115157
  21  0.291158
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  3.008e+02  1.676e+03  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:  3.183e-01  2.912e-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.000e-02  1.152e-03  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.41121138597e-06

TS (Fixed Index): 0.14
Ra Dec: 327.925 -27.823
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.88e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7585/likelihoodResults_635385601_635644801_4FGL_J2151.7-2749_daily_bin1528.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) = 91.0497843445
delta logL = 24.3919287212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 91.049740364
delta logL = 24.3919727017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   91.04974     FROM MIGRAD    STATUS=CONVERGED      9 CALLS       49 TOTAL
                     EDM=   .23E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .74208E-01    .32078E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   91.04974     FROM HESSE     STATUS=OK             5 CALLS       54 TOTAL
                     EDM=   .23E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .74196E-01    .80592E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27534e-16
Minuit parameter uncertainties:
  1  2.24391e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7585': 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) = 91.049740364
delta logL = 24.3919727017

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
267        Index:  1.000e+01  2.244e-09  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:  3.174e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 48.18
Ra Dec: 327.925 -27.823
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.26e+00 +/- 4.75e-09
Energy Flux (Free Index): 1.40e+02 +/- 5.30e-07

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/7585/cmap_HighResolution_635385601_635644801_4FGL_J2151.7-2749_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.88e+04', comment='SUCCESS', energy_flux2='1.40e+02', dlogl='2.44e+01', photon_flux2='1.26e+00', job_status='DONE', time_completed='2021-09-27 19:43:04.282227', photon_index_error2='0.00', photon_index2='10.00', ts='0.00', fit_tolerance='1e-08', GAL='0.32', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='5.30e-07', EG='0.01', time_epoch_completed='1632796984.28', return_code='0', job_id='7585', GAL2='0.32', EG2='0.01', return_code2='0', photon_flux_error2='4.75e-09', ts2='48.18', photon_index='2.71' WHERE bin_id='1528' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:43:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 7585: <4FGL_J2151.7-2749_daily_bin1528> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1528> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 19:30:41 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:35:37 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:35:37 2021
Terminated at Mon Sep 27 19:43:05 2021
Results reported at Mon Sep 27 19:43:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1528 327.925 -27.8234 635385601 635644801 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 :                                   328.44 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             434.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   447 sec.
    Turnaround time :                            744 sec.

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

