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


Performing analysis on: 4FGL_J1435.9-8348_daily_bin1260
RA = 218.978, Dec = -83.8017
tmin = 565920001, tmax = 566179201
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='622259', job_status='RUN', time_executed='2021-09-10 00:55:13.105917', time_epoch_executed='1631260513.11' WHERE source_name='4FGL J1435.9-8348' and cadence='daily' and bin_id='1260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622259

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622259/ft1_4FGL_J1435.9-8348_daily_bin1260.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622259/ft1_4FGL_J1435.9-8348_daily_bin1260.fits outfile=/scratch/kocevski/622259/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1260.fits ra=218.978 dec=-83.8017 rad=12.0 tmin=565920001.0 tmax=566179201.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.42
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.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/622259/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1260.fits evtable="EVENTS" outfile="/scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.fits" evtable="EVENTS" scfile=/scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits sctable="SC_DATA" outfile=/scratch/kocevski/622259/ltcube_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.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/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits
.....................!
real 11.82
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits sctable="SC_DATA" expcube=/scratch/kocevski/622259/ltcube_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.fits outfile=/scratch/kocevski/622259/expmap_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.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/622259/ltcube_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.fits
.....................!
real 191.24
user 186.38
sys 4.08

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
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Added 204 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1435.9-8348 @ 218.978 -83.8017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.fits scfile=/scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits outfile=/scratch/kocevski/622259/cmap_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.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=218.978 yref=-83.8017 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.fits scfile=/scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits outfile=/scratch/kocevski/622259/cmap_HighResolution_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.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=218.978 yref=-83.8017 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622259/Model_4FGL_J1435.9-8348_daily_bin1260.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 FHES J1501.0-6310
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1507-622
adding source RCW 86
Working on...
/scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.fits.....................!
real 80.54
user 78.96
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.fits', '/scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits', expMap='/scratch/kocevski/622259/expmap_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.fits', expCube='/scratch/kocevski/622259/ltcube_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/622259/Model_4FGL_J1435.9-8348_daily_bin1260.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1435.9-8348'

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  1.034e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  2.546e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/622259/ft1_filtered_4FGL_J1435.9-8348_daily_bin1260.fits
Spacecraft file(s): /scratch/kocevski/622259/ft2_4FGL_J1435.9-8348_daily_bin1260.fits
Exposure map: /scratch/kocevski/622259/expmap_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.fits
Exposure cube: /scratch/kocevski/622259/ltcube_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/622259/Model_4FGL_J1435.9-8348_daily_bin1260.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) = 5325.97254292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.913       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7030       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5243       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4130       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0811       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0100       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2498       1.0000         .10000E-03   10000.    
    15 'norm      '    23.434       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2332       1.0000         .10000E-03   10000.    
    17 'Prefactor '    81.582       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2907       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81951       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5325.961     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1899 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.917        90.790        .35888E-06    .29194E-04
   2  Prefactor     27.096        37.111        .11395E-06    .25082E-04
   3  Prefactor     .10000E-03    125.54       -.79839E-07** at limit **
   4  Prefactor     2.6993        66.968       -.56932E-06   -.27081E-04
   5  norm          3.4526        4.8211        .70726E-06   -.77967E-04
   6  Prefactor     8.5236        9.1803       -.88338E-07   -.16165E-03
   7  Prefactor     2.3817        242.00        .47218E-05   -.42222E-04
   8  norm          .10000E-03    15.374       -.18280E-08** at limit **
   9  Prefactor     5.0812        5.3776       -.10666E-06   -.21353E-03
  10  Prefactor     .10000E-03    9.6382       -.13457E-07** at limit **
  11  norm          1.5091        1.6213        .49045E-06    .13940E-02
  12  Prefactor     .10000E-03    39.323       -.19306E-06** at limit **
  13  norm          1.0092        7.7929        .67228E-07   -.53149E-04
  14  norm          4.1185        463.91        .16827E-04   -.91724E-04
  15  norm          23.433        11.992        .24947E-06    .21028E-03
  16  norm          1.2316        13.614        .26039E-04    .14895E-03
  17  Prefactor     81.683        148.20       -.26747E-04    .90758E-04
  18  Normalizat    1.2909        .37395       -.22039E-05    .19181E-03
  19  Prefactor     .81947        .93260E-01    .19897E-06    .52866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.9172
  Prefactor  = 27.0962
  Prefactor  = 0.000100001
  Prefactor  = 2.69925
  norm       = 3.45258
  Prefactor  = 8.52358
  Prefactor  = 2.38165
  norm       = 0.0001
  Prefactor  = 5.08115
  Prefactor  = 0.0001
  norm       = 1.50912
  Prefactor  = 0.0001
  norm       = 1.00922
  norm       = 4.11853
  norm       = 23.433
  norm       = 1.23156
  Prefactor  = 81.6827
  Normalizat = 1.29093
  Prefactor  = 0.819469
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.961     FROM HESSE     STATUS=OK           270 CALLS     2169 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.917        91.285        .60499E-04   -1.4382    
   2  Prefactor     27.096        37.113        .76966E-04   -1.4666    
   3  Prefactor     .10000E-03    126.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6993        67.033        .24777E-03   -1.5379    
   5  norm          3.4526        4.8120        .91762E-03   -1.5336    
   6  Prefactor     8.5236        9.1815        .13730E-03   -1.5124    
   7  Prefactor     2.3817        245.23        .26353E-03   -1.5399    
   8  norm          .10000E-03    15.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0812        5.3646        .16515E-03   -1.5257    
  10  Prefactor     .10000E-03    9.7062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5091        1.5999        .89113E-04   -1.5462    
  12  Prefactor     .10000E-03    39.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0092        15.496        .37514E-02   -1.5507    
  14  norm          4.1185        480.87        .19545E-03   -1.5302    
  15  norm          23.433        12.009        .82746E-04   -1.4739    
  16  norm          1.2316        13.853        .20232E-02   -1.5486    
  17  Prefactor     81.683        149.67        .22234E-03   -1.3898    
  18  Normalizat    1.2909        .42675        .42542E-03   -.83838    
  19  Prefactor     .81947        .10743        .14282E-03   -.99015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15617e-08
