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


Performing analysis on: 4FGL_J1707.9+0016_weekly_bin824
RA = 256.989, Dec = 0.2731
tmin = 737337601, tmax = 737942401
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='48578586', job_status='RUN', time_executed='2024-05-21 00:56:02.493108', time_epoch_executed='1716278162.49' WHERE source_name='4FGL J1707.9+0016' and cadence='weekly' and bin_id='824'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/48578586

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

Retrieving the FT1 file...

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

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

Retrieving 104 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/48578586/ft1_4FGL_J1707.9+0016_weekly_bin824.fits


Retrieving the FT1 file...

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

Retrieving 104 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/48578586/ft1_4FGL_J1707.9+0016_weekly_bin824.fits outfile=/lscratch/kocevski/48578586/ft1_filteredMKT_4FGL_J1707.9+0016_weekly_bin824.fits ra=256.989 dec=0.2731 rad=12.0 tmin=737337601.0 tmax=737942401.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 4.26
user 3.89
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.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/48578586/ft1_filteredMKT_4FGL_J1707.9+0016_weekly_bin824.fits evtable="EVENTS" outfile="/lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.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.44
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 3128

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.fits" evtable="EVENTS" scfile=/lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits sctable="SC_DATA" outfile=/lscratch/kocevski/48578586/ltcube_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.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/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits
.....................!
real 16.13
user 15.78
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.fits evtable="EVENTS" scfile=/lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits sctable="SC_DATA" expcube=/lscratch/kocevski/48578586/ltcube_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.fits outfile=/lscratch/kocevski/48578586/expmap_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.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/48578586/ltcube_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.fits
.....................!
real 61.75
user 58.38
sys 3.06

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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 202 point sources and 1 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 J1707.9+0016 @ 256.989 0.2731

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.fits scfile=/lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits outfile=/lscratch/kocevski/48578586/cmap_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.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=256.989 yref=0.2731 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.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.fits scfile=/lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits outfile=/lscratch/kocevski/48578586/cmap_HighResolution_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.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=256.989 yref=0.2731 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.38
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.fits evtable="EVENTS" scfile=/lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/48578586/Model_4FGL_J1707.9+0016_weekly_bin824.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 J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.fits.....................!
real 101.52
user 100.20
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.fits', '/lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits', expMap='/lscratch/kocevski/48578586/expmap_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.fits', expCube='/lscratch/kocevski/48578586/ltcube_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/48578586/Model_4FGL_J1707.9+0016_weekly_bin824.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1707.9+0016'

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  8.322e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
249        Index:  2.077e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  4.388e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/48578586/ft1_filtered_4FGL_J1707.9+0016_weekly_bin824.fits
Spacecraft file(s): /lscratch/kocevski/48578586/ft2_4FGL_J1707.9+0016_weekly_bin824.fits
Exposure map: /lscratch/kocevski/48578586/expmap_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.fits
Exposure cube: /lscratch/kocevski/48578586/ltcube_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/48578586/Model_4FGL_J1707.9+0016_weekly_bin824.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) = 32923.8493362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34020E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .21884E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    26.792       1.0000          .0000       .10000E+07
     4 'Prefactor '    .66705E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.2643       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.5686       1.0000          .0000       .10000E+07
     7 'Prefactor '    .40480E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    7.0227       1.0000          .0000       .10000E+07
     9 'Prefactor '    .39610E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.848       1.0000          .0000       .10000E+07
    11 'Prefactor '    110.45       1.0000          .0000       .10000E+07
    12 'norm      '    .33862E-08   1.0000          .0000       .10000E+07
    13 'norm      '    .87475E-01   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.2638       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32923.51     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1136 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        33.560        .13517E-06** at limit **
   2  Prefactor     .11102E-09    4.7393        .33635E-06** at limit **
   3  Prefactor     26.928        16.373        .20608E-06   -.58426E-03
   4  Prefactor     .11102E-09    25.595       -.11560E-05** at limit **
   5  Prefactor     2.2914        4.2489       -.41705E-06   -.12497E-02
   6  Prefactor     1.5776        2.9391       -.23291E-07   -.44272E-03
   7  Prefactor      .0000        58.038        .28825E-06** at limit **
   8  Prefactor     7.0409        6.2028        .72732E-07   -.61369E-03
   9  Prefactor      .0000        79.030        .43426E-06** at limit **
  10  Prefactor     10.667        10.129       -.41348E-06   -.35055E-03
  11  Prefactor     115.58        55.179       -.54168E-07   -.52987E-03
  12  norm           .0000        2.1134       -.52051E-07** at limit **
  13  norm          .85450E-01    4.9953        .91532E-06** at limit **
  14  Normalizat    1.2588        .24153        .71463E-05   -.11540E-03
  15  Prefactor     1.0502        .41577E-01   -.59257E-06   -.33120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 26.9276
  Prefactor  = 1.11022e-10
  Prefactor  = 2.29144
  Prefactor  = 1.57765
  Prefactor  = 0
  Prefactor  = 7.0409
  Prefactor  = 0
  Prefactor  = 10.667
  Prefactor  = 115.583
  norm       = 0
  norm       = 0.0854503
  Normalizat = 1.25877
  Prefactor  = 1.05025
 **********
 **   18 **HESSE 
 **********

 FCN=   32923.51     FROM HESSE     STATUS=OK           218 CALLS     1354 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        33.442        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-09    4.8270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.928        16.392        .19323E-03   -1.5604    
   4  Prefactor     .11102E-09    25.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2914        4.2599        .68233E-03   -1.5678    
   6  Prefactor     1.5776        2.9729        .84863E-03   -1.5683    
   7  Prefactor      .0000        56.775        .15942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0409        6.1893        .37832E-03   -1.5655    
   9  Prefactor      .0000        78.806        .15981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.667        10.147        .30394E-03   -1.5643    
  11  Prefactor     115.58        54.950        .95159E-04   -1.5493    
  12  norm           .0000        2.1095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .85450E-01    .53721        .69975E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.2588        .22499        .15279       -.84806    
  15  Prefactor     1.0502        .37991E-01    .39915E-01   -.91073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41047e-06
