/sdf/group/fermi/u/kocevski/software/conda/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)

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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/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 = 17362
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1535.8-4730_weekly_bin773
RA = 233.959, Dec = -47.5085
tmin = 706492801, tmax = 707097601
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='17972914', job_status='RUN', time_executed='2023-05-30 01:05:50.156665', time_epoch_executed='1685433950.16' WHERE source_name='4FGL J1535.8-4730' and cadence='weekly' and bin_id='773'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17972914

Creating custom pfile directory:
/lscratch/kocevski/17972914/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=706492801.0 && nMetStart<707097601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=706492801.0 && nMetStart<707097601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17972914/ft1_4FGL_J1535.8-4730_weekly_bin773.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=706492801.0 && nMetStart<707097601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17972914/ft1_4FGL_J1535.8-4730_weekly_bin773.fits outfile=/lscratch/kocevski/17972914/ft1_filteredMKT_4FGL_J1535.8-4730_weekly_bin773.fits ra=233.959 dec=-47.5085 rad=12.0 tmin=706492801.0 tmax=707097601.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 5.00
user 4.51
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17972914/ft1_filteredMKT_4FGL_J1535.8-4730_weekly_bin773.fits evtable="EVENTS" outfile="/lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.24
sys 0.14

Number of photons that the gtmktime cut: 11308

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17972914/ltcube_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.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 /lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits
.....................!
real 20.43
user 19.85
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17972914/ltcube_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.fits outfile=/lscratch/kocevski/17972914/expmap_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.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 /lscratch/kocevski/17972914/ltcube_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.fits
.....................!
real 75.78
user 70.94
sys 4.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 FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/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.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Added 441 point sources and 20 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 J1535.8-4730 @ 233.959 -47.5085

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.fits scfile=/lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits outfile=/lscratch/kocevski/17972914/cmap_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.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=233.959 yref=-47.5085 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.58
user 0.27
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.fits scfile=/lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits outfile=/lscratch/kocevski/17972914/cmap_HighResolution_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.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=233.959 yref=-47.5085 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.60
user 0.28
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.fits evtable="EVENTS" scfile=/lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17972914/Model_4FGL_J1535.8-4730_weekly_bin773.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 FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
adding source RX J1713.7-3946
Working on...
/lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.fits.....................!
real 2355.06
user 2340.49
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.fits', '/lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits', expMap='/lscratch/kocevski/17972914/expmap_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.fits', expCube='/lscratch/kocevski/17972914/ltcube_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17972914/Model_4FGL_J1535.8-4730_weekly_bin773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1535.8-4730'

4FGL J1535.8-4730
   Spectrum: PowerLaw
638    Prefactor:  3.672e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
639        Index:  2.693e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
640        Scale:  1.101e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17972914/ft1_filtered_4FGL_J1535.8-4730_weekly_bin773.fits
Spacecraft file(s): /lscratch/kocevski/17972914/ft2_4FGL_J1535.8-4730_weekly_bin773.fits
Exposure map: /lscratch/kocevski/17972914/expmap_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.fits
Exposure cube: /lscratch/kocevski/17972914/ltcube_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17972914/Model_4FGL_J1535.8-4730_weekly_bin773.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) = 97328.7995883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    299.34       1.0000          .0000       .10000E+07
     2 'Prefactor '    .30055E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .73715E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .90529E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .53222E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .26121E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20007E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .40420E-05   1.0000          .0000       .10000E+07
     9 'norm      '    8.6143       1.0000          .0000       .10000E+07
    10 'norm      '    37.850       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.2648       1.0000          .0000       .10000E+07
    12 'Prefactor '    17.013       1.0000          .0000       .10000E+07
    13 'Normalizat'    2.0584       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .96651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1640E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   97328.79     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      976 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     300.38        111.61        .63730E-06   -.72238E-03
   2  Prefactor     .55511E-10    16.568       -.42324E-06** at limit **
   3  norm          .55511E-10    10.540        .32766E-06** at limit **
   4  norm           .0000        3.4774        .19416E-06** at limit **
   5  norm           .0000        7.8464       -.99468E-07** at limit **
   6  norm           .0000        .89035        .36624E-08** at limit **
   7  Prefactor      .0000        14.946       -.80450E-07** at limit **
   8  norm           .0000        .89633       -.42861E-07** at limit **
   9  norm          8.6067        6.4843       -.45011E-07    .38633E-03
  10  norm          37.869        18.577        .13231E-06   -.37056E-03
  11  Prefactor     2.2463        3.7041       -.38340E-07    .39368E-03
  12  Prefactor     16.978        6.5142       -.41387E-06    .66329E-02
  13  Normalizat    2.0581        .24916        .23916E-05   -.32353E-04
  14  Prefactor     .96654        .14743E-01   -.98898E-08    .11709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 300.383
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 0
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 8.60672
  norm       = 37.8687
  Prefactor  = 2.24633
  Prefactor  = 16.9783
  Normalizat = 2.05808
  Prefactor  = 0.966537
 **********
 **   18 **HESSE 
 **********

 FCN=   97328.79     FROM HESSE     STATUS=OK           192 CALLS     1168 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     300.38        111.41        .57808E-04   -1.5361    
   2  Prefactor     .55511E-10    16.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    10.465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        3.4810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        7.8603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .89053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        14.524        .17036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .89721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.6067        6.4805        .34129E-03   -1.5649    
  10  norm          37.869        18.583        .16256E-03   -1.5585    
  11  Prefactor     2.2463        3.7116        .68224E-03   -1.5678    
  12  Prefactor     16.978        6.5144        .24255E-03   -1.5626    
  13  Normalizat    2.0581        .25023        .25534       -.63103    
  14  Prefactor     .96654        .14520E-01    .26150E-01   -.93853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26802e-09
