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


Performing analysis on: 4FGL_J1706.1+1000_weekly_bin859
RA = 256.539, Dec = 10.0079
tmin = 758505601, tmax = 759110401
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='62411406', job_status='RUN', time_executed='2025-01-21 01:07:12.767197', time_epoch_executed='1737450432.77' WHERE source_name='4FGL J1706.1+1000' and cadence='weekly' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62411406

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/62411406/ft1_4FGL_J1706.1+1000_weekly_bin859.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62411406/ft1_4FGL_J1706.1+1000_weekly_bin859.fits outfile=/lscratch/kocevski/62411406/ft1_filteredMKT_4FGL_J1706.1+1000_weekly_bin859.fits ra=256.539 dec=10.0079 rad=12.0 tmin=758505601.0 tmax=759110401.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.74
user 3.42
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.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/62411406/ft1_filteredMKT_4FGL_J1706.1+1000_weekly_bin859.fits evtable="EVENTS" outfile="/lscratch/kocevski/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.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.50
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 3260

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62411406/ltcube_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.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/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits
.....................!
real 34.39
user 33.80
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62411406/ltcube_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.fits outfile=/lscratch/kocevski/62411406/expmap_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.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/62411406/ltcube_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.fits
.....................!
real 79.03
user 74.10
sys 4.43

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 175 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 J1706.1+1000 @ 256.539 10.0079

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.fits scfile=/lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits outfile=/lscratch/kocevski/62411406/cmap_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.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.539 yref=10.0079 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.48
user 0.28
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.fits scfile=/lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits outfile=/lscratch/kocevski/62411406/cmap_HighResolution_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.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.539 yref=10.0079 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.51
user 0.29
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/62411406/Model_4FGL_J1706.1+1000_weekly_bin859.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/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.fits....................!
real 112.24
user 110.31
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.fits', '/lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits', expMap='/lscratch/kocevski/62411406/expmap_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.fits', expCube='/lscratch/kocevski/62411406/ltcube_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/62411406/Model_4FGL_J1706.1+1000_weekly_bin859.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1706.1+1000'

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.311e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
266        Index:  2.699e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  6.133e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/62411406/ft1_filtered_4FGL_J1706.1+1000_weekly_bin859.fits
Spacecraft file(s): /lscratch/kocevski/62411406/ft2_4FGL_J1706.1+1000_weekly_bin859.fits
Exposure map: /lscratch/kocevski/62411406/expmap_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.fits
Exposure cube: /lscratch/kocevski/62411406/ltcube_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/62411406/Model_4FGL_J1706.1+1000_weekly_bin859.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) = 34534.5664806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51892E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .31098       1.0000          .0000       .10000E+07
     3 'Prefactor '    12.860       1.0000          .0000       .10000E+07
     4 'Prefactor '    .41855E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10206E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .14247E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .77922E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .46673E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.3446       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14327E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    63.757       1.0000          .0000       .10000E+07
    12 'norm      '    .85094       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.2381       1.0000          .0000       .10000E+07
    14 'norm      '    1.9853       1.0000          .0000       .10000E+07
    15 'Prefactor '    25.357       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.6552       1.0000          .0000       .10000E+07
    17 'norm      '    .83593E-02   1.0000          .0000       .10000E+07
    18 'norm      '    2.5312       1.0000          .0000       .10000E+07
    19 'norm      '    .50720       1.0000          .0000       .10000E+07
    20 'Normalizat'    .95306       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34534.54     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1672 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45108E-06    63.508        .59410E-07** at limit **
   2  Prefactor      .0000        49.519       -.79189E-07** at limit **
   3  Prefactor     12.897        5.5269        .12250E-07   -.28335E-03
   4  Prefactor      .0000        1.7430       -.26301E-07** at limit **
   5  Prefactor      .0000        1.0111        .73265E-07** at limit **
   6  Prefactor      .0000        9.2941        .71709E-06** at limit **
   7  Prefactor     .88818E-09    23.151       -.18950E-06** at limit **
   8  Prefactor     .25535E-08    33.274       -.40423E-06** at limit **
   9  Prefactor     7.3945        4.0871        .95832E-08   -.49293E-04
  10  Prefactor      .0000        2.3778       -.10131E-07** at limit **
  11  Prefactor     64.575        65.260       -.26870E-07   -.27809E-01
  12  norm          .85068        .84370        .98030E-08   -.10468E-03
  13  Prefactor     4.2555        7.0613        .21475E-06    .65118E-03
  14  norm          1.9840        3.4074       -.14092E-06    .11622E-03
  15  Prefactor     24.658        12.459        .22437E-07   -.95300E-01
  16  Prefactor     1.6515        1.6781        .16412E-07   -.37950E-03
  17  norm           .0000        19.992        .88718E-09** at limit **
  18  norm          2.5308        1.5788       -.36442E-07   -.36199E-03
  19  norm          .50725        .35507        .19703E-07   -.33887E-03
  20  Normalizat    .95365        .16389       -.90399E-06   -.55720E-04
  21  Prefactor     1.0712        .51080E-01    .57129E-06   -.10598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.51084e-07
  Prefactor  = 0
  Prefactor  = 12.8974
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.88178e-10
  Prefactor  = 2.55351e-09
  Prefactor  = 7.39451
  Prefactor  = 0
  Prefactor  = 64.5748
  norm       = 0.850677
  Prefactor  = 4.2555
  norm       = 1.98405
  Prefactor  = 24.6577
  Prefactor  = 1.65154
  norm       = 0
  norm       = 2.53077
  norm       = 0.507246
  Normalizat = 0.953648
  Prefactor  = 1.07123
 **********
 **   18 **HESSE 
 **********

 FCN=   34534.54     FROM HESSE     STATUS=OK           371 CALLS     2043 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45108E-06    64.082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        5.0860        .14211E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.897        5.6386        .27907E-03   -1.5636    
   4  Prefactor      .0000        1.7386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.0111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.9721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .88818E-09    22.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25535E-08    33.293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3945        4.0968        .36985E-03   -1.5654    
  10  Prefactor      .0000        2.3746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.575        68.027        .12525E-03   -1.5547    
  12  norm          .85068        .84551        .49213E-03   -1.5690    
  13  Prefactor     4.2555        7.1227        .48922E-03   -1.5667    
  14  norm          1.9840        3.4596        .73517E-03   -1.5680    
  15  Prefactor     24.658        42.489        .19863E-03   -1.5609    
  16  Prefactor     1.6515        1.7156        .82005E-03   -1.5682    
  17  norm           .0000        19.462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5308        1.5777        .64174E-03   -1.5676    
  19  norm          .50725        .35661        .77988E-03   -1.5694    
  20  Normalizat    .95365        .14619        .11150       -.94600    
  21  Prefactor     1.0712        .44719E-01    .38798E-01   -.90391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79211e-07
