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


Performing analysis on: 4FGL_J1435.9-8348_daily_bin1024
RA = 218.978, Dec = -83.8017
tmin = 504748801, tmax = 505008001
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='620648', job_status='RUN', time_executed='2021-09-10 00:48:04.310988', time_epoch_executed='1631260084.31' WHERE source_name='4FGL J1435.9-8348' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620648/ft1_4FGL_J1435.9-8348_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620648/ft2_4FGL_J1435.9-8348_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620648/ft1_4FGL_J1435.9-8348_daily_bin1024.fits outfile=/scratch/kocevski/620648/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1024.fits ra=218.978 dec=-83.8017 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.29
user 8.00
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/620648/ft2_4FGL_J1435.9-8348_daily_bin1024.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/620648/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1024.fits evtable="EVENTS" outfile="/scratch/kocevski/620648/ft1_filtered_4FGL_J1435.9-8348_daily_bin1024.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620648/ft1_filtered_4FGL_J1435.9-8348_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/620648/ft2_4FGL_J1435.9-8348_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/620648/ltcube_504748801_505008001_4FGL_J1435.9-8348_daily_bin1024.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/620648/ft2_4FGL_J1435.9-8348_daily_bin1024.fits
.....................!
real 11.66
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620648/ft1_filtered_4FGL_J1435.9-8348_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/620648/ft2_4FGL_J1435.9-8348_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/620648/ltcube_504748801_505008001_4FGL_J1435.9-8348_daily_bin1024.fits outfile=/scratch/kocevski/620648/expmap_504748801_505008001_4FGL_J1435.9-8348_daily_bin1024.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/620648/ltcube_504748801_505008001_4FGL_J1435.9-8348_daily_bin1024.fits
.....................!
real 190.48
user 185.99
sys 4.13

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/620648/ft1_filtered_4FGL_J1435.9-8348_daily_bin1024.fits scfile=/scratch/kocevski/620648/ft2_4FGL_J1435.9-8348_daily_bin1024.fits outfile=/scratch/kocevski/620648/cmap_504748801_505008001_4FGL_J1435.9-8348_daily_bin1024.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620648/ft1_filtered_4FGL_J1435.9-8348_daily_bin1024.fits scfile=/scratch/kocevski/620648/ft2_4FGL_J1435.9-8348_daily_bin1024.fits outfile=/scratch/kocevski/620648/cmap_HighResolution_504748801_505008001_4FGL_J1435.9-8348_daily_bin1024.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    81.568       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.305       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    115.15       1.0000         .10000E-03   10000.    
     8 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9839       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.7951       1.0000         .10000E-03   10000.    
    14 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .88639       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83080       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=   2291.575     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1856 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    317.78       -.88759E-04** at limit **
   2  Prefactor     81.601        114.15        .29204E-04   -.57377E-04
   3  Prefactor     .10000E-03    130.05        .10057E-03** at limit **
   4  Prefactor     .10000E-03    34.398        .22528E-05** at limit **
   5  norm          24.304        18.481        .17515E-06    .14117E-04
   6  Prefactor     3.7837        12.969       -.13657E-05   -.97364E-04
   7  Prefactor     115.18        125.70        .24496E-04   -.39031E-06
   8  norm          .10000E-03    91.973       -.49849E-04** at limit **
   9  Prefactor     7.8685        9.1688       -.21688E-05   -.40275E-04
  10  Prefactor     .10000E-03    10.974       -.38261E-06** at limit **
  11  norm          2.9840        2.2588        .14218E-06   -.30802E-03
  12  Prefactor     .10000E-03    68.155        .19038E-04** at limit **
  13  norm          5.7958        12.469        .12277E-05   -.59118E-04
  14  norm          .10000E-03    99.551       -.23883E-04** at limit **
  15  norm          .10000E-03    10.371       -.37784E-06** at limit **
  16  norm          .10000E-03    7.6023       -.11776E-06** at limit **
  17  Prefactor     .10000E-03    106.19        .45613E-05** at limit **
  18  Normalizat    .88594        .59091       -.11832E-04    .29828E-04
  19  Prefactor     .83091        .14488        .14831E-05   -.14150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 81.6008
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 24.3037
  Prefactor  = 3.78373
  Prefactor  = 115.178
  norm       = 0.0001
  Prefactor  = 7.86846
  Prefactor  = 0.0001
  norm       = 2.98405
  Prefactor  = 0.0001
  norm       = 5.79585
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.88594
  Prefactor  = 0.830906
 **********
 **   18 **HESSE 
 **********

 FCN=   2291.575     FROM HESSE     STATUS=OK           266 CALLS     2122 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    318.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     81.601        113.73        .22236E-03   -1.3899    
   3  Prefactor     .10000E-03    129.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.304        18.494        .81252E-04   -1.4722    
   6  Prefactor     3.7837        12.924        .20750E-03   -1.5319    
   7  Prefactor     115.18        126.14        .18747E-03   -1.3557    
   8  norm          .10000E-03    92.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8685        9.1628        .14295E-03   -1.5147    
  10  Prefactor     .10000E-03    11.000        .15489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9840        2.2527        .58190E-04   -1.5362    
  12  Prefactor     .10000E-03    68.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7958        12.442        .16684E-03   -1.5226    
  14  norm          .10000E-03    99.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.444        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.6113        .12892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    106.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .88594        .65061        .49870E-03   -.96956    
  19  Prefactor     .83091        .16152        .13331E-03   -.98599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41057e-10
