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


Performing analysis on: 4FGL_J2151.7-2749_daily_bin1450
RA = 327.925, Dec = -27.8234
tmin = 615168001, tmax = 615427201
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='7467', job_status='RUN', time_executed='2021-09-27 19:34:39.114731', time_epoch_executed='1632796479.11' WHERE source_name='4FGL J2151.7-2749' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7467/ft1_4FGL_J2151.7-2749_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7467/ft2_4FGL_J2151.7-2749_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7467/ft1_4FGL_J2151.7-2749_daily_bin1450.fits outfile=/scratch/kocevski/7467/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1450.fits ra=327.925 dec=-27.8234 rad=12.0 tmin=615168001.0 tmax=615427201.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.55
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7467/ft2_4FGL_J2151.7-2749_daily_bin1450.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/7467/ft1_filteredMKT_4FGL_J2151.7-2749_daily_bin1450.fits evtable="EVENTS" outfile="/scratch/kocevski/7467/ft1_filtered_4FGL_J2151.7-2749_daily_bin1450.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/7467/ft1_filtered_4FGL_J2151.7-2749_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/7467/ft2_4FGL_J2151.7-2749_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/7467/ltcube_615168001_615427201_4FGL_J2151.7-2749_daily_bin1450.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/7467/ft2_4FGL_J2151.7-2749_daily_bin1450.fits
.....................!
real 14.50
user 14.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7467/ft1_filtered_4FGL_J2151.7-2749_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/7467/ft2_4FGL_J2151.7-2749_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/7467/ltcube_615168001_615427201_4FGL_J2151.7-2749_daily_bin1450.fits outfile=/scratch/kocevski/7467/expmap_615168001_615427201_4FGL_J2151.7-2749_daily_bin1450.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/7467/ltcube_615168001_615427201_4FGL_J2151.7-2749_daily_bin1450.fits
.....................!
real 191.13
user 185.59
sys 4.90

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/7467/ft1_filtered_4FGL_J2151.7-2749_daily_bin1450.fits scfile=/scratch/kocevski/7467/ft2_4FGL_J2151.7-2749_daily_bin1450.fits outfile=/scratch/kocevski/7467/cmap_615168001_615427201_4FGL_J2151.7-2749_daily_bin1450.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.60
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7467/ft1_filtered_4FGL_J2151.7-2749_daily_bin1450.fits scfile=/scratch/kocevski/7467/ft2_4FGL_J2151.7-2749_daily_bin1450.fits outfile=/scratch/kocevski/7467/cmap_HighResolution_615168001_615427201_4FGL_J2151.7-2749_daily_bin1450.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7467/ft1_filtered_4FGL_J2151.7-2749_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/7467/ft2_4FGL_J2151.7-2749_daily_bin1450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7467/Model_4FGL_J2151.7-2749_daily_bin1450.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/7467/ft1_filtered_4FGL_J2151.7-2749_daily_bin1450.fits.....................!
real 48.85
user 47.38
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6405       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .67761       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7127       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.404       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .24228E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13482E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0667       1.0000         .10000E-03   10000.    
    12 'norm      '    .11862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.360       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3301       1.0000         .10000E-03   10000.    
    18 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.052       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .48657       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3485       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=   5428.799     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     2900 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6430        81.369        .32989E-03    .57896E-05
   2  Prefactor     .67522        17.282        .29900E-02    .10541E-03
   3  norm          .10000E-03    8.3767        .18142E-02** at limit **
   4  Prefactor     2.7139        8.6571        .24729E-03    .12514E-03
   5  Prefactor     17.402        12.668        .96006E-04   -.73419E-05
   6  Prefactor     .10000E-03    5.6417        .17081E-02** at limit **
   7  Prefactor     .10000E-03    4.5091        .15275E-02** at limit **
   8  norm          .10000E-03    29.491        .36285E-03** at limit **
   9  Prefactor     .10000E-03    31.065        .18142E-02** at limit **
  10  Prefactor     .10001E-03    76.450        .16257    ** at limit **
  11  norm          7.0610        5.7879        .14077E-03    .53472E-03
  12  norm          .11888        .18646        .45976E-03   -.76230E-03
  13  Prefactor     .10000E-03    3.7052        .13817E-02** at limit **
  14  Prefactor     .10000E-03    7.8827        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.2754        .16414E-02** at limit **
  16  norm          13.360        12.980        .10959E-03   -.92227E-04
  17  Prefactor     5.3318        10.534        .17408E-03   -.10345E-03
  18  norm          .10000E-03    .88423        .67579E-03** at limit **
  19  Prefactor     26.021        37.317        .78485E-04    .20569E-04
  20  Normalizat    .48644        .25167        .38807E-03   -.49099E-04
  21  Prefactor     1.3485        .17916        .17719E-03   -.10913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64304
  Prefactor  = 0.675221
  norm       = 0.0001
  Prefactor  = 2.71394
  Prefactor  = 17.4018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 7.06103
  norm       = 0.118878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3603
  Prefactor  = 5.3318
  norm       = 0.0001
  Prefactor  = 26.0206
  Normalizat = 0.48644
  Prefactor  = 1.34849
 **********
 **   18 **HESSE 
 **********

 FCN=   5428.799     FROM HESSE     STATUS=OK           309 CALLS     3209 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6430        81.269        .13196E-04   -1.5452    
   2  Prefactor     .67522        17.231        .11960E-03   -1.5544    
   3  norm          .10000E-03    8.3791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7139        8.6554        .98916E-05   -1.5378    
   5  Prefactor     17.402        12.665        .38402E-05   -1.4873    
   6  Prefactor     .10000E-03    5.6419        .34163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5091        .30550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.492        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    85.946        .15139       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0610        5.7914        .56307E-05   -1.5176    
  12  norm          .11888        .18629        .18390E-04   -1.5639    
  13  Prefactor     .10000E-03    3.7056        .27633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2775        .32828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.360        12.979        .43834E-05   -1.4977    
  17  Prefactor     5.3318        10.532        .69632E-05   -1.5246    
  18  norm          .10000E-03    .88424        .13516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.021        37.303        .31394E-05   -1.4687    
  20  Normalizat    .48644        .25178        .15523E-04   -1.1305    
  21  Prefactor     1.3485        .17910        .70878E-05   -.81876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52148e-10
