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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1007
RA = 207.843, Dec = 11.2502
tmin = 500342401, tmax = 500601601
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='23823', job_status='RUN', time_executed='2021-09-08 15:49:07.096051', time_epoch_executed='1631141347.1' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23823

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23823/ft1_4FGL_J1351.3+1115_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23823/ft2_4FGL_J1351.3+1115_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23823/ft1_4FGL_J1351.3+1115_daily_bin1007.fits outfile=/scratch/kocevski/23823/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1007.fits ra=207.843 dec=11.2502 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.71
user 4.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23823/ft1_filtered_4FGL_J1351.3+1115_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/23823/ft2_4FGL_J1351.3+1115_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/23823/ltcube_500342401_500601601_4FGL_J1351.3+1115_daily_bin1007.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/23823/ft2_4FGL_J1351.3+1115_daily_bin1007.fits
.....................!
real 16.81
user 16.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23823/ft1_filtered_4FGL_J1351.3+1115_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/23823/ft2_4FGL_J1351.3+1115_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/23823/ltcube_500342401_500601601_4FGL_J1351.3+1115_daily_bin1007.fits outfile=/scratch/kocevski/23823/expmap_500342401_500601601_4FGL_J1351.3+1115_daily_bin1007.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/23823/ltcube_500342401_500601601_4FGL_J1351.3+1115_daily_bin1007.fits
.....................!
real 193.59
user 187.58
sys 5.16

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/23823/ft1_filtered_4FGL_J1351.3+1115_daily_bin1007.fits scfile=/scratch/kocevski/23823/ft2_4FGL_J1351.3+1115_daily_bin1007.fits outfile=/scratch/kocevski/23823/cmap_500342401_500601601_4FGL_J1351.3+1115_daily_bin1007.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74955       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6257       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4258       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4402       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5538       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4015       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4689       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94815       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=   7059.435     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1594 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.583        .37528E-05** at limit **
   2  Prefactor     .10000E-03    13.338       -.43283E-05** at limit **
   3  Prefactor     .10001E-03    29.596        .51899E-05** at limit **
   4  Prefactor     .74351        3.0895        .55247E-06   -.27984E-03
   5  Prefactor     7.6121        19.188       -.28815E-05   -.21300E-03
   6  Prefactor     2.4257        3.0678        .50049E-06   -.38067E-03
   7  Prefactor     4.4386        18.957       -.41280E-06   -.53770E-04
   8  Prefactor     9.5541        15.446        .54111E-07   -.34990E-04
   9  Prefactor     .10000E-03    5.5650        .67965E-07** at limit **
  10  Prefactor     .10000E-03    22.419        .19677E-05** at limit **
  11  Prefactor     9.4103        42.259       -.15805E-05    .72646E-04
  12  Prefactor     .10001E-03    36.281       -.59230E-05** at limit **
  13  norm          .10000E-03    8.5910       -.10639E-05** at limit **
  14  Prefactor     5.2688        8.5462        .43737E-05   -.82873E-03
  15  Prefactor     .10000E-03    4.9839       -.64741E-06** at limit **
  16  Normalizat    1.4689        .21372       -.29575E-06   -.10823E-03
  17  Prefactor     .94822        .15157       -.54313E-06   -.86230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 0.000100006
  Prefactor  = 0.743513
  Prefactor  = 7.6121
  Prefactor  = 2.42569
  Prefactor  = 4.43856
  Prefactor  = 9.55415
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.41032
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 5.26882
  Prefactor  = 0.0001
  Normalizat = 1.46888
  Prefactor  = 0.948218
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.435     FROM HESSE     STATUS=OK           223 CALLS     1817 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    30.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74351        5.7200        .27347E-02   -1.5536    
   5  Prefactor     7.6121        19.458        .14522E-03   -1.5156    
   6  Prefactor     2.4257        3.0651        .80294E-03   -1.5396    
   7  Prefactor     4.4386        18.990        .19110E-03   -1.5287    
   8  Prefactor     9.5541        15.502        .12965E-03   -1.5090    
   9  Prefactor     .10000E-03    5.5835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.4103        44.644        .13070E-03   -1.5094    
  12  Prefactor     .10001E-03    37.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.6259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2688        9.3978        .87560E-03   -1.5249    
  15  Prefactor     .10000E-03    5.0604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.4689        .26025        .26610E-03   -.78657    
  17  Prefactor     .94822        .18441        .23820E-03   -.94476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98871e-08
Minuit parameter uncertainties:
  1  0.000359921
  2  0.000484086
  3  0.000863673
  4  4.12478
  5  19.4743
  6  3.06528
  7  18.3713
  8  15.5087
  9  1.89163e-05
  10  0.000299036
  11  41.0429
  12  0.000988819
  13  9.13023e-05
  14  9.40042
  15  5.78324e-05
  16  0.260485
  17  0.184527
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.426e+00  3.065e+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.482e-01  1.845e-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.469e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.31e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.55e-05

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

Saving results to:
/scratch/kocevski/23823/likelihoodResults_500342401_500601601_4FGL_J1351.3+1115_daily_bin1007.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) = 7059.34114067
delta logL = 0.094181231394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7059.33808738
delta logL = 0.0972345207965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8159       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5408       1.0000          .0000       10.000    
     3 'Normalizat'    1.4739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94682       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7059.338     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      257 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8156        3.4896        .17055E-03    .16734E-02
   2  Index         1.5396        .74700        .12016E-01    .22783E-03
   3  Normalizat    1.4738        .24726        .26573E-03   -.19007E-03
   4  Prefactor     .94697        .18391        .23832E-03   -.23534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.81565
  Index      = 1.53957
  Normalizat = 1.47376
  Prefactor  = 0.946973
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.338     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8156        3.4914        .34109E-04   -1.5372    
   2  Index         1.5396        .74756        .48065E-03   -.76437    
   3  Normalizat    1.4738        .24750        .53145E-04   -.78518    
   4  Prefactor     .94697        .18410        .47665E-04   -.94519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67732e-09
Minuit parameter uncertainties:
  1  3.49164
  2  0.753008
  3  0.247699
  4  0.184219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23823': 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) = 7059.33808565
delta logL = 0.0972362569864

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.816e+00  3.492e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.540e+00  7.530e-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.470e-01  1.842e-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.474e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 207.843 11.250
Photon Index (Free Index): 1.54 +/- 0.75
Photon Flux (Free Index): 7.89e-09 +/- 1.38e-08
Energy Flux (Free Index): 2.18e-05 +/- 3.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/23823/cmap_HighResolution_500342401_500601601_4FGL_J1351.3+1115_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', comment='SUCCESS', photon_flux='1.31e-08', energy_flux2='2.18e-05', photon_flux_error='1.66e-08', dlogl='9.72e-02', energy_flux='1.23e-05', photon_flux2='7.89e-09', job_status='DONE', time_completed='2021-09-08 15:58:15.441697', photon_index_error2='0.75', photon_index2='1.54', ts='1.39', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.56e-08', energy_flux_error2='3.90e-05', EG='1.47', time_epoch_completed='1631141895.44', return_code='0', job_id='23823', GAL2='0.95', EG2='1.47', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='1.38e-08', ts2='1.59', photon_index='1.88' WHERE bin_id='1007' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:58:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 23823: <4FGL_J1351.3+1115_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1007> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:46:03 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:47:58 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:47:58 2021
Terminated at Wed Sep  8 15:58:16 2021
Results reported at Wed Sep  8 15:58:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1007 207.843 11.2502 500342401 500601601 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 :                                   541.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            733 sec.

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

