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


Performing analysis on: 4FGL_J1351.3+1115_weekly_bin623
RA = 207.843, Dec = 11.2502
tmin = 615772801, tmax = 616377601
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='110527', job_status='RUN', time_executed='2021-07-21 04:00:43.621511', time_epoch_executed='1626865243.62' WHERE source_name='4FGL J1351.3+1115' and cadence='weekly' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110527

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110527/ft1_4FGL_J1351.3+1115_weekly_bin623.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110527/ft2_4FGL_J1351.3+1115_weekly_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110527/ft1_4FGL_J1351.3+1115_weekly_bin623.fits outfile=/scratch/kocevski/110527/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin623.fits ra=207.843 dec=11.2502 rad=12.0 tmin=615772801.0 tmax=616377601.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 8.92
user 8.53
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110527/ft1_filtered_4FGL_J1351.3+1115_weekly_bin623.fits" evtable="EVENTS" scfile=/scratch/kocevski/110527/ft2_4FGL_J1351.3+1115_weekly_bin623.fits sctable="SC_DATA" outfile=/scratch/kocevski/110527/ltcube_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.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/110527/ft2_4FGL_J1351.3+1115_weekly_bin623.fits
.....................!
real 33.73
user 33.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110527/ft1_filtered_4FGL_J1351.3+1115_weekly_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/110527/ft2_4FGL_J1351.3+1115_weekly_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/110527/ltcube_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.fits outfile=/scratch/kocevski/110527/expmap_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.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/110527/ltcube_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.fits
.....................!
real 192.60
user 187.20
sys 4.85

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/110527/ft1_filtered_4FGL_J1351.3+1115_weekly_bin623.fits scfile=/scratch/kocevski/110527/ft2_4FGL_J1351.3+1115_weekly_bin623.fits outfile=/scratch/kocevski/110527/cmap_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110527/ft1_filtered_4FGL_J1351.3+1115_weekly_bin623.fits scfile=/scratch/kocevski/110527/ft2_4FGL_J1351.3+1115_weekly_bin623.fits outfile=/scratch/kocevski/110527/cmap_HighResolution_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.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.43
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/110527/ft1_filtered_4FGL_J1351.3+1115_weekly_bin623.fits', '/scratch/kocevski/110527/ft2_4FGL_J1351.3+1115_weekly_bin623.fits', expMap='/scratch/kocevski/110527/expmap_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.fits', expCube='/scratch/kocevski/110527/ltcube_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/110527/Model_4FGL_J1351.3+1115_weekly_bin623.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/110527/ft1_filtered_4FGL_J1351.3+1115_weekly_bin623.fits
Spacecraft file(s): /scratch/kocevski/110527/ft2_4FGL_J1351.3+1115_weekly_bin623.fits
Exposure map: /scratch/kocevski/110527/expmap_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.fits
Exposure cube: /scratch/kocevski/110527/ltcube_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/110527/Model_4FGL_J1351.3+1115_weekly_bin623.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 14250.4061371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91582       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7970       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16423E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    140.20       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.464       1.0000         .10000E-03   10000.    
    13 'norm      '    .10682E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5893       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2613       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99565       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=   14250.37     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1398 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91439        3.6274        .95398E-07   -.71548E-04
   2  Prefactor     .10000E-03    6.1670        .84193E-07** at limit **
   3  Prefactor     .10000E-03    7.9612       -.78711E-07** at limit **
   4  Prefactor     .10000E-03    .96448        .34930E-08** at limit **
   5  Prefactor     .10000E-03    3.2308        .64627E-08** at limit **
   6  Prefactor     3.2846        2.8027       -.27035E-06   -.33875E-04
   7  Prefactor     .10000E-03    1.7551       -.90717E-08** at limit **
   8  Prefactor     1.7959        1.4558        .80563E-07   -.55496E-03
   9  Prefactor     .10000E-03    3.0338       -.17758E-06** at limit **
  10  Prefactor     19.069        15.773        .25290E-05    .25859E-04
  11  Prefactor     140.20        26.930        .21666E-05    .13403E-04
  12  Prefactor     22.460        18.237       -.42149E-05   -.51748E-05
  13  norm          .10000E-03    13.613        .23940E-06** at limit **
  14  Prefactor     1.5886        2.6344       -.17188E-06   -.99749E-04
  15  Prefactor     .10000E-03    2.0902       -.15015E-07** at limit **
  16  Normalizat    1.2611        .13596        .10101E-06   -.10555E-04
  17  Prefactor     .99580        .10609       -.18935E-06    .36537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.914391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28458
  Prefactor  = 0.0001
  Prefactor  = 1.79587
  Prefactor  = 0.0001
  Prefactor  = 19.0695
  Prefactor  = 140.201
  Prefactor  = 22.4604
  norm       = 0.0001
  Prefactor  = 1.58861
  Prefactor  = 0.0001
  Normalizat = 1.26113
  Prefactor  = 0.995795
 **********
 **   18 **HESSE 
 **********

 FCN=   14250.37     FROM HESSE     STATUS=OK           225 CALLS     1623 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91439        9.4624        .43200E-02   -1.5517    
   2  Prefactor     .10000E-03    6.1713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .98163        .11442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2846        2.7997        .17845E-03   -1.5345    
   7  Prefactor     .10000E-03    1.7576        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7959        7.3005        .15595E-02   -1.5440    
   9  Prefactor     .10000E-03    13.555        .40026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.069        15.704        .91723E-04   -1.4834    
  11  Prefactor     140.20        26.913        .34022E-04   -1.3334    
  12  Prefactor     22.460        18.288        .84511E-04   -1.4760    
  13  norm          .10000E-03    13.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5886        2.6056        .24191E-03   -1.5456    
  15  Prefactor     .10000E-03    2.1365        .16843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2611        .16822        .26233E-03   -.84734    
  17  Prefactor     .99580        .12949        .22843E-03   -.92870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57551e-08
