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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1413
RA = 207.843, Dec = 11.2502
tmin = 605577601, tmax = 605836801
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='25571', job_status='RUN', time_executed='2021-09-08 15:55:37.083054', time_epoch_executed='1631141737.08' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25571/ft1_4FGL_J1351.3+1115_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25571/ft1_4FGL_J1351.3+1115_daily_bin1413.fits outfile=/scratch/kocevski/25571/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1413.fits ra=207.843 dec=11.2502 rad=12.0 tmin=605577601.0 tmax=605836801.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.17
user 4.82
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.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/25571/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1413.fits evtable="EVENTS" outfile="/scratch/kocevski/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.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.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/25571/ltcube_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.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/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits
.....................!
real 15.56
user 15.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/25571/ltcube_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.fits outfile=/scratch/kocevski/25571/expmap_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.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/25571/ltcube_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.fits
.....................!
real 195.69
user 188.31
sys 5.20

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 150 point sources and 0 extended sources

Setting source of interest to:
4FGL J1351.3+1115 @ 207.843 11.2502

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.fits scfile=/scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits outfile=/scratch/kocevski/25571/cmap_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.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.843 yref=11.2502 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.fits scfile=/scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits outfile=/scratch/kocevski/25571/cmap_HighResolution_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.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.843 yref=11.2502 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25571/Model_4FGL_J1351.3+1115_daily_bin1413.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/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.fits.....................!
real 45.97
user 44.07
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.fits', '/scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits', expMap='/scratch/kocevski/25571/expmap_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.fits', expCube='/scratch/kocevski/25571/ltcube_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25571/Model_4FGL_J1351.3+1115_daily_bin1413.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.3+1115'

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.884e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/25571/ft1_filtered_4FGL_J1351.3+1115_daily_bin1413.fits
Spacecraft file(s): /scratch/kocevski/25571/ft2_4FGL_J1351.3+1115_daily_bin1413.fits
Exposure map: /scratch/kocevski/25571/expmap_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.fits
Exposure cube: /scratch/kocevski/25571/ltcube_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25571/Model_4FGL_J1351.3+1115_daily_bin1413.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) = 5404.5810485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6229       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9301       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3451       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.844       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5189       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .64956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5404.549     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1374 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96484        12.314       -.67635E-06    .14538E-03
   2  Prefactor     .10000E-03    11.354        .10763E-05** at limit **
   3  Prefactor     .10000E-03    28.016       -.11066E-05** at limit **
   4  Prefactor     6.6228        5.2430        .54312E-07    .73515E-04
   5  Prefactor     .10000E-03    10.512       -.95572E-06** at limit **
   6  Prefactor     .68057        2.4633        .59075E-06   -.18395E-04
   7  Prefactor     .10000E-03    8.8342        .78852E-07** at limit **
   8  Prefactor     .10000E-03    3.5614        .47764E-07** at limit **
   9  Prefactor     .10000E-03    5.7121       -.24641E-07** at limit **
  10  Prefactor     2.9246        15.102        .15202E-04   -.61420E-04
  11  Prefactor     5.2655        53.767       -.14557E-04   -.19792E-03
  12  Prefactor     .10000E-03    47.351        .27968E-05** at limit **
  13  norm          .10000E-03    30.872        .60487E-06** at limit **
  14  Prefactor     10.853        10.925        .75159E-06    .88215E-04
  15  Prefactor     .10000E-03    2.3420        .93665E-07** at limit **
  16  Normalizat    1.5188        .21479        .16561E-05   -.14886E-03
  17  Prefactor     .64964        .15372       -.29247E-05    .91967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.964839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.62282
  Prefactor  = 0.0001
  Prefactor  = 0.680566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.92456
  Prefactor  = 5.26551
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 10.8533
  Prefactor  = 0.0001
  Normalizat = 1.5188
  Prefactor  = 0.649638
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.549     FROM HESSE     STATUS=OK           223 CALLS     1597 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96484        45.215        .48017E-02   -1.5512    
   2  Prefactor     .10000E-03    11.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6228        5.2505        .14185E-03   -1.5193    
   5  Prefactor     .10000E-03    10.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .68057        2.5841        .21207E-02   -1.5543    
   7  Prefactor     .10000E-03    8.8726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5665        .13549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7322        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9246        15.527        .11865E-02   -1.5366    
  11  Prefactor     5.2655        58.820        .17383E-03   -1.5249    
  12  Prefactor     .10000E-03    48.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    31.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.853        10.939        .12166E-03   -1.5049    
  15  Prefactor     .10000E-03    2.3452        .10983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5188        .25386        .23436E-03   -.77251    
  17  Prefactor     .64964        .18118        .24753E-03   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53781e-08
Minuit parameter uncertainties:
  1  13.2198
  2  9.77512e-05
  3  0.000173096
  4  5.25084
  5  0.000100841
  6  2.58451
  7  2.94431e-05
  8  2.79202e-06
  9  1.58484e-05
  10  13.4826
  11  35.2411
  12  0.000419402
  13  4.90421e-05
  14  10.9411
  15  3.51182e-06
  16  0.254076
  17  0.181345
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  6.806e-01  2.585e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.884e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  6.496e-01  1.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.519e+00  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 207.843 11.250
Photon Flux Upper Limit: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25571/likelihoodResults_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.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) = 5404.54235297
delta logL = 0.00636725546065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5404.5413987
delta logL = 0.00732152976889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56932       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1093       1.0000          .0000       10.000    
     3 'Normalizat'    1.5174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65004       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5404.541     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      228 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57383        4.8807        .44516E-01    .99611E-03
   2  Index         2.1109        .27584        .50000       -.14292E-05
   3  Normalizat    1.5175        .89767E-02    .53027E-01   -.81215E-05
   4  Prefactor     .64996        .65314E-02    .41732E-01    .16178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.57383
  Index      = 2.11095
  Normalizat = 1.51748
  Prefactor  = 0.649964
 **********
 **   18 **HESSE 
 **********

 FCN=   5404.541     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57383        3.7276        .18500E-02   -1.5556    
   2  Index         2.1109        2.2336        .28319E-02   -.61604    
   3  Normalizat    1.5175        .24734        .23444E-03   -.77288    
   4  Prefactor     .64996        .17995        .24746E-03   -1.0552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53663e-08
Minuit parameter uncertainties:
  1  2.9251
  2  2.3635
  3  0.24754
  4  0.180109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25571': 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) = 5404.54139437
delta logL = 0.00732585756032

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  5.738e-01  2.925e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.111e+00  2.364e+00  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  6.500e-01  1.801e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.517e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 207.843 11.250

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/25571/cmap_HighResolution_605577601_605836801_4FGL_J1351.3+1115_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-09-08 16:04:22.657687', job_id='25571', GAL2='0.65', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1631142262.66', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='7.33e-03', ts2='0.10', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1413' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:04:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 25571: <4FGL_J1351.3+1115_daily_bin1413> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1413> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:50:55 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:52:17 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:52:17 2021
Terminated at Wed Sep  8 16:04:23 2021
Results reported at Wed Sep  8 16:04:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1413 207.843 11.2502 605577601 605836801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.3+1115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   475.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            808 sec.

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

