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


Performing analysis on: 4FGL_J1739.5+4955_weekly_bin906
RA = 264.886, Dec = 49.932
tmin = 786931201, tmax = 787536001
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='17380091', job_status='RUN', time_executed='2025-12-16 02:55:17.512528', time_epoch_executed='1765882517.51' WHERE source_name='4FGL J1739.5+4955' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380091

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17380091/ft1_4FGL_J1739.5+4955_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17380091/ft1_4FGL_J1739.5+4955_weekly_bin906.fits outfile=/lscratch/kocevski/17380091/ft1_filteredMKT_4FGL_J1739.5+4955_weekly_bin906.fits ra=264.886 dec=49.932 rad=12.0 tmin=786931201.0 tmax=787536001.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 5.36
user 4.63
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.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/17380091/ft1_filteredMKT_4FGL_J1739.5+4955_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.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 1.02
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 1959

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17380091/ltcube_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.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/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits
.....................!
real 17.95
user 17.06
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380091/ltcube_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.fits outfile=/lscratch/kocevski/17380091/expmap_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.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/17380091/ltcube_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.fits
.....................!
real 65.85
user 61.25
sys 3.64

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 J1739.5+4955 @ 264.886 49.932

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.fits scfile=/lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits outfile=/lscratch/kocevski/17380091/cmap_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.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=264.886 yref=49.932 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 1.19
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.fits scfile=/lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits outfile=/lscratch/kocevski/17380091/cmap_HighResolution_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.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=264.886 yref=49.932 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.86
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17380091/Model_4FGL_J1739.5+4955_weekly_bin906.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/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.fits.....................!
real 61.79
user 59.56
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.fits', '/lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits', expMap='/lscratch/kocevski/17380091/expmap_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.fits', expCube='/lscratch/kocevski/17380091/ltcube_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17380091/Model_4FGL_J1739.5+4955_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1739.5+4955'

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  3.625e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17380091/ft1_filtered_4FGL_J1739.5+4955_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17380091/ft2_4FGL_J1739.5+4955_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17380091/expmap_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17380091/ltcube_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17380091/Model_4FGL_J1739.5+4955_weekly_bin906.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) = 20494.4801266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.331       1.0000          .0000       .10000E+07
     2 'Prefactor '    .56143       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.2137       1.0000          .0000       .10000E+07
     4 'Prefactor '    .95116       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23690E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .27325E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .21261E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16201E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .37723       1.0000          .0000       .10000E+07
    11 'Prefactor '    .39620E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .24807E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .16726E-04   1.0000          .0000       .10000E+07
    14 'norm      '    2.9046       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.1448       1.0000          .0000       .10000E+07
    16 'Prefactor '    .31251E-04   1.0000          .0000       .10000E+07
    17 'norm      '    6.5009       1.0000          .0000       .10000E+07
    18 'Prefactor '    37.934       1.0000          .0000       .10000E+07
    19 'norm      '    5.9580       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.4753       1.0000          .0000       .10000E+07
    21 'Prefactor '    28.320       1.0000          .0000       .10000E+07
    22 'Prefactor '    22.396       1.0000          .0000       .10000E+07
    23 'Prefactor '    .25978E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    6.5683       1.0000          .0000       .10000E+07
    25 'norm      '    .12423       1.0000          .0000       .10000E+07
    26 'Prefactor '    .16663E-03   1.0000          .0000       .10000E+07
    27 'norm      '    6.9979       1.0000          .0000       .10000E+07
    28 'norm      '    3.3491       1.0000          .0000       .10000E+07
    29 'norm      '    6.3366       1.0000          .0000       .10000E+07
    30 'Prefactor '    .97698       1.0000          .0000       .10000E+07
    31 'Normalizat'    1.1822       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .85801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20494.45     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     3114 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.330        1.0645        .14443E-08    .26226E-03
   2  Prefactor     .57018        2.0126       -.30554E-06   -.22116E-02
   3  Prefactor     2.2248        3.8771       -.13722E-06   -.70435E-02
   4  Prefactor     .95056        1.0648       -.45510E-07   -.14603E-02
   5  Prefactor     .26645E-08    3.1559       -.30406E-06** at limit **
   6  Prefactor     .42188E-08    1.9675        .47540E-07** at limit **
   7  Prefactor     .82712E-08    1.9548        .14317E-06** at limit **
   8  norm           .0000        .14119       -.21052E-07** at limit **
   9  Prefactor     .16653E-09    1.1578       -.62905E-07** at limit **
  10  norm          .37696        .34577        .28498E-08    .13920E-03
  11  Prefactor      .0000        1.0961        .60474E-07** at limit **
  12  norm          .59397E-08    2.3967        .40061E-07** at limit **
  13  Prefactor     .55511E-10    1.7163       -.61897E-07** at limit **
  14  norm          2.9049        1.0688       -.17048E-07   -.68307E-03
  15  Prefactor     5.1491        2.4757       -.86256E-09   -.27982E-02
  16  Prefactor     .49960E-09    7.3260        .31942E-06** at limit **
  17  norm          6.5020        3.4575       -.41760E-07   -.23802E-02
  18  Prefactor     37.735        37.413       -.55148E-06    .32370E-01
  19  norm          5.9382        3.9529        .22204E-07    .14049E-01
  20  Prefactor     5.3554        8.7401       -.17956E-06   -.32954E-01
  21  Prefactor     28.315        4.7253        .48142E-07    .14487E-01
  22  Prefactor     22.631        8.9428        .57855E-07    .68153E-01
  23  Prefactor     .19762E-07    16.542        .27929E-06** at limit **
  24  Prefactor     6.5971        5.4747       -.13025E-07    .78201E-03
  25  norm          .56257E-05    119.44       -.33833E-06** at limit **
  26  Prefactor     .22204E-08    2.1842        .57219E-07** at limit **
  27  norm          7.0005        3.7156       -.60110E-07   -.11773E-01
  28  norm          3.3620        3.2508       -.17275E-06    .83343E-03
  29  norm          6.3413        1.9592        .14427E-08   -.75956E-01
  30  Prefactor     .98098        1.1996        .17787E-07    .29875E-02
  31  Normalizat    1.1822        .14268        .20215E-05    .46478E-04
  32  Prefactor     .85815        .96842E-01   -.45533E-06    .46714E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3301
  Prefactor  = 0.570178
  Prefactor  = 2.22477
  Prefactor  = 0.950558
  Prefactor  = 2.66454e-09
  Prefactor  = 4.21885e-09
  Prefactor  = 8.27116e-09
  norm       = 0
  Prefactor  = 1.66533e-10
  norm       = 0.376961
  Prefactor  = 0
  norm       = 5.93969e-09
  Prefactor  = 5.55112e-11
  norm       = 2.90487
  Prefactor  = 5.14912
  Prefactor  = 4.996e-10
  norm       = 6.50203
  Prefactor  = 37.7351
  norm       = 5.93818
  Prefactor  = 5.35539
  Prefactor  = 28.3147
  Prefactor  = 22.6312
  Prefactor  = 1.9762e-08
  Prefactor  = 6.59714
  norm       = 5.62572e-06
  Prefactor  = 2.22045e-09
  norm       = 7.0005
  norm       = 3.36201
  norm       = 6.34131
  Prefactor  = 0.98098
  Normalizat = 1.18224
  Prefactor  = 0.858147
 **********
 **   18 **HESSE 
 **********

 FCN=   20494.45     FROM HESSE     STATUS=OK           741 CALLS     3855 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.330        7.8571        .31149E-03   -1.5644    
   2  Prefactor     .57018        2.0048        .72756E-03   -1.5693    
   3  Prefactor     2.2248        3.8934        .69101E-03   -1.5678    
   4  Prefactor     .95056        1.0662        .42286E-03   -1.5688    
   5  Prefactor     .26645E-08    .47699        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42188E-08    2.5188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .82712E-08    3.0969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .13961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    1.1601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .37696        .39463        .18312E-02   -1.5696    
  11  Prefactor      .0000        1.1017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .59397E-08    3.1668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    1.7145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9049        1.0771        .59593E-03   -1.5674    
  15  Prefactor     5.1491        2.4811        .44300E-03   -1.5663    
  16  Prefactor     .49960E-09    7.3262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5020        3.4940        .39338E-03   -1.5657    
  18  Prefactor     37.735        40.290        .16238E-03   -1.5585    
  19  norm          5.9382        4.0153        .41115E-03   -1.5659    
  20  Prefactor     5.3554        25.517        .42917E-03   -1.5662    
  21  Prefactor     28.315        4.7942        .18794E-03   -1.5602    
  22  Prefactor     22.631        22.418        .21136E-03   -1.5613    
  23  Prefactor     .19762E-07    16.609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.5971        5.5350        .39133E-03   -1.5657    
  25  norm          .56257E-05    1.5838        .10406E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .22204E-08    2.5668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.0005        3.7315        .37900E-03   -1.5655    
  28  norm          3.3620        3.2665        .55278E-03   -1.5671    
  29  norm          6.3413        5.0095        .39851E-03   -1.5658    
  30  Prefactor     .98098        1.2066        .42949E-03   -1.5688    
  31  Normalizat    1.1822        .12098        .63071E-01   -.87153    
  32  Prefactor     .85815        .81463E-01    .44468E-01   -.97619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83211e-06
