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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin519
RA = 207.757, Dec = 0.4873
tmin = 373852801, tmax = 374112001
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='13781', job_status='RUN', time_executed='2021-09-08 15:17:54.868773', time_epoch_executed='1631139474.87' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13781/ft1_4FGL_J1351.0+0029_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13781/ft2_4FGL_J1351.0+0029_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13781/ft1_4FGL_J1351.0+0029_daily_bin519.fits outfile=/scratch/kocevski/13781/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin519.fits ra=207.757 dec=0.4873 rad=12.0 tmin=373852801.0 tmax=374112001.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 4.74
user 4.23
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13781/ft2_4FGL_J1351.0+0029_daily_bin519.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/13781/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin519.fits evtable="EVENTS" outfile="/scratch/kocevski/13781/ft1_filtered_4FGL_J1351.0+0029_daily_bin519.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.60
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13781/ft1_filtered_4FGL_J1351.0+0029_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/13781/ft2_4FGL_J1351.0+0029_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/13781/ltcube_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.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/13781/ft2_4FGL_J1351.0+0029_daily_bin519.fits
.....................!
real 17.28
user 16.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13781/ft1_filtered_4FGL_J1351.0+0029_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/13781/ft2_4FGL_J1351.0+0029_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/13781/ltcube_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.fits outfile=/scratch/kocevski/13781/expmap_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.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/13781/ltcube_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.fits
.....................!
real 193.25
user 186.73
sys 6.00

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/13781/ft1_filtered_4FGL_J1351.0+0029_daily_bin519.fits scfile=/scratch/kocevski/13781/ft2_4FGL_J1351.0+0029_daily_bin519.fits outfile=/scratch/kocevski/13781/cmap_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13781/ft1_filtered_4FGL_J1351.0+0029_daily_bin519.fits scfile=/scratch/kocevski/13781/ft2_4FGL_J1351.0+0029_daily_bin519.fits outfile=/scratch/kocevski/13781/cmap_HighResolution_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.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.57
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13781/ft1_filtered_4FGL_J1351.0+0029_daily_bin519.fits', '/scratch/kocevski/13781/ft2_4FGL_J1351.0+0029_daily_bin519.fits', expMap='/scratch/kocevski/13781/expmap_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.fits', expCube='/scratch/kocevski/13781/ltcube_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13781/Model_4FGL_J1351.0+0029_daily_bin519.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/13781/ft1_filtered_4FGL_J1351.0+0029_daily_bin519.fits
Spacecraft file(s): /scratch/kocevski/13781/ft2_4FGL_J1351.0+0029_daily_bin519.fits
Exposure map: /scratch/kocevski/13781/expmap_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.fits
Exposure cube: /scratch/kocevski/13781/ltcube_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13781/Model_4FGL_J1351.0+0029_daily_bin519.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) = 5318.25268334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.859       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17855E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4079       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.359       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7567       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0386       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7414       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5365       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .65702       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3366       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=   5318.246     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2238 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.862        13.902       -.11146E-05   -.53833E-04
   2  norm          .10000E-03    5.6273        .53697E-09** at limit **
   3  Prefactor     .10034E-03    14.901       -.78446E-06** at limit **
   4  Prefactor     9.4078        7.5651        .16623E-07    .91428E-05
   5  norm          .10000E-03    .98932        .16971E-07** at limit **
   6  Prefactor     .10000E-03    15.036        .57041E-08** at limit **
   7  norm          20.359        23.936       -.67249E-07   -.38090E-06
   8  Prefactor     3.7566        3.2197       -.17526E-07   -.27750E-04
   9  Prefactor     32.410        26.865       -.37532E-06   -.53808E-05
  10  Prefactor     .10000E-03    1.4969        .68704E-08** at limit **
  11  norm          5.0376        5.4655        .43136E-06   -.58679E-03
  12  Prefactor     .10000E-03    3.8938        .16037E-07** at limit **
  13  norm          3.1623        4.0061       -.75671E-07   -.11579E-03
  14  Prefactor     7.7382        29.168       -.15247E-05   -.12542E-04
  15  norm          5.5360        13.413        .43513E-06   -.42801E-05
  16  norm          .10000E-03    3.8534       -.10395E-07** at limit **
  17  Prefactor     .10000E-03    26.464       -.10226E-06** at limit **
  18  norm          .10000E-03    18.284       -.35615E-07** at limit **
  19  Prefactor     .10000E-03    187.59        .12919E-04** at limit **
  20  Normalizat    .65703        .24538        .55010E-06    .21367E-04
  21  Prefactor     1.3366        .17656        .11619E-07    .42216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.8622
  norm       = 0.0001
  Prefactor  = 0.000100342
  Prefactor  = 9.40784
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.3594
  Prefactor  = 3.75661
  Prefactor  = 32.4097
  Prefactor  = 0.0001
  norm       = 5.03761
  Prefactor  = 0.0001
  norm       = 3.1623
  Prefactor  = 7.7382
  norm       = 5.53597
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.657033
  Prefactor  = 1.33656
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.246     FROM HESSE     STATUS=OK           329 CALLS     2567 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.862        13.967        .85670E-04   -1.4772    
   2  norm          .10000E-03    5.6289        .16896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10034E-03    15.337        .86982E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4078        7.5651        .13066E-03   -1.5094    
   5  norm          .10000E-03    1.5687        .13913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.359        23.940        .88767E-04   -1.4805    
   8  Prefactor     3.7566        3.2187        .11682E-03   -1.5320    
   9  Prefactor     32.410        26.885        .70384E-04   -1.4569    
  10  Prefactor     .10000E-03    1.5032        .87133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0376        11.182        .89569E-03   -1.5259    
  12  Prefactor     .10000E-03    3.8959        .14053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1623        3.9866        .15335E-03   -1.5352    
  14  Prefactor     7.7382        29.237        .14412E-03   -1.5152    
  15  norm          5.5360        13.436        .17075E-03   -1.5237    
  16  norm          .10000E-03    3.8590        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    18.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    189.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .65703        .27269        .36400E-03   -1.0561    
  21  Prefactor     1.3366        .20098        .19451E-03   -.82226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90458e-10
