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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1531
RA = 327.925, Dec = -27.8234
tmin = 636163201, tmax = 636422401
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='7589', job_status='RUN', time_executed='2021-09-27 19:36:02.741031', time_epoch_executed='1632796562.74' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7589

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7589/ft1_4FGL_J2151.7-2749_daily_bin1531.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7589/ft2_4FGL_J2151.7-2749_daily_bin1531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7589/ft1_4FGL_J2151.7-2749_daily_bin1531.fits outfile=/scratch/kocevski/7589/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1531.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=636163201.0 tmax=636422401.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.70
user 3.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7589/ft1_filtered_4FGL_J2151.7-2749_daily_bin1531.fits" evtable="EVENTS" scfile=/scratch/kocevski/7589/ft2_4FGL_J2151.7-2749_daily_bin1531.fits sctable="SC_DATA" outfile=/scratch/kocevski/7589/ltcube_636163201_636422401_4FGL_J2151.7-2749_daily_bin1531.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/7589/ft2_4FGL_J2151.7-2749_daily_bin1531.fits
.....................!
real 14.01
user 13.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7589/ft1_filtered_4FGL_J2151.7-2749_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/7589/ft2_4FGL_J2151.7-2749_daily_bin1531.fits sctable="SC_DATA" expcube=/scratch/kocevski/7589/ltcube_636163201_636422401_4FGL_J2151.7-2749_daily_bin1531.fits outfile=/scratch/kocevski/7589/expmap_636163201_636422401_4FGL_J2151.7-2749_daily_bin1531.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/7589/ltcube_636163201_636422401_4FGL_J2151.7-2749_daily_bin1531.fits
.....................!
real 191.76
user 185.64
sys 5.51

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/7589/ft1_filtered_4FGL_J2151.7-2749_daily_bin1531.fits scfile=/scratch/kocevski/7589/ft2_4FGL_J2151.7-2749_daily_bin1531.fits outfile=/scratch/kocevski/7589/cmap_636163201_636422401_4FGL_J2151.7-2749_daily_bin1531.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7589/ft1_filtered_4FGL_J2151.7-2749_daily_bin1531.fits scfile=/scratch/kocevski/7589/ft2_4FGL_J2151.7-2749_daily_bin1531.fits outfile=/scratch/kocevski/7589/cmap_HighResolution_636163201_636422401_4FGL_J2151.7-2749_daily_bin1531.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7589/ft1_filtered_4FGL_J2151.7-2749_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/7589/ft2_4FGL_J2151.7-2749_daily_bin1531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7589/Model_4FGL_J2151.7-2749_daily_bin1531.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/7589/ft1_filtered_4FGL_J2151.7-2749_daily_bin1531.fits.....................!
real 55.42
user 54.03
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9603       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.1253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10932E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.687       1.0000         .10000E-03   10000.    
    11 'norm      '    12.366       1.0000         .10000E-03   10000.    
    12 'norm      '    .92458       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.218       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7601       1.0000         .10000E-03   10000.    
    18 'norm      '    .18838E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.220       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2481       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89948       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=   6462.699     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2213 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6454        .15043E-06** at limit **
   2  Prefactor     .10000E-03    2.5845        .19505E-06** at limit **
   3  norm          .10000E-03    2.5160        .17155E-07** at limit **
   4  Prefactor     .10000E-03    5.2484        .38811E-06** at limit **
   5  Prefactor     5.9594        7.6301       -.22869E-06    .15129E-04
   6  Prefactor     11.417        15.728       -.16313E-06   -.39820E-05
   7  Prefactor     .10000E-03    4.6682        .23284E-07** at limit **
   8  norm          6.1250        5.6730        .42775E-06    .99650E-04
   9  Prefactor     .10000E-03    9.6370       -.29012E-05** at limit **
  10  Prefactor     13.632        47.342       -.18843E-05   -.69181E-04
  11  norm          12.365        5.3417       -.15692E-06    .67657E-04
  12  norm          .92452        .37516       -.34475E-07   -.90987E-04
  13  Prefactor     .10000E-03    11.494       -.10170E-05** at limit **
  14  Prefactor     26.207        26.863       -.99018E-06   -.22893E-04
  15  Prefactor     .10000E-03    13.695        .90939E-06** at limit **
  16  norm          .10000E-03    10.815       -.38702E-06** at limit **
  17  Prefactor     6.7584        15.754       -.71270E-06    .39720E-04
  18  norm          .10000E-03    3.7392       -.36926E-05** at limit **
  19  Prefactor     71.163        95.601        .18053E-05    .10616E-03
  20  Normalizat    1.2485        .23117        .52851E-05   -.58198E-04
  21  Prefactor     .89925        .14710       -.37476E-05    .29150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.9594
  Prefactor  = 11.4173
  Prefactor  = 0.0001
  norm       = 6.12504
  Prefactor  = 0.0001
  Prefactor  = 13.6322
  norm       = 12.3649
  norm       = 0.924524
  Prefactor  = 0.0001
  Prefactor  = 26.2075
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.75836
  norm       = 0.0001
  Prefactor  = 71.1626
  Normalizat = 1.24845
  Prefactor  = 0.899255
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.699     FROM HESSE     STATUS=OK           317 CALLS     2530 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6022        .12619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5176        .12454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3145        .17982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9594        7.6311        .16448E-03   -1.5220    
   6  Prefactor     11.417        15.722        .11856E-03   -1.5032    
   7  Prefactor     .10000E-03    4.6776        .16959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.1250        5.6783        .81108E-03   -1.5213    
   9  Prefactor     .10000E-03    9.7074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.632        47.360        .10826E-03   -1.4969    
  11  norm          12.365        5.3424        .11126E-03   -1.5005    
  12  norm          .92452        .37819        .29611E-04   -1.5516    
  13  Prefactor     .10000E-03    11.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.207        26.940        .78237E-04   -1.4684    
  15  Prefactor     .10000E-03    14.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7584        15.718        .15432E-03   -1.5188    
  18  norm          .10000E-03    4.0170        .30726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     71.163        96.643        .23784E-03   -1.4019    
  20  Normalizat    1.2485        .24781        .27583E-03   -.85118    
  21  Prefactor     .89925        .15746        .21628E-03   -.96167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80173e-10
