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


Performing analysis on: 4FGL_J1535.8-4730_weekly_bin825
RA = 233.959, Dec = -47.5085
tmin = 737942401, tmax = 738547201
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='49207497', job_status='RUN', time_executed='2024-05-28 01:51:05.142069', time_epoch_executed='1716886265.14' WHERE source_name='4FGL J1535.8-4730' and cadence='weekly' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/49207497

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/49207497/ft1_4FGL_J1535.8-4730_weekly_bin825.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/49207497/ft1_4FGL_J1535.8-4730_weekly_bin825.fits outfile=/lscratch/kocevski/49207497/ft1_filteredMKT_4FGL_J1535.8-4730_weekly_bin825.fits ra=233.959 dec=-47.5085 rad=12.0 tmin=737942401.0 tmax=738547201.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.96
user 3.56
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.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/49207497/ft1_filteredMKT_4FGL_J1535.8-4730_weekly_bin825.fits evtable="EVENTS" outfile="/lscratch/kocevski/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.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.42
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 12102

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.fits" evtable="EVENTS" scfile=/lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits sctable="SC_DATA" outfile=/lscratch/kocevski/49207497/ltcube_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.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/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits
.....................!
real 16.97
user 16.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.fits evtable="EVENTS" scfile=/lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits sctable="SC_DATA" expcube=/lscratch/kocevski/49207497/ltcube_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.fits outfile=/lscratch/kocevski/49207497/expmap_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.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/49207497/ltcube_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.fits
.....................!
real 59.54
user 55.71
sys 3.45

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/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.fits scfile=/lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits outfile=/lscratch/kocevski/49207497/cmap_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.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.59
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.fits scfile=/lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits outfile=/lscratch/kocevski/49207497/cmap_HighResolution_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.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.43
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.fits evtable="EVENTS" scfile=/lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/49207497/Model_4FGL_J1535.8-4730_weekly_bin825.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/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.fits.....................!
real 2352.30
user 2336.96
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.fits', '/lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits', expMap='/lscratch/kocevski/49207497/expmap_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.fits', expCube='/lscratch/kocevski/49207497/ltcube_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/49207497/Model_4FGL_J1535.8-4730_weekly_bin825.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/49207497/ft1_filtered_4FGL_J1535.8-4730_weekly_bin825.fits
Spacecraft file(s): /lscratch/kocevski/49207497/ft2_4FGL_J1535.8-4730_weekly_bin825.fits
Exposure map: /lscratch/kocevski/49207497/expmap_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.fits
Exposure cube: /lscratch/kocevski/49207497/ltcube_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/49207497/Model_4FGL_J1535.8-4730_weekly_bin825.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) = 103146.434224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.079       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16915E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .92681E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .76099       1.0000          .0000       .10000E+07
     5 'norm      '    .37096E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .70730       1.0000          .0000       .10000E+07
     7 'Prefactor '    .18682E-03   1.0000          .0000       .10000E+07
     8 'norm      '    2.9641       1.0000          .0000       .10000E+07
     9 'norm      '    4.0034       1.0000          .0000       .10000E+07
    10 'norm      '    1.1287       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.9477       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.0617       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.6986       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .97521       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=   103146.4     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      951 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.359        62.491       -.41048E-07    .40768E-05
   2  Prefactor      .0000        41.792       -.84539E-08** at limit **
   3  norm           .0000        2.3316       -.17117E-06** at limit **
   4  norm          .73672        7.0438        .51177E-06   -.61968E-03
   5  norm           .0000        8.0328        .37455E-07** at limit **
   6  norm          .70700        1.1644        .20594E-07   -.59733E-03
   7  Prefactor      .0000        11.675        .18375E-06** at limit **
   8  norm          2.9968        3.6562       -.66049E-08    .15780E-03
   9  norm          4.0117        3.2637        .88923E-08   -.93070E-04
  10  norm          1.1576        47.035       -.43961E-06    .10986E-03
  11  Prefactor     1.9519        2.8859       -.19778E-07    .32079E-03
  12  Prefactor     6.0616        5.0244       -.25109E-08    .12694E-03
  13  Normalizat    1.6987        .22675        .22861E-05    .14297E-05
  14  Prefactor     .97520        .13997E-01   -.25698E-06    .38899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.3588
  Prefactor  = 0
  norm       = 0
  norm       = 0.736723
  norm       = 0
  norm       = 0.707001
  Prefactor  = 0
  norm       = 2.99675
  norm       = 4.01172
  norm       = 1.15758
  Prefactor  = 1.95194
  Prefactor  = 6.06156
  Normalizat = 1.69873
  Prefactor  = 0.975195
 **********
 **   18 **HESSE 
 **********

 FCN=   103146.4     FROM HESSE     STATUS=OK           208 CALLS     1159 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.359        62.634        .14575E-03   -1.5572    
   2  Prefactor      .0000        2.3601        .26189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        2.3280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .73672        7.0206        .55889E-03   -1.5691    
   5  norm           .0000        8.0363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .70700        1.1802        .60117E-03   -1.5691    
   7  Prefactor      .0000        11.664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9968        3.6902        .58954E-03   -1.5673    
   9  norm          4.0117        3.2596        .50380E-03   -1.5668    
  10  norm          1.1576        4.4859        .18618E-01   -1.5686    
  11  Prefactor     1.9519        2.9131        .74338E-03   -1.5680    
  12  Prefactor     6.0616        5.0483        .40756E-03   -1.5659    
  13  Normalizat    1.6987        .23889        .27976       -.72337    
  14  Prefactor     .97520        .14045E-01    .25633E-01   -.93561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33941e-07
