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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1583
RA = 327.925, Dec = -27.8234
tmin = 649641601, tmax = 649900801
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='7662', job_status='RUN', time_executed='2021-09-27 19:37:38.695863', time_epoch_executed='1632796658.7' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7662

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7662/ft1_4FGL_J2151.7-2749_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7662/ft2_4FGL_J2151.7-2749_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7662/ft1_4FGL_J2151.7-2749_daily_bin1583.fits outfile=/scratch/kocevski/7662/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1583.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=649641601.0 tmax=649900801.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.67
user 2.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7662/ft1_filtered_4FGL_J2151.7-2749_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/7662/ft2_4FGL_J2151.7-2749_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/7662/ltcube_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.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/7662/ft2_4FGL_J2151.7-2749_daily_bin1583.fits
.....................!
real 14.99
user 14.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7662/ft1_filtered_4FGL_J2151.7-2749_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/7662/ft2_4FGL_J2151.7-2749_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/7662/ltcube_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.fits outfile=/scratch/kocevski/7662/expmap_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.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/7662/ltcube_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.fits
.....................!
real 192.29
user 186.25
sys 5.53

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/7662/ft1_filtered_4FGL_J2151.7-2749_daily_bin1583.fits scfile=/scratch/kocevski/7662/ft2_4FGL_J2151.7-2749_daily_bin1583.fits outfile=/scratch/kocevski/7662/cmap_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7662/ft1_filtered_4FGL_J2151.7-2749_daily_bin1583.fits scfile=/scratch/kocevski/7662/ft2_4FGL_J2151.7-2749_daily_bin1583.fits outfile=/scratch/kocevski/7662/cmap_HighResolution_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/7662/ft1_filtered_4FGL_J2151.7-2749_daily_bin1583.fits', '/scratch/kocevski/7662/ft2_4FGL_J2151.7-2749_daily_bin1583.fits', expMap='/scratch/kocevski/7662/expmap_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.fits', expCube='/scratch/kocevski/7662/ltcube_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/7662/Model_4FGL_J2151.7-2749_daily_bin1583.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/7662/ft1_filtered_4FGL_J2151.7-2749_daily_bin1583.fits
Spacecraft file(s): /scratch/kocevski/7662/ft2_4FGL_J2151.7-2749_daily_bin1583.fits
Exposure map: /scratch/kocevski/7662/expmap_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.fits
Exposure cube: /scratch/kocevski/7662/ltcube_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/7662/Model_4FGL_J2151.7-2749_daily_bin1583.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 282.719233825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 280.017415562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5723       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8454       1.0000         .10000E-03   10000.    
     3 'norm      '    .17161E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28872E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58328E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .29834E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5020       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.552       1.0000         .10000E-03   10000.    
    11 'norm      '    154.58       1.0000         .10000E-03   10000.    
    12 'norm      '    .11009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12344E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57098E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1112       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0131       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13744       1.0000         .10000E-03   10000.    
    18 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    573.87       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2733       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   279.8914     FROM MIGRAD    STATUS=CONVERGED    331 CALLS      595 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5723        1.0061         .0000         .0000    
   2  Prefactor     1.8454        1.0424         .0000         .0000    
   3  norm          .10001E-03    .20741        .30624E-04** at limit **
   4  Prefactor     .10000E-03    .20571        .85231E-05** at limit **
   5  Prefactor     .10000E-03    .27840       -.46926E-06** at limit **
   6  Prefactor     .10000E-03    .21006        .14748E-04** at limit **
   7  Prefactor     .10000E-03    .27770        .16977E-05** at limit **
   8  norm          .10001E-03    .28601       -.47260E-05** at limit **
   9  Prefactor     .10000E-03    .56259E-01    .22134E-03** at limit **
  10  Prefactor     1762.9        10.003       -.88788E-04   -.18566E-04
  11  norm          45.121        .54328        .74899E-04    .13077E-04
  12  norm          .10000E-03    .20571       -.40785E-05** at limit **
  13  Prefactor     .10000E-03    .20571       -.28319E-04** at limit **
  14  Prefactor     .10000E-03    .21644        .20698E-04** at limit **
  15  Prefactor     9.5836        1.1636       -.17018E-04    .14426E-03
  16  norm          .10000E-03    .13300       -.42752E-06** at limit **
  17  Prefactor     .10000E-03    .23465        .33171E-05** at limit **
  18  norm          .10000E-03    .20571        .82690E-06** at limit **
  19  Prefactor     571.08        .99772       -.15842E-06   -.20027E-01
  20  Normalizat    .10000E-01    .25772       -.13919E-04** at limit **
  21  Prefactor     1.2853        1.0874       -.18221E-04    .88617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5723
  Prefactor  = 1.84539
  norm       = 0.000100014
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 1762.92
  norm       = 45.1207
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 9.58357
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 571.084
  Normalizat = 0.01
  Prefactor  = 1.28527
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   279.8914     FROM HESSE     STATUS=FAILED        11 CALLS      606 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     535.91        531.28         .0000       -1.5280    
   2  Prefactor     1.8454        1.0424         .0000       -1.5436    
   3  norm          .10001E-03    .20741        .30624E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .20571        .85231E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .27840       -.46926E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .21006        .14748E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .27770        .16977E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    .28601       -.47260E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .56259E-01    .22134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1762.9        10.003       -.88788E-04   -.70419    
  11  norm          45.121        .54328        .74899E-04   -1.4364    
  12  norm          .10000E-03    .20571       -.40785E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20571       -.28319E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .21644        .20698E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5836        1.1636       -.17018E-04   -1.6327    
  16  norm          .10000E-03    .13300       -.42752E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .23465        .33171E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20571        .82690E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     571.08        .99772       -.15842E-06   -1.0882    
  20  Normalizat    .10000E-01    .25772       -.13919E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2853        1.0874       -.18221E-04   -.83746    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.41593e-09
