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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1254
RA = 327.925, Dec = -27.8234
tmin = 564364801, tmax = 564624001
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='6622', job_status='RUN', time_executed='2021-09-27 19:33:56.399079', time_epoch_executed='1632796436.4' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1254'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6622/ft1_4FGL_J2151.7-2749_daily_bin1254.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6622/ft2_4FGL_J2151.7-2749_daily_bin1254.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6622/ft1_4FGL_J2151.7-2749_daily_bin1254.fits outfile=/scratch/kocevski/6622/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1254.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=564364801.0 tmax=564624001.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.65
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/6622/ft2_4FGL_J2151.7-2749_daily_bin1254.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/6622/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1254.fits evtable="EVENTS" outfile="/scratch/kocevski/6622/ft1_filtered_4FGL_J2151.7-2749_daily_bin1254.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6622/ft1_filtered_4FGL_J2151.7-2749_daily_bin1254.fits" evtable="EVENTS" scfile=/scratch/kocevski/6622/ft2_4FGL_J2151.7-2749_daily_bin1254.fits sctable="SC_DATA" outfile=/scratch/kocevski/6622/ltcube_564364801_564624001_4FGL_J2151.7-2749_daily_bin1254.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/6622/ft2_4FGL_J2151.7-2749_daily_bin1254.fits
.....................!
real 13.99
user 13.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6622/ft1_filtered_4FGL_J2151.7-2749_daily_bin1254.fits evtable="EVENTS" scfile=/scratch/kocevski/6622/ft2_4FGL_J2151.7-2749_daily_bin1254.fits sctable="SC_DATA" expcube=/scratch/kocevski/6622/ltcube_564364801_564624001_4FGL_J2151.7-2749_daily_bin1254.fits outfile=/scratch/kocevski/6622/expmap_564364801_564624001_4FGL_J2151.7-2749_daily_bin1254.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/6622/ltcube_564364801_564624001_4FGL_J2151.7-2749_daily_bin1254.fits
.....................!
real 192.01
user 186.15
sys 5.22

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/6622/ft1_filtered_4FGL_J2151.7-2749_daily_bin1254.fits scfile=/scratch/kocevski/6622/ft2_4FGL_J2151.7-2749_daily_bin1254.fits outfile=/scratch/kocevski/6622/cmap_564364801_564624001_4FGL_J2151.7-2749_daily_bin1254.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6622/ft1_filtered_4FGL_J2151.7-2749_daily_bin1254.fits scfile=/scratch/kocevski/6622/ft2_4FGL_J2151.7-2749_daily_bin1254.fits outfile=/scratch/kocevski/6622/cmap_HighResolution_564364801_564624001_4FGL_J2151.7-2749_daily_bin1254.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6622/ft1_filtered_4FGL_J2151.7-2749_daily_bin1254.fits evtable="EVENTS" scfile=/scratch/kocevski/6622/ft2_4FGL_J2151.7-2749_daily_bin1254.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6622/Model_4FGL_J2151.7-2749_daily_bin1254.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/6622/ft1_filtered_4FGL_J2151.7-2749_daily_bin1254.fits.....................!
real 41.23
user 39.92
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1720       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.446       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.2115       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2006       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9285       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.046       1.0000         .10000E-03   10000.    
    16 'norm      '    .95270       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1717       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4704       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72201       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=   4157.574     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2278 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.411        25.947        .34111E-05    .12546E-03
   2  Prefactor     .10000E-03    2.5824        .18510E-07** at limit **
   3  norm          .10000E-03    19.172        .27055E-05** at limit **
   4  Prefactor     1.1695        8.3442       -.97231E-07   -.21392E-03
   5  Prefactor     .10000E-03    8.1399       -.72163E-07** at limit **
   6  Prefactor     10.442        18.284        .22291E-06    .42326E-05
   7  Prefactor     .10000E-03    13.056        .50535E-05** at limit **
   8  norm          .10000E-03    7.5844       -.34843E-07** at limit **
   9  Prefactor     .10000E-03    9.9998        .16508E-06** at limit **
  10  Prefactor     .10000E-03    33.511       -.91618E-06** at limit **
  11  norm          4.2156        5.4367        .12596E-05   -.13928E-02
  12  norm          3.2007        .82992       -.37048E-07    .45533E-04
  13  Prefactor     .10000E-03    17.068       -.33682E-05** at limit **
  14  Prefactor     1.9236        64.129        .62066E-05    .21805E-04
  15  Prefactor     17.042        29.089       -.20281E-05   -.43781E-04
  16  norm          .73551        51.031       -.77393E-06    .32543E-04
  17  Prefactor     .10000E-03    12.503       -.41648E-05** at limit **
  18  norm          2.1775        4.5877        .63537E-07   -.37384E-05
  19  Prefactor     .10000E-03    61.119        .48664E-06** at limit **
  20  Normalizat    1.4697        .27486        .18476E-06    .23443E-04
  21  Prefactor     .72254        .17159       -.94274E-06    .55338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4112
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.16953
  Prefactor  = 0.0001
  Prefactor  = 10.4418
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.21557
  norm       = 3.20068
  Prefactor  = 0.0001
  Prefactor  = 1.92358
  Prefactor  = 17.0417
  norm       = 0.735513
  Prefactor  = 0.0001
  norm       = 2.17754
  Prefactor  = 0.0001
  Normalizat = 1.46969
  Prefactor  = 0.722541
 **********
 **   18 **HESSE 
 **********

 FCN=   4157.574     FROM HESSE     STATUS=OK           317 CALLS     2595 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.411        26.040        .81054E-04   -1.4719    
   2  Prefactor     .10000E-03    2.5898        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1695        8.6163        .36061E-03   -1.5492    
   5  Prefactor     .10000E-03    8.1505        .17968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.442        18.311        .12397E-03   -1.5062    
   7  Prefactor     .10000E-03    13.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.6045        .17343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2156        9.3749        .98182E-03   -1.5297    
  12  norm          3.2007        .85694        .28379E-04   -1.5350    
  13  Prefactor     .10000E-03    17.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9236        64.709        .29912E-03   -1.5431    
  15  Prefactor     17.042        29.382        .97009E-04   -1.4882    
  16  norm          .73551        722.98        .78650E-02   -1.5536    
  17  Prefactor     .10000E-03    12.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1775        4.7435        .17470E-03   -1.5413    
  19  Prefactor     .10000E-03    61.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4697        .33791        .26843E-03   -.78634    
  21  Prefactor     .72254        .20633        .23679E-03   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8304e-09
