/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_J1709.7+4318_weekly_bin854
RA = 257.432, Dec = 43.3109
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='60352506', job_status='RUN', time_executed='2024-12-17 00:57:00.835270', time_epoch_executed='1734425820.84' WHERE source_name='4FGL J1709.7+4318' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352506

Creating custom pfile directory:
/lscratch/kocevski/60352506/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/60352506/ft1_4FGL_J1709.7+4318_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/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352506/ft1_4FGL_J1709.7+4318_weekly_bin854.fits outfile=/lscratch/kocevski/60352506/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin854.fits ra=257.432 dec=43.3109 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.92
user 4.38
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_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/60352506/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352506/ft1_filtered_4FGL_J1709.7+4318_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.59
user 0.21
sys 0.16

Number of photons that the gtmktime cut: 1419

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352506/ft1_filtered_4FGL_J1709.7+4318_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352506/ltcube_755481601_756086401_4FGL_J1709.7+4318_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/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits
.....................!
real 15.64
user 15.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352506/ft1_filtered_4FGL_J1709.7+4318_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352506/ltcube_755481601_756086401_4FGL_J1709.7+4318_weekly_bin854.fits outfile=/lscratch/kocevski/60352506/expmap_755481601_756086401_4FGL_J1709.7+4318_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/60352506/ltcube_755481601_756086401_4FGL_J1709.7+4318_weekly_bin854.fits
.....................!
real 66.36
user 62.12
sys 3.77

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

