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


Performing analysis on: 4FGL_J1701.0+6613_weekly_bin854
RA = 255.26, Dec = 66.2255
tmin = 755481601, tmax = 756086401
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='60352471', job_status='RUN', time_executed='2024-12-17 00:51:56.931893', time_epoch_executed='1734425516.93' WHERE source_name='4FGL J1701.0+6613' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352471

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60352471/ft1_4FGL_J1701.0+6613_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352471/ft1_4FGL_J1701.0+6613_weekly_bin854.fits outfile=/lscratch/kocevski/60352471/ft1_filteredMKT_4FGL_J1701.0+6613_weekly_bin854.fits ra=255.26 dec=66.2255 rad=12.0 tmin=755481601.0 tmax=756086401.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.11
user 3.72
sys 0.34

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.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/60352471/ft1_filteredMKT_4FGL_J1701.0+6613_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.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.36
user 0.17
sys 0.14

Number of photons that the gtmktime cut: 1700

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352471/ltcube_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.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/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits
.....................!
real 15.25
user 14.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352471/ltcube_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.fits outfile=/lscratch/kocevski/60352471/expmap_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.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/60352471/ltcube_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.fits
.....................!
real 59.17
user 55.29
sys 3.58

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

Setting source of interest to:
4FGL J1701.0+6613 @ 255.26 66.2255

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.fits scfile=/lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits outfile=/lscratch/kocevski/60352471/cmap_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.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=255.26 yref=66.2255 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.37
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.fits scfile=/lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits outfile=/lscratch/kocevski/60352471/cmap_HighResolution_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.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=255.26 yref=66.2255 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.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352471/Model_4FGL_J1701.0+6613_weekly_bin854.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/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.fits....................!
real 52.35
user 51.10
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.fits', '/lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits', expMap='/lscratch/kocevski/60352471/expmap_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.fits', expCube='/lscratch/kocevski/60352471/ltcube_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352471/Model_4FGL_J1701.0+6613_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1701.0+6613'

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  2.962e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
366        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352471/ft1_filtered_4FGL_J1701.0+6613_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352471/ft2_4FGL_J1701.0+6613_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352471/expmap_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352471/ltcube_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352471/Model_4FGL_J1701.0+6613_weekly_bin854.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) = 18163.5019709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29279E-04   1.0000          .0000       .10000E+07
     2 'norm      '    2.2269       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11038       1.0000          .0000       .10000E+07
     4 'norm      '    29.102       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16978E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.8790       1.0000          .0000       .10000E+07
     7 'Prefactor '    .39915E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .71942E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    14.361       1.0000          .0000       .10000E+07
    10 'norm      '    19.826       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.7580       1.0000          .0000       .10000E+07
    12 'norm      '    1.9665       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.5078       1.0000          .0000       .10000E+07
    14 'Prefactor '    .71046       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.8943       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.7303       1.0000          .0000       .10000E+07
    17 'Prefactor '    29.368       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.5524       1.0000          .0000       .10000E+07
    19 'Prefactor '    .17755E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    11.281       1.0000          .0000       .10000E+07
    21 'norm      '    4.2402       1.0000          .0000       .10000E+07
    22 'norm      '    6.0697       1.0000          .0000       .10000E+07
    23 'Prefactor '    .13604E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .33864E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .66528       1.0000          .0000       .10000E+07
    26 'Prefactor '    .20505E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    .23507E-02   1.0000          .0000       .10000E+07
    28 'norm      '    4.0841       1.0000          .0000       .10000E+07
    29 'Normalizat'    .69317       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18163.45     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     2204 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47129E-07    6.7669        .17395E-05** at limit **
   2  norm          2.2300        1.4853       -.14013E-06    .10509E-01
   3  Prefactor     .13621E-05    131.49        .27277E-04** at limit **
   4  norm          29.196        6.7860       -.26924E-06    .10186E-01
   5  Prefactor     .14905E-06    3.9305       -.11290E-05** at limit **
   6  norm          1.8579        4.3155       -.11736E-06    .15455E-02
   7  Prefactor     .15576E-06    9.3279        .13445E-05** at limit **
   8  Prefactor     .14988E-08    6.3998        .84589E-06** at limit **
   9  Prefactor     14.377        1.8014        .31234E-06    .15079E-01
  10  norm          19.803        6.2148        .32037E-07   -.34161E-02
  11  Prefactor     4.7633        10.396       -.19668E-05   -.57014E-02
  12  norm          1.9699        .58815       -.71109E-07    .24650E-02
  13  Prefactor     3.5219        4.1326        .30766E-06   -.14643E-02
  14  Prefactor     .74174        1.7837       -.37603E-06    .75351E-03
  15  Prefactor     1.8202        9.8353        .10778E-05   -.17311E-02
  16  Prefactor     4.7200        3.3405        .36366E-06   -.69913E-02
  17  Prefactor     29.006        1.9698        .19532E-06   -.39955E-02
  18  Prefactor     5.4378        5.3247       -.47023E-06    .67843E-02
  19  Prefactor      .0000        26.274        .20780E-06** at limit **
  20  Prefactor     16.758        56.331        .23611E-05   -.75845E-03
  21  norm          4.2403        1.6169       -.54163E-07   -.39883E-02
  22  norm          6.0884        2.9043       -.35202E-07    .25609E-02
  23  Prefactor     .20978E-06    3.1646        .13263E-05** at limit **
  24  Prefactor     .22360E-06    10.091       -.31117E-05** at limit **
  25  Prefactor     .69260        4.4518       -.63854E-06    .71523E-03
  26  Prefactor     .18263E-07    7.7815       -.57995E-06** at limit **
  27  Prefactor     .16653E-09    52.730       -.15066E-05** at limit **
  28  norm          4.0841        2.0284        .68741E-07    .24390E-03
  29  Normalizat    .69226        .13419        .14797E-04   -.38071E-04
  30  Prefactor     1.2170        .10815       -.56520E-05    .45921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.7129e-08
  norm       = 2.22995
  Prefactor  = 1.36213e-06
  norm       = 29.1956
  Prefactor  = 1.49047e-07
  norm       = 1.85791
  Prefactor  = 1.55764e-07
  Prefactor  = 1.4988e-09
  Prefactor  = 14.3774
  norm       = 19.8034
  Prefactor  = 4.76327
  norm       = 1.9699
  Prefactor  = 3.52186
  Prefactor  = 0.74174
  Prefactor  = 1.82018
  Prefactor  = 4.72005
  Prefactor  = 29.006
  Prefactor  = 5.43783
  Prefactor  = 0
  Prefactor  = 16.7584
  norm       = 4.24031
  norm       = 6.08844
  Prefactor  = 2.09777e-07
  Prefactor  = 2.23599e-07
  Prefactor  = 0.692603
  Prefactor  = 1.82632e-08
  Prefactor  = 1.66533e-10
  norm       = 4.08408
  Normalizat = 0.692264
  Prefactor  = 1.21695
 **********
 **   18 **HESSE 
 **********

 FCN=   18163.45     FROM HESSE     STATUS=OK           656 CALLS     2860 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47129E-07    7.2495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2300        1.4880        .68870E-03   -1.5678    
   3  Prefactor     .13621E-05    152.29        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.196        6.7833        .18540E-03   -1.5600    
   5  Prefactor     .14905E-06    5.9050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8579        4.3590        .75921E-03   -1.5681    
   7  Prefactor     .15576E-06    17.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14988E-08    6.2789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.377        14.384        .26404E-03   -1.5632    
  10  norm          19.803        6.2331        .22466E-03   -1.5619    
  11  Prefactor     4.7633        10.554        .46103E-03   -1.5664    
  12  norm          1.9699        .60091        .73925E-03   -1.5680    
  13  Prefactor     3.5219        4.1665        .53956E-03   -1.5670    
  14  Prefactor     .74174        2.2450        .59863E-03   -1.5691    
  15  Prefactor     1.8202        10.116        .75559E-03   -1.5681    
  16  Prefactor     4.7200        3.3519        .46241E-03   -1.5665    
  17  Prefactor     29.006        19.835        .18456E-03   -1.5600    
  18  Prefactor     5.4378        5.3532        .42613E-03   -1.5661    
  19  Prefactor      .0000        26.121        .17189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.758        56.376        .29803E-03   -1.5626    
  21  norm          4.2403        1.6222        .48910E-03   -1.5667    
  22  norm          6.0884        2.9412        .40729E-03   -1.5659    
  23  Prefactor     .20978E-06    6.1028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .22360E-06    17.901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .69260        4.5335        .63573E-03   -1.5691    
  26  Prefactor     .18263E-07    7.9747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .16653E-09    52.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.0841        2.0351        .49863E-03   -1.5668    
  29  Normalizat    .69226        .12036        .74376E-01   -1.0420    
  30  Prefactor     1.2170        .95994E-01    .34235E-01   -.85811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30354e-07