Minuit parameter uncertainties:
  1  13.9689
  2  9.9811e-07
  3  0.00458044
  4  7.56591
  5  2.76856e-06
  6  3.47327e-07
  7  23.9508
  8  3.21885
  9  26.8952
  10  3.19082e-07
  11  11.1865
  12  1.28721e-06
  13  3.98695
  14  29.2915
  15  13.4436
  16  3.87442e-07
  17  8.47716e-06
  18  2.77584e-06
  19  0.00101681
  20  0.273249
  21  0.201093
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.241e+01  2.690e+01  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:  1.337e+00  2.011e-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:  6.570e-01  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.17e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.60e-05

TS (Fixed Index): 2.18
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13781/likelihoodResults_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.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): 0
logL (Free Index) = 5318.23988383
delta logL = 0.00597669176113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5318.23542548
delta logL = 0.0104350498632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.569       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3344       1.0000          .0000       10.000    
     3 'Normalizat'    .66274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3337       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=   5318.235     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.570        37.285        .67196E-04   -.15921E-03
   2  Index         2.3343        .72512        .78193E-02   -.22191E-04
   3  Normalizat    .66291        .26977        .36249E-03   -.58586E-04
   4  Prefactor     1.3336        .19805        .19469E-03   -.84634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.5704
  Index      = 2.33435
  Normalizat = 0.662911
  Prefactor  = 1.33357
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.235     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.570        35.713        .13439E-04   -1.4514    
   2  Index         2.3343        .69409        .31277E-03   -.56230    
   3  Normalizat    .66291        .26965        .14500E-04   -1.0538    
   4  Prefactor     1.3336        .19803        .38939E-04   -.82314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25672e-11
Minuit parameter uncertainties:
  1  35.7341
  2  0.69724
  3  0.270192
  4  0.198138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13781': 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) = 5318.23542526
delta logL = 0.0104352688786

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.557e+01  3.573e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.334e+00  6.972e-01  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:  1.334e+00  1.981e-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:  6.629e-01  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.33 +/- 0.70
Photon Flux (Free Index): 5.76e-08 +/- 5.66e-08
Energy Flux (Free Index): 2.07e-05 +/- 2.02e-05

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/13781/cmap_HighResolution_373852801_374112001_4FGL_J1351.0+0029_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.17e-08', energy_flux2='2.07e-05', photon_flux_error='5.12e-08', dlogl='1.04e-02', energy_flux='1.93e-05', photon_flux2='5.76e-08', job_status='DONE', time_completed='2021-09-08 15:27:04.629846', photon_index_error2='0.70', photon_index2='2.33', ts='2.18', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='2.02e-05', EG='0.66', time_epoch_completed='1631140024.63', return_code='0', job_id='13781', GAL2='1.33', EG2='0.66', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.66e-08', ts2='2.19', photon_index='2.44' WHERE bin_id='519' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:27:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 13781: <4FGL_J1351.0+0029_daily_bin519> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin519> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:35 2021
Job was executed on host(s) <bullet0137>, 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:27:05 2021
Results reported at Wed Sep  8 15:27:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin519 207.757 0.4873 373852801 374112001 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 :                                   546.58 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            690 sec.

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

