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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1005
RA = 207.843, Dec = 11.2502
tmin = 499824001, tmax = 500083201
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='23820', job_status='RUN', time_executed='2021-09-08 15:50:23.993448', time_epoch_executed='1631141423.99' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23820/ft1_4FGL_J1351.3+1115_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23820/ft2_4FGL_J1351.3+1115_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23820/ft1_4FGL_J1351.3+1115_daily_bin1005.fits outfile=/scratch/kocevski/23820/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1005.fits ra=207.843 dec=11.2502 rad=12.0 tmin=499824001.0 tmax=500083201.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.36
user 5.07
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23820/ft1_filtered_4FGL_J1351.3+1115_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/23820/ft2_4FGL_J1351.3+1115_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/23820/ltcube_499824001_500083201_4FGL_J1351.3+1115_daily_bin1005.fits outfile=/scratch/kocevski/23820/expmap_499824001_500083201_4FGL_J1351.3+1115_daily_bin1005.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/23820/ltcube_499824001_500083201_4FGL_J1351.3+1115_daily_bin1005.fits
.....................!
real 192.95
user 187.15
sys 5.07

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/23820/ft1_filtered_4FGL_J1351.3+1115_daily_bin1005.fits scfile=/scratch/kocevski/23820/ft2_4FGL_J1351.3+1115_daily_bin1005.fits outfile=/scratch/kocevski/23820/cmap_499824001_500083201_4FGL_J1351.3+1115_daily_bin1005.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.41
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11688E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.801       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8748       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26781E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.438       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42130E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12953E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9251       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1148       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95915       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=   6151.134     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     1608 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2406       -.14395E-06** at limit **
   2  Prefactor     .10000E-03    36.628        .21772E-06** at limit **
   3  Prefactor     56.848        66.632       -.52353E-05   -.33827E-04
   4  Prefactor     .10000E-03    2.1136       -.13595E-06** at limit **
   5  Prefactor     36.811        26.009       -.90101E-06   -.40809E-04
   6  Prefactor     3.8748        3.7620       -.13704E-06   -.34706E-04
   7  Prefactor     .10000E-03    4.8767       -.10205E-06** at limit **
   8  Prefactor     .10005E-03    9.3141       -.11455E-05** at limit **
   9  Prefactor     38.422        18.004       -.24191E-06   -.10559E-03
  10  Prefactor     .10000E-03    84.810       -.82212E-05** at limit **
  11  Prefactor     .10000E-03    60.567       -.50888E-05** at limit **
  12  Prefactor     .10000E-03    7.8501        .20769E-06** at limit **
  13  norm          17.759        14.802        .24281E-07   -.10050E-04
  14  Prefactor     .10000E-03    11.872        .50554E-06** at limit **
  15  Prefactor     9.9236        7.2579       -.51493E-06   -.75108E-04
  16  Normalizat    1.1149        .21503        .86130E-06   -.22164E-03
  17  Prefactor     .95908        .15921       -.14227E-05   -.27245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.8477
  Prefactor  = 0.0001
  Prefactor  = 36.8109
  Prefactor  = 3.8748
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 38.4219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7589
  Prefactor  = 0.0001
  Prefactor  = 9.92362
  Normalizat = 1.11486
  Prefactor  = 0.959079
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.134     FROM HESSE     STATUS=OK           221 CALLS     1829 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2478        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.848        66.713        .53222E-04   -1.4199    
   4  Prefactor     .10000E-03    2.1524        .11120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.811        25.984        .66065E-04   -1.4494    
   6  Prefactor     3.8748        3.7621        .72551E-03   -1.5314    
   7  Prefactor     .10000E-03    4.8894        .16912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    80.687        .42328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.422        17.638        .64648E-04   -1.4467    
  10  Prefactor     .10000E-03    84.616        .60555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    60.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.759        14.803        .95046E-04   -1.4865    
  14  Prefactor     .10000E-03    12.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9236        7.2387        .12719E-03   -1.5078    
  16  Normalizat    1.1149        .25793        .27513E-03   -.89276    
  17  Prefactor     .95908        .19055        .21944E-03   -.94106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50316e-10
Minuit parameter uncertainties:
  1  4.46418e-06
  2  4.49693e-05
  3  66.8009
  4  6.9174e-06
  5  25.9919
  6  3.76238
  7  5.36452e-06
  8  0.00385136
  9  17.6403
  10  5.30145e-05
  11  6.45122e-05
  12  8.18272e-06
  13  14.806
  14  0.000100824
  15  7.23929
  16  0.258218
  17  0.190681
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  3.875e+00  3.762e+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.591e-01  1.907e-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.115e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.14
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.91e-05

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

Saving results to:
/scratch/kocevski/23820/likelihoodResults_499824001_500083201_4FGL_J1351.3+1115_daily_bin1005.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) = 6151.1181235
delta logL = 0.0162195750163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6151.11402805
delta logL = 0.020315019131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2549       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7481       1.0000          .0000       10.000    
     3 'Normalizat'    1.1183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95795       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=   6151.114     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      284 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2518        4.5043        .15503E-03    .37201E-03
   2  Index         1.7475        .68053        .98026E-02    .63924E-04
   3  Normalizat    1.1182        .25384        .27478E-03   -.71287E-04
   4  Prefactor     .95813        .19027        .21954E-03   -.86583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25178
  Index      = 1.74745
  Normalizat = 1.11818
  Prefactor  = 0.958128
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.114     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2518        4.4250        .62012E-05   -1.5296    
   2  Index         1.7475        .66877        .39210E-03   -.70826    
   3  Normalizat    1.1182        .25410        .10991E-04   -.89170    
   4  Prefactor     .95813        .19050        .87816E-05   -.94139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24005e-10
Minuit parameter uncertainties:
  1  4.42535
  2  0.672274
  3  0.254377
  4  0.190633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23820': 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) = 6151.1140264
delta logL = 0.0203166784268

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  4.252e+00  4.425e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.747e+00  6.723e-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.581e-01  1.906e-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.118e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 207.843 11.250
Photon Index (Free Index): 1.75 +/- 0.67
Photon Flux (Free Index): 1.73e-08 +/- 2.42e-08
Energy Flux (Free Index): 2.43e-05 +/- 3.59e-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/23820/cmap_HighResolution_499824001_500083201_4FGL_J1351.3+1115_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='2.43e-05', photon_flux_error='2.03e-08', dlogl='2.03e-02', energy_flux='1.96e-05', photon_flux2='1.73e-08', job_status='DONE', time_completed='2021-09-08 15:59:01.532550', photon_index_error2='0.67', photon_index2='1.75', ts='3.14', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.84e-08', energy_flux_error2='3.59e-05', EG='1.11', time_epoch_completed='1631141941.53', return_code='0', job_id='23820', GAL2='0.96', EG2='1.12', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='2.42e-08', ts2='3.18', photon_index='1.88' WHERE bin_id='1005' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:59:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 23820: <4FGL_J1351.3+1115_daily_bin1005> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1005> 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) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:47:57 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:57 2021
Terminated at Wed Sep  8 15:59:02 2021
Results reported at Wed Sep  8 15:59:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1005 207.843 11.2502 499824001 500083201 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 :                                   513.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            779 sec.

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