Setting source of interest to:
4FGL J1709.7+4318 @ 257.432 43.3109

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352506/ft1_filtered_4FGL_J1709.7+4318_weekly_bin854.fits scfile=/lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits outfile=/lscratch/kocevski/60352506/cmap_755481601_756086401_4FGL_J1709.7+4318_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=257.432 yref=43.3109 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.41
user 0.22
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352506/ft1_filtered_4FGL_J1709.7+4318_weekly_bin854.fits scfile=/lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits outfile=/lscratch/kocevski/60352506/cmap_HighResolution_755481601_756086401_4FGL_J1709.7+4318_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=257.432 yref=43.3109 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.41
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352506/ft1_filtered_4FGL_J1709.7+4318_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352506/Model_4FGL_J1709.7+4318_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/60352506/ft1_filtered_4FGL_J1709.7+4318_weekly_bin854.fits.....................!
real 40.70
user 39.59
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352506/ft1_filtered_4FGL_J1709.7+4318_weekly_bin854.fits', '/lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits', expMap='/lscratch/kocevski/60352506/expmap_755481601_756086401_4FGL_J1709.7+4318_weekly_bin854.fits', expCube='/lscratch/kocevski/60352506/ltcube_755481601_756086401_4FGL_J1709.7+4318_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352506/Model_4FGL_J1709.7+4318_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1709.7+4318'

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.018e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
334        alpha:  2.221e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  9.629e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352506/ft1_filtered_4FGL_J1709.7+4318_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352506/ft2_4FGL_J1709.7+4318_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352506/expmap_755481601_756086401_4FGL_J1709.7+4318_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352506/ltcube_755481601_756086401_4FGL_J1709.7+4318_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352506/Model_4FGL_J1709.7+4318_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) = 15120.8973808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3245       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.0442       1.0000          .0000       .10000E+07
     3 'Prefactor '    .88579E-06   1.0000          .0000       .10000E+07
     4 'norm      '    4.9850       1.0000          .0000       .10000E+07
     5 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     6 'norm      '    .79103E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .28396E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.3103       1.0000          .0000       .10000E+07
     9 'norm      '    .51015E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .94354       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.8042       1.0000          .0000       .10000E+07
    12 'Prefactor '    .27406E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .22876E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.1540       1.0000          .0000       .10000E+07
    15 'norm      '    1.3923       1.0000          .0000       .10000E+07
    16 'norm      '    .12418E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.0255       1.0000          .0000       .10000E+07
    18 'norm      '    .46881       1.0000          .0000       .10000E+07
    19 'norm      '    21.300       1.0000          .0000       .10000E+07
    20 'norm      '    3.4904       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.6435       1.0000          .0000       .10000E+07
    22 'norm      '    2.8688       1.0000          .0000       .10000E+07
    23 'Prefactor '    44.386       1.0000          .0000       .10000E+07
    24 'norm      '    .35640E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .24894E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    6.6537       1.0000          .0000       .10000E+07
    27 'Prefactor '    46.170       1.0000          .0000       .10000E+07
    28 'Prefactor '    .64418       1.0000          .0000       .10000E+07
    29 'Prefactor '    .98893E-06   1.0000          .0000       .10000E+07
    30 'norm      '    2.2694       1.0000          .0000       .10000E+07
    31 'Normalizat'    .90259       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .96271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15120.89     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     3148 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3105        3.3352       -.26449E-07   -.26662E-02
   2  Prefactor     7.0454        2.7741       -.60032E-07    .37990E-01
   3  Prefactor      .0000        .86433       -.83698E-07** at limit **
   4  norm          4.9923        5.3838        .11637E-06    .30283E-01
   5  norm           .0000        .34711E-01    .10418E-07** at limit **
   6  norm          .55511E-10    1.9519       -.17299E-07** at limit **
   7  Prefactor     .14433E-08    4.7778        .56079E-08** at limit **
   8  Prefactor     4.3125        2.5201       -.89990E-07   -.22946E-02
   9  norm          .16098E-08    6.4291       -.18998E-06** at limit **
  10  Prefactor     .94006        1.2503        .16072E-07    .24814E-02
  11  Prefactor     3.8071        1.4374       -.19721E-08    .34242E-02
  12  Prefactor      .0000        1.0182       -.32653E-07** at limit **
  13  Prefactor      .0000        .93305       -.15104E-06** at limit **
  14  Prefactor     6.1548        5.0561        .23768E-07   -.18879E-02
  15  norm          1.3933        .83049        .21063E-07    .23421E-02
  16  norm           .0000        .14272       -.13474E-07** at limit **
  17  Prefactor     5.0235        2.3141       -.22009E-07    .19884E-01
  18  norm          .46919        .39451        .13150E-07    .24075E-02
  19  norm          21.249        6.2978        .24599E-07    .11658E-01
  20  norm          3.4901        1.1914       -.36490E-08    .71560E-03
  21  Prefactor     1.6448        1.7542       -.49816E-08    .39085E-03
  22  norm          2.8741        2.7285        .13916E-07    .77543E-03
  23  Prefactor     44.205        32.208        .14327E-06    .54158E-01
  24  norm          .38858E-09    2.0521        .15515E-06** at limit **
  25  Prefactor     .13212E-07    19.053       -.41446E-06** at limit **
  26  Prefactor     6.6275        3.2363        .57301E-07    .41136E-02
  27  Prefactor     46.234        7.4646       -.31241E-07   -.15462E-01
  28  Prefactor     .62520        4.0707       -.23085E-06    .62408E-01
  29  Prefactor     .33307E-09    3.6375        .43300E-08** at limit **
  30  norm          2.2749        4.1314        .70817E-07    .78964E-02
  31  Normalizat    .90293        .14955        .20889E-05    .16241E-03
  32  Prefactor     .96265        .11290       -.11115E-06    .19928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31053
  Prefactor  = 7.04542
  Prefactor  = 0
  norm       = 4.99227
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 1.44329e-09
  Prefactor  = 4.31248
  norm       = 1.60982e-09
  Prefactor  = 0.940064
  Prefactor  = 3.8071
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.15483
  norm       = 1.39328
  norm       = 0
  Prefactor  = 5.02348
  norm       = 0.469186
  norm       = 21.2491
  norm       = 3.49012
  Prefactor  = 1.64478
  norm       = 2.87414
  Prefactor  = 44.2051
  norm       = 3.88578e-10
  Prefactor  = 1.32117e-08
  Prefactor  = 6.6275
  Prefactor  = 46.2344
  Prefactor  = 0.625203
  Prefactor  = 3.33067e-10
  norm       = 2.27494
  Normalizat = 0.902929
  Prefactor  = 0.962653
 **********
 **   18 **HESSE 
 **********

 FCN=   15120.89     FROM HESSE     STATUS=OK           733 CALLS     3881 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3105        3.9792        .48417E-03   -1.5666    
   2  Prefactor     7.0454        17.855        .37774E-03   -1.5655    
   3  Prefactor      .0000        .85864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9923        7.5537        .45018E-03   -1.5663    
   5  norm           .0000        .19610E-01    .89873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    2.6020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14433E-08    4.7775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3125        2.5287        .48498E-03   -1.5666    
   9  norm          .16098E-08    6.4308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .94006        1.2511        .42795E-03   -1.5689    
  11  Prefactor     3.8071        1.4211        .51728E-03   -1.5669    
  12  Prefactor      .0000        1.0033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .92382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1548        5.0948        .40446E-03   -1.5658    
  15  norm          1.3933        .83600        .92035E-03   -1.5684    
  16  norm           .0000        .14154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0235        4.6746        .44833E-03   -1.5663    
  18  norm          .46919        .45363        .15827E-02   -1.5694    
  19  norm          21.249        6.3146        .21674E-03   -1.5616    
  20  norm          3.4901        1.2023        .54096E-03   -1.5671    
  21  Prefactor     1.6448        1.7616        .82371E-03   -1.5682    
  22  norm          2.8741        2.7532        .59988E-03   -1.5674    
  23  Prefactor     44.205        36.192        .15011E-03   -1.5575    
  24  norm          .38858E-09    2.7328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .13212E-07    19.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.6275        3.3579        .38878E-03   -1.5656    
  27  Prefactor     46.234        36.973        .14718E-03   -1.5572    
  28  Prefactor     .62520        25.857        .65360E-03   -1.5692    
  29  Prefactor     .33307E-09    3.6292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          2.2749        4.6394        .68148E-03   -1.5678    
  31  Normalizat    .90293        .13257        .44935E-01   -.96357    
  32  Prefactor     .96265        .96961E-01    .45799E-01   -.93985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24016e-07
