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


Performing analysis on: 4FGL_J2151.8-3027_daily_bin116
RA = 327.966, Dec = -30.46
tmin = 269395201, tmax = 269654401
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='8964', job_status='RUN', time_executed='2021-09-27 19:41:43.318889', time_epoch_executed='1632796903.32' WHERE source_name='4FGL J2151.8-3027' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8964

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8964/ft1_4FGL_J2151.8-3027_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8964/ft1_4FGL_J2151.8-3027_daily_bin116.fits outfile=/scratch/kocevski/8964/ft1_filteredMKT_4FGL_J2151.8-3027_daily_bin116.fits ra=327.966 dec=-30.46 rad=12.0 tmin=269395201.0 tmax=269654401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.79
user 1.61
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8964/ft1_filtered_4FGL_J2151.8-3027_daily_bin116.fits" evtable="EVENTS" scfile=/scratch/kocevski/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits sctable="SC_DATA" outfile=/scratch/kocevski/8964/ltcube_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.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/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits
.....................!
real 16.32
user 15.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8964/ft1_filtered_4FGL_J2151.8-3027_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/8964/ltcube_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.fits outfile=/scratch/kocevski/8964/expmap_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.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/8964/ltcube_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.fits
.....................!
real 194.52
user 189.14
sys 5.00

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 163 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/8964/ft1_filtered_4FGL_J2151.8-3027_daily_bin116.fits scfile=/scratch/kocevski/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits outfile=/scratch/kocevski/8964/cmap_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=327.966 yref=-30.46 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8964/ft1_filtered_4FGL_J2151.8-3027_daily_bin116.fits scfile=/scratch/kocevski/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits outfile=/scratch/kocevski/8964/cmap_HighResolution_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=327.966 yref=-30.46 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8964/ft1_filtered_4FGL_J2151.8-3027_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8964/Model_4FGL_J2151.8-3027_daily_bin116.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/8964/ft1_filtered_4FGL_J2151.8-3027_daily_bin116.fits.....................!
real 65.05
user 63.67
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8964/ft1_filtered_4FGL_J2151.8-3027_daily_bin116.fits', '/scratch/kocevski/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits', expMap='/scratch/kocevski/8964/expmap_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.fits', expCube='/scratch/kocevski/8964/ltcube_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8964/Model_4FGL_J2151.8-3027_daily_bin116.xml', optimizer='MINUIT')

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

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


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/8964/ft1_filtered_4FGL_J2151.8-3027_daily_bin116.fits
Spacecraft file(s): /scratch/kocevski/8964/ft2_4FGL_J2151.8-3027_daily_bin116.fits
Exposure map: /scratch/kocevski/8964/expmap_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.fits
Exposure cube: /scratch/kocevski/8964/ltcube_269395201_269654401_4FGL_J2151.8-3027_daily_bin116.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8964/Model_4FGL_J2151.8-3027_daily_bin116.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) = 7870.76260424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.876       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5959       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.311       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.6185       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    32.777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.839       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3471       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88410       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7870.739     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1723 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4027        17.953        .34574E-02    .23402E-03
   2  Prefactor     18.876        23.214        .23047E-02    .25661E-03
   3  Prefactor     .10000E-03    2.2129        .90712E-02** at limit **
   4  norm          .10000E-03    2.1626        .90712E-02** at limit **
   5  Prefactor     1.0292        3.8268        .12546E-01    .10523E-02
   6  Prefactor     .10000E-03    3.3908        .90712E-02** at limit **
   7  Prefactor     3.5966        10.581        .53273E-02    .14226E-03
   8  Prefactor     .10000E-03    7.6231        .90712E-02** at limit **
   9  norm          10.311        7.0209        .31195E-02    .68747E-04
  10  Prefactor     .10000E-03    9.2091        .90712E-02** at limit **
  11  Prefactor     .10000E-03    21.346        .90712E-02** at limit **
  12  norm          8.6194        5.2689        .34136E-02    .34543E-03
  13  norm          2.6717        .53980        .61609E-02    .24599E-02
  14  Prefactor     .10000E-03    16.009        .90712E-02** at limit **
  15  Prefactor     .10000E-03    9.2454        .90712E-02** at limit **
  16  Prefactor     .10000E-03    4.0736        .90712E-02** at limit **
  17  norm          32.777        26.582        .17498E-02    .77401E-03
  18  Prefactor     20.838        23.001        .21935E-02    .11108E-02
  19  Normalizat    1.3471        .18400        .62485E-01    .85656E-04
  20  Prefactor     .88412        .12386        .44802E-01    .13962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.40273
  Prefactor  = 18.8758
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.02916
  Prefactor  = 0.0001
  Prefactor  = 3.59659
  Prefactor  = 0.0001
  norm       = 10.3111
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 8.61939
  norm       = 2.67168
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.7767
  Prefactor  = 20.8383
  Normalizat = 1.34707
  Prefactor  = 0.884125
 **********
 **   18 **HESSE 
 **********

 FCN=   7870.739     FROM HESSE     STATUS=OK           285 CALLS     2008 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4027        17.954        .13829E-03   -1.5128    
   2  Prefactor     18.876        23.251        .92187E-04   -1.4839    
   3  Prefactor     .10000E-03    2.2278        .12887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1644        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0292        3.7483        .32421E-03   -1.5505    
   6  Prefactor     .10000E-03    3.4132        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5966        10.565        .21309E-03   -1.5329    
   8  Prefactor     .10000E-03    7.7249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.311        7.0202        .12478E-03   -1.5066    
  10  Prefactor     .10000E-03    9.2499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.6194        5.2923        .13654E-03   -1.5121    
  13  norm          2.6717        .54211        .27195E-04   -1.5381    
  14  Prefactor     .10000E-03    16.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1035        .17481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          32.777        26.634        .69990E-04   -1.4562    
  18  Prefactor     20.838        23.053        .87740E-04   -1.4795    
  19  Normalizat    1.3471        .21309        .27637E-03   -.82172    
  20  Prefactor     .88412        .14329        .22621E-03   -.96698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40429e-09