Minuit parameter uncertainties:
  1  5.88385
  2  2.21507e-07
  3  5.62077e-07
  4  4.12233e-07
  5  3.12942e-07
  6  2.79984
  7  5.88148e-07
  8  7.24307
  9  0.000157901
  10  15.7075
  11  26.9155
  12  18.2922
  13  5.78329e-05
  14  2.60574
  15  4.5555e-06
  16  0.168292
  17  0.129528
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  3.285e+00  2.800e+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:  9.958e-01  1.295e-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.261e+00  1.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/110527/likelihoodResults_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.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) = 14250.3690701
delta logL = 0.00355812381713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14250.3677513
delta logL = 0.00487692723254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1281       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9373       1.0000          .0000       10.000    
     3 'Normalizat'    1.2599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99615       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=   14250.37     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      227 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1275        66.972        .57307E-02    .72238E-03
   2  Index         1.9376        3.1707        .14522        .22399E-03
   3  Normalizat    1.2599        .53437E-01    .59340E-01    .15130E-04
   4  Prefactor     .99617        .36058E-01    .46219E-01    .17378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1275
  Index      = 1.93755
  Normalizat = 1.25989
  Prefactor  = 0.996165
 **********
 **   18 **HESSE 
 **********

 FCN=   14250.37     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1275        3.4169        .17249E-03   -1.5354    
   2  Index         1.9376        .58634        .97682E-02   -.65921    
   3  Normalizat    1.2599        .16402        .26244E-03   -.84772    
   4  Prefactor     .99617        .12912        .22839E-03   -.92857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77151e-08
Minuit parameter uncertainties:
  1  3.4171
  2  0.588512
  3  0.164089
  4  0.12916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110527': 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) = 14250.3677512
delta logL = 0.00487700281701

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  3.128e+00  3.417e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.938e+00  5.885e-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:  9.962e-01  1.292e-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.260e+00  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 207.843 11.250
Photon Index (Free Index): 1.94 +/- 0.59
Photon Flux (Free Index): 1.90e-08 +/- 1.98e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.95e-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/110527/cmap_HighResolution_615772801_616377601_4FGL_J1351.3+1115_weekly_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='1.54e-05', photon_flux_error='1.51e-08', dlogl='4.88e-03', energy_flux='1.66e-05', photon_flux2='1.90e-08', job_status='DONE', time_completed='2021-07-21 04:15:06.517565', photon_index_error2='0.59', photon_index2='1.94', ts='2.26', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.24e-08', energy_flux_error2='1.95e-05', EG='1.26', time_epoch_completed='1626866106.52', return_code='0', job_id='110527', GAL2='1.00', EG2='1.26', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='1.98e-08', ts2='2.26', photon_index='1.88' WHERE bin_id='623' AND source_name='4FGL J1351.3+1115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 04:15:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 110527: <4FGL_J1351.3+1115_weekly_bin623> in cluster <slac> Done

Job <4FGL_J1351.3+1115_weekly_bin623> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Jul 21 04:00:19 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 21 04:00:28 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:28 2021
Terminated at Wed Jul 21 04:15:07 2021
Results reported at Wed Jul 21 04:15:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_weekly_bin623 207.843 11.2502 615772801 616377601 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 :                                   801.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             315.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            888 sec.

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

