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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin509
RA = 207.757, Dec = 0.4873
tmin = 371260801, tmax = 371520001
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='13767', job_status='RUN', time_executed='2021-09-08 15:18:17.932660', time_epoch_executed='1631139497.93' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13767

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13767/ft1_4FGL_J1351.0+0029_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13767/ft1_4FGL_J1351.0+0029_daily_bin509.fits outfile=/scratch/kocevski/13767/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin509.fits ra=207.757 dec=0.4873 rad=12.0 tmin=371260801.0 tmax=371520001.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 5.33
user 5.03
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.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/13767/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/13767/ltcube_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.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/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits
.....................!
real 14.15
user 13.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/13767/ltcube_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.fits outfile=/scratch/kocevski/13767/expmap_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.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/13767/ltcube_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.fits
.....................!
real 191.86
user 186.49
sys 4.48

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 J1351.0+0029 @ 207.757 0.4873

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.fits scfile=/scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits outfile=/scratch/kocevski/13767/cmap_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.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=207.757 yref=0.4873 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.fits scfile=/scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits outfile=/scratch/kocevski/13767/cmap_HighResolution_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.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=207.757 yref=0.4873 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13767/Model_4FGL_J1351.0+0029_daily_bin509.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/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.fits.....................!
real 60.07
user 58.68
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.fits', '/scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits', expMap='/scratch/kocevski/13767/expmap_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.fits', expCube='/scratch/kocevski/13767/ltcube_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13767/Model_4FGL_J1351.0+0029_daily_bin509.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.0+0029'

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.616e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/13767/ft1_filtered_4FGL_J1351.0+0029_daily_bin509.fits
Spacecraft file(s): /scratch/kocevski/13767/ft2_4FGL_J1351.0+0029_daily_bin509.fits
Exposure map: /scratch/kocevski/13767/expmap_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.fits
Exposure cube: /scratch/kocevski/13767/ltcube_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13767/Model_4FGL_J1351.0+0029_daily_bin509.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) = 7676.1845658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.371       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40423       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4007       1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.291       1.0000         .10000E-03   10000.    
    15 'norm      '    10.445       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.639       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5316       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7676.117     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     1921 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.371        13.097        .48288E-06   -.15908E-04
   2  norm          .10000E-03    4.3168        .83580E-06** at limit **
   3  Prefactor     3.4557        14.474        .17465E-05   -.98429E-04
   4  Prefactor     .10000E-03    4.6276        .43783E-05** at limit **
   5  norm          .10000E-03    .43742        .10240E-07** at limit **
   6  Prefactor     .10000E-03    16.364       -.96409E-05** at limit **
   7  norm          .10000E-03    22.447        .18989E-05** at limit **
   8  Prefactor     .10000E-03    1.6729        .47225E-07** at limit **
   9  Prefactor     .10000E-03    4.5979       -.51829E-05** at limit **
  10  Prefactor     .40439        1.4879       -.72550E-06   -.96450E-03
  11  norm          .10000E-03    2.9106        .91263E-08** at limit **
  12  Prefactor     .10000E-03    3.5423       -.35223E-07** at limit **
  13  norm          2.4007        2.5797       -.12501E-06   -.84713E-03
  14  Prefactor     52.289        26.963        .85816E-06   -.61139E-05
  15  norm          10.445        7.9708        .49020E-06    .76901E-03
  16  norm          .10000E-03    2.3500        .26519E-07** at limit **
  17  Prefactor     11.637        20.158        .36829E-05   -.53476E-04
  18  norm          .10000E-03    15.370        .82307E-05** at limit **
  19  Prefactor     .10000E-03    217.48       -.39317E-05** at limit **
  20  Normalizat    1.5317        .19680       -.38893E-06   -.22828E-04
  21  Prefactor     .76768        .13468       -.34295E-06   -.85818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.3706
  norm       = 0.0001
  Prefactor  = 3.45571
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.40439
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40073
  Prefactor  = 52.2889
  norm       = 10.4454
  norm       = 0.0001
  Prefactor  = 11.6366
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.5317
  Prefactor  = 0.767684
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.117     FROM HESSE     STATUS=OK           317 CALLS     2238 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.371        13.094        .63880E-04   -1.4452    
   2  norm          .10000E-03    4.3180        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4557        14.396        .21753E-03   -1.5336    
   4  Prefactor     .10000E-03    4.6189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .45301        .11304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    22.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.6402        .21811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .40439        2.0925        .20295E-02   -1.5581    
  11  norm          .10000E-03    2.9496        .14594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5482        .16102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4007        2.5752        .13760E-03   -1.5398    
  14  Prefactor     52.289        26.981        .55463E-04   -1.4260    
  15  norm          10.445        8.0457        .61987E-03   -1.5061    
  16  norm          .10000E-03    2.3589        .13113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.637        20.060        .11742E-03   -1.5026    
  18  norm          .10000E-03    15.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    218.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5317        .23451        .25710E-03   -.76891    
  21  Prefactor     .76768        .16089        .24087E-03   -1.0093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13146e-09
Minuit parameter uncertainties:
  1  13.0945
  2  2.51688e-07
  3  14.1121
  4  1.24059e-06
  5  4.56187e-07
  6  2.19606e-06
  7  4.96738e-06
  8  8.75373e-05
  9  1.26573e-06
  10  1.83963
  11  3.12245e-06
  12  1.27847e-06
  13  2.5753
  14  26.9878
  15  8.04655
  16  2.10872e-06
  17  20.0718
  18  5.83388e-05
  19  1.43714e-05
  20  0.23468
  21  0.160987
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.266e-06  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.677e-01  1.610e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.532e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 4.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13767/likelihoodResults_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.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) = 7676.11792296
delta logL = -0.00103499042416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7676.11688863
delta logL = -6.60706973576e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4161       1.0000          .0000       10.000    
     3 'Normalizat'    1.5319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   7676.117     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.494        .18142E-01** at limit **
   2  Index         1.8536        8.7183        .50000        .32276E-06
   3  Normalizat    1.5317        .75376E-02    .25710E-03   -.32896E-03
   4  Prefactor     .76768        .52370E-02    .24087E-03   -.34720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85358
  Normalizat = 1.5317
  Prefactor  = 0.767685
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.117     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    129.80        .20871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8536        9.0732        .50000       -.68063    
   3  Normalizat    1.5317        .23062E-01    .51420E-04   -.76891    
   4  Prefactor     .76768        .16023E-01    .96347E-05   -1.0093    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91593e-09
Minuit parameter uncertainties:
  1  9.92873e-05
  2  626.051
  3  0.0230623
  4  0.0160236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13767': 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) = 7676.11688541
delta logL = 2.55320355791e-06

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  9.929e-05  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.854e+00  6.261e+02  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  7.677e-01  1.602e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.532e+00  2.306e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

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/13767/cmap_HighResolution_371260801_371520001_4FGL_J1351.0+0029_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-09-08 15:28:55.424848', job_id='13767', GAL2='0.77', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631140135.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='509' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 13767: <4FGL_J1351.0+0029_daily_bin509> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin509> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:34 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:15:41 2021
Terminated at Wed Sep  8 15:28:56 2021
Results reported at Wed Sep  8 15:28:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin509 207.757 0.4873 371260801 371520001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.0+0029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   634.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            802 sec.

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

