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


Performing analysis on: 4FGL_J2151.8-3027_daily_bin11
RA = 327.966, Dec = -30.46
tmin = 242179201, tmax = 242438401
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='7709', job_status='RUN', time_executed='2021-09-27 19:37:11.137946', time_epoch_executed='1632796631.14' WHERE source_name='4FGL J2151.8-3027' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7709/ft1_4FGL_J2151.8-3027_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7709/ft1_4FGL_J2151.8-3027_daily_bin11.fits outfile=/scratch/kocevski/7709/ft1_filteredMKT_4FGL_J2151.8-3027_daily_bin11.fits ra=327.966 dec=-30.46 rad=12.0 tmin=242179201.0 tmax=242438401.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.45
user 1.28
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.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/7709/ft1_filteredMKT_4FGL_J2151.8-3027_daily_bin11.fits evtable="EVENTS" outfile="/scratch/kocevski/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/7709/ltcube_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.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/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits
.....................!
real 14.91
user 14.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/7709/ltcube_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.fits outfile=/scratch/kocevski/7709/expmap_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.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/7709/ltcube_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.fits
.....................!
real 190.15
user 185.66
sys 4.09

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/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.fits scfile=/scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits outfile=/scratch/kocevski/7709/cmap_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.fits scfile=/scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits outfile=/scratch/kocevski/7709/cmap_HighResolution_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7709/Model_4FGL_J2151.8-3027_daily_bin11.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/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.fits.....................!
real 59.41
user 58.19
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.fits', '/scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits', expMap='/scratch/kocevski/7709/expmap_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.fits', expCube='/scratch/kocevski/7709/ltcube_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/7709/Model_4FGL_J2151.8-3027_daily_bin11.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/7709/ft1_filtered_4FGL_J2151.8-3027_daily_bin11.fits
Spacecraft file(s): /scratch/kocevski/7709/ft2_4FGL_J2151.8-3027_daily_bin11.fits
Exposure map: /scratch/kocevski/7709/expmap_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.fits
Exposure cube: /scratch/kocevski/7709/ltcube_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/7709/Model_4FGL_J2151.8-3027_daily_bin11.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) = 7273.02822562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.235       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .48697E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .67540E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3582       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5786       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6348       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12673E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.310       1.0000         .10000E-03   10000.    
    12 'norm      '    10.446       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4828       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75993       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7273.025     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2050 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.234        19.866       -.66374E-07   -.34798E-04
   2  Prefactor     .10000E-03    21.875       -.37995E-07** at limit **
   3  Prefactor     .10132E-03    5.0487        .61471E-06** at limit **
   4  norm          .10000E-03    2.2864       -.14833E-07** at limit **
   5  Prefactor     .10012E-03    4.6534        .16824E-05** at limit **
   6  Prefactor     .10000E-03    7.8132        .31931E-06** at limit **
   7  Prefactor     8.3574        10.887       -.26000E-06    .78459E-05
   8  Prefactor     2.5784        8.8075        .10481E-05    .35237E-04
   9  norm          3.6343        5.0697        .25215E-06    .46216E-05
  10  Prefactor     .10001E-03    55.834       -.23623E-04** at limit **
  11  Prefactor     10.184        91.660        .34173E-05    .13492E-04
  12  norm          10.443        6.2221       -.26368E-06    .26765E-03
  13  norm          1.8801        .49456       -.17528E-07    .85325E-03
  14  Prefactor     .10000E-03    2.7692       -.23903E-06** at limit **
  15  Prefactor     .10000E-03    20.657       -.65912E-07** at limit **
  16  Prefactor     .10000E-03    2.2661        .87813E-07** at limit **
  17  norm          .10000E-03    16.745        .15290E-06** at limit **
  18  Prefactor     .10000E-03    4.9617        .37818E-07** at limit **
  19  Normalizat    1.4830        .19578        .26759E-05   -.20752E-03
  20  Prefactor     .75990        .12842       -.26010E-05   -.22404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2342
  Prefactor  = 0.0001
  Prefactor  = 0.000101325
  norm       = 0.0001
  Prefactor  = 0.000100123
  Prefactor  = 0.0001
  Prefactor  = 8.35743
  Prefactor  = 2.57837
  norm       = 3.63429
  Prefactor  = 0.000100008
  Prefactor  = 10.1844
  norm       = 10.4432
  norm       = 1.88008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48301
  Prefactor  = 0.759905
 **********
 **   18 **HESSE 
 **********

 FCN=   7273.025     FROM HESSE     STATUS=OK           301 CALLS     2351 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.234        19.861        .10616E-03   -1.4953    
   2  Prefactor     .10000E-03    21.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10132E-03    6.5854        .54980E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.2920        .12594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10012E-03    24.162        .34031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.9501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3574        10.875        .13867E-03   -1.5130    
   8  Prefactor     2.5784        8.7920        .25416E-03   -1.5387    
   9  norm          3.6343        5.0584        .21190E-03   -1.5327    
  10  Prefactor     .10001E-03    57.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.184        92.535        .12479E-03   -1.5070    
  12  norm          10.443        6.2332        .12397E-03   -1.5062    
  13  norm          1.8801        .49681        .28283E-04   -1.5434    
  14  Prefactor     .10000E-03    2.7735        .13860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2707        .12536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4830        .22133        .25970E-03   -.78257    
  20  Prefactor     .75990        .14456        .23209E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29513e-09