Minuit parameter uncertainties:
  1  0.000229327
  2  114.034
  3  0.00101486
  4  5.22519e-05
  5  18.4987
  6  12.9337
  7  126.436
  8  0.000221357
  9  9.16445
  10  1.40073e-05
  11  2.25279
  12  2.13209e-05
  13  12.4478
  14  2.62355e-05
  15  8.86288e-06
  16  2.70744e-06
  17  6.73504e-06
  18  0.656501
  19  0.161615
Done.

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

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  7.868e+00  9.164e+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.309e-01  1.616e-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:  8.859e-01  6.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 218.978 -83.802
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.28e-08 +/- 1.08e-07
Energy Flux (Fixed Index): 2.57e-05 +/- 2.99e-05

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

Saving results to:
/scratch/kocevski/620648/likelihoodResults_504748801_505008001_4FGL_J1435.9-8348_daily_bin1024.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) = 2291.15259393
delta logL = 0.422468234826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2290.81525865
delta logL = 0.759803512264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.3238       1.0000          .0000       10.000    
     3 'Normalizat'    .63069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88306       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=   2290.815     FROM MIGRAD    STATUS=CONVERGED    231 CALLS      572 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .62183E-02    .25982E-03** at limit **
   2  Index         9.3609        8.8338        .15448        .60365E-04
   3  Normalizat    .62989        .20132        .13109       -.12985E-03
   4  Prefactor     .88306        .52342E-01    .29347E-01   -.10615E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.36091
  Normalizat = 0.629886
  Prefactor  = 0.883057
 **********
 **   18 **HESSE 
 **********

 FCN=   2290.815     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      611 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .43478E-01    .10117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.3609        9.3487        .70695E-02    1.0596    
   3  Normalizat    .62989        .40564        .58140E-03   -1.0673    
   4  Prefactor     .88306        .10617        .12968E-03   -.96736    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.53438e-09
Minuit parameter uncertainties:
  1  8.12676e-06
  2  5.1594
  3  0.407578
  4  0.106197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620648': 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) = 2290.81520174
delta logL = 0.759860421806

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  1.000e-04  8.127e-06  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  9.361e+00  5.159e+00  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.831e-01  1.062e-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:  6.299e-01  4.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 218.978 -83.802
Photon Index (Free Index): 9.36 +/- 5.16
Photon Flux (Free Index): 2.52e-07 +/- 2.42e-06
Energy Flux (Free Index): 2.85e-05 +/- 2.72e-04

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/620648/cmap_HighResolution_504748801_505008001_4FGL_J1435.9-8348_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-02', comment='SUCCESS', photon_flux='9.28e-08', energy_flux2='2.85e-05', photon_flux_error='1.08e-07', dlogl='7.60e-01', energy_flux='2.57e-05', photon_flux2='2.52e-07', job_status='DONE', time_completed='2021-09-10 00:56:48.772003', photon_index_error2='5.16', photon_index2='9.36', ts='1.60', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='3.78e-07', energy_flux_error2='2.72e-04', EG='0.89', time_epoch_completed='1631260608.77', return_code='0', job_id='620648', GAL2='0.88', EG2='0.63', return_code2='102', energy_flux_error='2.99e-05', photon_flux_error2='2.42e-06', ts2='3.42', photon_index='2.55' WHERE bin_id='1024' AND source_name='4FGL J1435.9-8348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 00:56:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 620648: <4FGL_J1435.9-8348_daily_bin1024> in cluster <slac> Done

Job <4FGL_J1435.9-8348_daily_bin1024> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 00:46:08 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 00:46:10 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:46:10 2021
Terminated at Fri Sep 10 00:56:49 2021
Results reported at Fri Sep 10 00:56:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1435.9-8348_daily_bin1024 218.978 -83.8017 504748801 505008001 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 :                                   492.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            641 sec.

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