Minuit parameter uncertainties:
  1  23.1435
  2  6.82354
  3  6.27275e-06
  4  8.6594
  5  12.6673
  6  3.98427e-06
  7  2.80559e-06
  8  0.000169883
  9  5.60312e-05
  10  0.0016036
  11  5.79181
  12  0.186289
  13  6.00999e-06
  14  1.17733e-05
  15  1.88182e-05
  16  12.9821
  17  10.5359
  18  9.26496e-06
  19  37.3368
  20  0.252367
  21  0.179183
Done.

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

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.604e-03  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  2.714e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  6.367e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.348e+00  1.792e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  4.864e-01  2.524e-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.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7467/likelihoodResults_615168001_615427201_4FGL_J2151.7-2749_daily_bin1450.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) = 5428.79880737
delta logL = -3.25183464156e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5428.79880737
delta logL = -3.25113069266e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7143       1.0000          .0000       10.000    
     3 'Normalizat'    .48644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3485       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.

 FCN=   5428.743     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      312 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9601        345.17        .90712E-02    .35069E-03
   2  Index         3.8632        3.4481        .34228        .65142E-04
   3  Normalizat    .46156        .30719E-01    .89823E-01    .23399E-03
   4  Prefactor     1.3580        .22517E-01    .31814E-01    .55004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.96014
  Index      = 3.86319
  Normalizat = 0.461565
  Prefactor  = 1.35801
 **********
 **   18 **HESSE 
 **********

 FCN=   5428.743     FROM HESSE     STATUS=OK            31 CALLS      343 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9601        132.90        .36285E-03   -1.5263    
   2  Index         3.8632        6.9123        .98155E-02   -.22937    
   3  Normalizat    .46156        .24846        .39797E-03   -1.1423    
   4  Prefactor     1.3580        .17697        .17664E-03   -.81598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99935e-09
Minuit parameter uncertainties:
  1  51.4762
  2  5.92617
  3  0.249054
  4  0.177049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7467': 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) = 5428.74344783
delta logL = 0.0553562866553

Extracting fit parameters...

4FGL J2151.7-2749
   Spectrum: PowerLaw
266    Prefactor:  4.960e+00  5.148e+01  1.000e-04  1.000e+04 ( 1.000e-13)
267        Index:  3.863e+00  5.926e+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:  1.358e+00  1.770e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  4.616e-01  2.491e-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/7467/cmap_HighResolution_615168001_615427201_4FGL_J2151.7-2749_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-27 19:45:21.616289', job_id='7467', GAL2='1.36', fit_tolerance='1e-08', EG2='0.46', EG='0.49', time_epoch_completed='1632797121.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='5.54e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1450' AND source_name='4FGL J2151.7-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:45:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 7467: <4FGL_J2151.7-2749_daily_bin1450> in cluster <slac> Done

Job <4FGL_J2151.7-2749_daily_bin1450> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 19:30:32 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 19:33: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:33:01 2021
Terminated at Mon Sep 27 19:45:22 2021
Results reported at Mon Sep 27 19:45:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2151.7-2749_daily_bin1450 327.925 -27.8234 615168001 615427201 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 :                                   586.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            890 sec.

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