Minuit parameter uncertainties:
  1  1.61998e-05
  2  4.86839e-05
  3  16.3923
  4  0.000107487
  5  4.25987
  6  2.97294
  7  1.94223e-05
  8  6.18931
  9  5.77111e-05
  10  10.1466
  11  54.9505
  12  1.30473e-05
  13  0.428508
  14  0.225162
  15  0.0379918
Done.

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

Extracting fit parameters...

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  0.000e+00  5.771e-05  0.000e+00  1.000e+06 ( 1.000e-15)
249        Index:  2.077e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  4.388e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.050e+00  3.799e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
698   Normalization:  1.259e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 256.989 0.273
Photon Flux Upper Limit: 4.98581590198e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0037628430083 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/48578586/likelihoodResults_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.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) = 32923.5186558
delta logL = -0.00606241232163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32923.5125987
delta logL = -5.36988227395e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16707E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.9908       1.0000          .0000       10.000    
     3 'Normalizat'    1.2586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32923.51     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        18.153        .42118E-03** at limit **
   2  Index         .36391        .47855        .90058E-04     .0000    
   3  Normalizat    1.2588        1.0891       -.11728E-05   -.27333E-04
   4  Prefactor     1.0502        1.1910       -.45957E-06   -.15239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.363908
  Normalizat = 1.25877
  Prefactor  = 1.05025
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32923.51     FROM HESSE     STATUS=FAILED         9 CALLS      256 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .39713E-01    .47855        .90058E-04   -1.1869    
   3  Normalizat    1.2588        1.0891       -.11728E-05   -.84806    
   4  Prefactor     1.0502        1.1910       -.45957E-06   -.91073    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.43042e-12
Minuit parameter uncertainties:
  1  4.35343e-05
  2  0.483922
  3  1.10983
  4  1.22321
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) = 32923.5125933
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  0.000e+00  4.353e-05  0.000e+00  1.000e+06 ( 1.000e-15)
249        Index:  3.639e-01  4.839e-01  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  4.388e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.050e+00  1.223e+00  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
698   Normalization:  1.259e+00  1.110e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 256.989 0.273

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/48578586/cmap_HighResolution_737337601_737942401_4FGL_J1707.9+0016_weekly_bin824.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2024-05-21 01:07:40.621422', job_id='48578586', GAL2='1.05', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1716278860.62', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='824' AND source_name='4FGL J1707.9+0016' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 21 01:07:40 PDT 2024

