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


Performing analysis on: 4FGL_J1351.3+1115_weekly_bin376
RA = 207.843, Dec = 11.2502
tmin = 466387201, tmax = 466992001
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='107972', job_status='RUN', time_executed='2021-07-21 03:52:15.233015', time_epoch_executed='1626864735.23' WHERE source_name='4FGL J1351.3+1115' and cadence='weekly' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107972

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107972/ft1_4FGL_J1351.3+1115_weekly_bin376.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107972/ft2_4FGL_J1351.3+1115_weekly_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107972/ft1_4FGL_J1351.3+1115_weekly_bin376.fits outfile=/scratch/kocevski/107972/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin376.fits ra=207.843 dec=11.2502 rad=12.0 tmin=466387201.0 tmax=466992001.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.75
user 7.41
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107972/ft2_4FGL_J1351.3+1115_weekly_bin376.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/107972/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin376.fits evtable="EVENTS" outfile="/scratch/kocevski/107972/ft1_filtered_4FGL_J1351.3+1115_weekly_bin376.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/107972/ft1_filtered_4FGL_J1351.3+1115_weekly_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/107972/ft2_4FGL_J1351.3+1115_weekly_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/107972/ltcube_466387201_466992001_4FGL_J1351.3+1115_weekly_bin376.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/107972/ft2_4FGL_J1351.3+1115_weekly_bin376.fits
.....................!
real 34.20
user 33.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107972/ft1_filtered_4FGL_J1351.3+1115_weekly_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/107972/ft2_4FGL_J1351.3+1115_weekly_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/107972/ltcube_466387201_466992001_4FGL_J1351.3+1115_weekly_bin376.fits outfile=/scratch/kocevski/107972/expmap_466387201_466992001_4FGL_J1351.3+1115_weekly_bin376.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/107972/ltcube_466387201_466992001_4FGL_J1351.3+1115_weekly_bin376.fits
.....................!
real 193.32
user 186.98
sys 5.83

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/107972/ft1_filtered_4FGL_J1351.3+1115_weekly_bin376.fits scfile=/scratch/kocevski/107972/ft2_4FGL_J1351.3+1115_weekly_bin376.fits outfile=/scratch/kocevski/107972/cmap_466387201_466992001_4FGL_J1351.3+1115_weekly_bin376.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.61
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107972/ft1_filtered_4FGL_J1351.3+1115_weekly_bin376.fits scfile=/scratch/kocevski/107972/ft2_4FGL_J1351.3+1115_weekly_bin376.fits outfile=/scratch/kocevski/107972/cmap_HighResolution_466387201_466992001_4FGL_J1351.3+1115_weekly_bin376.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.41
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3667       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.716       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-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 '    2.0149       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0750       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2911       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.401       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8213       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2850       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92110       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=   14631.96     FROM MIGRAD    STATUS=CONVERGED    333 CALLS     1428 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3680        7.6472        .43369E-02    .23288E-02
   2  Prefactor     29.716        19.344        .18374E-02   -.43278E-03
   3  Prefactor     .10000E-03    197.40        .90712E-02** at limit **
   4  Prefactor     .10000E-03    1.0706        .90712E-02** at limit **
   5  Prefactor     .10000E-03    27.763        .90712E-02** at limit **
   6  Prefactor     2.0150        2.0754        .72901E-02   -.14943E-03
   7  Prefactor     5.0747        4.7955        .44620E-02   -.21951E-03
   8  Prefactor     1.2863        14.139        .97421E-02    .83108E-03
   9  Prefactor     3.3235        8.6649        .55531E-02   -.33770E-03
  10  Prefactor     .10000E-03    3.6945        .90712E-02** at limit **
  11  Prefactor     .10000E-03    5.2196        .90712E-02** at limit **
  12  Prefactor     22.401        17.106        .21157E-02   -.35217E-04
  13  norm          .10000E-03    3.9339        .90712E-02** at limit **
  14  Prefactor     3.3500        4.0942        .55267E-02    .19033E-02
  15  Prefactor     1.8242        4.6785        .77350E-02    .20957E-02
  16  Normalizat    1.2850        .13642        .58455E-01   -.71283E-03
  17  Prefactor     .92099        .99422E-01    .45273E-01   -.93873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36805
  Prefactor  = 29.7162
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.01502
  Prefactor  = 5.07469
  Prefactor  = 1.28627
  Prefactor  = 3.3235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4015
  norm       = 0.0001
  Prefactor  = 3.34999
  Prefactor  = 1.82415
  Normalizat = 1.28504
  Prefactor  = 0.920989
 **********
 **   18 **HESSE 
 **********

 FCN=   14631.96     FROM HESSE     STATUS=OK           221 CALLS     1649 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3680        7.6368        .17347E-03   -1.5245    
   2  Prefactor     29.716        19.349        .73497E-04   -1.4617    
   3  Prefactor     .10000E-03    206.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1159        .24428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0150        2.0703        .17140E-03   -1.5424    
   7  Prefactor     5.0747        4.7965        .17848E-03   -1.5257    
   8  Prefactor     1.2863        14.381        .38968E-03   -1.5481    
   9  Prefactor     3.3235        8.6428        .22212E-03   -1.5343    
  10  Prefactor     .10000E-03    3.7007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.401        17.118        .84629E-04   -1.4761    
  13  norm          .10000E-03    3.9374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3500        4.0437        .22107E-03   -1.5342    
  15  Prefactor     1.8242        4.6224        .30940E-03   -1.5438    
  16  Normalizat    1.2850        .16598        .25851E-03   -.84014    
  17  Prefactor     .92099        .12129        .22545E-03   -.95411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34913e-09
