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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1357
RA = 327.925, Dec = -27.8234
tmin = 591062401, tmax = 591321601
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='7327', job_status='RUN', time_executed='2021-09-27 19:33:24.993386', time_epoch_executed='1632796404.99' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7327

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7327/ft1_4FGL_J2151.7-2749_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7327/ft2_4FGL_J2151.7-2749_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7327/ft1_4FGL_J2151.7-2749_daily_bin1357.fits outfile=/scratch/kocevski/7327/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1357.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=591062401.0 tmax=591321601.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 2.54
user 2.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7327/ft2_4FGL_J2151.7-2749_daily_bin1357.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/7327/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1357.fits evtable="EVENTS" outfile="/scratch/kocevski/7327/ft1_filtered_4FGL_J2151.7-2749_daily_bin1357.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.44
user 0.27
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7327/ft1_filtered_4FGL_J2151.7-2749_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/7327/ft2_4FGL_J2151.7-2749_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/7327/ltcube_591062401_591321601_4FGL_J2151.7-2749_daily_bin1357.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/7327/ft2_4FGL_J2151.7-2749_daily_bin1357.fits
.....................!
real 14.10
user 13.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7327/ft1_filtered_4FGL_J2151.7-2749_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/7327/ft2_4FGL_J2151.7-2749_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/7327/ltcube_591062401_591321601_4FGL_J2151.7-2749_daily_bin1357.fits outfile=/scratch/kocevski/7327/expmap_591062401_591321601_4FGL_J2151.7-2749_daily_bin1357.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/7327/ltcube_591062401_591321601_4FGL_J2151.7-2749_daily_bin1357.fits
.....................!
real 157.09
user 152.33
sys 4.38

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/7327/ft1_filtered_4FGL_J2151.7-2749_daily_bin1357.fits scfile=/scratch/kocevski/7327/ft2_4FGL_J2151.7-2749_daily_bin1357.fits outfile=/scratch/kocevski/7327/cmap_591062401_591321601_4FGL_J2151.7-2749_daily_bin1357.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.49
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7327/ft1_filtered_4FGL_J2151.7-2749_daily_bin1357.fits scfile=/scratch/kocevski/7327/ft2_4FGL_J2151.7-2749_daily_bin1357.fits outfile=/scratch/kocevski/7327/cmap_HighResolution_591062401_591321601_4FGL_J2151.7-2749_daily_bin1357.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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7327/ft1_filtered_4FGL_J2151.7-2749_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/7327/ft2_4FGL_J2151.7-2749_daily_bin1357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7327/Model_4FGL_J2151.7-2749_daily_bin1357.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/7327/ft1_filtered_4FGL_J2151.7-2749_daily_bin1357.fits.....................!
real 46.49
user 45.27
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.577       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2709       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7792       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1114       1.0000         .10000E-03   10000.    
    12 'norm      '    .75104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2734       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7133       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11281E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97254       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92738       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6631.956     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2196 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.578        22.594         .0000        .14097E-04
   2  Prefactor     2.2719        7.5213         .0000        .12098E-01
   3  norm          .10000E-03    2.2359         .0000    ** at limit **
   4  Prefactor     4.0707        4.2458         .0000       -.11270E-02
   5  Prefactor     5.7786        5.4208         .0000        .17396E-03
   6  Prefactor     .10000E-03    7.9545         .0000    ** at limit **
   7  Prefactor     .10000E-03    3.1301         .0000    ** at limit **
   8  norm          .10000E-03    3.1278         .0000    ** at limit **
   9  Prefactor     .10000E-03    5.9198         .0000    ** at limit **
  10  Prefactor     .10002E-03    15.516         .0000    ** at limit **
  11  norm          2.1118        3.5554         .0000        .78773E-03
  12  norm          .75103        .29598         .0000       -.71150E-04
  13  Prefactor     .10000E-03    4.0765         .0000    ** at limit **
  14  Prefactor     .10001E-03    16.008         .0000    ** at limit **
  15  Prefactor     .10000E-03    8.1658         .0000    ** at limit **
  16  norm          1.2241        45.529         .0000        .43107E-02
  17  Prefactor     .10000E-03    13.403         .0000    ** at limit **
  18  norm          1.7080        2.0264         .0000        .34695E-03
  19  Prefactor     .10002E-03    107.86         .0000    ** at limit **
  20  Normalizat    .97256        .17934         .0000        .32510E-04
  21  Prefactor     .92734        .12115         .0000       -.30865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.5781
  Prefactor  = 2.27186
  norm       = 0.0001
  Prefactor  = 4.07072
  Prefactor  = 5.77857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 2.11181
  norm       = 0.751034
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.22405
  Prefactor  = 0.0001
  norm       = 1.70797
  Prefactor  = 0.000100016
  Normalizat = 0.972563
  Prefactor  = 0.927337
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.956     FROM HESSE     STATUS=OK           313 CALLS     2509 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.578        22.593        .59389E-04   -1.4357    
   2  Prefactor     2.2719        7.5110        .13626E-02   -1.5407    
   3  norm          .10000E-03    2.2375        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0707        4.2486        .16675E-03   -1.5304    
   5  Prefactor     5.7786        5.4189        .16707E-03   -1.5227    
   6  Prefactor     .10000E-03    7.9944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1407        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.1455        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    15.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1118        3.5327        .18328E-03   -1.5417    
  12  norm          .75103        .29723        .26320E-04   -1.5535    
  13  Prefactor     .10000E-03    4.0904        .16056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    16.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.3296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2241        46.435        .19700E-02   -1.5487    
  17  Prefactor     .10000E-03    13.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7080        2.0145        .12263E-03   -1.5447    
  19  Prefactor     .10002E-03    108.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97256        .20664        .27693E-03   -.93955    
  21  Prefactor     .92734        .14061        .19276E-03   -.95192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19514e-09