Minuit parameter uncertainties:
  1  0.00116919
  2  1.48795
  3  0.028806
  4  6.78327
  5  0.00187618
  6  4.35898
  7  0.00332286
  8  0.00019362
  9  14.3837
  10  6.23311
  11  10.5539
  12  0.600911
  13  4.16654
  14  2.24502
  15  8.58191
  16  3.35192
  17  19.8346
  18  5.35316
  19  1.83101e-05
  20  56.3775
  21  1.62218
  22  2.94124
  23  0.002263
  24  0.00400126
  25  3.54395
  26  0.000763518
  27  0.000188534
  28  2.03511
  29  0.120409
  30  0.0960082
Done.

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

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  3.522e+00  4.167e+00  0.000e+00  1.000e+06 ( 1.000e-12)
366        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.217e+00  9.601e-02  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  6.923e-01  1.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 255.260 66.225
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 4.09e-06 +/- 4.84e-06

TS (Fixed Index): 1.08
Ra Dec: 255.260 66.225
Photon Flux Upper Limit: 6.3262245742e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00499740633729 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352471/likelihoodResults_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.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) = 18163.2620576
delta logL = 0.190101992186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18163.2549117
delta logL = 0.197247870816

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18163.25     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      292 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5009        4.8044        .18974E-04   -.13350E-02
   2  Index         2.2370        .71286        .16623E-01   -.16870E-04
   3  Normalizat    .69957        .12817        .32765E-03   -.14365E-03
   4  Prefactor     1.2121        .10630        .21104E-03   -.26357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50087
  Index      = 2.23702
  Normalizat = 0.699573
  Prefactor  = 1.21213
 **********
 **   18 **HESSE 
 **********

 FCN=   18163.25     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5009        4.8258        .75895E-06   -1.5666    
   2  Index         2.2370        .71654        .66494E-03   -.58548    
   3  Normalizat    .69957        .12825        .13106E-04   -1.0391    
   4  Prefactor     1.2121        .10635        .42209E-04   -.85959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49218e-11
