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 1 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 = 17162
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1351.3+1115_weekly_bin668
RA = 207.843, Dec = 11.2502
tmin = 642988801, tmax = 643593601
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='110610', job_status='RUN', time_executed='2021-07-21 04:01:05.638579', time_epoch_executed='1626865265.64' WHERE source_name='4FGL J1351.3+1115' and cadence='weekly' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110610

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110610/ft1_4FGL_J1351.3+1115_weekly_bin668.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110610/ft2_4FGL_J1351.3+1115_weekly_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110610/ft1_4FGL_J1351.3+1115_weekly_bin668.fits outfile=/scratch/kocevski/110610/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin668.fits ra=207.843 dec=11.2502 rad=12.0 tmin=642988801.0 tmax=643593601.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 7.58
user 7.17
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110610/ft2_4FGL_J1351.3+1115_weekly_bin668.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/110610/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin668.fits evtable="EVENTS" outfile="/scratch/kocevski/110610/ft1_filtered_4FGL_J1351.3+1115_weekly_bin668.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.57
user 0.39
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110610/ft1_filtered_4FGL_J1351.3+1115_weekly_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/110610/ft2_4FGL_J1351.3+1115_weekly_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/110610/ltcube_642988801_643593601_4FGL_J1351.3+1115_weekly_bin668.fits outfile=/scratch/kocevski/110610/expmap_642988801_643593601_4FGL_J1351.3+1115_weekly_bin668.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/110610/ltcube_642988801_643593601_4FGL_J1351.3+1115_weekly_bin668.fits
.....................!
real 191.88
user 186.98
sys 4.43

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/110610/ft1_filtered_4FGL_J1351.3+1115_weekly_bin668.fits scfile=/scratch/kocevski/110610/ft2_4FGL_J1351.3+1115_weekly_bin668.fits outfile=/scratch/kocevski/110610/cmap_642988801_643593601_4FGL_J1351.3+1115_weekly_bin668.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110610/ft1_filtered_4FGL_J1351.3+1115_weekly_bin668.fits scfile=/scratch/kocevski/110610/ft2_4FGL_J1351.3+1115_weekly_bin668.fits outfile=/scratch/kocevski/110610/cmap_HighResolution_642988801_643593601_4FGL_J1351.3+1115_weekly_bin668.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.60
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11596E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.057       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0510       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5462       1.0000         .10000E-03   10000.    
    13 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95068E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5485       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .99599       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0128       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=   12521.83     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1426 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.651        .90712E-02** at limit **
   2  Prefactor     35.056        21.192        .16921E-02    .13731E-02
   3  Prefactor     .10000E-03    10.788        .90712E-02** at limit **
   4  Prefactor     .68689        1.7301        .12011E-01    .27480E-02
   5  Prefactor     .10000E-03    8.3628        .90712E-02** at limit **
   6  Prefactor     .10000E-03    1.6984        .45604E-01** at limit **
   7  Prefactor     .10000E-03    2.4546        .90712E-02** at limit **
   8  Prefactor     .92276        3.0757        .96722E-01    .53126E-03
   9  Prefactor     9.0481        7.9993        .33306E-02    .26334E-02
  10  Prefactor     .10000E-03    3.9581        .90712E-02** at limit **
  11  Prefactor     40.260        18.719        .15793E-02    .10782E-02
  12  Prefactor     4.5446        12.787        .47201E-02    .62588E-03
  13  norm          .10000E-03    10.453        .90712E-02** at limit **
  14  Prefactor     .91132E-01    1.6479        .48579E-01    .14895E-02
  15  Prefactor     1.5484        2.0931        .85588E-02    .92998E-03
  16  Normalizat    .99615        .13132        .46117E-01    .51389E-04
  17  Prefactor     1.0128        .10240        .42943E-01   -.40432E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.0563
  Prefactor  = 0.000100001
  Prefactor  = 0.686885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.922762
  Prefactor  = 9.0481
  Prefactor  = 0.0001
  Prefactor  = 40.2603
  Prefactor  = 4.54462
  norm       = 0.000100001
  Prefactor  = 0.0911319
  Prefactor  = 1.54839
  Normalizat = 0.996152
  Prefactor  = 1.01277
 **********
 **   18 **HESSE 
 **********

 FCN=   12521.83     FROM HESSE     STATUS=OK           229 CALLS     1655 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.304        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.056        21.201        .67683E-04   -1.4523    
   3  Prefactor     .10000E-03    10.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68689        1.6929        .22424E-03   -1.5542    
   5  Prefactor     .10000E-03    8.4181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3485        .28139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4600        .17119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .92276        11.846        .33520E-02   -1.5516    
   9  Prefactor     9.0481        7.9951        .66611E-03   -1.5106    
  10  Prefactor     .10000E-03    3.9677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.260        18.655        .63173E-04   -1.4438    
  12  Prefactor     4.5446        12.772        .18881E-03   -1.5282    
  13  norm          .10000E-03    10.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .91132E-01    10.335        .27604E-02   -1.5648    
  15  Prefactor     1.5484        2.0666        .18213E-03   -1.5459    
  16  Normalizat    .99615        .15704        .25746E-03   -.93159    
  17  Prefactor     1.0128        .12284        .20313E-03   -.92305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50897e-08
