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


Performing analysis on: 4FGL_J1351.3+1115_weekly_bin708
RA = 207.843, Dec = 11.2502
tmin = 667180801, tmax = 667785601
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='750281', job_status='RUN', time_executed='2022-03-01 01:26:50.213955', time_epoch_executed='1646126810.21' WHERE source_name='4FGL J1351.3+1115' and cadence='weekly' and bin_id='708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750281

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750281/ft1_4FGL_J1351.3+1115_weekly_bin708.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750281/ft2_4FGL_J1351.3+1115_weekly_bin708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750281/ft1_4FGL_J1351.3+1115_weekly_bin708.fits outfile=/scratch/kocevski/750281/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin708.fits ra=207.843 dec=11.2502 rad=12.0 tmin=667180801.0 tmax=667785601.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.65
user 7.34
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/750281/ft2_4FGL_J1351.3+1115_weekly_bin708.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/750281/ft1_filteredMKT_4FGL_J1351.3+1115_weekly_bin708.fits evtable="EVENTS" outfile="/scratch/kocevski/750281/ft1_filtered_4FGL_J1351.3+1115_weekly_bin708.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.36
sys 0.18
Number of photons that survived the gtmktime cut: 1024

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750281/ft1_filtered_4FGL_J1351.3+1115_weekly_bin708.fits" evtable="EVENTS" scfile=/scratch/kocevski/750281/ft2_4FGL_J1351.3+1115_weekly_bin708.fits sctable="SC_DATA" outfile=/scratch/kocevski/750281/ltcube_667180801_667785601_4FGL_J1351.3+1115_weekly_bin708.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/750281/ft2_4FGL_J1351.3+1115_weekly_bin708.fits
.....................!
real 30.42
user 29.97
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750281/ft1_filtered_4FGL_J1351.3+1115_weekly_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/750281/ft2_4FGL_J1351.3+1115_weekly_bin708.fits sctable="SC_DATA" expcube=/scratch/kocevski/750281/ltcube_667180801_667785601_4FGL_J1351.3+1115_weekly_bin708.fits outfile=/scratch/kocevski/750281/expmap_667180801_667785601_4FGL_J1351.3+1115_weekly_bin708.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/750281/ltcube_667180801_667785601_4FGL_J1351.3+1115_weekly_bin708.fits
.....................!
real 192.19
user 186.69
sys 5.02

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/750281/ft1_filtered_4FGL_J1351.3+1115_weekly_bin708.fits scfile=/scratch/kocevski/750281/ft2_4FGL_J1351.3+1115_weekly_bin708.fits outfile=/scratch/kocevski/750281/cmap_667180801_667785601_4FGL_J1351.3+1115_weekly_bin708.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=207.843 yref=11.2502 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750281/ft1_filtered_4FGL_J1351.3+1115_weekly_bin708.fits scfile=/scratch/kocevski/750281/ft2_4FGL_J1351.3+1115_weekly_bin708.fits outfile=/scratch/kocevski/750281/cmap_HighResolution_667180801_667785601_4FGL_J1351.3+1115_weekly_bin708.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.61
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0341       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4216       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22358E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.439       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0760       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .90149       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0447       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=   11918.77     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1388 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0347        3.1728       -.35380E-05   -.64690E-03
   2  Prefactor     .10000E-03    13.186       -.29610E-06** at limit **
   3  Prefactor     10.547        18.202        .72510E-06   -.22359E-03
   4  Prefactor     3.4217        2.6896       -.84890E-07   -.12109E-03
   5  Prefactor     14.101        12.981       -.32525E-06    .21008E-03
   6  Prefactor     .10000E-03    1.4826       -.79788E-07** at limit **
   7  Prefactor     .10000E-03    6.5422       -.12417E-05** at limit **
   8  Prefactor     13.438        8.6671       -.11899E-06    .76305E-04
   9  Prefactor     .10000E-03    6.0509       -.60956E-06** at limit **
  10  Prefactor     15.068        9.7447       -.60023E-07    .53809E-04
  11  Prefactor     17.814        16.605       -.10578E-05    .60875E-03
  12  Prefactor     .10000E-03    4.2872       -.17402E-06** at limit **
  13  norm          .10000E-03    8.0612        .11283E-05** at limit **
  14  Prefactor     2.0758        2.9295       -.22165E-06   -.42744E-03
  15  Prefactor     .10001E-03    1.7686        .43805E-06** at limit **
  16  Normalizat    .90148        .14255        .10118E-06    .84657E-04
  17  Prefactor     1.0447        .10647        .25580E-06    .57407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03469
  Prefactor  = 0.0001
  Prefactor  = 10.5471
  Prefactor  = 3.42175
  Prefactor  = 14.1008
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 13.4379
  Prefactor  = 0.000100001
  Prefactor  = 15.0678
  Prefactor  = 17.8135
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 2.07576
  Prefactor  = 0.000100012
  Normalizat = 0.901483
  Prefactor  = 1.04468
 **********
 **   18 **HESSE 
 **********

 FCN=   11918.77     FROM HESSE     STATUS=OK           223 CALLS     1611 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0347        5.4753        .49610E-03   -1.5505    
   2  Prefactor     .10000E-03    13.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.547        18.140        .12337E-03   -1.5058    
   4  Prefactor     3.4217        2.6894        .15168E-03   -1.5338    
   5  Prefactor     14.101        12.966        .10666E-03   -1.4957    
   6  Prefactor     .10000E-03    5.9176        .25752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.438        8.6856        .10926E-03   -1.4975    
   9  Prefactor     .10000E-03    6.1168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.068        9.7452        .10318E-03   -1.4931    
  11  Prefactor     17.814        16.422        .94892E-04   -1.4864    
  12  Prefactor     .10000E-03    4.2928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.9871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0758        2.9162        .21524E-03   -1.5420    
  15  Prefactor     .10001E-03    5.4274        .27695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .90148        .16934        .28183E-03   -.96408    
  17  Prefactor     1.0447        .12708        .19975E-03   -.91255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13313e-09
