/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 80 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1351.3+1115_daily_bin990
RA = 207.843, Dec = 11.2502
tmin = 495936001, tmax = 496195201
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='23799', job_status='RUN', time_executed='2021-09-08 15:49:27.461467', time_epoch_executed='1631141367.46' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23799/ft1_4FGL_J1351.3+1115_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23799/ft2_4FGL_J1351.3+1115_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23799/ft1_4FGL_J1351.3+1115_daily_bin990.fits outfile=/scratch/kocevski/23799/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin990.fits ra=207.843 dec=11.2502 rad=12.0 tmin=495936001.0 tmax=496195201.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.62
user 3.35
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23799/ft1_filtered_4FGL_J1351.3+1115_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/23799/ft2_4FGL_J1351.3+1115_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/23799/ltcube_495936001_496195201_4FGL_J1351.3+1115_daily_bin990.fits outfile=/scratch/kocevski/23799/expmap_495936001_496195201_4FGL_J1351.3+1115_daily_bin990.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/23799/ltcube_495936001_496195201_4FGL_J1351.3+1115_daily_bin990.fits
.....................!
real 190.62
user 185.64
sys 4.30

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/23799/ft1_filtered_4FGL_J1351.3+1115_daily_bin990.fits scfile=/scratch/kocevski/23799/ft2_4FGL_J1351.3+1115_daily_bin990.fits outfile=/scratch/kocevski/23799/cmap_495936001_496195201_4FGL_J1351.3+1115_daily_bin990.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23799/ft1_filtered_4FGL_J1351.3+1115_daily_bin990.fits scfile=/scratch/kocevski/23799/ft2_4FGL_J1351.3+1115_daily_bin990.fits outfile=/scratch/kocevski/23799/cmap_HighResolution_495936001_496195201_4FGL_J1351.3+1115_daily_bin990.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.011       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18781E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2345       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.357       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.476       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.7780       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .66781       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=   6301.212     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1435 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9103        .51090E-07** at limit **
   2  Prefactor     13.009        21.899        .29130E-06    .34970E-04
   3  Prefactor     1.5286        166.24        .91269E-05    .79853E-04
   4  Prefactor     .10000E-03    1.9609        .55145E-06** at limit **
   5  Prefactor     .10002E-03    63.957       -.53337E-05** at limit **
   6  Prefactor     3.2340        3.3995        .29277E-07    .11237E-03
   7  Prefactor     .10002E-03    30.433       -.61021E-05** at limit **
   8  Prefactor     .65007        61.091        .21948E-04   -.12119E-03
   9  Prefactor     .10000E-03    7.5294        .11408E-07** at limit **
  10  Prefactor     .10001E-03    28.372        .41720E-05** at limit **
  11  Prefactor     25.320        28.803        .26258E-06    .27731E-04
  12  Prefactor     .10000E-03    6.5915       -.81536E-08** at limit **
  13  norm          16.499        16.969       -.16754E-07   -.30596E-04
  14  Prefactor     3.8656        4.6798       -.60242E-06    .97086E-03
  15  Prefactor     .10000E-03    3.5801        .38291E-06** at limit **
  16  Normalizat    1.7776        .21248       -.11598E-05    .11536E-03
  17  Prefactor     .66797        .15222        .37905E-06    .18594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.0088
  Prefactor  = 1.52862
  Prefactor  = 0.000100003
  Prefactor  = 0.000100015
  Prefactor  = 3.23403
  Prefactor  = 0.00010002
  Prefactor  = 0.650067
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 25.3197
  Prefactor  = 0.0001
  norm       = 16.4992
  Prefactor  = 3.86564
  Prefactor  = 0.0001
  Normalizat = 1.77761
  Prefactor  = 0.667968
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.212     FROM HESSE     STATUS=OK           227 CALLS     1662 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.009        21.895        .11105E-03   -1.4986    
   3  Prefactor     1.5286        173.50        .32542E-03   -1.5461    
   4  Prefactor     .10000E-03    36.872        .21106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    66.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2340        3.3985        .14575E-03   -1.5348    
   7  Prefactor     .10002E-03    32.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .65007        62.908        .41773E-02   -1.5547    
   9  Prefactor     .10000E-03    7.5832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    29.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.320        28.802        .79551E-04   -1.4701    
  12  Prefactor     .10000E-03    6.5945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.499        16.974        .98671E-04   -1.4895    
  14  Prefactor     3.8656        4.7764        .93672E-03   -1.5315    
  15  Prefactor     .10000E-03    3.6311        .14684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.7776        .25026        .23843E-03   -.70250    
  17  Prefactor     .66797        .18166        .26713E-03   -1.0480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53073e-09
Minuit parameter uncertainties:
  1  2.15963e-06
  2  21.908
  3  32.6675
  4  0.000629051
  5  0.00199862
  6  3.3987
  7  0.00161968
  8  12.8026
  9  3.48824e-06
  10  0.00111816
  11  28.8178
  12  7.79563e-07
  13  16.9787
  14  4.77684
  15  4.67868e-05
  16  0.250436
  17  0.181825
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  3.234e+00  3.399e+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:  6.680e-01  1.818e-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.778e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.72e-05

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

Saving results to:
/scratch/kocevski/23799/likelihoodResults_495936001_496195201_4FGL_J1351.3+1115_daily_bin990.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) = 6301.20068139
delta logL = 0.0110298046247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6301.19584345
delta logL = 0.0158677422432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8559       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0032       1.0000          .0000       10.000    
     3 'Normalizat'    1.7753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66867       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=   6301.196     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      256 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8556        3.9933        .13543E-03    .79745E-04
   2  Index         2.0032        .71461        .85490E-02    .24256E-04
   3  Normalizat    1.7753        .24657        .23855E-03    .10670E-03
   4  Prefactor     .66868        .18050        .26699E-03    .83884E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8556
  Index      = 2.00321
  Normalizat = 1.77527
  Prefactor  = 0.668683
 **********
 **   18 **HESSE 
 **********

 FCN=   6301.196     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8556        3.7810        .54174E-05   -1.5370    
   2  Index         2.0032        .67707        .34196E-03   -.64270    
   3  Normalizat    1.7753        .24669        .47710E-04   -.70311    
   4  Prefactor     .66868        .18063        .10680E-04   -1.0477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20205e-11
Minuit parameter uncertainties:
  1  3.78131
  2  0.680338
  3  0.246862
  4  0.18079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23799': 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) = 6301.19584345
delta logL = 0.0158677472409

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.856e+00  3.781e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  2.003e+00  6.803e-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:  6.687e-01  1.808e-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.775e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 207.843 11.250
Photon Index (Free Index): 2.00 +/- 0.68
Photon Flux (Free Index): 2.01e-08 +/- 2.56e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.93e-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/23799/cmap_HighResolution_495936001_496195201_4FGL_J1351.3+1115_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='1.38e-05', photon_flux_error='1.84e-08', dlogl='1.59e-02', energy_flux='1.64e-05', photon_flux2='2.01e-08', job_status='DONE', time_completed='2021-09-08 15:57:52.228667', photon_index_error2='0.68', photon_index2='2.00', ts='2.47', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='7.16e-08', energy_flux_error2='1.93e-05', EG='1.78', time_epoch_completed='1631141872.23', return_code='0', job_id='23799', GAL2='0.67', EG2='1.78', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='2.56e-08', ts2='2.50', photon_index='1.88' WHERE bin_id='990' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:57:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 23799: <4FGL_J1351.3+1115_daily_bin990> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin990 207.843 11.2502 495936001 496195201 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 :                                   500.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            711 sec.

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