Minuit parameter uncertainties:
  1  62.6349
  2  4.74277e-06
  3  1.06216e-05
  4  4.54852
  5  3.2891e-06
  6  1.18022
  7  2.71729e-05
  8  3.69019
  9  3.25964
  10  4.48595
  11  2.91308
  12  5.04831
  13  0.239048
  14  0.0140451
Done.

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

Extracting fit parameters...

4FGL J1535.8-4730
   Spectrum: PowerLaw
638    Prefactor:  0.000e+00  2.717e-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.752e-01  1.405e-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:  1.699e+00  2.390e-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.04990222972e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00826203694832 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/49207497/likelihoodResults_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.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) = 103146.471268
delta logL = -0.0423870395462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 103146.428882
delta logL = -1.2704404071e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   103146.4     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      266 TOTAL
                     EDM=   .76E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    .68963        .42118E-03** at limit **
   2  Index         2.1700        5.8102        .50000        .72760E-10
   3  Normalizat    1.6987        .12084E-02    .27973        .24454E-03
   4  Prefactor     .97520        .74986E-04    .25633E-01   -.51306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Index      = 2.17
  Normalizat = 1.69873
  Prefactor  = 0.975195
 **********
 **   18 **HESSE 
 **********

 FCN=   103146.4     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .28E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    4.9895        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1700        5.1977        .51000       -.60165    
   3  Normalizat    1.6987        .31964E-02    .14465E-02   -.72337    
   4  Prefactor     .97520        .20149E-03    .11328E-03   -.93561    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8112e-14
Minuit parameter uncertainties:
  1  6.49863e-05
  2  57963.4
  3  0.00319638
  4  0.000201489
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) = 103146.428881
delta logL = 0.0

Extracting fit parameters...

4FGL J1535.8-4730
   Spectrum: PowerLaw
638    Prefactor:  2.220e-10  6.499e-05  0.000e+00  1.000e+06 ( 1.000e-13)
639        Index:  2.170e+00  5.796e+04  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.752e-01  2.015e-04  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:  1.699e+00  3.196e-03  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/49207497/cmap_HighResolution_737942401_738547201_4FGL_J1535.8-4730_weekly_bin825.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2024-05-28 03:30:39.024354', job_id='49207497', GAL2='0.98', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1716892239.02', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='825' AND source_name='4FGL J1535.8-4730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 28 03:30:39 PDT 2024