Minuit parameter uncertainties:
  1  1.00611
  2  1.04244
  3  0.000109441
  4  2.84835e-05
  5  1.88304e-06
  6  5.68579e-05
  7  1.29747e-07
  8  0.00012981
  9  3.24347e-06
  10  10.0026
  11  0.543275
  12  1.15355e-07
  13  6.21835e-05
  14  2.04511e-05
  15  1.16364
  16  8.55481e-06
  17  8.46789e-06
  18  8.36414e-06
  19  0.997716
  20  6.20509e-06
  21  1.10749
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 279.891395365

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.763e+03  1.000e+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:  1.285e+00  1.107e+00  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  6.205e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 327.925 -27.823
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 1.57e-06 +/- 8.87e-09
Energy Flux (Fixed Index): 3.73e-04 +/- 2.11e-06

TS (Fixed Index): 1.31
Ra Dec: 327.925 -27.823
Photon Flux Upper Limit: 6.25e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7662/likelihoodResults_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.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) = 279.88155639
delta logL = 0.0098389752153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 279.877192493
delta logL = 0.0142028725811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1553.2       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9070       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2831       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=   279.8772     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      252 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1554.2        2072.0        .55217E-04    .13383E-05
   2  Index         2.9062        1.1561        .32080E-03    .25029E-06
   3  Normalizat    .10000E-01    1.7278        .10882E-01** at limit **
   4  Prefactor     1.2833        .39338        .18974E-03    .58297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1554.22
  Index      = 2.90621
  Normalizat = 0.01
  Prefactor  = 1.28333
 **********
 **   18 **HESSE 
 **********

 FCN=   279.8772     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1554.2        2069.7        .11043E-04   -.76032    
   2  Index         2.9062        1.1546        .12832E-04   -.43208    
   3  Normalizat    .10000E-01    1.7285        .21764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2833        .39310        .37947E-04   -.83804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9468e-11
Minuit parameter uncertainties:
  1  2202.91
  2  1.16739
  3  2.65959e-05
  4  0.394006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7662': 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) = 279.877190886
delta logL = 0.0142044789984

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.554e+03  2.203e+03  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.906e+00  1.167e+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:  1.283e+00  3.940e-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  2.660e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 327.925 -27.823
Photon Index (Free Index): 2.91 +/- 1.17
Photon Flux (Free Index): 1.77e-06 +/- 2.29e-06
Energy Flux (Free Index): 3.71e-04 +/- 4.12e-04

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/7662/cmap_HighResolution_649641601_649900801_4FGL_J2151.7-2749_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-01', comment='SUCCESS', photon_flux='1.57e-06', energy_flux2='3.71e-04', photon_flux_error='8.87e-09', dlogl='1.42e-02', energy_flux='3.73e-04', photon_flux2='1.77e-06', job_status='DONE', time_completed='2021-09-27 19:43:09.231714', photon_index_error2='1.17', photon_index2='2.91', ts='1.31', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='6.25e-06', energy_flux_error2='4.12e-04', EG='0.01', time_epoch_completed='1632796989.23', return_code='101', job_id='7662', GAL2='1.28', EG2='0.01', return_code2='0', energy_flux_error='2.11e-06', photon_flux_error2='2.29e-06', ts2='1.42', photon_index='2.71' WHERE bin_id='1583' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:43:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 7662: <4FGL_J2151.7-2749_daily_bin1583> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1583> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 19:30:48 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:36:31 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:36:31 2021
Terminated at Mon Sep 27 19:43:10 2021
Results reported at Mon Sep 27 19:43:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1583 327.925 -27.8234 649641601 649900801 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 :                                   318.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   398 sec.
    Turnaround time :                            742 sec.

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