Minuit parameter uncertainties:
  1  4.7608
  2  0.00010362
  3  18.1492
  4  2.68951
  5  12.9688
  6  9.35474e-05
  7  0.000315596
  8  8.68638
  9  0.000150816
  10  9.74626
  11  16.4264
  12  3.27784e-05
  13  0.000320631
  14  2.91635
  15  0.000509339
  16  0.16944
  17  0.127119
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  9.355e-05  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.045e+00  1.271e-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.015e-01  1.694e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/750281/likelihoodResults_667180801_667785601_4FGL_J1351.3+1115_weekly_bin708.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) = 11918.7685959
delta logL = -0.000798615832537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11918.7677996
delta logL = -2.34743129113e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9209       1.0000          .0000       10.000    
     3 'Normalizat'    .90138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0448       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=   11918.77     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      225 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .36229E-01    .41277E-01** at limit **
   2  Index         1.9535        5.8246        .50000       -.32344E-04
   3  Normalizat    .90148        .53732E-03    .44919E-01    .13568E-03
   4  Prefactor     1.0447        .40900E-03    .40225E-01    .14328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95346
  Normalizat = 0.901482
  Prefactor  = 1.04468
 **********
 **   18 **HESSE 
 **********

 FCN=   11918.77     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9156        .25413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9535        7.7932        .50000       -.65519    
   3  Normalizat    .90148        .39494E-02    .28183E-03   -.96408    
   4  Prefactor     1.0447        .30073E-02    .19975E-03   -.91255    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.65839e-08
Minuit parameter uncertainties:
  1  8.80474e-05
  2  36.881
  3  0.00394943
  4  0.00300731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750281': 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): 102
logL (Free Index) = 11918.7677965
delta logL = 7.53241693019e-07

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  8.805e-05  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.953e+00  3.688e+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:  1.045e+00  3.007e-03  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.015e-01  3.949e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.843 11.250

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/750281/cmap_HighResolution_667180801_667785601_4FGL_J1351.3+1115_weekly_bin708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.35e-08', time_completed='2022-03-01 01:38:22.696989', job_id='750281', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1646127502.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='708' AND source_name='4FGL J1351.3+1115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar  1 01:38:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 750281: <4FGL_J1351.3+1115_weekly_bin708> in cluster <slac> Done

Job <4FGL_J1351.3+1115_weekly_bin708> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Mar  1 01:25:31 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 01:26:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 01:26:31 2022
Terminated at Tue Mar  1 01:38:23 2022
Results reported at Tue Mar  1 01:38:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_weekly_bin708 207.843 11.2502 667180801 667785601 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            772 sec.

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

