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


Performing analysis on: 4FGL_J1659.7-3131_daily_bin1875
RA = 254.945, Dec = -31.5209
tmin = 725328001, tmax = 725587201
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='37014825', job_status='RUN', time_executed='2023-12-30 00:35:44.709779', time_epoch_executed='1703925344.71' WHERE source_name='4FGL J1659.7-3131' and cadence='daily' and bin_id='1875'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/37014825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/37014825/ft1_4FGL_J1659.7-3131_daily_bin1875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/37014825/ft1_4FGL_J1659.7-3131_daily_bin1875.fits outfile=/lscratch/kocevski/37014825/ft1_filteredMKT_4FGL_J1659.7-3131_daily_bin1875.fits ra=254.945 dec=-31.5209 rad=12.0 tmin=725328001.0 tmax=725587201.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 1.87
user 1.61
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.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/37014825/ft1_filteredMKT_4FGL_J1659.7-3131_daily_bin1875.fits evtable="EVENTS" outfile="/lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.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.34
user 0.17
sys 0.13

Number of photons that the gtmktime cut: 5264

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.fits" evtable="EVENTS" scfile=/lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits sctable="SC_DATA" outfile=/lscratch/kocevski/37014825/ltcube_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.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/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits
.....................!
real 6.97
user 6.71
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.fits evtable="EVENTS" scfile=/lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits sctable="SC_DATA" expcube=/lscratch/kocevski/37014825/ltcube_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.fits outfile=/lscratch/kocevski/37014825/expmap_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.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/37014825/ltcube_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.fits
.....................!
real 59.31
user 55.60
sys 3.48

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 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.
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
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 FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 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 W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Added 554 point sources and 17 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 J1659.7-3131 @ 254.945 -31.5209

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.fits scfile=/lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits outfile=/lscratch/kocevski/37014825/cmap_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.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=254.945 yref=-31.5209 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.35
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.fits scfile=/lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits outfile=/lscratch/kocevski/37014825/cmap_HighResolution_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.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=254.945 yref=-31.5209 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.36
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.fits evtable="EVENTS" scfile=/lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/37014825/Model_4FGL_J1659.7-3131_daily_bin1875.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 J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FGES J1745.8-3028
adding source FHES J1626.9-2431
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source RX J1713.7-3946
adding source W 28
adding source W 30
Working on...
/lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.fits.....................!
real 532.38
user 529.49
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.fits', '/lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits', expMap='/lscratch/kocevski/37014825/expmap_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.fits', expCube='/lscratch/kocevski/37014825/ltcube_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/37014825/Model_4FGL_J1659.7-3131_daily_bin1875.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1659.7-3131'

4FGL J1659.7-3131
   Spectrum: PowerLaw
605    Prefactor:  3.151e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
606        Index:  2.293e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
607        Scale:  1.906e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/37014825/ft1_filtered_4FGL_J1659.7-3131_daily_bin1875.fits
Spacecraft file(s): /lscratch/kocevski/37014825/ft2_4FGL_J1659.7-3131_daily_bin1875.fits
Exposure map: /lscratch/kocevski/37014825/expmap_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.fits
Exposure cube: /lscratch/kocevski/37014825/ltcube_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/37014825/Model_4FGL_J1659.7-3131_daily_bin1875.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) = 46900.6444192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16479E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     3 'norm      '    6.3739       1.0000          .0000       .10000E+07
     4 'norm      '    .10364E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .41639E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .31724E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .58448E-04   1.0000          .0000       .10000E+07
     8 'Normalizat'    1.1496       1.0000         .10000E-01   10.000    
     9 'Prefactor '    1.0129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .2072E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   46900.61     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      441 TOTAL
                     EDM=   .42E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        13.293        .18256E-05** at limit **
   2  norm           .0000        3.2214        .23414E-05** at limit **
   3  norm          6.3546        3.0423        .98169E-07    .12906E-02
   4  norm           .0000        6.8751       -.23506E-05** at limit **
   5  Prefactor      .0000        9.6456       -.45574E-05** at limit **
   6  Prefactor      .0000        21.294        .14917E-05** at limit **
   7  norm           .0000        5.8138       -.47382E-05** at limit **
   8  Normalizat    1.1521        .45910        .86446E-04    .24619E-04
   9  Prefactor     1.0128        .22465E-01   -.65256E-05    .25647E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  norm       = 6.35456
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Normalizat = 1.15213
  Prefactor  = 1.01279
 **********
 **   18 **HESSE 
 **********

 FCN=   46900.61     FROM HESSE     STATUS=OK            97 CALLS      538 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        13.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.2055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3546        3.1221        .39733E-03   -1.5658    
   4  norm           .0000        6.8603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        9.6332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        21.280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        5.8123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Normalizat    1.1521        .51286        .36266       -.88095    
   9  Prefactor     1.0128        .24414E-01    .26176E-01   -.92304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43279e-09