Minuit parameter uncertainties:
  1  1.00115e-06
  2  2.97724e-06
  3  9.73441e-07
  4  1.74977e-05
  5  7.63238
  6  15.7277
  7  1.02623e-05
  8  5.67881
  9  9.97223e-05
  10  47.4912
  11  5.34264
  12  0.378191
  13  2.57298e-05
  14  26.9522
  15  5.01342e-05
  16  1.4432e-05
  17  15.7279
  18  6.97057e-05
  19  96.8569
  20  0.248046
  21  0.157539
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.363e+01  4.749e+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:  8.993e-01  1.575e-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.248e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/7589/likelihoodResults_636163201_636422401_4FGL_J2151.7-2749_daily_bin1531.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) = 6462.6943318
delta logL = 0.00422172563958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6462.69383234
delta logL = 0.00472118926336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.359       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8975       1.0000          .0000       10.000    
     3 'Normalizat'    1.2455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90033       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=   6462.694     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      249 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.261        710.53        .28486E-02    .12117E-03
   2  Index         2.9125        2.3501        .50000        .21836E-04
   3  Normalizat    1.2462        .26072E-01    .62404E-01   -.34715E-04
   4  Prefactor     .90019        .17721E-01    .45009E-01    .65594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2613
  Index      = 2.91246
  Normalizat = 1.24624
  Prefactor  = 0.900191
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.694     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.261        46.697        .11395E-03   -1.5007    
   2  Index         2.9125        2.0703        .87026E-02   -.43070    
   3  Normalizat    1.2462        .23068        .27602E-03   -.85186    
   4  Prefactor     .90019        .15513        .21618E-03   -.96134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66977e-09
Minuit parameter uncertainties:
  1  46.8365
  2  2.14962
  3  0.230872
  4  0.155207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7589': 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) = 6462.69378726
delta logL = 0.00476626858654

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.226e+01  4.684e+01  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.912e+00  2.150e+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.002e-01  1.552e-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.246e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/7589/cmap_HighResolution_636163201_636422401_4FGL_J2151.7-2749_daily_bin1531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-27 19:46:56.023078', job_id='7589', GAL2='0.90', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1632797216.02', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.77e-03', ts2='0.11', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1531' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 7589: <4FGL_J2151.7-2749_daily_bin1531> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1531> 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) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:35:39 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:39 2021
Terminated at Mon Sep 27 19:46:56 2021
Results reported at Mon Sep 27 19:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1531 327.925 -27.8234 636163201 636422401 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 :                                   600.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            975 sec.

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

