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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin857
RA = 207.843, Dec = 11.2502
tmin = 461462401, tmax = 461721601
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='23562', job_status='RUN', time_executed='2021-09-08 15:47:44.036911', time_epoch_executed='1631141264.04' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='857'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23562/ft1_4FGL_J1351.3+1115_daily_bin857.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23562/ft2_4FGL_J1351.3+1115_daily_bin857.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23562/ft1_4FGL_J1351.3+1115_daily_bin857.fits outfile=/scratch/kocevski/23562/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin857.fits ra=207.843 dec=11.2502 rad=12.0 tmin=461462401.0 tmax=461721601.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 3.96
user 3.73
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23562/ft1_filtered_4FGL_J1351.3+1115_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/23562/ft2_4FGL_J1351.3+1115_daily_bin857.fits sctable="SC_DATA" expcube=/scratch/kocevski/23562/ltcube_461462401_461721601_4FGL_J1351.3+1115_daily_bin857.fits outfile=/scratch/kocevski/23562/expmap_461462401_461721601_4FGL_J1351.3+1115_daily_bin857.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/23562/ltcube_461462401_461721601_4FGL_J1351.3+1115_daily_bin857.fits
.....................!
real 191.88
user 185.85
sys 5.37

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/23562/ft1_filtered_4FGL_J1351.3+1115_daily_bin857.fits scfile=/scratch/kocevski/23562/ft2_4FGL_J1351.3+1115_daily_bin857.fits outfile=/scratch/kocevski/23562/cmap_461462401_461721601_4FGL_J1351.3+1115_daily_bin857.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.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23666E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3541       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9073       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.097       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.761       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1978       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3384       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84634       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=   5365.281     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1406 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10323E-03    8.9275       -.72876E-06** at limit **
   2  Prefactor     .10000E-03    14.489        .77454E-06** at limit **
   3  Prefactor     .10000E-03    23.298        .51939E-05** at limit **
   4  Prefactor     .10000E-03    2.2136       -.28821E-07** at limit **
   5  Prefactor     .10000E-03    18.203       -.29868E-05** at limit **
   6  Prefactor     4.3539        4.0159       -.24911E-07   -.29495E-04
   7  Prefactor     .10000E-03    7.3372       -.39926E-09** at limit **
   8  Prefactor     .10000E-03    10.497       -.13026E-06** at limit **
   9  Prefactor     1.8922        36.779        .21130E-04   -.90329E-04
  10  Prefactor     47.105        29.988       -.64326E-05   -.12985E-03
  11  Prefactor     .10000E-03    8.3066        .35023E-07** at limit **
  12  Prefactor     .10000E-03    28.688       -.37959E-05** at limit **
  13  norm          21.767        26.643       -.91135E-05    .46876E-05
  14  Prefactor     1.1980        4.7465       -.17414E-05   -.88542E-03
  15  Prefactor     .10000E-03    4.2618        .47198E-07** at limit **
  16  Normalizat    1.3386        .20931       -.73189E-06    .33308E-04
  17  Prefactor     .84622        .15917        .88751E-06   -.79291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.35393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.89222
  Prefactor  = 47.1049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.7672
  Prefactor  = 1.19795
  Prefactor  = 0.0001
  Normalizat = 1.3386
  Prefactor  = 0.846219
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.281     FROM HESSE     STATUS=OK           227 CALLS     1633 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10323E-03    17.045        .65279E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2411        .10638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3539        4.0162        .13683E-03   -1.5291    
   7  Prefactor     .10000E-03    7.3544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8922        34.513        .30106E-03   -1.5433    
  10  Prefactor     47.105        29.855        .58427E-04   -1.4334    
  11  Prefactor     .10000E-03    8.3134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.767        26.537        .85865E-04   -1.4775    
  14  Prefactor     1.1980        4.9231        .31564E-03   -1.5489    
  15  Prefactor     .10000E-03    4.3175        .14759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3386        .25474        .24320E-03   -.82421    
  17  Prefactor     .84622        .19334        .22749E-03   -.98046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90351e-09
Minuit parameter uncertainties:
  1  0.0148331
  2  1.12303e-06
  3  3.06553e-06
  4  4.1654e-06
  5  0.000123468
  6  4.0165
  7  2.62674e-07
  8  5.09427e-07
  9  16.1728
  10  29.8642
  11  3.79655e-06
  12  0.000239493
  13  26.551
  14  4.85748
  15  9.09043e-06
  16  0.254976
  17  0.193496
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  4.354e+00  4.016e+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:  8.462e-01  1.935e-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.339e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.46
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 2.03e-05

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

Saving results to:
/scratch/kocevski/23562/likelihoodResults_461462401_461721601_4FGL_J1351.3+1115_daily_bin857.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) = 5365.27255252
delta logL = 0.00860194299275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5365.2693449
delta logL = 0.0118095713824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0096       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9915       1.0000          .0000       10.000    
     3 'Normalizat'    1.3348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84727       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=   5365.269     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0096        110.85        .50350E-02    .70144E-03
   2  Index         1.9915        5.8455        .14333        .95457E-04
   3  Normalizat    1.3348        .11500        .55065E-01   -.26334E-06
   4  Prefactor     .84727        .64969E-01    .44329E-01    .12183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00963
  Index      = 1.99152
  Normalizat = 1.3348
  Prefactor  = 0.847272
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.269     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0096        4.6118        .12800E-03   -1.5307    
   2  Index         1.9915        .73124        .76719E-02   -.64562    
   3  Normalizat    1.3348        .25127        .24349E-03   -.82533    
   4  Prefactor     .84727        .19168        .22735E-03   -.98009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55325e-10
Minuit parameter uncertainties:
  1  4.61217
  2  0.73539
  3  0.251505
  4  0.19183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23562': 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) = 5365.26934489
delta logL = 0.0118095727912

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  4.010e+00  4.612e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.992e+00  7.354e-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:  8.473e-01  1.918e-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.335e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.48
Ra Dec: 207.843 11.250
Photon Index (Free Index): 1.99 +/- 0.74
Photon Flux (Free Index): 2.75e-08 +/- 3.61e-08
Energy Flux (Free Index): 1.94e-05 +/- 2.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/23562/cmap_HighResolution_461462401_461721601_4FGL_J1351.3+1115_daily_bin857.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='1.94e-05', photon_flux_error='2.17e-08', dlogl='1.18e-02', energy_flux='2.21e-05', photon_flux2='2.75e-08', job_status='DONE', time_completed='2021-09-08 15:55:41.540853', photon_index_error2='0.74', photon_index2='1.99', ts='3.46', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='8.26e-08', energy_flux_error2='2.43e-05', EG='1.34', time_epoch_completed='1631141741.54', return_code='0', job_id='23562', GAL2='0.85', EG2='1.33', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='3.61e-08', ts2='3.48', photon_index='1.88' WHERE bin_id='857' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 23562: <4FGL_J1351.3+1115_daily_bin857> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin857> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:45:43 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:47:32 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:32 2021
Terminated at Wed Sep  8 15:55:42 2021
Results reported at Wed Sep  8 15:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin857 207.843 11.2502 461462401 461721601 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 :                                   473.55 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             350.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   489 sec.
    Turnaround time :                            599 sec.

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