Minuit parameter uncertainties:
  1  0.0107531
  2  6.45505e-06
  3  5.63857
  4  1.35688e-06
  5  1.37464e-06
  6  2.35405e-05
  7  0.000287086
  8  0.000582207
  9  4.09683
  10  9.31382e-07
  11  68.0279
  12  0.845506
  13  7.12271
  14  3.45962
  15  42.4893
  16  1.71558
  17  4.06321e-05
  18  1.57769
  19  0.35661
  20  0.146255
  21  0.0447206
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  7.395e+00  4.097e+00  0.000e+00  1.000e+06 ( 1.000e-12)
266        Index:  2.699e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  6.133e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.071e+00  4.472e-02  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.536e-01  1.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.54
Ra Dec: 256.539 10.008
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 5.82e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 7.77e-06

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) = 34534.5251563
delta logL = 0.0180584064074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34534.5187797
delta logL = 0.0244350283829

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   34534.52     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9169        51.467        .38126E-03    .85285E-02
   2  Index         2.8203        2.8954        .22551        .37436E-03
   3  Normalizat    .94717        .50466E-01    .11184        .28679E-03
   4  Prefactor     1.0725        .13834E-01    .38742E-01    .38484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91693
  Index      = 2.82034
  Normalizat = 0.94717
  Prefactor  = 1.07246
 **********
 **   18 **HESSE 
 **********

 FCN=   34534.52     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9169        4.9742        .15250E-04   -1.5655    
   2  Index         2.8203        .61592        .12124E-01   -.45107    
   3  Normalizat    .94717        .16406        .49584E-03   -.94822    
   4  Prefactor     1.0725        .50780E-01    .14698E-03   -.90352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27702e-10
Minuit parameter uncertainties:
  1  4.9742
  2  0.617862
  3  0.164149
  4  0.0507824
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) = 34534.5187795
delta logL = 0.0244352478985

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  6.917e+00  4.974e+00  0.000e+00  1.000e+06 ( 1.000e-12)
266        Index:  2.820e+00  6.179e-01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  6.133e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.072e+00  5.078e-02  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.472e-01  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.60
Ra Dec: 256.539 10.008
Photon Index (Free Index): 2.82 +/- 0.62
Photon Flux (Free Index): 6.34e-08 +/- 3.93e-08
Energy Flux (Free Index): 1.40e-05 +/- 7.67e-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/62411406/cmap_HighResolution_758505601_759110401_4FGL_J1706.1+1000_weekly_bin859.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.82e-08', energy_flux2='1.40e-05', photon_flux_error='3.22e-08', dlogl='2.44e-02', energy_flux='1.40e-05', photon_flux2='6.34e-08', job_status='DONE', time_completed='2025-01-21 01:20:39.177395', photon_index_error2='0.62', photon_index2='2.82', ts='4.54', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='7.67e-06', EG='0.95', time_epoch_completed='1737451239.18', return_code='0', job_id='62411406', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='7.77e-06', photon_flux_error2='3.93e-08', ts2='4.60', photon_index='2.70' WHERE bin_id='859' AND source_name='4FGL J1706.1+1000' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 21 01:20:39 PST 2025