Minuit parameter uncertainties:
  1  7.85708
  2  2.00476
  3  3.89341
  4  1.06621
  5  7.12078e-05
  6  0.000205529
  7  0.000320146
  8  2.05879e-07
  9  2.65127e-05
  10  0.394629
  11  7.56186e-06
  12  0.000274175
  13  1.87453e-05
  14  1.07712
  15  2.4811
  16  0.000118872
  17  3.494
  18  40.2904
  19  4.01525
  20  23.3799
  21  4.79421
  22  22.4182
  23  0.00114662
  24  5.53499
  25  0.00597003
  26  0.000151866
  27  3.7315
  28  3.26649
  29  5.00949
  30  1.20659
  31  0.121007
  32  0.0814744
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  5.938e+00  4.015e+00  0.000e+00  1.000e+06 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  8.581e-01  8.147e-02  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.182e+00  1.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 264.886 49.932
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.18e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 7.89e-06

TS (Fixed Index): 3.49
Ra Dec: 264.886 49.932
Photon Flux Upper Limit: 7.25753610535e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.6653201909e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17380091/likelihoodResults_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.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) = 20494.0901776
delta logL = 0.364746885927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20494.0775745
delta logL = 0.377349982311

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20494.08     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0233        45.911        .44840E-03    .12132E-01
   2  alpha         2.7299        3.8418        .41373        .11969E-03
   3  Normalizat    1.1654        .41446E-01    .63429E-01    .28591E-04
   4  Prefactor     .86523        .26400E-01    .44560E-01    .29116E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.02333
  alpha      = 2.72986
  Normalizat = 1.16544
  Prefactor  = 0.865227
 **********
 **   18 **HESSE 
 **********

 FCN=   20494.08     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0233        3.8796        .17538E-04   -1.5663    
   2  alpha         2.7299        .59147        .18985E-01    .92075E-01
   3  Normalizat    1.1654        .13634        .28057E-03   -.87678    
   4  Prefactor     .86523        .95874E-01    .22684E-03   -.97367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78827e-11
