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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1028
RA = 327.925, Dec = -27.8234
tmin = 505785601, tmax = 506044801
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='6298', job_status='RUN', time_executed='2021-09-27 19:28:28.867865', time_epoch_executed='1632796108.87' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6298/ft1_4FGL_J2151.7-2749_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6298/ft2_4FGL_J2151.7-2749_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6298/ft1_4FGL_J2151.7-2749_daily_bin1028.fits outfile=/scratch/kocevski/6298/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1028.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=505785601.0 tmax=506044801.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.64
user 3.43
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6298/ft1_filtered_4FGL_J2151.7-2749_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/6298/ft2_4FGL_J2151.7-2749_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/6298/ltcube_505785601_506044801_4FGL_J2151.7-2749_daily_bin1028.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/6298/ft2_4FGL_J2151.7-2749_daily_bin1028.fits
.....................!
real 14.61
user 14.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6298/ft1_filtered_4FGL_J2151.7-2749_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/6298/ft2_4FGL_J2151.7-2749_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/6298/ltcube_505785601_506044801_4FGL_J2151.7-2749_daily_bin1028.fits outfile=/scratch/kocevski/6298/expmap_505785601_506044801_4FGL_J2151.7-2749_daily_bin1028.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/6298/ltcube_505785601_506044801_4FGL_J2151.7-2749_daily_bin1028.fits
.....................!
real 191.59
user 185.79
sys 5.16

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/6298/ft1_filtered_4FGL_J2151.7-2749_daily_bin1028.fits scfile=/scratch/kocevski/6298/ft2_4FGL_J2151.7-2749_daily_bin1028.fits outfile=/scratch/kocevski/6298/cmap_505785601_506044801_4FGL_J2151.7-2749_daily_bin1028.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6298/ft1_filtered_4FGL_J2151.7-2749_daily_bin1028.fits scfile=/scratch/kocevski/6298/ft2_4FGL_J2151.7-2749_daily_bin1028.fits outfile=/scratch/kocevski/6298/cmap_HighResolution_505785601_506044801_4FGL_J2151.7-2749_daily_bin1028.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6298/ft1_filtered_4FGL_J2151.7-2749_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/6298/ft2_4FGL_J2151.7-2749_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6298/Model_4FGL_J2151.7-2749_daily_bin1028.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/6298/ft1_filtered_4FGL_J2151.7-2749_daily_bin1028.fits....................!
real 50.97
user 49.42
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7599       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9369       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9319       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3214       1.0000         .10000E-03   10000.    
     8 'norm      '    6.7852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.013       1.0000         .10000E-03   10000.    
    11 'norm      '    13.541       1.0000         .10000E-03   10000.    
    12 'norm      '    .51471       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.193       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9650       1.0000         .10000E-03   10000.    
    16 'norm      '    11.835       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22801       1.0000         .10000E-03   10000.    
    18 'norm      '    .17395E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.280       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88893       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0207       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=   5825.503     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2248 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7574        15.058        .18326E-05    .22566E-03
   2  Prefactor     5.9344        7.5412        .32684E-06    .28725E-04
   3  norm          .10000E-03    1.8865        .10747E-07** at limit **
   4  Prefactor     .10000E-03    1.9175       -.97159E-08** at limit **
   5  Prefactor     4.5299        9.9637       -.15732E-06    .78028E-04
   6  Prefactor     2.9311        7.3886        .75231E-06    .27989E-04
   7  Prefactor     4.3212        8.1023        .35981E-05   -.35213E-03
   8  norm          6.7819        10.307        .50027E-06    .81983E-04
   9  Prefactor     .10000E-03    10.422       -.15133E-06** at limit **
  10  Prefactor     33.003        56.574       -.13834E-05   -.66373E-04
  11  norm          13.537        6.6694        .74414E-07   -.50623E-04
  12  norm          .51466        .31862       -.40253E-11    .24610E-04
  13  Prefactor     .10000E-03    6.0978       -.65066E-07** at limit **
  14  Prefactor     16.189        17.587       -.10623E-06   -.59910E-04
  15  Prefactor     1.9548        8.1556        .84227E-06   -.96511E-04
  16  norm          11.834        23.183       -.29871E-05   -.27267E-03
  17  Prefactor     .61974E-01    7.6362       -.74666E-07    .63026E-04
  18  norm          .10000E-03    1.6459        .33663E-06** at limit **
  19  Prefactor     20.347        40.327        .56562E-06    .23368E-04
  20  Normalizat    .88961        .20920        .58488E-07   -.70151E-04
  21  Prefactor     1.0205        .13727       -.50193E-06   -.27659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.75745
  Prefactor  = 5.93437
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.5299
  Prefactor  = 2.9311
  Prefactor  = 4.32124
  norm       = 6.7819
  Prefactor  = 0.0001
  Prefactor  = 33.0031
  norm       = 13.537
  norm       = 0.51466
  Prefactor  = 0.0001
  Prefactor  = 16.1885
  Prefactor  = 1.95476
  norm       = 11.8344
  Prefactor  = 0.0619737
  norm       = 0.0001
  Prefactor  = 20.3472
  Normalizat = 0.889612
  Prefactor  = 1.02047
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.503     FROM HESSE     STATUS=OK           335 CALLS     2583 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7574        15.303        .14395E-03   -1.5151    
   2  Prefactor     5.9344        7.5411        .16480E-03   -1.5221    
   3  norm          .10000E-03    1.8867        .10238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9198        .10322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5299        9.9839        .18900E-03   -1.5282    
   6  Prefactor     2.9311        7.3719        .23723E-03   -1.5366    
   7  Prefactor     4.3212        8.3019        .96891E-03   -1.5292    
   8  norm          6.7819        10.282        .15403E-03   -1.5187    
   9  Prefactor     .10000E-03    10.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.003        56.795        .69741E-04   -1.4558    
  11  norm          13.537        6.6792        .10885E-03   -1.4972    
  12  norm          .51466        .31799        .31898E-04   -1.5564    
  13  Prefactor     .10000E-03    6.1392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.189        17.630        .99532E-04   -1.4903    
  15  Prefactor     1.9548        8.3505        .29587E-03   -1.5428    
  16  norm          11.834        24.041        .11645E-03   -1.5020    
  17  Prefactor     .61974E-01    14.032        .66477E-01   -1.5658    
  18  norm          .10000E-03    2.3715        .17583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.347        37.722        .88940E-04   -1.4806    
  20  Normalizat    .88961        .24434        .29808E-03   -.96826    
  21  Prefactor     1.0205        .16004        .19794E-03   -.92050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14248e-09
