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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1416
RA = 207.843, Dec = 11.2502
tmin = 606355201, tmax = 606614401
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='25575', job_status='RUN', time_executed='2021-09-08 15:56:20.055266', time_epoch_executed='1631141780.06' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1416'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25575

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25575/ft1_4FGL_J1351.3+1115_daily_bin1416.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25575/ft2_4FGL_J1351.3+1115_daily_bin1416.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25575/ft1_4FGL_J1351.3+1115_daily_bin1416.fits outfile=/scratch/kocevski/25575/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1416.fits ra=207.843 dec=11.2502 rad=12.0 tmin=606355201.0 tmax=606614401.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.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25575/ft1_filtered_4FGL_J1351.3+1115_daily_bin1416.fits" evtable="EVENTS" scfile=/scratch/kocevski/25575/ft2_4FGL_J1351.3+1115_daily_bin1416.fits sctable="SC_DATA" outfile=/scratch/kocevski/25575/ltcube_606355201_606614401_4FGL_J1351.3+1115_daily_bin1416.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/25575/ft2_4FGL_J1351.3+1115_daily_bin1416.fits
.....................!
real 15.27
user 14.78
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25575/ft1_filtered_4FGL_J1351.3+1115_daily_bin1416.fits evtable="EVENTS" scfile=/scratch/kocevski/25575/ft2_4FGL_J1351.3+1115_daily_bin1416.fits sctable="SC_DATA" expcube=/scratch/kocevski/25575/ltcube_606355201_606614401_4FGL_J1351.3+1115_daily_bin1416.fits outfile=/scratch/kocevski/25575/expmap_606355201_606614401_4FGL_J1351.3+1115_daily_bin1416.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/25575/ltcube_606355201_606614401_4FGL_J1351.3+1115_daily_bin1416.fits
.....................!
real 191.10
user 185.96
sys 4.64

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/25575/ft1_filtered_4FGL_J1351.3+1115_daily_bin1416.fits scfile=/scratch/kocevski/25575/ft2_4FGL_J1351.3+1115_daily_bin1416.fits outfile=/scratch/kocevski/25575/cmap_606355201_606614401_4FGL_J1351.3+1115_daily_bin1416.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.57
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    105.04       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10681E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10813E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33308E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18961E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.813       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    89.022       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1057       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.838       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95461       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=   5802.616     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1658 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2141        12.813       -.59032E-05   -.45160E-04
   2  Prefactor     .10000E-03    19.151       -.46304E-07** at limit **
   3  Prefactor     105.01        74.133       -.18553E-04   -.58706E-05
   4  Prefactor     .10000E-03    2.9973        .13307E-06** at limit **
   5  Prefactor     .10000E-03    88.855       -.59571E-05** at limit **
   6  Prefactor     .10000E-03    7.8907        .29969E-06** at limit **
   7  Prefactor     .10011E-03    10.227        .11068E-05** at limit **
   8  Prefactor     .10015E-03    5.7157       -.71782E-06** at limit **
   9  Prefactor     5.7198        10.674       -.38691E-05   -.43157E-04
  10  Prefactor     .10003E-03    12.015       -.64134E-06** at limit **
  11  Prefactor     65.811        34.327       -.69769E-06    .60090E-05
  12  Prefactor     .10000E-03    16.654       -.11849E-06** at limit **
  13  norm          89.028        36.461       -.18526E-05    .17247E-04
  14  Prefactor     6.1066        8.6654       -.42939E-06   -.13729E-03
  15  Prefactor     13.838        8.3600       -.48237E-06   -.32430E-04
  16  Normalizat    1.0757        .20385        .28562E-05    .25714E-05
  17  Prefactor     .95448        .15631        .11139E-05    .11718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.21414
  Prefactor  = 0.0001
  Prefactor  = 105.012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100112
  Prefactor  = 0.000100149
  Prefactor  = 5.71981
  Prefactor  = 0.000100032
  Prefactor  = 65.8112
  Prefactor  = 0.0001
  norm       = 89.0277
  Prefactor  = 6.10664
  Prefactor  = 13.8381
  Normalizat = 1.07566
  Prefactor  = 0.954481
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.616     FROM HESSE     STATUS=OK           239 CALLS     1897 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2141        12.852        .13990E-03   -1.5135    
   2  Prefactor     .10000E-03    19.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     105.01        74.027        .39235E-04   -1.3655    
   4  Prefactor     .10000E-03    3.0756        .25739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    90.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2053        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10011E-03    90.943        .46475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10015E-03    10.540        .58542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7198        10.664        .16782E-03   -1.5230    
  10  Prefactor     .10003E-03    82.462        .51117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.811        34.318        .49471E-04   -1.4084    
  12  Prefactor     .10000E-03    16.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          89.028        36.463        .21293E-03   -1.3818    
  14  Prefactor     6.1066        8.6357        .16248E-03   -1.5214    
  15  Prefactor     13.838        8.3388        .10767E-03   -1.4964    
  16  Normalizat    1.0757        .24517        .26661E-03   -.90537    
  17  Prefactor     .95448        .18892        .22065E-03   -.94263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65307e-09