Minuit parameter uncertainties:
  1  3.87963
  2  0.597179
  3  0.136381
  4  0.0958924
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) = 20494.0775744
delta logL = 0.377350072209

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  5.023e+00  3.880e+00  0.000e+00  1.000e+06 ( 1.000e-12)
348        alpha:  2.730e+00  5.972e-01  0.000e+00  5.000e+00 ( 1.000e+00)
349         beta:  8.485e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  8.652e-01  9.589e-02  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.165e+00  1.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 264.886 49.932
Photon Index (Free Index): 2.73 +/- 0.60
Photon Flux (Free Index): 4.69e-08 +/- 2.95e-08
Energy Flux (Free Index): 1.14e-05 +/- 6.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/17380091/cmap_HighResolution_786931201_787536001_4FGL_J1739.5+4955_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', comment='SUCCESS', photon_flux='3.18e-08', energy_flux2='1.14e-05', photon_flux_error='2.15e-08', dlogl='3.77e-01', energy_flux='1.17e-05', photon_flux2='4.69e-08', job_status='DONE', time_completed='2025-12-16 03:16:10.555068', photon_index_error2='0.60', photon_index2='2.73', ts='3.49', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='7.26e-08', energy_flux_error2='6.69e-06', EG='1.18', time_epoch_completed='1765883770.56', return_code='0', job_id='17380091', GAL2='0.87', EG2='1.17', return_code2='0', energy_flux_error='7.89e-06', photon_flux_error2='2.95e-08', ts2='4.28', photon_index='2.27' WHERE bin_id='906' AND source_name='4FGL J1739.5+4955' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:16:10 PST 2025