Minuit parameter uncertainties:
  1  22.5973
  2  7.51407
  3  1.98259e-05
  4  4.24888
  5  5.41939
  6  2.20879e-05
  7  4.50473e-06
  8  1.19612e-05
  9  4.75088e-06
  10  0.000992309
  11  3.53304
  12  0.297226
  13  2.9878e-05
  14  0.000570772
  15  9.69265e-05
  16  15.0903
  17  9.76724e-05
  18  2.0146
  19  0.00262493
  20  0.206809
  21  0.140661
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  9.923e-04  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:  9.273e-01  1.407e-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:  9.726e-01  2.068e-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: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7327/likelihoodResults_591062401_591321601_4FGL_J2151.7-2749_daily_bin1357.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) = 6631.95658178
delta logL = -0.000306891211949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6631.95627492
delta logL = -2.76304490399e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7013       1.0000          .0000       10.000    
     3 'Normalizat'    .97254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92734       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=   6631.956     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.645        .18142E-01** at limit **
   2  Index         2.2171        6.2149        .50000        .14325E-07
   3  Normalizat    .97256        .94193E-02    .27693E-03   -.29886E-04
   4  Prefactor     .92734        .64521E-02    .19276E-03   -.40991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21714
  Normalizat = 0.972562
  Prefactor  = 0.927337
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.956     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    403.89        .33618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2171        6.3998        .50000       -.59025    
   3  Normalizat    .97256        .22468E-01    .11077E-04   -.93955    
   4  Prefactor     .92734        .15390E-01    .77102E-05   -.95192    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05472e-11
Minuit parameter uncertainties:
  1  4.34588e-06
  2  1276.45
  3  0.022468
  4  0.0153903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7327': 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) = 6631.95627447
delta logL = 4.24176505476e-07

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  4.346e-06  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.217e+00  1.276e+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:  9.273e-01  1.539e-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:  9.726e-01  2.247e-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/7327/cmap_HighResolution_591062401_591321601_4FGL_J2151.7-2749_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-09-27 19:42:19.628603', job_id='7327', GAL2='0.93', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632796939.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1357' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:42:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 7327: <4FGL_J2151.7-2749_daily_bin1357> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1357> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 19:30:21 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:31:38 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:31:38 2021
Terminated at Mon Sep 27 19:42:20 2021
Results reported at Mon Sep 27 19:42:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1357 327.925 -27.8234 591062401 591321601 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 :                                   496.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            719 sec.

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

