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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1483
RA = 207.843, Dec = 11.2502
tmin = 623721601, tmax = 623980801
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='26754', job_status='RUN', time_executed='2021-09-08 15:59:24.744122', time_epoch_executed='1631141964.74' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/26754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/26754/ft1_4FGL_J1351.3+1115_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/26754/ft2_4FGL_J1351.3+1115_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/26754/ft1_4FGL_J1351.3+1115_daily_bin1483.fits outfile=/scratch/kocevski/26754/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1483.fits ra=207.843 dec=11.2502 rad=12.0 tmin=623721601.0 tmax=623980801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.24
user 4.92
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/26754/ft2_4FGL_J1351.3+1115_daily_bin1483.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/26754/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1483.fits evtable="EVENTS" outfile="/scratch/kocevski/26754/ft1_filtered_4FGL_J1351.3+1115_daily_bin1483.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.51
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/26754/ft1_filtered_4FGL_J1351.3+1115_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/26754/ft2_4FGL_J1351.3+1115_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/26754/ltcube_623721601_623980801_4FGL_J1351.3+1115_daily_bin1483.fits outfile=/scratch/kocevski/26754/expmap_623721601_623980801_4FGL_J1351.3+1115_daily_bin1483.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/26754/ltcube_623721601_623980801_4FGL_J1351.3+1115_daily_bin1483.fits
.....................!
real 192.17
user 187.15
sys 4.47

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/26754/ft1_filtered_4FGL_J1351.3+1115_daily_bin1483.fits scfile=/scratch/kocevski/26754/ft2_4FGL_J1351.3+1115_daily_bin1483.fits outfile=/scratch/kocevski/26754/cmap_623721601_623980801_4FGL_J1351.3+1115_daily_bin1483.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/26754/ft1_filtered_4FGL_J1351.3+1115_daily_bin1483.fits scfile=/scratch/kocevski/26754/ft2_4FGL_J1351.3+1115_daily_bin1483.fits outfile=/scratch/kocevski/26754/cmap_HighResolution_623721601_623980801_4FGL_J1351.3+1115_daily_bin1483.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.58
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0954       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9315       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10915E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4109       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4751       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .96692       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=   5360.457     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1356 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0939        8.9097        .65169E-06   -.95746E-04
   2  Prefactor     .10000E-03    16.523        .39538E-05** at limit **
   3  Prefactor     .10000E-03    16.267       -.36275E-05** at limit **
   4  Prefactor     .10000E-03    4.2577        .10519E-06** at limit **
   5  Prefactor     12.481        21.131        .23246E-06   -.22643E-04
   6  Prefactor     .10000E-03    6.8549       -.10406E-06** at limit **
   7  Prefactor     .10000E-03    5.5306        .21176E-07** at limit **
   8  Prefactor     3.9277        14.747        .31764E-06   -.28507E-04
   9  Prefactor     .10000E-03    7.1630        .26136E-06** at limit **
  10  Prefactor     .10006E-03    57.259        .14018E-04** at limit **
  11  Prefactor     .10001E-03    44.839       -.59099E-05** at limit **
  12  Prefactor     .10003E-03    90.107       -.10642E-04** at limit **
  13  norm          .10000E-03    27.120       -.62138E-07** at limit **
  14  Prefactor     .10000E-03    4.3942       -.27259E-06** at limit **
  15  Prefactor     4.4083        8.5569        .48891E-05   -.11762E-02
  16  Normalizat    1.4752        .23460       -.68033E-06   -.72190E-05
  17  Prefactor     .96693        .17279       -.47488E-06   -.21908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09389
  Prefactor  = 0.000100005
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 12.4811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.92769
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 0.00010001
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.40829
  Normalizat = 1.4752
  Prefactor  = 0.966928
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.457     FROM HESSE     STATUS=OK           217 CALLS     1573 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0939        8.9100        .28514E-03   -1.5419    
   2  Prefactor     .10000E-03    16.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3345        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.481        21.134        .11338E-03   -1.5001    
   6  Prefactor     .10000E-03    7.0834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5353        .16816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9277        14.763        .20346E-03   -1.5312    
   9  Prefactor     .10000E-03    7.1786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10006E-03    62.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    45.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    93.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    27.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4166        .14994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4083        9.9374        .95877E-03   -1.5288    
  16  Normalizat    1.4752        .28569        .26484E-03   -.78478    
  17  Prefactor     .96693        .20987        .23602E-03   -.93840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13819e-09
Minuit parameter uncertainties:
  1  8.64063
  2  0.000569461
  3  0.000521023
  4  7.2951e-06
  5  21.1463
  6  6.41169e-06
  7  2.07992e-06
  8  14.7767
  9  2.03012e-05
  10  0.00376879
  11  0.00137385
  12  0.00346618
  13  3.49243e-06
  14  1.84859e-05
  15  9.94111
  16  0.286003
  17  0.210051
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  6.412e-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:  9.669e-01  2.101e-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.475e+00  2.860e-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: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/26754/likelihoodResults_623721601_623980801_4FGL_J1351.3+1115_daily_bin1483.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) = 5360.45719703
delta logL = -0.000674004753819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5360.45652033
delta logL = 2.69245720119e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14628E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9932       1.0000          .0000       10.000    
     3 'Normalizat'    1.4752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96691       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=   5358.245     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      253 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22002E-01    .18284        .13002E-02    .10198E-01
   2  Index         4.5311        1.7056        .57647E-01    .24930E-03
   3  Normalizat    1.2757        .73690E-01    .63478E-01   -.25486E-03
   4  Prefactor     1.0561        .54466E-01    .45852E-01   -.77361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0220024
  Index      = 4.53114
  Normalizat = 1.27569
  Prefactor  = 1.05608
 **********
 **   18 **HESSE 
 **********

 FCN=   5358.245     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      284 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22002E-01    .32681        .57977E-05   -1.5678    
   2  Index         4.5311        2.4781        .23693E-02   -.93910E-01
   3  Normalizat    1.2757        .25982        .28081E-03   -.84295    
   4  Prefactor     1.0561        .18998        .22675E-03   -.90883    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96861e-09
Minuit parameter uncertainties:
  1  0.16921
  2  2.59391
  3  0.260087
  4  0.190102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/26754': 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) = 5358.24469328
delta logL = 2.21182974599

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.200e-02  1.692e-01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  4.531e+00  2.594e+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.056e+00  1.901e-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.276e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.77
Ra Dec: 207.843 11.250
Photon Index (Free Index): 4.53 +/- 2.59
Photon Flux (Free Index): 1.74e-07 +/- 9.76e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/26754/cmap_HighResolution_623721601_623980801_4FGL_J1351.3+1115_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', comment='SUCCESS', energy_flux2='2.43e-05', dlogl='2.21e+00', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-08 16:07:35.751534', photon_index_error2='2.59', photon_index2='4.53', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='1.43e-05', EG='1.48', time_epoch_completed='1631142455.75', return_code='0', job_id='26754', GAL2='1.06', EG2='1.28', return_code2='102', photon_flux_error2='9.76e-08', ts2='4.77', photon_index='1.88' WHERE bin_id='1483' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:07:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 26754: <4FGL_J1351.3+1115_daily_bin1483> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1483> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 15:55:26 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:55:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:55:28 2021
Terminated at Wed Sep  8 16:07:36 2021
Results reported at Wed Sep  8 16:07:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1483 207.843 11.2502 623721601 623980801 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 :                                   475.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

