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


Performing analysis on: 4FGL_J1707.5+1649_weekly_bin853
RA = 256.881, Dec = 16.8206
tmin = 754876801, tmax = 755481601
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='59978278', job_status='RUN', time_executed='2024-12-10 00:56:27.135724', time_epoch_executed='1733820987.14' WHERE source_name='4FGL J1707.5+1649' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978278

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978278/ft1_4FGL_J1707.5+1649_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978278/ft1_4FGL_J1707.5+1649_weekly_bin853.fits outfile=/lscratch/kocevski/59978278/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin853.fits ra=256.881 dec=16.8206 rad=12.0 tmin=754876801.0 tmax=755481601.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.13
user 3.46
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.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/59978278/ft1_filteredMKT_4FGL_J1707.5+1649_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.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.58
user 0.24
sys 0.16

Number of photons that the gtmktime cut: 3011

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978278/ltcube_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.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/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits
.....................!
real 38.25
user 37.39
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978278/ltcube_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.fits outfile=/lscratch/kocevski/59978278/expmap_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.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/59978278/ltcube_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.fits
.....................!
real 76.05
user 70.88
sys 4.44

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
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1707.5+1649 @ 256.881 16.8206

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.fits scfile=/lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits outfile=/lscratch/kocevski/59978278/cmap_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.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.881 yref=16.8206 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.46
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.fits scfile=/lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits outfile=/lscratch/kocevski/59978278/cmap_HighResolution_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.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.881 yref=16.8206 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.63
user 0.29
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978278/Model_4FGL_J1707.5+1649_weekly_bin853.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 GAL_V02
Working on...
/lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.fits.....................!
real 98.14
user 96.22
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.fits', '/lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits', expMap='/lscratch/kocevski/59978278/expmap_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.fits', expCube='/lscratch/kocevski/59978278/ltcube_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978278/Model_4FGL_J1707.5+1649_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1707.5+1649'

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  2.274e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59978278/ft1_filtered_4FGL_J1707.5+1649_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978278/ft2_4FGL_J1707.5+1649_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978278/expmap_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978278/ltcube_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978278/Model_4FGL_J1707.5+1649_weekly_bin853.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) = 32390.8220244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7128       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15086E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .71801       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4025       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.4683       1.0000          .0000       .10000E+07
     6 'Prefactor '    9.0694       1.0000          .0000       .10000E+07
     7 'Prefactor '    .53979E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36962E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9553       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.4603       1.0000          .0000       .10000E+07
    11 'norm      '    .48600       1.0000          .0000       .10000E+07
    12 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    13 'norm      '    .63560E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .24540E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.8511       1.0000          .0000       .10000E+07
    16 'norm      '    .16564E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    .99685       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0720       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32390.77     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1076 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6574        1.8132       -.98835E-06    .22743E-01
   2  Prefactor     .44409E-09    4.5675       -.14166E-06** at limit **
   3  Prefactor     .71108        .59434        .48770E-06   -.10090E-02
   4  Prefactor     2.3984        2.4000        .24757E-06    .83249E-02
   5  Prefactor     2.4589        4.1550       -.15360E-06    .10117E-01
   6  Prefactor     9.1680        11.823       -.49633E-05   -.49904E-02
   7  Prefactor     .12212E-08    10.603       -.13725E-05** at limit **
   8  Prefactor     .16653E-09    46.933        .24999E-05** at limit **
   9  Prefactor     2.9168        4.6578       -.62122E-06    .37231E-02
  10  Prefactor     3.4532        4.3125        .11480E-06   -.56126E-02
  11  norm          .48593        .91942        .34891E-07    .69003E-02
  12  Prefactor     .49960E-09    3.7950        .21308E-06** at limit **
  13  norm          .27756E-09    2.5864        .10240E-06** at limit **
  14  Prefactor     .55511E-09    19.091        .44719E-08** at limit **
  15  Prefactor     6.8516        1.8484       -.87790E-07    .17897E-01
  16  norm          .69944E-08    18.457        .42815E-06** at limit **
  17  Normalizat    .99690        .14986        .27250E-05    .37421E-03
  18  Prefactor     1.0720        .57077E-01    .11056E-05    .83767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.65738
  Prefactor  = 4.44089e-10
  Prefactor  = 0.711081
  Prefactor  = 2.39836
  Prefactor  = 2.45888
  Prefactor  = 9.16801
  Prefactor  = 1.22125e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 2.91679
  Prefactor  = 3.45325
  norm       = 0.485929
  Prefactor  = 4.996e-10
  norm       = 2.77556e-10
  Prefactor  = 5.55112e-10
  Prefactor  = 6.85158
  norm       = 6.99441e-09
  Normalizat = 0.996897
  Prefactor  = 1.07201
 **********
 **   18 **HESSE 
 **********

 FCN=   32390.77     FROM HESSE     STATUS=OK           282 CALLS     1358 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6574        36.391        .52384E-03   -1.5670    
   2  Prefactor     .44409E-09    4.5716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71108        21.231        .59258E-03   -1.5691    
   4  Prefactor     2.3984        2.4210        .66032E-03   -1.5677    
   5  Prefactor     2.4589        4.1984        .65061E-03   -1.5677    
   6  Prefactor     9.1680        11.880        .33256E-03   -1.5647    
   7  Prefactor     .12212E-08    10.600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16653E-09    47.414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9168        4.7067        .59048E-03   -1.5674    
  10  Prefactor     3.4532        4.3315        .54341E-03   -1.5671    
  11  norm          .48593        .94436        .80130E-03   -1.5694    
  12  Prefactor     .49960E-09    3.7852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    2.5824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-09    18.949        .16755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8516        1.8516        .38308E-03   -1.5656    
  16  norm          .69944E-08    18.570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .99690        .13491        .96049E-01   -.93134    
  18  Prefactor     1.0720        .49265E-01    .38765E-01   -.90366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26466e-07
