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


Performing analysis on: 4FGL_J1724.9+7654_weekly_bin855
RA = 261.233, Dec = 76.9152
tmin = 756086401, tmax = 756691201
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='60730166', job_status='RUN', time_executed='2024-12-24 03:56:02.776006', time_epoch_executed='1735041362.78' WHERE source_name='4FGL J1724.9+7654' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60730166

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60730166/ft1_4FGL_J1724.9+7654_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60730166/ft1_4FGL_J1724.9+7654_weekly_bin855.fits outfile=/lscratch/kocevski/60730166/ft1_filteredMKT_4FGL_J1724.9+7654_weekly_bin855.fits ra=261.233 dec=76.9152 rad=12.0 tmin=756086401.0 tmax=756691201.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 2.70
user 2.38
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.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/60730166/ft1_filteredMKT_4FGL_J1724.9+7654_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.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.19
sys 0.16

Number of photons that the gtmktime cut: 1495

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60730166/ltcube_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.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/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits
.....................!
real 14.14
user 13.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60730166/ltcube_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.fits outfile=/lscratch/kocevski/60730166/expmap_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.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/60730166/ltcube_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.fits
.....................!
real 69.28
user 64.99
sys 3.81

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

Setting source of interest to:
4FGL J1724.9+7654 @ 261.233 76.9152

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.fits scfile=/lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits outfile=/lscratch/kocevski/60730166/cmap_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.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=261.233 yref=76.9152 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.40
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.fits scfile=/lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits outfile=/lscratch/kocevski/60730166/cmap_HighResolution_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.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=261.233 yref=76.9152 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60730166/Model_4FGL_J1724.9+7654_weekly_bin855.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/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.fits.....................!
real 69.69
user 68.20
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.fits', '/lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits', expMap='/lscratch/kocevski/60730166/expmap_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.fits', expCube='/lscratch/kocevski/60730166/ltcube_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60730166/Model_4FGL_J1724.9+7654_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1724.9+7654'

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  4.559e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
380        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60730166/ft1_filtered_4FGL_J1724.9+7654_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60730166/ft2_4FGL_J1724.9+7654_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60730166/expmap_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60730166/ltcube_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60730166/Model_4FGL_J1724.9+7654_weekly_bin855.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) = 15469.3525034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44841E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.2406       1.0000          .0000       .10000E+07
     3 'Prefactor '    .13607E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .73941E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17389E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .32911       1.0000          .0000       .10000E+07
     7 'norm      '    4.2466       1.0000          .0000       .10000E+07
     8 'Prefactor '    .68971E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .66207E-03   1.0000          .0000       .10000E+07
    10 'norm      '    4.8880       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19477E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .28942E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .87639E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    22.590       1.0000          .0000       .10000E+07
    15 'Prefactor '    32.090       1.0000          .0000       .10000E+07
    16 'norm      '    6.5987       1.0000          .0000       .10000E+07
    17 'norm      '    3.4920       1.0000          .0000       .10000E+07
    18 'norm      '    .42966E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11881E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.6885       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.7285       1.0000          .0000       .10000E+07
    22 'norm      '    4.2503       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.8492       1.0000          .0000       .10000E+07
    24 'norm      '    4.6321       1.0000          .0000       .10000E+07
    25 'norm      '    .20389E-06   1.0000          .0000       .10000E+07
    26 'Prefactor '    15.692       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1535       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15469.33     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2535 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54068E-07    3.9844       -.29102E-06** at limit **
   2  Prefactor     5.2769        10.118        .17839E-06    .39616E-02
   3  Prefactor     .13700E-06    16.800        .61760E-06** at limit **
   4  Prefactor     .17208E-08    7.3011       -.51068E-06** at limit **
   5  Prefactor      .0000        13.537        .20474E-06** at limit **
   6  Prefactor     .54186E-05    24.841        .15062E-06** at limit **
   7  norm          4.3927        8.8450        .24321E-06   -.29704E-02
   8  Prefactor      .0000        35.893        .73202E-06** at limit **
   9  Prefactor     .18058E-06    15.135        .13760E-06** at limit **
  10  norm          4.8880        .93942        .76012E-08   -.34270E-03
  11  Prefactor      .0000        10.385        .27270E-06** at limit **
  12  Prefactor      .0000        2.1655        .20759E-06** at limit **
  13  Prefactor     .33695E-07    4.7712       -.14625E-06** at limit **
  14  Prefactor     22.633        12.276        .11978E-06    .15948E-01
  15  Prefactor     31.970        4.6761        .49148E-07   -.44515E-01
  16  norm          6.5986        2.2059        .10122E-07   -.87934E-04
  17  norm          3.4917        .73887       -.14856E-07   -.95591E-03
  18  norm           .0000        2.5069       -.13432E-06** at limit **
  19  Prefactor     .10475E-06    86.110        .11436E-06** at limit **
  20  Prefactor     5.6892        5.0634       -.10287E-06    .19658E-02
  21  Prefactor     4.6313        7.4623       -.15628E-06   -.15094E-01
  22  norm          4.2581        2.8358        .43947E-07    .90366E-03
  23  Prefactor     5.8585        4.3848        .10257E-06    .32301E-03
  24  norm          4.6399        2.7196       -.81344E-07    .33358E-03
  25  norm           .0000        .96991        .88874E-07** at limit **
  26  Prefactor     15.514        4.7428       -.85408E-07   -.95117E-02
  27  Normalizat    1.1533        .15112       -.22686E-05   -.44984E-04
  28  Prefactor     .95057        .84722E-01    .13569E-06   -.46527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.40679e-08
  Prefactor  = 5.27688
  Prefactor  = 1.37002e-07
  Prefactor  = 1.72085e-09
  Prefactor  = 0
  Prefactor  = 5.41855e-06
  norm       = 4.39275
  Prefactor  = 0
  Prefactor  = 1.80578e-07
  norm       = 4.88803
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.36953e-08
  Prefactor  = 22.6329
  Prefactor  = 31.9701
  norm       = 6.59857
  norm       = 3.4917
  norm       = 0
  Prefactor  = 1.0475e-07
  Prefactor  = 5.6892
  Prefactor  = 4.63128
  norm       = 4.25808
  Prefactor  = 5.85853
  norm       = 4.6399
  norm       = 0
  Prefactor  = 15.5141
  Normalizat = 1.15332
  Prefactor  = 0.950571
 **********
 **   18 **HESSE 
 **********

 FCN=   15469.33     FROM HESSE     STATUS=OK           583 CALLS     3118 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54068E-07    8.2073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2769        10.216        .43885E-03   -1.5662    
   3  Prefactor     .13700E-06    22.869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17208E-08    7.4162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        13.488        .17215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54186E-05    18.957        .18525E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3927        10.017        .48872E-03   -1.5666    
   8  Prefactor      .0000        36.016        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .18058E-06    22.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8880        .93714        .45472E-03   -1.5664    
  11  Prefactor      .0000        10.387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33695E-07    8.3233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.633        19.948        .21045E-03   -1.5613    
  15  Prefactor     31.970        37.637        .17655E-03   -1.5595    
  16  norm          6.5986        2.2066        .39042E-03   -1.5657    
  17  norm          3.4917        .74842        .54082E-03   -1.5671    
  18  norm           .0000        2.4856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10475E-06    90.073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6892        5.5350        .42092E-03   -1.5660    
  21  Prefactor     4.6313        18.350        .46250E-03   -1.5665    
  22  norm          4.2581        3.0859        .48849E-03   -1.5667    
  23  Prefactor     5.8585        4.3933        .41501E-03   -1.5660    
  24  norm          4.6399        2.7463        .46740E-03   -1.5665    
  25  norm           .0000        .96557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.514        9.7943        .25257E-03   -1.5629    
  27  Normalizat    1.1533        .13636        .71522E-01   -.88058    
  28  Prefactor     .95057        .76268E-01    .45643E-01   -.94396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37316e-07