Minuit parameter uncertainties:
  1  3.01099e-06
  2  8.62071e-07
  3  3.1221
  4  2.21855e-06
  5  2.61128e-06
  6  2.51956e-05
  7  4.85948e-06
  8  0.51511
  9  0.0244141
Done.

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

Extracting fit parameters...

4FGL J1659.7-3131
   Spectrum: PowerLaw
605    Prefactor:  0.000e+00  2.611e-06  0.000e+00  1.000e+06 ( 1.000e-13)
606        Index:  2.293e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
607        Scale:  1.906e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
2035    Prefactor:  1.013e+00  2.441e-02  0.000e+00  1.000e+01 ( 1.000e+00)
2036        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
2037        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
2007   Normalization:  1.152e+00  5.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 254.945 -31.521
Photon Flux Upper Limit: 1.68157757276e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0128986989177 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/37014825/likelihoodResults_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.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) = 46900.6617379
delta logL = -0.0516113337799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 46900.6101311
delta logL = -4.49578510597e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   46900.61     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      272 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75899E-02    .26710E-01    .30193E-02** at limit **
   2  Index         4.1780        .17279        .50000        .69223E-05
   3  Normalizat    1.1481        .10419E-01    .36194        .22551E-03
   4  Prefactor     1.0128        .52549E-03    .26175E-01   -.15244E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00758993
  Index      = 4.178
  Normalizat = 1.14809
  Prefactor  = 1.01284
 **********
 **   18 **HESSE 
 **********

 FCN=   46900.61     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      313 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75899E-02    1.7210        .15886E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1780        5.1329        .10406E-01   -.16515    
   3  Normalizat    1.1481        .57389E-01    .21802E-02   -.88222    
   4  Prefactor     1.0128        .29427E-02    .11568E-03   -.92303    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.50311e-08
Minuit parameter uncertainties:
  1  0.228583
  2  31.2555
  3  0.057392
  4  0.00294266
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) = 46900.6096682
delta logL = 0.000458422277006

Extracting fit parameters...

4FGL J1659.7-3131
   Spectrum: PowerLaw
605    Prefactor:  7.590e-03  2.286e-01  0.000e+00  1.000e+06 ( 1.000e-13)
606        Index:  4.178e+00  3.126e+01  0.000e+00  1.000e+01 (-1.000e+00)
607        Scale:  1.906e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
2035    Prefactor:  1.013e+00  2.943e-03  0.000e+00  1.000e+01 ( 1.000e+00)
2036        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
2037        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
2007   Normalization:  1.148e+00  5.739e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 254.945 -31.521

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 /lscratch/kocevski/37014825/cmap_HighResolution_725328001_725587201_4FGL_J1659.7-3131_daily_bin1875.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2023-12-30 01:06:19.639743', job_id='37014825', GAL2='1.01', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1703927179.64', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.58e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1875' AND source_name='4FGL J1659.7-3131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 30 01:06:19 PST 2023