Minuit parameter uncertainties:
  1  19.8703
  2  8.9733e-05
  3  0.00590846
  4  3.21471e-07
  5  0.00344708
  6  9.51019e-06
  7  10.8773
  8  8.79637
  9  5.05896
  10  0.00135803
  11  61.5239
  12  6.23358
  13  0.496811
  14  4.75128e-06
  15  8.41002e-05
  16  4.02982e-07
  17  1.80374e-05
  18  1.72795e-07
  19  0.221478
  20  0.144629
Done.

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

Extracting fit parameters...

4FGL J2151.8-3027
   Spectrum: LogParabola
276         norm:  1.044e+01  6.234e+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:  7.599e-01  1.446e-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.483e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.03
Ra Dec: 327.966 -30.460
Photon Index (Fixed Index): 2.75 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 6.94e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.50e-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) = 7272.98347433
delta logL = 0.0415955803182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7272.97791691
delta logL = 0.0471530019331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9827       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4403       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74920       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7272.978     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      242 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9810        6.3887        .12682E-03   -.48648E-03
   2  alpha         2.4400        .94214        .22205E-01    .31900E-04
   3  Normalizat    1.5077        .23058        .25810E-03    .53960E-03
   4  Prefactor     .74920        .14621        .23355E-03    .72626E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.98102
  alpha      = 2.43998
  Normalizat = 1.50767
  Prefactor  = 0.749197
 **********
 **   18 **HESSE 
 **********

 FCN=   7272.978     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9810        6.5856        .50730E-05   -1.5076    
   2  alpha         2.4400        .96945        .88819E-03   -.24012E-01
   3  Normalizat    1.5077        .23210        .51620E-04   -.77563    
   4  Prefactor     .74920        .14662        .46711E-04   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10642e-10
Minuit parameter uncertainties:
  1  6.58612
  2  0.995566
  3  0.232264
  4  0.146697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7709': 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) = 7272.97791685
delta logL = 0.047153061324

Extracting fit parameters...

4FGL J2151.8-3027
   Spectrum: LogParabola
276         norm:  9.981e+00  6.586e+00  1.000e-04  1.000e+04 ( 1.000e-11)
277        alpha:  2.440e+00  9.956e-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:  7.492e-01  1.467e-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.508e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 327.966 -30.460
Photon Index (Free Index): 2.44 +/- 1.00
Photon Flux (Free Index): 9.54e-08 +/- 9.14e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.44e-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/7709/cmap_HighResolution_242179201_242438401_4FGL_J2151.8-3027_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='2.43e-05', photon_flux_error='6.94e-08', dlogl='4.72e-02', energy_flux='2.51e-05', photon_flux2='9.54e-08', job_status='DONE', time_completed='2021-09-27 19:46:29.568916', photon_index_error2='1.00', photon_index2='2.44', ts='5.03', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.48', time_epoch_completed='1632797189.57', return_code='0', job_id='7709', GAL2='0.75', EG2='1.51', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='9.14e-08', ts2='5.25', photon_index='2.75' WHERE bin_id='11' AND source_name='4FGL J2151.8-3027' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:46:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 7709: <4FGL_J2151.8-3027_daily_bin11> in cluster <slac> Done

Job <4FGL_J2151.8-3027_daily_bin11> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 19:30:52 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:37:01 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:37:01 2021
Terminated at Mon Sep 27 19:46:30 2021
Results reported at Mon Sep 27 19:46:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.8-3027_daily_bin11 327.966 -30.46 242179201 242438401 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 :                                   557.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             364.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            938 sec.

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

