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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1524
RA = 327.925, Dec = -27.8234
tmin = 634348801, tmax = 634608001
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='7579', job_status='RUN', time_executed='2021-09-27 19:36:13.536923', time_epoch_executed='1632796573.54' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7579

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7579/ft1_4FGL_J2151.7-2749_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7579/ft2_4FGL_J2151.7-2749_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7579/ft1_4FGL_J2151.7-2749_daily_bin1524.fits outfile=/scratch/kocevski/7579/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1524.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=634348801.0 tmax=634608001.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.76
user 3.49
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7579/ft1_filtered_4FGL_J2151.7-2749_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/7579/ft2_4FGL_J2151.7-2749_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/7579/ltcube_634348801_634608001_4FGL_J2151.7-2749_daily_bin1524.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/7579/ft2_4FGL_J2151.7-2749_daily_bin1524.fits
.....................!
real 15.59
user 15.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7579/ft1_filtered_4FGL_J2151.7-2749_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/7579/ft2_4FGL_J2151.7-2749_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/7579/ltcube_634348801_634608001_4FGL_J2151.7-2749_daily_bin1524.fits outfile=/scratch/kocevski/7579/expmap_634348801_634608001_4FGL_J2151.7-2749_daily_bin1524.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/7579/ltcube_634348801_634608001_4FGL_J2151.7-2749_daily_bin1524.fits
.....................!
real 192.61
user 186.25
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/7579/ft1_filtered_4FGL_J2151.7-2749_daily_bin1524.fits scfile=/scratch/kocevski/7579/ft2_4FGL_J2151.7-2749_daily_bin1524.fits outfile=/scratch/kocevski/7579/cmap_634348801_634608001_4FGL_J2151.7-2749_daily_bin1524.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.52
user 0.37
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6801       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5624       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7188       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55386E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.694       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.4637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11173E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.620       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.983       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    85.784       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3210       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75203       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=   2361.368     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1977 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8047        16.193        .10655E-05    .39174E-02
   2  Prefactor     2.5810        4.6696        .26166E-06   -.25987E-02
   3  norm          3.7389        16.470        .58047E-06   -.11670E-02
   4  Prefactor     1.2270        50.433        .36008E-05    .12740E-03
   5  Prefactor     .10000E-03    5.9098       -.58447E-07** at limit **
   6  Prefactor     31.652        18.794       -.26591E-06    .20688E-01
   7  Prefactor     .10000E-03    12.463       -.28080E-06** at limit **
   8  norm          6.4834        9.2679        .67983E-07   -.24164E-02
   9  Prefactor     .10000E-03    45.586        .90720E-06** at limit **
  10  Prefactor     .10093E-03    110.39        .65901E-05** at limit **
  11  norm          18.665        9.9078       -.95891E-06   -.52198E-03
  12  norm          .10000E-03    .51524       -.45698E-06** at limit **
  13  Prefactor     .10000E-03    14.946        .28479E-05** at limit **
  14  Prefactor     17.137        22.793        .11014E-05    .73963E-02
  15  Prefactor     .10000E-03    5.9183        .43491E-06** at limit **
  16  norm          .10000E-03    16.898        .31710E-05** at limit **
  17  Prefactor     .10000E-03    8.9889       -.19484E-06** at limit **
  18  norm          .10000E-03    4.5808       -.39981E-06** at limit **
  19  Prefactor     86.187        77.108        .15383E-05   -.72560E-02
  20  Normalizat    1.3171        .34566        .11390E-04    .21804E-03
  21  Prefactor     .75181        .22694       -.55519E-05    .13278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.8047
  Prefactor  = 2.581
  norm       = 3.73891
  Prefactor  = 1.22697
  Prefactor  = 0.0001
  Prefactor  = 31.6521
  Prefactor  = 0.0001
  norm       = 6.48338
  Prefactor  = 0.0001
  Prefactor  = 0.000100933
  norm       = 18.6652
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.137
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 86.1869
  Normalizat = 1.31712
  Prefactor  = 0.751808
 **********
 **   18 **HESSE 
 **********

 FCN=   2361.368     FROM HESSE     STATUS=OK           359 CALLS     2336 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8047        31.740        .32200E-02   -1.5082    
   2  Prefactor     2.5810        11.429        .63757E-02   -1.5387    
   3  norm          3.7389        16.752        .52351E-02   -1.5321    
   4  Prefactor     1.2270        49.800        .95289E-02   -1.5486    
   5  Prefactor     .10000E-03    5.9095        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.652        26.684        .17793E-02   -1.4582    
   7  Prefactor     .10000E-03    12.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.4834        10.226        .39465E-02   -1.5199    
   9  Prefactor     .10000E-03    45.401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10093E-03    110.78        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.665        9.9923        .23204E-02   -1.4844    
  12  norm          .10000E-03    .36124        .13873E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.137        31.747        .24297E-02   -1.4880    
  15  Prefactor     .10000E-03    5.9202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     86.187        88.676        .10844E-02   -1.3849    
  20  Normalizat    1.3171        .30453        .56898E-01   -.83057    
  21  Prefactor     .75181        .20091        .43090E-01   -1.0153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99357e-06
Minuit parameter uncertainties:
  1  31.7951
  2  10.8656
  3  15.8356
  4  15.6471
  5  9.91372e-07
  6  26.6937
  7  2.96792e-05
  8  10.2283
  9  0.000266447
  10  0.0203707
  11  9.99324
  12  2.65727e-06
  13  0.000130538
  14  31.7782
  15  1.00788e-05
  16  4.24011e-05
  17  9.48263e-06
  18  7.61769e-06
  19  88.8121
  20  0.304947
  21  0.201108
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.009e-04  2.037e-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:  7.518e-01  2.011e-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.317e+00  3.049e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7579/likelihoodResults_634348801_634608001_4FGL_J2151.7-2749_daily_bin1524.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) = 2361.3684716
delta logL = -4.28343400927e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2361.36842877
delta logL = -3.44743966707e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2361.368     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      265 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    111.54        .18142E-02** at limit **
   2  Index         2.6804        6.3361        .50000       -.71529E-06
   3  Normalizat    1.3171        .32006        .25161E-03    .37274E-03
   4  Prefactor     .75181        .22025        .22104E-03    .34134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.68041
  Normalizat = 1.31712
  Prefactor  = 0.751809
 **********
 **   18 **HESSE 
 **********

 FCN=   2361.368     FROM HESSE     STATUS=OK            29 CALLS      294 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6804        6.3307        .50000       -.48241    
   3  Normalizat    1.3171        .32024        .50321E-04   -.83057    
   4  Prefactor     .75181        .22038        .44208E-04   -1.0153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90498e-10
Minuit parameter uncertainties:
  1  0.000173435
  2  4.43472
  3  0.320728
  4  0.220635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7579': 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) = 2361.36842877
delta logL = -1.63299773703e-09

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.734e-04  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.680e+00  4.435e+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:  7.518e-01  2.206e-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.317e+00  3.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/7579/cmap_HighResolution_634348801_634608001_4FGL_J2151.7-2749_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', job_status='DONE', photon_flux_upper_limit='2.14e-07', time_completed='2021-09-27 19:44:07.720221', job_id='7579', GAL2='0.75', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632797047.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-1.63e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1524' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:44:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 7579: <4FGL_J2151.7-2749_daily_bin1524> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1524> 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) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:35:32 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:32 2021
Terminated at Mon Sep 27 19:44:08 2021
Results reported at Mon Sep 27 19:44:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1524 327.925 -27.8234 634348801 634608001 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 :                                   420.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   516 sec.
    Turnaround time :                            807 sec.

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

