aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 2 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 = 17246
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1351.3+1115_weekly_bin91
RA = 207.843, Dec = 11.2502
tmin = 294019201, tmax = 294624001
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='106466', job_status='RUN', time_executed='2021-07-21 03:46:02.486301', time_epoch_executed='1626864362.49' WHERE source_name='4FGL J1351.3+1115' and cadence='weekly' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106466

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106466/ft1_4FGL_J1351.3+1115_weekly_bin91.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106466/ft2_4FGL_J1351.3+1115_weekly_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106466/ft1_4FGL_J1351.3+1115_weekly_bin91.fits outfile=/scratch/kocevski/106466/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin91.fits ra=207.843 dec=11.2502 rad=12.0 tmin=294019201.0 tmax=294624001.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.64
user 5.32
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106466/ft2_4FGL_J1351.3+1115_weekly_bin91.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/106466/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/106466/ft1_filtered_4FGL_J1351.3+1115_weekly_bin91.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.52
user 0.37
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106466/ft1_filtered_4FGL_J1351.3+1115_weekly_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/106466/ft2_4FGL_J1351.3+1115_weekly_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/106466/ltcube_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.fits outfile=/scratch/kocevski/106466/expmap_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.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/106466/ltcube_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.fits
.....................!
real 193.20
user 187.50
sys 5.34

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/106466/ft1_filtered_4FGL_J1351.3+1115_weekly_bin91.fits scfile=/scratch/kocevski/106466/ft2_4FGL_J1351.3+1115_weekly_bin91.fits outfile=/scratch/kocevski/106466/cmap_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106466/ft1_filtered_4FGL_J1351.3+1115_weekly_bin91.fits scfile=/scratch/kocevski/106466/ft2_4FGL_J1351.3+1115_weekly_bin91.fits outfile=/scratch/kocevski/106466/cmap_HighResolution_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.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.59
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/106466/ft1_filtered_4FGL_J1351.3+1115_weekly_bin91.fits', '/scratch/kocevski/106466/ft2_4FGL_J1351.3+1115_weekly_bin91.fits', expMap='/scratch/kocevski/106466/expmap_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.fits', expCube='/scratch/kocevski/106466/ltcube_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/106466/Model_4FGL_J1351.3+1115_weekly_bin91.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/106466/ft1_filtered_4FGL_J1351.3+1115_weekly_bin91.fits
Spacecraft file(s): /scratch/kocevski/106466/ft2_4FGL_J1351.3+1115_weekly_bin91.fits
Exposure map: /scratch/kocevski/106466/expmap_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.fits
Exposure cube: /scratch/kocevski/106466/ltcube_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/106466/Model_4FGL_J1351.3+1115_weekly_bin91.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) = 13859.3342971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72944       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5759       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4386       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1776       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6604       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1961       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.898       1.0000         .10000E-03   10000.    
    13 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8045       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2777       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82372       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13859.33     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1608 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73294        3.6731         .0000        .10975E-02
   2  Prefactor     2.5759        9.0425         .0000        .21849E-03
   3  Prefactor     .10000E-03    10.526         .0000    ** at limit **
   4  Prefactor     4.0916        2.5265         .0000        .10959E-01
   5  Prefactor     4.4387        15.149         .0000        .16093E-03
   6  Prefactor     2.1776        2.0528         .0000        .10294E-03
   7  Prefactor     .10000E-03    3.1728         .0000    ** at limit **
   8  Prefactor     6.1487        7.4032         .0000        .59970E-02
   9  Prefactor     5.6606        6.5974         .0000        .23119E-03
  10  Prefactor     9.1963        10.535         .0000       -.66780E-04
  11  Prefactor     .10000E-03    3.6383         .0000    ** at limit **
  12  Prefactor     36.898        21.225         .0000       -.65305E-03
  13  norm          .10000E-03    6.3777         .0000    ** at limit **
  14  Prefactor     .10000E-03    2.0956         .0000    ** at limit **
  15  Prefactor     2.8042        3.4153         .0000        .29494E-01
  16  Normalizat    1.2776        .13015         .0000       -.11025E-03
  17  Prefactor     .82380        .96853E-01     .0000        .36993E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.732942
  Prefactor  = 2.57594
  Prefactor  = 0.0001
  Prefactor  = 4.09163
  Prefactor  = 4.43868
  Prefactor  = 2.17758
  Prefactor  = 0.0001
  Prefactor  = 6.14875
  Prefactor  = 5.66065
  Prefactor  = 9.19634
  Prefactor  = 0.0001
  Prefactor  = 36.8979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80422
  Normalizat = 1.27757
  Prefactor  = 0.823795
 **********
 **   18 **HESSE 
 **********

 FCN=   13859.33     FROM HESSE     STATUS=OK           229 CALLS     1837 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73294        12.224        .42485E-02   -1.5537    
   2  Prefactor     2.5759        9.0159        .25430E-03   -1.5387    
   3  Prefactor     .10000E-03    10.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0916        2.5281        .70274E-03   -1.5303    
   5  Prefactor     4.4387        15.110        .19114E-03   -1.5287    
   6  Prefactor     2.1776        2.0535        .15884E-03   -1.5413    
   7  Prefactor     .10000E-03    3.1995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1487        7.4109        .80955E-03   -1.5212    
   9  Prefactor     5.6606        6.5758        .16884E-03   -1.5232    
  10  Prefactor     9.1963        10.528        .13216E-03   -1.5101    
  11  Prefactor     .10000E-03    3.6421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.898        21.261        .65979E-04   -1.4492    
  13  norm          .10000E-03    6.4003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1615        .33258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8042        3.4062        .11540E-02   -1.5373    
  16  Normalizat    1.2776        .15676        .24433E-03   -.84238    
  17  Prefactor     .82380        .11636        .22570E-03   -.98857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.466e-09