Minuit parameter uncertainties:
  1  7.63822
  2  19.3531
  3  0.00105127
  4  1.6221e-07
  5  0.000142516
  6  2.07038
  7  4.79682
  8  8.6041
  9  8.646
  10  2.57532e-05
  11  2.92574e-05
  12  17.1214
  13  2.45109e-05
  14  4.04405
  15  4.62326
  16  0.16605
  17  0.121322
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.015e+00  2.070e+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.210e-01  1.213e-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.285e+00  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/107972/likelihoodResults_466387201_466992001_4FGL_J1351.3+1115_weekly_bin376.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) = 14631.9583149
delta logL = 0.000956401043368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14631.9581925
delta logL = 0.00107882351404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0491       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8575       1.0000          .0000       10.000    
     3 'Normalizat'    1.2853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92092       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=   14631.96     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0497        62.228        .72200E-02    .39005E-03
   2  Index         1.8575        5.8939        .19183        .14205E-03
   3  Normalizat    1.2853        .48359E-01    .58449E-01    .17864E-04
   4  Prefactor     .92097        .32306E-01    .45271E-01    .30050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04974
  Index      = 1.85749
  Normalizat = 1.28532
  Prefactor  = 0.920971
 **********
 **   18 **HESSE 
 **********

 FCN=   14631.96     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0497        2.2846        .17367E-03   -1.5422    
   2  Index         1.8575        .58400        .11613E-01   -.67963    
   3  Normalizat    1.2853        .15885        .25849E-03   -.84006    
   4  Prefactor     .92097        .12029        .22545E-03   -.95412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37294e-11
Minuit parameter uncertainties:
  1  2.28474
  2  0.586217
  3  0.158911
  4  0.120321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107972': 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) = 14631.9581912
delta logL = 0.0010801663484

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.050e+00  2.285e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.857e+00  5.862e-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.210e-01  1.203e-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.285e+00  1.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 207.843 11.250
Photon Index (Free Index): 1.86 +/- 0.59
Photon Flux (Free Index): 1.05e-08 +/- 1.38e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.42e-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/107972/cmap_HighResolution_466387201_466992001_4FGL_J1351.3+1115_weekly_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-03', comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='1.06e-05', photon_flux_error='1.12e-08', dlogl='1.08e-03', energy_flux='1.02e-05', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-07-21 04:05:34.130536', photon_index_error2='0.59', photon_index2='1.86', ts='2.07', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='4.03e-08', energy_flux_error2='1.42e-05', EG='1.29', time_epoch_completed='1626865534.13', return_code='0', job_id='107972', GAL2='0.92', EG2='1.29', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='1.38e-08', ts2='2.07', photon_index='1.88' WHERE bin_id='376' AND source_name='4FGL J1351.3+1115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 04:05:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 107972: <4FGL_J1351.3+1115_weekly_bin376> in cluster <slac> Done

Job <4FGL_J1351.3+1115_weekly_bin376> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jul 21 03:50:37 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 21 03:52:02 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:52:02 2021
Terminated at Wed Jul 21 04:05:35 2021
Results reported at Wed Jul 21 04:05:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_weekly_bin376 207.843 11.2502 466387201 466992001 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            898 sec.

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