Minuit parameter uncertainties:
  1  111.415
  2  7.03216e-05
  3  4.15304e-05
  4  1.4222e-05
  5  1.11827e-05
  6  3.2481e-07
  7  1.24287e-05
  8  1.6525e-06
  9  6.48055
  10  18.5833
  11  3.71157
  12  6.51441
  13  0.250392
  14  0.01452
Done.

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

Extracting fit parameters...

4FGL J1535.8-4730
   Spectrum: PowerLaw
638    Prefactor:  0.000e+00  1.243e-05  0.000e+00  1.000e+06 ( 1.000e-13)
639        Index:  2.693e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
640        Scale:  1.101e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1600    Prefactor:  9.665e-01  1.452e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1567   Normalization:  2.058e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 233.959 -47.508
Photon Flux Upper Limit: 1.19117030916e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00937372340715 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17972914/likelihoodResults_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.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) = 97328.8270159
delta logL = -0.0331871407107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 97328.7938291
delta logL = -2.99973180518e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10814E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0848       1.0000          .0000       10.000    
     3 'Normalizat'    2.0582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96653       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1640E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   97328.79     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      221 TOTAL
                     EDM=   .36E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    15.069       -.53272E-06** at limit **
   2  Index         2.5725        3.5760       -.15423E-06   -.39680E-12
   3  Normalizat    2.0581        .23910        .27434E-06   -.10862E-04
   4  Prefactor     .96654        .14468E-01    .74231E-07   -.30269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.57247
  Normalizat = 2.05808
  Prefactor  = 0.966537
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   97328.79     FROM HESSE     STATUS=FAILED        11 CALLS      232 TOTAL
                     EDM=   .36E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    15.046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .74748        1.9999       -.15423E-06   -.50694    
   3  Normalizat    2.0581        1.0187        .27434E-06   -.63103    
   4  Prefactor     .96654        1.3078        .74231E-07   -.93853    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.60526e-12
Minuit parameter uncertainties:
  1  6.98685e-05
  2  1.66948
  3  1.02984
  4  1.35472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 97328.7938288
delta logL = 0.0

Extracting fit parameters...

4FGL J1535.8-4730
   Spectrum: PowerLaw
638    Prefactor:  5.551e-11  6.987e-05  0.000e+00  1.000e+06 ( 1.000e-13)
639        Index:  2.572e+00  1.669e+00  0.000e+00  1.000e+01 (-1.000e+00)
640        Scale:  1.101e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1600    Prefactor:  9.665e-01  1.355e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1567   Normalization:  2.058e+00  1.030e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 233.959 -47.508

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/17972914/cmap_HighResolution_706492801_707097601_4FGL_J1535.8-4730_weekly_bin773.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2023-05-30 02:37:17.361352', job_id='17972914', GAL2='0.97', fit_tolerance='1e-08', EG2='2.06', EG='2.06', time_epoch_completed='1685439437.36', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='773' AND source_name='4FGL J1535.8-4730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 30 02:37:17 PDT 2023