Minuit parameter uncertainties:
  1  3.97916
  2  17.8547
  3  6.0948e-07
  4  7.55372
  5  5.48204e-08
  6  2.51495e-05
  7  0.000166209
  8  2.52867
  9  0.000201924
  10  1.25114
  11  1.4211
  12  1.33357e-06
  13  9.67807e-06
  14  5.09481
  15  0.835998
  16  2.05876e-07
  17  4.67459
  18  0.453627
  19  6.31459
  20  1.20231
  21  1.7616
  22  2.75317
  23  36.1918
  24  6.63185e-05
  25  0.00100437
  26  3.3579
  27  36.9735
  28  8.04139
  29  6.92853e-05
  30  4.63939
  31  0.132618
  32  0.096978
Done.

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

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  4.692e-01  4.536e-01  0.000e+00  1.000e+06 ( 1.000e-11)
334        alpha:  2.221e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  9.629e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  9.627e-01  9.698e-02  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  9.029e-01  1.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 257.432 43.311
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.94e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 7.35e-06 +/- 7.10e-06

TS (Fixed Index): 2.24
Ra Dec: 257.432 43.311
Photon Flux Upper Limit: 5.54559925157e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.10455807562e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352506/likelihoodResults_755481601_756086401_4FGL_J1709.7+4318_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) = 15120.7608732
delta logL = 0.125439698797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15120.7581047
delta logL = 0.128208188979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45010       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5759       1.0000          .0000       5.0000    
     3 'Normalizat'    .89400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15120.76     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45024        5.3805        .14099E-02    .29779E-01
   2  alpha         2.5760        3.7671        .41176        .60121E-04
   3  Normalizat    .89399        .28017E-01    .64161E-01    .43774E-04
   4  Prefactor     .96645        .22040E-01    .45846E-01    .15323E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.45024
  alpha      = 2.57597
  Normalizat = 0.893988
  Prefactor  = 0.966452
 **********
 **   18 **HESSE 
 **********

 FCN=   15120.76     FROM HESSE     STATUS=OK            35 CALLS      249 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45024        .39824        .65525E-04   -1.5695    
   2  alpha         2.5760        .74713        .25198E-01    .30391E-01
   3  Normalizat    .89399        .14220        .28379E-03   -.96672    
   4  Prefactor     .96645        .11104        .21451E-03   -.93856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12992e-09
Minuit parameter uncertainties:
  1  0.398239
  2  0.758733
  3  0.142263
  4  0.111063
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) = 15120.7581046
delta logL = 0.128208279499

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  4.502e-01  3.982e-01  0.000e+00  1.000e+06 ( 1.000e-11)
334        alpha:  2.576e+00  7.587e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  9.629e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  9.665e-01  1.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  8.940e-01  1.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 257.432 43.311
Photon Index (Free Index): 2.58 +/- 0.76
Photon Flux (Free Index): 2.72e-08 +/- 2.38e-08
Energy Flux (Free Index): 7.30e-06 +/- 5.69e-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/60352506/cmap_HighResolution_755481601_756086401_4FGL_J1709.7+4318_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', comment='SUCCESS', photon_flux='1.94e-08', energy_flux2='7.30e-06', photon_flux_error='1.87e-08', dlogl='1.28e-01', energy_flux='7.35e-06', photon_flux2='2.72e-08', job_status='DONE', time_completed='2024-12-17 01:08:57.616727', photon_index_error2='0.76', photon_index2='2.58', ts='2.24', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='5.55e-08', energy_flux_error2='5.69e-06', EG='0.90', time_epoch_completed='1734426537.62', return_code='0', job_id='60352506', GAL2='0.97', EG2='0.89', return_code2='0', energy_flux_error='7.10e-06', photon_flux_error2='2.38e-08', ts2='2.50', photon_index='2.22' WHERE bin_id='854' AND source_name='4FGL J1709.7+4318' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:08:57 PST 2024

