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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1291
RA = 327.925, Dec = -27.8234
tmin = 573955201, tmax = 574214401
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='6674', job_status='RUN', time_executed='2021-09-27 19:31:08.664872', time_epoch_executed='1632796268.66' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6674/ft1_4FGL_J2151.7-2749_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6674/ft2_4FGL_J2151.7-2749_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6674/ft1_4FGL_J2151.7-2749_daily_bin1291.fits outfile=/scratch/kocevski/6674/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1291.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=573955201.0 tmax=574214401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.66
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/6674/ft2_4FGL_J2151.7-2749_daily_bin1291.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/6674/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1291.fits evtable="EVENTS" outfile="/scratch/kocevski/6674/ft1_filtered_4FGL_J2151.7-2749_daily_bin1291.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.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6674/ft1_filtered_4FGL_J2151.7-2749_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/6674/ft2_4FGL_J2151.7-2749_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/6674/ltcube_573955201_574214401_4FGL_J2151.7-2749_daily_bin1291.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/6674/ft2_4FGL_J2151.7-2749_daily_bin1291.fits
.....................!
real 13.92
user 13.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6674/ft1_filtered_4FGL_J2151.7-2749_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/6674/ft2_4FGL_J2151.7-2749_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/6674/ltcube_573955201_574214401_4FGL_J2151.7-2749_daily_bin1291.fits outfile=/scratch/kocevski/6674/expmap_573955201_574214401_4FGL_J2151.7-2749_daily_bin1291.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/6674/ltcube_573955201_574214401_4FGL_J2151.7-2749_daily_bin1291.fits
.....................!
real 193.46
user 186.85
sys 4.54

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/6674/ft1_filtered_4FGL_J2151.7-2749_daily_bin1291.fits scfile=/scratch/kocevski/6674/ft2_4FGL_J2151.7-2749_daily_bin1291.fits outfile=/scratch/kocevski/6674/cmap_573955201_574214401_4FGL_J2151.7-2749_daily_bin1291.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6674/ft1_filtered_4FGL_J2151.7-2749_daily_bin1291.fits scfile=/scratch/kocevski/6674/ft2_4FGL_J2151.7-2749_daily_bin1291.fits outfile=/scratch/kocevski/6674/cmap_HighResolution_573955201_574214401_4FGL_J2151.7-2749_daily_bin1291.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6674/ft1_filtered_4FGL_J2151.7-2749_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/6674/ft2_4FGL_J2151.7-2749_daily_bin1291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6674/Model_4FGL_J2151.7-2749_daily_bin1291.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/6674/ft1_filtered_4FGL_J2151.7-2749_daily_bin1291.fits.....................!
real 54.37
user 52.32
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8724       1.0000         .10000E-03   10000.    
     3 'norm      '    .59402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.764       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    24.571       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.740       1.0000         .10000E-03   10000.    
    12 'norm      '    .78705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6138       1.0000         .10000E-03   10000.    
    16 'norm      '    27.763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.395       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2008       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98324       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=   5902.446     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2184 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.607        38.152       -.12825E-05   -.39696E-03
   2  Prefactor     8.8717        10.900        .90595E-07    .24255E-04
   3  norm          .58671        20.721       -.87840E-05    .14237E-03
   4  Prefactor     .10000E-03    2.5536        .18874E-07** at limit **
   5  Prefactor     .10000E-03    3.3495       -.18988E-06** at limit **
   6  Prefactor     18.765        15.469       -.18697E-06   -.59522E-04
   7  Prefactor     .10000E-03    3.5132       -.15675E-06** at limit **
   8  norm          24.571        11.839        .20941E-06    .35738E-03
   9  Prefactor     .10000E-03    7.4072       -.44424E-07** at limit **
  10  Prefactor     .10000E-03    28.663        .21217E-05** at limit **
  11  norm          14.740        7.0607        .37722E-06    .81747E-03
  12  norm          .78706        .35229        .58269E-08    .98673E-03
  13  Prefactor     .10000E-03    4.0035        .21579E-06** at limit **
  14  Prefactor     .10000E-03    10.047        .37722E-06** at limit **
  15  Prefactor     4.6143        4.5717        .12534E-05   -.10744E-03
  16  norm          27.764        25.260        .48803E-06    .14520E-03
  17  Prefactor     14.395        18.091        .18672E-06    .57465E-04
  18  norm          .10000E-03    1.1224        .85487E-07** at limit **
  19  Prefactor     .10000E-03    54.245       -.14566E-05** at limit **
  20  Normalizat    1.2008        .23231       -.98360E-06    .18247E-03
  21  Prefactor     .98331        .15394        .96727E-06    .20019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.607
  Prefactor  = 8.87167
  norm       = 0.586711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7648
  Prefactor  = 0.0001
  norm       = 24.571
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 14.7401
  norm       = 0.787056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61435
  norm       = 27.7637
  Prefactor  = 14.3952
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.20075
  Prefactor  = 0.983306
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.446     FROM HESSE     STATUS=OK           311 CALLS     2495 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.607        38.997        .44461E-04   -1.3899    
   2  Prefactor     8.8717        10.930        .13456E-03   -1.5112    
   3  norm          .58671        22.763        .39922E-02   -1.5555    
   4  Prefactor     .10000E-03    2.5583        .11989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3658        .13741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.765        15.489        .92461E-04   -1.4841    
   7  Prefactor     .10000E-03    3.5183        .14070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.571        11.865        .80812E-04   -1.4716    
   9  Prefactor     .10000E-03    7.4115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.740        7.1478        .10432E-03   -1.4940    
  12  norm          .78706        .35507        .29198E-04   -1.5531    
  13  Prefactor     .10000E-03    4.0149        .15022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6143        10.356        .93692E-03   -1.5278    
  16  norm          27.764        25.330        .76032E-04   -1.4654    
  17  Prefactor     14.395        18.204        .10557E-03   -1.4949    
  18  norm          .10000E-03    1.1252        .79499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2008        .27601        .30668E-03   -.86580    
  21  Prefactor     .98331        .17910        .22548E-03   -.93288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34876e-09