Minuit parameter uncertainties:
  1  4.82577
  2  0.720116
  3  0.128301
  4  0.106371
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) = 18163.2549117
delta logL = 0.197247913988

Extracting fit parameters...

4FGL J1701.0+6613
   Spectrum: PowerLaw
365    Prefactor:  4.501e+00  4.826e+00  0.000e+00  1.000e+06 ( 1.000e-12)
366        Index:  2.237e+00  7.201e-01  0.000e+00  1.000e+01 (-1.000e+00)
367        Scale:  5.078e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.212e+00  1.064e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  6.996e-01  1.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 255.260 66.225
Photon Index (Free Index): 2.24 +/- 0.72
Photon Flux (Free Index): 1.38e-08 +/- 1.76e-08
Energy Flux (Free Index): 5.80e-06 +/- 6.97e-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/60352471/cmap_HighResolution_755481601_756086401_4FGL_J1701.0+6613_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='5.80e-06', photon_flux_error='2.10e-08', dlogl='1.97e-01', energy_flux='4.09e-06', photon_flux2='1.38e-08', job_status='DONE', time_completed='2024-12-17 01:02:28.489302', photon_index_error2='0.72', photon_index2='2.24', ts='1.08', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='6.33e-08', energy_flux_error2='6.97e-06', EG='0.69', time_epoch_completed='1734426148.49', return_code='0', job_id='60352471', GAL2='1.21', EG2='0.70', return_code2='0', energy_flux_error='4.84e-06', photon_flux_error2='1.76e-08', ts2='1.48', photon_index='2.76' WHERE bin_id='854' AND source_name='4FGL J1701.0+6613' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:02:28 PST 2024

