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


Performing analysis on: 4FGL_J1435.9-8348_daily_bin1339
RA = 218.978, Dec = -83.8017
tmin = 586396801, tmax = 586656001
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='622381', job_status='RUN', time_executed='2021-09-10 00:52:33.103471', time_epoch_executed='1631260353.1' WHERE source_name='4FGL J1435.9-8348' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622381

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622381/ft1_4FGL_J1435.9-8348_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622381/ft1_4FGL_J1435.9-8348_daily_bin1339.fits outfile=/scratch/kocevski/622381/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1339.fits ra=218.978 dec=-83.8017 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.59
user 2.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622381/ft1_filtered_4FGL_J1435.9-8348_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/622381/ltcube_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.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/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits
.....................!
real 8.50
user 8.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622381/ft1_filtered_4FGL_J1435.9-8348_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/622381/ltcube_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.fits outfile=/scratch/kocevski/622381/expmap_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.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/622381/ltcube_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.fits
.....................!
real 192.05
user 186.41
sys 5.24

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/622381/ft1_filtered_4FGL_J1435.9-8348_daily_bin1339.fits scfile=/scratch/kocevski/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits outfile=/scratch/kocevski/622381/cmap_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622381/ft1_filtered_4FGL_J1435.9-8348_daily_bin1339.fits scfile=/scratch/kocevski/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits outfile=/scratch/kocevski/622381/cmap_HighResolution_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622381/ft1_filtered_4FGL_J1435.9-8348_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622381/Model_4FGL_J1435.9-8348_daily_bin1339.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/622381/ft1_filtered_4FGL_J1435.9-8348_daily_bin1339.fits.....................!
real 113.69
user 112.23
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/622381/ft1_filtered_4FGL_J1435.9-8348_daily_bin1339.fits', '/scratch/kocevski/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits', expMap='/scratch/kocevski/622381/expmap_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.fits', expCube='/scratch/kocevski/622381/ltcube_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/622381/Model_4FGL_J1435.9-8348_daily_bin1339.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/622381/ft1_filtered_4FGL_J1435.9-8348_daily_bin1339.fits
Spacecraft file(s): /scratch/kocevski/622381/ft2_4FGL_J1435.9-8348_daily_bin1339.fits
Exposure map: /scratch/kocevski/622381/expmap_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.fits
Exposure cube: /scratch/kocevski/622381/ltcube_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/622381/Model_4FGL_J1435.9-8348_daily_bin1339.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) = 7460.21264299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2303       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.469       1.0000         .10000E-03   10000.    
     5 'norm      '    11.126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11626E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8876       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8534       1.0000         .10000E-03   10000.    
    14 'norm      '    .19726E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.459       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.191       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1938       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89119       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=   7460.203     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1883 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0690        160.01       -.69669E-05   -.39937E-04
   2  Prefactor     .10000E-03    7.6873        .25719E-08** at limit **
   3  Prefactor     .10000E-03    21.014        .42475E-07** at limit **
   4  Prefactor     44.477        37.243       -.26823E-06   -.37299E-05
   5  norm          11.127        6.6163        .10438E-06   -.37915E-04
   6  Prefactor     .10000E-03    5.4848        .16821E-06** at limit **
   7  Prefactor     .10000E-03    84.559       -.20600E-06** at limit **
   8  norm          .10000E-03    14.197        .69633E-07** at limit **
   9  Prefactor     5.8893        4.8720        .23368E-05   -.65193E-04
  10  Prefactor     .10000E-03    3.8568        .95856E-07** at limit **
  11  norm          .10000E-03    .38176        .16474E-06** at limit **
  12  Prefactor     .10000E-03    13.038        .13761E-06** at limit **
  13  norm          2.8475        5.4805        .68290E-06   -.25531E-04
  14  norm          .10000E-03    164.12        .14751E-05** at limit **
  15  norm          13.458        9.3945        .10484E-05   -.29518E-04
  16  norm          2.2851        4.9199        .50771E-06    .24218E-04
  17  Prefactor     48.178        75.270       -.62437E-06   -.12302E-04
  18  Normalizat    1.1941        .30865        .16052E-05   -.77269E-04
  19  Prefactor     .89111        .83434E-01   -.11902E-05    .87054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.06904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4771
  norm       = 11.127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.88929
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84754
  norm       = 0.000100001
  norm       = 13.4583
  norm       = 2.28512
  Prefactor  = 48.1783
  Normalizat = 1.19413
  Prefactor  = 0.891107
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.203     FROM HESSE     STATUS=OK           264 CALLS     2147 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0690        166.18        .17576E-03   -1.5258    
   2  Prefactor     .10000E-03    7.6883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.477        37.358        .60121E-04   -1.4373    
   5  norm          11.127        6.6155        .12011E-03   -1.5041    
   6  Prefactor     .10000E-03    5.5384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    85.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8893        4.9232        .82751E-03   -1.5223    
  10  Prefactor     .10000E-03    3.8644        .16565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .39438        .10404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8475        5.4631        .24068E-03   -1.5370    
  14  norm          .10000E-03    164.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.458        9.4045        .54591E-03   -1.4974    
  16  norm          2.2851        4.8916        .26802E-03   -1.5406    
  17  Prefactor     48.178        75.105        .57763E-04   -1.4319    
  18  Normalizat    1.1941        .34770        .44711E-03   -.86785    
  19  Prefactor     .89111        .93662E-01    .14177E-03   -.96453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10732e-10