Minuit parameter uncertainties:
  1  39.009
  2  10.9326
  3  7.31136
  4  1.95078e-06
  5  2.24113e-05
  6  15.4922
  7  1.85968e-05
  8  11.866
  9  7.98237e-06
  10  0.000716835
  11  7.14821
  12  0.355067
  13  2.69149e-05
  14  7.42351e-05
  15  10.36
  16  25.3398
  17  18.2113
  18  5.48472e-06
  19  0.000678633
  20  0.276345
  21  0.179209
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  7.168e-04  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.833e-01  1.792e-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.201e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/6674/likelihoodResults_573955201_574214401_4FGL_J2151.7-2749_daily_bin1291.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) = 5902.44613511
delta logL = -0.00016311813215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5902.44597201
delta logL = -1.76341927727e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6337       1.0000          .0000       10.000    
     3 'Normalizat'    1.2008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98330       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=   5902.446     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.37        .90712E-02** at limit **
   2  Index         2.6368        5.4629        .50000       -.96632E-06
   3  Normalizat    1.2008        .21896        .69314E-01    .14950E-04
   4  Prefactor     .98331        .14819        .46058E-01    .11175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.6368
  Normalizat = 1.20075
  Prefactor  = 0.983306
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.446     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6368        6.3138        .50000       -.49228    
   3  Normalizat    1.2008        .25253        .30668E-03   -.86580    
   4  Prefactor     .98331        .17109        .22548E-03   -.93288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02956e-12
Minuit parameter uncertainties:
  1  3.05041e-06
  2  4.48396
  3  0.252792
  4  0.171184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6674': 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) = 5902.44597201
delta logL = -1.52203938342e-08

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  3.050e-06  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.637e+00  4.484e+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.833e-01  1.712e-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.201e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.925 -27.823

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/6674/cmap_HighResolution_573955201_574214401_4FGL_J2151.7-2749_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-27 19:40:44.796940', job_id='6674', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632796844.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-1.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1291' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 6674: <4FGL_J2151.7-2749_daily_bin1291> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1291> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 27 19:25:58 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:30:33 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:30:33 2021
Terminated at Mon Sep 27 19:40:45 2021
Results reported at Mon Sep 27 19:40:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1291 327.925 -27.8234 573955201 574214401 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 :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            887 sec.

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