Minuit parameter uncertainties:
  1  17.966
  2  23.2617
  3  2.89832e-05
  4  1.37393e-05
  5  3.74913
  6  2.10043e-05
  7  10.5703
  8  1.89736e-05
  9  7.02076
  10  4.87027e-05
  11  0.000619928
  12  5.29263
  13  0.542115
  14  0.0003407
  15  2.18519e-05
  16  3.45297e-05
  17  26.6433
  18  23.0633
  19  0.213225
  20  0.143349
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.347e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 327.966 -30.460
Photon Index (Fixed Index): 2.75 +/- 0.00
Photon Flux (Fixed Index): 9.60e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.27e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7870.17410051
delta logL = 0.5648793785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7870.17051293
delta logL = 0.568466960552

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7870.171     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0320        5.1284        .33341E-02    .59373E-02
   2  alpha         2.0917        .46085        .40882       -.40921E-04
   3  Normalizat    1.3744        .17935        .61971E-01    .66863E-05
   4  Prefactor     .86953        .12172        .44615E-01    .12679E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.03197
  alpha      = 2.09173
  Normalizat = 1.37436
  Prefactor  = 0.869534
 **********
 **   18 **HESSE 
 **********

 FCN=   7870.171     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0320        5.2655        .13336E-03   -1.5107    
   2  alpha         2.0917        .54379        .15701E-01   -.16404    
   3  Normalizat    1.3744        .20801        .27409E-03   -.81373    
   4  Prefactor     .86953        .14043        .22771E-03   -.97214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02809e-09
Minuit parameter uncertainties:
  1  5.26576
  2  0.548292
  3  0.208143
  4  0.140484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8964': 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) = 7870.17051288
delta logL = 0.56846701209

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.374e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 327.966 -30.460
Photon Index (Free Index): 2.09 +/- 0.55
Photon Flux (Free Index): 7.58e-08 +/- 4.96e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.40e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.60e-08', energy_flux2='2.48e-05', photon_flux_error='5.89e-08', dlogl='5.68e-01', energy_flux='2.07e-05', photon_flux2='7.58e-08', job_status='DONE', time_completed='2021-09-27 19:51:07.414058', photon_index_error2='0.55', photon_index2='2.09', ts='4.03', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.35', time_epoch_completed='1632797467.41', return_code='0', job_id='8964', GAL2='0.87', EG2='1.37', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.96e-08', ts2='5.27', photon_index='2.75' WHERE bin_id='116' AND source_name='4FGL J2151.8-3027' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:51:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 8964: <4FGL_J2151.8-3027_daily_bin116> in cluster <slac> Done

Job <4FGL_J2151.8-3027_daily_bin116> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 19:35:15 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:39:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 19:39:02 2021
Terminated at Mon Sep 27 19:51:08 2021
Results reported at Mon Sep 27 19:51:08 2021

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   565.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            953 sec.

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