Minuit parameter uncertainties:
  1  91.5776
  2  37.145
  3  0.000559595
  4  26.9361
  5  4.81258
  6  9.18299
  7  48.5387
  8  7.24904e-08
  9  5.36506
  10  8.26762e-06
  11  1.59991
  12  0.000133716
  13  7.91119
  14  89.7521
  15  12.0098
  16  8.26288
  17  150.365
  18  0.427921
  19  0.107461
Done.

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

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  5.081e+00  5.365e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  2.546e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  8.195e-01  1.075e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  1.291e+00  4.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 218.978 -83.802
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 6.32e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.75e-05

TS (Fixed Index): 1.35
Ra Dec: 218.978 -83.802
Photon Flux Upper Limit: 2.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/622259/likelihoodResults_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.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) = 5325.95243366
delta logL = 0.00900997637746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5325.94772025
delta logL = 0.0137233889318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6920       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3961       1.0000          .0000       10.000    
     3 'Normalizat'    1.2978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81827       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+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=   5325.948     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6909        6.9579        .16836E-03    .11613E-02
   2  Index         2.3965        .90696        .89903E-02    .22891E-03
   3  Normalizat    1.2977        .38466        .42448E-03   -.20912E-03
   4  Prefactor     .81829        .10549        .14291E-03   -.63021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.6909
  Index      = 2.39649
  Normalizat = 1.2977
  Prefactor  = 0.818295
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.948     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6909        6.7376        .67346E-05   -1.5231    
   2  Index         2.3965        .87837        .35961E-03   -.54767    
   3  Normalizat    1.2977        .38479        .16979E-04   -.83635    
   4  Prefactor     .81829        .10553        .28582E-04   -.99057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17622e-09
Minuit parameter uncertainties:
  1  6.73853
  2  0.884687
  3  0.385647
  4  0.105556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622259': 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) = 5325.94772015
delta logL = 0.0137234876556

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  5.691e+00  6.739e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  2.396e+00  8.847e-01  0.000e+00  1.000e+01 (-1.000e+00)
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  8.183e-01  1.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  1.298e+00  3.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 218.978 -83.802
Photon Index (Free Index): 2.40 +/- 0.88
Photon Flux (Free Index): 5.48e-08 +/- 6.72e-08
Energy Flux (Free Index): 1.80e-05 +/- 2.13e-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/622259/cmap_HighResolution_565920001_566179201_4FGL_J1435.9-8348_daily_bin1260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='1.80e-05', photon_flux_error='6.32e-08', dlogl='1.37e-02', energy_flux='1.66e-05', photon_flux2='5.48e-08', job_status='DONE', time_completed='2021-09-10 01:06:26.325185', photon_index_error2='0.88', photon_index2='2.40', ts='1.35', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='2.08e-07', energy_flux_error2='2.13e-05', EG='1.29', time_epoch_completed='1631261186.33', return_code='0', job_id='622259', GAL2='0.82', EG2='1.30', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='6.72e-08', ts2='1.37', photon_index='2.55' WHERE bin_id='1260' AND source_name='4FGL J1435.9-8348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 622259: <4FGL_J1435.9-8348_daily_bin1260> in cluster <slac> Done

Job <4FGL_J1435.9-8348_daily_bin1260> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 00:51:15 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 00:51:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 00:51:17 2021
Terminated at Fri Sep 10 01:06:27 2021
Results reported at Fri Sep 10 01:06:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1435.9-8348_daily_bin1260 218.978 -83.8017 565920001 566179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1435.9-8348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   652.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             271.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