Minuit parameter uncertainties:
  1  23.0736
  2  9.21861e-05
  3  7.77102
  4  2.42102
  5  4.19841
  6  11.8799
  7  0.000228782
  8  0.000183656
  9  4.70672
  10  4.33151
  11  0.944358
  12  8.51875e-05
  13  5.13913e-05
  14  0.000206434
  15  1.85156
  16  0.000720806
  17  0.134958
  18  0.0492672
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  3.453e+00  4.332e+00  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.072e+00  4.927e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.969e-01  1.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 256.881 16.821
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.10e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 4.51e-06 +/- 5.66e-06

TS (Fixed Index): 1.21
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 4.85773904072e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00371576268123 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59978278/likelihoodResults_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.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) = 32390.7657107
delta logL = 0.00437828787835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32390.7653596
delta logL = 0.00472944960347

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   32390.77     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      268 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5686        4.6214        .10695E-03   -.34577E-02
   2  Index         2.1725        .84263        .54014E-02    .22058E-05
   3  Normalizat    .99797        .14703        .42526E-03    .21387E-06
   4  Prefactor     1.0719        .56544E-01    .15759E-03   -.92340E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56862
  Index      = 2.17252
  Normalizat = 0.997971
  Prefactor  = 1.07189
 **********
 **   18 **HESSE 
 **********

 FCN=   32390.77     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5686        4.5838        .42779E-05   -1.5670    
   2  Index         2.1725        .83586        .21606E-03   -.60103    
   3  Normalizat    .99797        .14711        .17011E-04   -.93098    
   4  Prefactor     1.0719        .56579E-01    .31518E-04   -.90370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4146e-11
Minuit parameter uncertainties:
  1  4.58378
  2  0.841689
  3  0.14717
  4  0.0565823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 32390.7653596
delta logL = 0.00472945789807

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  3.569e+00  4.584e+00  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.173e+00  8.417e-01  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.072e+00  5.658e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  9.980e-01  1.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 256.881 16.821
Photon Index (Free Index): 2.17 +/- 0.84
Photon Flux (Free Index): 9.83e-09 +/- 1.77e-08
Energy Flux (Free Index): 4.65e-06 +/- 6.09e-06

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/59978278/cmap_HighResolution_754876801_755481601_4FGL_J1707.5+1649_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', comment='SUCCESS', photon_flux='1.10e-08', energy_flux2='4.65e-06', photon_flux_error='1.39e-08', dlogl='4.73e-03', energy_flux='4.51e-06', photon_flux2='9.83e-09', job_status='DONE', time_completed='2024-12-10 01:09:27.628122', photon_index_error2='0.84', photon_index2='2.17', ts='1.21', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='4.86e-08', energy_flux_error2='6.09e-06', EG='1.00', time_epoch_completed='1733821767.63', return_code='0', job_id='59978278', GAL2='1.07', EG2='1.00', return_code2='0', energy_flux_error='5.66e-06', photon_flux_error2='1.77e-08', ts2='1.22', photon_index='2.25' WHERE bin_id='853' AND source_name='4FGL J1707.5+1649' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:09:27 PST 2024