Minuit parameter uncertainties:
  1  0.00133247
  2  10.2165
  3  0.0035399
  4  0.000226962
  5  5.75932e-06
  6  0.0202702
  7  10.0168
  8  1.73148e-05
  9  0.00402192
  10  0.93714
  11  1.60844e-05
  12  1.01978e-06
  13  0.0010596
  14  19.9485
  15  37.6372
  16  2.20661
  17  0.748424
  18  4.45033e-07
  19  0.00614306
  20  5.53497
  21  18.3498
  22  3.08595
  23  4.3933
  24  2.7463
  25  2.05868e-07
  26  9.79432
  27  0.136402
  28  0.0762764
Done.

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

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  2.263e+01  1.995e+01  0.000e+00  1.000e+06 ( 1.000e-13)
380        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  9.506e-01  7.628e-02  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.153e+00  1.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 261.233 76.915
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 8.28e-06 +/- 7.30e-06

TS (Fixed Index): 1.74
Ra Dec: 261.233 76.915
Photon Flux Upper Limit: 9.53149948106e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00751106953829 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60730166/likelihoodResults_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.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) = 15469.3213728
delta logL = 0.0120229743789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15469.3093484
delta logL = 0.024047384446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.924       1.0000          .0000       .10000E+07
     2 'Index     '    2.5521       1.0000          .0000       10.000    
     3 'Normalizat'    1.1566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+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=   15469.31     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      239 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.936        31.152        .77103E-05   -.39074E-02
   2  Index         2.5516        .77109        .10580E-01   -.21046E-03
   3  Normalizat    1.1566        .14685        .31609E-03    .20157E-02
   4  Prefactor     .94912        .82905E-01    .19621E-03    .30328E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9359
  Index      = 2.55162
  Normalizat = 1.15661
  Prefactor  = 0.949116
 **********
 **   18 **HESSE 
 **********

 FCN=   15469.31     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.936        28.936        .15421E-05   -1.5604    
   2  Index         2.5516        .71627        .42318E-03   -.51172    
   3  Normalizat    1.1566        .14686        .63218E-04   -.87954    
   4  Prefactor     .94912        .82897E-01    .39243E-04   -.94445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43389e-09