Minuit parameter uncertainties:
  1  6.68272e-06
  2  21.2059
  3  0.000178565
  4  1.693
  5  6.85529e-06
  6  3.18435e-06
  7  1.02821e-06
  8  6.61376
  9  7.99609
  10  4.17347e-06
  11  18.6578
  12  12.7797
  13  0.000218034
  14  1.94028
  15  2.06666
  16  0.157118
  17  0.12287
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.184e-06  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:  1.013e+00  1.229e-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:  9.962e-01  1.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/110610/likelihoodResults_642988801_643593601_4FGL_J1351.3+1115_weekly_bin668.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) = 12521.8345077
delta logL = -0.00109179646643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12521.8334145
delta logL = 1.38174073072e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9397       1.0000          .0000       10.000    
     3 'Normalizat'    .99613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0128       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   12521.00     FROM MIGRAD    STATUS=FAILED       295 CALLS      465 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12177E-03    .14063E-02    .15473E-04** at limit **
   2  Index         5.7573        .92773        .46883E-02    .18266E-02
   3  Normalizat    .93853        .15996        .26440E-03   -.55381E-04
   4  Prefactor     1.0418        .12500        .20061E-03    .31217E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12521.00     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      543 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12177E-03    .14063E-02    .86853E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.7573        .92773        .22956E-02    .15205    
   3  Normalizat    .93853        .15996        .26186E-03   -.95119    
   4  Prefactor     1.0418        .12500        .17675E-03   -.91350    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12521.00     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      579 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12176E-03    .24809E-01    .61891E-06** at limit **
   2  Index         5.7573        3.4927        .93767E-03   -.56985E-05
   3  Normalizat    .93853        .15118        .10576E-04   -.10749E-04
   4  Prefactor     1.0418        .11836        .40121E-04   -.74807E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000121765
  Index      = 5.75735
  Normalizat = 0.938531
  Prefactor  = 1.04178
 **********
 **   18 **HESSE 
 **********

 FCN=   12521.00     FROM HESSE     STATUS=OK            23 CALLS      602 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12176E-03    .13772E-01    .37453E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.7573        2.7267        .37507E-04    .15206    
   3  Normalizat    .93853        .15966        .21152E-05   -.95119    
   4  Prefactor     1.0418        .12489        .80242E-05   -.91350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11786e-09
Minuit parameter uncertainties:
  1  0.00109496
  2  2.88837
  3  0.159742
  4  0.124928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110610': 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) = 12521.0022709
delta logL = 0.831144943015

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.218e-04  1.095e-03  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  5.757e+00  2.888e+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:  1.042e+00  1.249e-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:  9.385e-01  1.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 207.843 11.250
Photon Index (Free Index): 5.76 +/- 2.89
Photon Flux (Free Index): 3.99e-08 +/- 7.05e-07
Energy Flux (Free Index): 5.04e-06 +/- 8.85e-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/110610/cmap_HighResolution_642988801_643593601_4FGL_J1351.3+1115_weekly_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', comment='SUCCESS', energy_flux2='5.04e-06', dlogl='8.31e-01', photon_flux2='3.99e-08', job_status='DONE', time_completed='2021-07-21 04:14:14.115514', photon_index_error2='2.89', photon_index2='5.76', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='3.66e-08', energy_flux_error2='8.85e-05', EG='1.00', time_epoch_completed='1626866054.12', return_code='0', job_id='110610', GAL2='1.04', EG2='0.94', return_code2='0', photon_flux_error2='7.05e-07', ts2='1.77', photon_index='1.88' WHERE bin_id='668' AND source_name='4FGL J1351.3+1115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 04:14:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 110610: <4FGL_J1351.3+1115_weekly_bin668> in cluster <slac> Done

Job <4FGL_J1351.3+1115_weekly_bin668> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Jul 21 04:00:29 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 21 04:00:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 21 04:00:56 2021
Terminated at Wed Jul 21 04:14:15 2021
Results reported at Wed Jul 21 04:14:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_weekly_bin668 207.843 11.2502 642988801 643593601 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 :                                   774.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            826 sec.

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