Minuit parameter uncertainties:
  1  15.3109
  2  7.54232
  3  5.6548e-07
  4  3.46232e-07
  5  9.98753
  6  7.37422
  7  8.30408
  8  10.2851
  9  2.97168e-05
  10  56.888
  11  6.67953
  12  0.317991
  13  4.31844e-06
  14  17.6352
  15  8.0821
  16  24.0604
  17  1.86403
  18  2.16587e-05
  19  37.7658
  20  0.244646
  21  0.160117
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  3.300e+01  5.689e+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.020e+00  1.601e-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:  8.896e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 327.925 -27.823
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/6298/likelihoodResults_505785601_506044801_4FGL_J2151.7-2749_daily_bin1028.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) = 5824.27292905
delta logL = 1.23028574945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5824.18542664
delta logL = 1.3177881547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39257E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.7503       1.0000          .0000       10.000    
     3 'Normalizat'    .81841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0558       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=   5824.185     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      367 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38604E-01    .44403        .22682E-02    .66290E-03
   2  Index         7.7600        3.0837        .15809        .68306E-04
   3  Normalizat    .81827        .55465E-01    .69794E-01    .22397E-05
   4  Prefactor     1.0558        .39402E-01    .39581E-01   -.13298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0386044
  Index      = 7.75996
  Normalizat = 0.818272
  Prefactor  = 1.05583
 **********
 **   18 **HESSE 
 **********

 FCN=   5824.185     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      402 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38604E-01    .97023        .10267E-03   -1.5669    
   2  Index         7.7600        8.1660        .64128E-02    .58475    
   3  Normalizat    .81827        .17855        .30883E-03   -.99394    
   4  Prefactor     1.0558        .12538        .19493E-03   -.90891    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79927e-10
Minuit parameter uncertainties:
  1  0.386572
  2  5.75577
  3  0.178683
  4  0.12541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6298': 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): 102
logL (Free Index) = 5824.18542365
delta logL = 1.31779114365

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  3.860e-02  3.866e-01  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  7.760e+00  5.756e+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.056e+00  1.254e-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:  8.183e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 327.925 -27.823
Photon Index (Free Index): 7.76 +/- 5.76
Photon Flux (Free Index): 1.01e-07 +/- 6.86e-08
Energy Flux (Free Index): 1.18e-05 +/- 8.68e-06

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/6298/cmap_HighResolution_505785601_506044801_4FGL_J2151.7-2749_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='1.32e+00', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-27 19:38:17.744511', photon_index_error2='5.76', photon_index2='7.76', ts='0.46', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='8.68e-06', EG='0.89', time_epoch_completed='1632796697.74', return_code='0', job_id='6298', GAL2='1.06', EG2='0.82', return_code2='102', photon_flux_error2='6.86e-08', ts2='3.26', photon_index='2.71' WHERE bin_id='1028' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:38:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 6298: <4FGL_J2151.7-2749_daily_bin1028> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1028> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 27 19:25:28 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:26:55 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:26:55 2021
Terminated at Mon Sep 27 19:38:18 2021
Results reported at Mon Sep 27 19:38:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1028 327.925 -27.8234 505785601 506044801 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            770 sec.

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