Minuit parameter uncertainties:
  1  28.9357
  2  0.719534
  3  0.146911
  4  0.082908
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) = 15469.3093472
delta logL = 0.024048567202

Extracting fit parameters...

4FGL J1724.9+7654
   Spectrum: PowerLaw
379    Prefactor:  2.694e+01  2.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
380        Index:  2.552e+00  7.195e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  7.786e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  9.491e-01  8.291e-02  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.157e+00  1.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 261.233 76.915
Photon Index (Free Index): 2.55 +/- 0.72
Photon Flux (Free Index): 3.27e-08 +/- 3.04e-08
Energy Flux (Free Index): 8.98e-06 +/- 8.35e-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/60730166/cmap_HighResolution_756086401_756691201_4FGL_J1724.9+7654_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='8.98e-06', photon_flux_error='3.07e-08', dlogl='2.40e-02', energy_flux='8.28e-06', photon_flux2='3.27e-08', job_status='DONE', time_completed='2024-12-24 04:06:55.321431', photon_index_error2='0.72', photon_index2='2.55', ts='1.74', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.53e-08', energy_flux_error2='8.35e-06', EG='1.15', time_epoch_completed='1735042015.32', return_code='0', job_id='60730166', GAL2='0.95', EG2='1.16', return_code2='0', energy_flux_error='7.30e-06', photon_flux_error2='3.04e-08', ts2='1.80', photon_index='2.72' WHERE bin_id='855' AND source_name='4FGL J1724.9+7654' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 04:06:55 PST 2024