Minuit parameter uncertainties:
  1  26.0518
  2  5.48953e-07
  3  0.000105518
  4  6.34988
  5  1.07861e-06
  6  18.3213
  7  0.000196307
  8  1.33791e-06
  9  4.85806e-06
  10  6.01922e-05
  11  9.37818
  12  0.856944
  13  0.000151233
  14  22.3393
  15  29.4066
  16  46.6931
  17  0.000151593
  18  4.74435
  19  5.46162e-05
  20  0.338428
  21  0.206554
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  6.019e-05  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.225e-01  2.066e-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.470e+00  3.384e-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: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/6622/likelihoodResults_564364801_564624001_4FGL_J2151.7-2749_daily_bin1254.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) = 4157.57421064
delta logL = -0.000141957528285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4157.57407073
delta logL = -2.04401567316e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7687       1.0000          .0000       10.000    
     3 'Normalizat'    1.4698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72251       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=   4157.574     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      246 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    855.02        .18142E-01** at limit **
   2  Index         2.2245        5.6709        .50000       -.12869E-07
   3  Normalizat    1.4697        .33954E-01    .26843E-03   -.14490E-03
   4  Prefactor     .72254        .21978E-01    .23679E-03   -.12008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22447
  Normalizat = 1.46969
  Prefactor  = 0.722541
 **********
 **   18 **HESSE 
 **********

 FCN=   4157.574     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7065.5        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2245        7.0607        .50000       -.58849    
   3  Normalizat    1.4697        .96001E-01    .53686E-04   -.78634    
   4  Prefactor     .72254        .62142E-01    .94716E-05   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37605e-09
Minuit parameter uncertainties:
  1  0.00146938
  2  5368.63
  3  0.0960128
  4  0.0621479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6622': 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) = 4157.57406857
delta logL = 1.12145244202e-07

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.469e-03  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.224e+00  5.369e+03  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.225e-01  6.215e-02  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.470e+00  9.601e-02  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/6622/cmap_HighResolution_564364801_564624001_4FGL_J2151.7-2749_daily_bin1254.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-27 19:42:14.581859', job_id='6622', GAL2='0.72', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1632796934.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1254' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:42:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 6622: <4FGL_J2151.7-2749_daily_bin1254> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1254> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 27 19:25:53 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:30: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:30:01 2021
Terminated at Mon Sep 27 19:42:15 2021
Results reported at Mon Sep 27 19:42:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1254 327.925 -27.8234 564364801 564624001 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 :                                   495.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            982 sec.

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