Minuit parameter uncertainties:
  1  5.98753
  2  9.02066
  3  0.000106717
  4  2.5282
  5  15.1232
  6  2.0536
  7  1.81152e-05
  8  7.41202
  9  6.57663
  10  10.5299
  11  1.33625e-05
  12  21.2649
  13  7.29548e-05
  14  1.22756e-05
  15  3.40646
  16  0.156821
  17  0.116399
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.178e+00  2.054e+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:  8.238e-01  1.164e-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.278e+00  1.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.18
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.11e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/106466/likelihoodResults_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.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) = 13858.9858802
delta logL = 0.346817673926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13858.9856505
delta logL = 0.347047406354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8671       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4060       1.0000          .0000       10.000    
     3 'Normalizat'    1.2811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82331       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=   13858.99     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      264 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8651        74.047        .60018E-02   -.11515E-04
   2  Index         1.4054        5.5198        .30980       -.43488E-05
   3  Normalizat    1.2811        .54375E-01    .55185E-01    .12016E-04
   4  Prefactor     .82331        .34408E-01    .44020E-01    .29580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86511
  Index      = 1.40544
  Normalizat = 1.28111
  Prefactor  = 0.82331
 **********
 **   18 **HESSE 
 **********

 FCN=   13858.99     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8651        2.6359        .17787E-03   -1.5369    
   2  Index         1.4054        .53561        .11873E-01   -.80223    
   3  Normalizat    1.2811        .15169        .24402E-03   -.84132    
   4  Prefactor     .82331        .11599        .22574E-03   -.98875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26973e-12
Minuit parameter uncertainties:
  1  2.63603
  2  0.537756
  3  0.151747
  4  0.116022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106466': 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) = 13858.9856498
delta logL = 0.347048118003

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.865e+00  2.636e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.405e+00  5.378e-01  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:  8.233e-01  1.160e-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.281e+00  1.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 207.843 11.250
Photon Index (Free Index): 1.41 +/- 0.54
Photon Flux (Free Index): 6.62e-09 +/- 7.86e-09
Energy Flux (Free Index): 2.87e-05 +/- 3.97e-05

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/106466/cmap_HighResolution_294019201_294624001_4FGL_J1351.3+1115_weekly_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='2.87e-05', photon_flux_error='1.11e-08', dlogl='3.47e-01', energy_flux='1.10e-05', photon_flux2='6.62e-09', job_status='DONE', time_completed='2021-07-21 03:59:05.623625', photon_index_error2='0.54', photon_index2='1.41', ts='3.18', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='4.13e-08', energy_flux_error2='3.97e-05', EG='1.28', time_epoch_completed='1626865145.62', return_code='0', job_id='106466', GAL2='0.82', EG2='1.28', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='7.86e-09', ts2='3.87', photon_index='1.88' WHERE bin_id='91' AND source_name='4FGL J1351.3+1115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 03:59:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 106466: <4FGL_J1351.3+1115_weekly_bin91> in cluster <slac> Done

Job <4FGL_J1351.3+1115_weekly_bin91> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 21 03:45:29 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 21 03:45:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 21 03:45:51 2021
Terminated at Wed Jul 21 03:59:06 2021
Results reported at Wed Jul 21 03:59:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_weekly_bin91 207.843 11.2502 294019201 294624001 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 :                                   772.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             337.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            817 sec.

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

