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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin684
RA = 327.925, Dec = -27.8234
tmin = 416620801, tmax = 416880001
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='4743', job_status='RUN', time_executed='2021-09-27 19:21:32.535482', time_epoch_executed='1632795692.54' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4743/ft1_4FGL_J2151.7-2749_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4743/ft2_4FGL_J2151.7-2749_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4743/ft1_4FGL_J2151.7-2749_daily_bin684.fits outfile=/scratch/kocevski/4743/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin684.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=416620801.0 tmax=416880001.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 5.24
user 4.99
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4743/ft2_4FGL_J2151.7-2749_daily_bin684.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/4743/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/4743/ft1_filtered_4FGL_J2151.7-2749_daily_bin684.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/4743/ft1_filtered_4FGL_J2151.7-2749_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/4743/ft2_4FGL_J2151.7-2749_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/4743/ltcube_416620801_416880001_4FGL_J2151.7-2749_daily_bin684.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/4743/ft2_4FGL_J2151.7-2749_daily_bin684.fits
.....................!
real 13.44
user 13.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4743/ft1_filtered_4FGL_J2151.7-2749_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/4743/ft2_4FGL_J2151.7-2749_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/4743/ltcube_416620801_416880001_4FGL_J2151.7-2749_daily_bin684.fits outfile=/scratch/kocevski/4743/expmap_416620801_416880001_4FGL_J2151.7-2749_daily_bin684.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/4743/ltcube_416620801_416880001_4FGL_J2151.7-2749_daily_bin684.fits
.....................!
real 192.93
user 188.03
sys 4.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/4743/ft1_filtered_4FGL_J2151.7-2749_daily_bin684.fits scfile=/scratch/kocevski/4743/ft2_4FGL_J2151.7-2749_daily_bin684.fits outfile=/scratch/kocevski/4743/cmap_416620801_416880001_4FGL_J2151.7-2749_daily_bin684.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4743/ft1_filtered_4FGL_J2151.7-2749_daily_bin684.fits scfile=/scratch/kocevski/4743/ft2_4FGL_J2151.7-2749_daily_bin684.fits outfile=/scratch/kocevski/4743/cmap_HighResolution_416620801_416880001_4FGL_J2151.7-2749_daily_bin684.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4743/ft1_filtered_4FGL_J2151.7-2749_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/4743/ft2_4FGL_J2151.7-2749_daily_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4743/Model_4FGL_J2151.7-2749_daily_bin684.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/4743/ft1_filtered_4FGL_J2151.7-2749_daily_bin684.fits......................!
real 34.30
user 32.90
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25791       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3002       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.157       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20717E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4963       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21638E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16732E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    18.264       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8212       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.029       1.0000         .10000E-03   10000.    
    16 'norm      '    25.882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.950       1.0000         .10000E-03   10000.    
    18 'norm      '    .14595E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20751E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .63122       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1588       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=   3202.619     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2263 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.557        .31203E-06** at limit **
   2  Prefactor     .26572        6.1574        .20034E-05   -.64562E-03
   3  norm          5.3026        11.748        .40247E-06   -.16082E-04
   4  Prefactor     10.157        8.8662        .15261E-06   -.55039E-04
   5  Prefactor     8.9404        15.146        .46142E-06   -.63839E-05
   6  Prefactor     .10000E-03    52.675        .63917E-06** at limit **
   7  Prefactor     .10000E-03    9.0322        .10117E-07** at limit **
   8  norm          4.4998        13.866        .11447E-05    .14315E-04
   9  Prefactor     .10000E-03    70.692        .36549E-06** at limit **
  10  Prefactor     .10003E-03    1341.4        .80086E-05** at limit **
  11  norm          18.241        12.327       -.19761E-05   -.27161E-03
  12  norm          1.8220        .89433       -.37264E-07   -.89475E-03
  13  Prefactor     .10000E-03    11.656        .25705E-07** at limit **
  14  Prefactor     .10000E-03    34.335       -.47320E-06** at limit **
  15  Prefactor     23.042        18.451        .22784E-06   -.19877E-04
  16  norm          26.038        63.540        .75128E-06   -.51068E-05
  17  Prefactor     59.003        41.743       -.48187E-07   -.90328E-04
  18  norm          .10000E-03    4.3165       -.11703E-05** at limit **
  19  Prefactor     .10000E-03    104.48       -.22717E-05** at limit **
  20  Normalizat    .63085        .33102       -.11105E-05   -.18137E-03
  21  Prefactor     1.1589        .19859       -.12673E-05   -.32165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.265715
  norm       = 5.3026
  Prefactor  = 10.1569
  Prefactor  = 8.94038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49981
  Prefactor  = 0.000100001
  Prefactor  = 0.000100025
  norm       = 18.241
  norm       = 1.82201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0423
  norm       = 26.0378
  Prefactor  = 59.0033
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.630849
  Prefactor  = 1.15891
 **********
 **   18 **HESSE 
 **********

 FCN=   3202.619     FROM HESSE     STATUS=OK           319 CALLS     2582 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .26572        29.631        .23834E-02   -1.5605    
   3  norm          5.3026        11.754        .17458E-03   -1.5247    
   4  Prefactor     10.157        8.8680        .12573E-03   -1.5070    
   5  Prefactor     8.9404        15.142        .13408E-03   -1.5110    
   6  Prefactor     .10000E-03    53.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0330        .16606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4998        13.844        .18988E-03   -1.5284    
   9  Prefactor     .10000E-03    71.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    1377.1        .36426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.241        12.439        .93718E-04   -1.4854    
  12  norm          1.8220        .90229        .34019E-04   -1.5438    
  13  Prefactor     .10000E-03    11.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.042        18.543        .83470E-04   -1.4748    
  16  norm          26.038        63.630        .78741E-04   -1.4687    
  17  Prefactor     59.003        41.698        .26127E-03   -1.4170    
  18  norm          .10000E-03    4.3100        .11445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    104.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .63085        .36957        .38344E-03   -1.0669    
  21  Prefactor     1.1589        .22398        .18632E-03   -.87605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30125e-09