Minuit parameter uncertainties:
  1  58.2233
  2  1.39008e-06
  3  9.11828e-06
  4  37.3781
  5  6.61595
  6  2.1352e-05
  7  0.000398796
  8  1.65923e-06
  9  4.92352
  10  2.03901e-06
  11  6.83069e-07
  12  1.9133e-06
  13  5.46406
  14  0.000791871
  15  9.40558
  16  4.89245
  17  75.2532
  18  0.348371
  19  0.0936794
Done.

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

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  5.889e+00  4.924e+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.911e-01  9.368e-02  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.194e+00  3.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 218.978 -83.802
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.95e-08 +/- 5.80e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.61e-05

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

Saving results to:
/scratch/kocevski/622381/likelihoodResults_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.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) = 7459.84531424
delta logL = 0.358014998296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7459.78233451
delta logL = 0.420994732712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0962       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8441       1.0000          .0000       10.000    
     3 'Normalizat'    1.2423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88188       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.

 FCN=   7459.782     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      218 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0962        282.06        .35227E-02    .16610E-03
   2  Index         1.8441        5.2522        .26772       -.43051E-04
   3  Normalizat    1.2423        .44621        .99187E-01    .23768E-05
   4  Prefactor     .88187        .10133        .32222E-01   -.71357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.09617
  Index      = 1.84406
  Normalizat = 1.24227
  Prefactor  = 0.881874
 **********
 **   18 **HESSE 
 **********

 FCN=   7459.782     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0962        6.6609        .14091E-03   -1.5139    
   2  Index         1.8441        .59875        .92280E-02   -.68308    
   3  Normalizat    1.2423        .33319        .43948E-03   -.85306    
   4  Prefactor     .88187        .93046E-01    .14238E-03   -.96777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40754e-10
Minuit parameter uncertainties:
  1  6.66151
  2  0.60115
  3  0.333768
  4  0.0930628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622381': 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) = 7459.78233451
delta logL = 0.420994732954

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  8.096e+00  6.662e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  1.844e+00  6.011e-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.819e-01  9.306e-02  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.242e+00  3.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 218.978 -83.802
Photon Index (Free Index): 1.84 +/- 0.60
Photon Flux (Free Index): 4.15e-08 +/- 4.42e-08
Energy Flux (Free Index): 4.36e-05 +/- 5.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/622381/cmap_HighResolution_586396801_586656001_4FGL_J1435.9-8348_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='6.95e-08', energy_flux2='4.36e-05', photon_flux_error='5.80e-08', dlogl='4.21e-01', energy_flux='1.92e-05', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-09-10 01:05:23.202366', photon_index_error2='0.60', photon_index2='1.84', ts='2.72', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='5.76e-05', EG='1.19', time_epoch_completed='1631261123.2', return_code='0', job_id='622381', GAL2='0.88', EG2='1.24', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.42e-08', ts2='3.54', photon_index='2.55' WHERE bin_id='1339' AND source_name='4FGL J1435.9-8348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 622381: <4FGL_J1435.9-8348_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1435.9-8348_daily_bin1339> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 00:51:25 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 00:51:26 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:26 2021
Terminated at Fri Sep 10 01:05:23 2021
Results reported at Fri Sep 10 01:05:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1435.9-8348_daily_bin1339 218.978 -83.8017 586396801 586656001 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 :                                   763.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             351.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