Minuit parameter uncertainties:
  1  12.8562
  2  9.50468e-06
  3  74.0919
  4  4.02724e-06
  5  0.000114144
  6  0.000103302
  7  0.00638202
  8  0.00250667
  9  10.6679
  10  0.00325122
  11  34.3288
  12  1.81034e-05
  13  36.4722
  14  8.63749
  15  8.33951
  16  0.245429
  17  0.189048
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  1.033e-04  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.545e-01  1.890e-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.076e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/25575/likelihoodResults_606355201_606614401_4FGL_J1351.3+1115_daily_bin1416.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): 102
logL (Free Index) = 5802.61608728
delta logL = -0.000577756086386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5802.61550836
delta logL = 1.17015406431e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21519E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9976       1.0000          .0000       10.000    
     3 'Normalizat'    1.0758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95439       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=   5802.274     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      280 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19997        3.1205        .90712E-02    .22938E-02
   2  Index         3.3187        1.7176        .12374        .12832E-03
   3  Normalizat    1.0270        .32622E-01    .61490E-01    .37898E-04
   4  Prefactor     .97128        .25732E-01    .45695E-01    .21774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.199974
  Index      = 3.31869
  Normalizat = 1.02698
  Prefactor  = 0.971283
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.274     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19997        15.245        .41637E-04   -1.5619    
   2  Index         3.3187        6.6483        .43999E-02   -.34295    
   3  Normalizat    1.0270        .21619        .27197E-03   -.92132    
   4  Prefactor     .97128        .16851        .21883E-03   -.93693    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.81395e-07
Minuit parameter uncertainties:
  1  3.49208
  2  6.22457
  3  0.216373
  4  0.168605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25575': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5802.27389647
delta logL = 0.341613055128

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.000e-01  3.492e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  3.319e+00  6.225e+00  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.713e-01  1.686e-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.027e+00  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.843 11.250

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/25575/cmap_HighResolution_606355201_606614401_4FGL_J1351.3+1115_daily_bin1416.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-08 16:05:36.441776', job_id='25575', GAL2='0.97', fit_tolerance='1e-08', EG2='1.03', EG='1.08', time_epoch_completed='1631142336.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.42e-01', ts2='0.71', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1416' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:05:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 25575: <4FGL_J1351.3+1115_daily_bin1416> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1416> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:50:55 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:52:19 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:52:19 2021
Terminated at Wed Sep  8 16:05:37 2021
Results reported at Wed Sep  8 16:05:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1416 207.843 11.2502 606355201 606614401 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 :                                   503.02 sec.
    Max Memory :                                 1237 MB
    Average Memory :                             242.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            882 sec.

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