Minuit parameter uncertainties:
  1  2.92104e-05
  2  5.61369
  3  11.7589
  4  8.86914
  5  15.148
  6  0.000263452
  7  6.45682e-07
  8  13.8542
  9  0.000569819
  10  0.0120551
  11  12.4406
  12  0.902301
  13  2.60502e-05
  14  3.19159e-05
  15  18.5473
  16  63.7965
  17  41.7185
  18  1.31886e-05
  19  0.000225013
  20  0.371031
  21  0.224161
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.206e-02  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.159e+00  2.242e-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:  6.308e-01  3.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/4743/likelihoodResults_416620801_416880001_4FGL_J2151.7-2749_daily_bin684.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): 102
logL (Free Index) = 3202.61912971
delta logL = -3.30313378072e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3202.61912971
delta logL = -3.30276043314e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7143       1.0000          .0000       10.000    
     3 'Normalizat'    .63085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3201.229     FROM MIGRAD    STATUS=CONVERGED    201 CALLS      353 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12179E-02    .95642E-03   -.22338E-07** at limit **
   2  Index        10.0000        8.7545        .40967E-03** at limit **
   3  Normalizat    .48747        .33751        .60434E-05    .85536E-04
   4  Prefactor     1.2212        .21525       -.69032E-06    .83325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00121787
  Index      = 10
  Normalizat = 0.487471
  Prefactor  = 1.22121
 **********
 **   18 **HESSE 
 **********

 FCN=   3201.229     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      392 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12179E-02    .45380E-01    .42171E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        5.8037        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .48747        .21873        .97364E-01   -1.1300    
   4  Prefactor     1.2212        .14022        .35683E-01   -.85681    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.05635e-09
Minuit parameter uncertainties:
  1  0.0142449
  2  0.000304658
  3  0.219112
  4  0.140267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4743': 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) = 3201.22912519
delta logL = 1.3900012219

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.218e-03  1.424e-02  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  1.000e+01  3.047e-04  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.221e+00  1.403e-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:  4.875e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 327.925 -27.823
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.53e-07 +/- 1.73e-06
Energy Flux (Free Index): 1.71e-05 +/- 1.95e-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/4743/cmap_HighResolution_416620801_416880001_4FGL_J2151.7-2749_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-02', comment='SUCCESS', energy_flux2='1.71e-05', dlogl='1.39e+00', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-27 19:29:20.915174', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='2.35e-07', energy_flux_error2='1.95e-04', EG='0.63', time_epoch_completed='1632796160.92', return_code='0', job_id='4743', GAL2='1.22', EG2='0.49', return_code2='102', photon_flux_error2='1.73e-06', ts2='2.95', photon_index='2.71' WHERE bin_id='684' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:29:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 4743: <4FGL_J2151.7-2749_daily_bin684> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin684> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 19:20:23 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:21:19 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:21:19 2021
Terminated at Mon Sep 27 19:29:21 2021
Results reported at Mon Sep 27 19:29:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin684 327.925 -27.8234 416620801 416880001 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 :                                   466.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   482 sec.
    Turnaround time :                            538 sec.

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

