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


Performing analysis on: 4FGL_J1759.1-4822_daily_bin2129
RA = 269.783, Dec = -48.3777
tmin = 791164801, tmax = 791424001
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='19890641', job_status='RUN', time_executed='2026-01-30 01:10:08.325136', time_epoch_executed='1769764208.33' WHERE source_name='4FGL J1759.1-4822' and cadence='daily' and bin_id='2129'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19890641

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19890641/ft1_4FGL_J1759.1-4822_daily_bin2129.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19890641/ft1_4FGL_J1759.1-4822_daily_bin2129.fits outfile=/lscratch/kocevski/19890641/ft1_filteredMKT_4FGL_J1759.1-4822_daily_bin2129.fits ra=269.783 dec=-48.3777 rad=12.0 tmin=791164801.0 tmax=791424001.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.55
user 2.05
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.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/19890641/ft1_filteredMKT_4FGL_J1759.1-4822_daily_bin2129.fits evtable="EVENTS" outfile="/lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.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.61
user 0.54
sys 1.58

Number of photons that the gtmktime cut: 3706

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19890641/ltcube_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.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/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits
.....................!
real 8.85
user 8.32
sys 1.79

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.fits evtable="EVENTS" scfile=/lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19890641/ltcube_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.fits outfile=/lscratch/kocevski/19890641/expmap_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.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/19890641/ltcube_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.fits
.....................!
real 69.00
user 64.52
sys 7.25

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Added 508 point sources and 14 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1759.1-4822 @ 269.783 -48.3777

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.fits scfile=/lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits outfile=/lscratch/kocevski/19890641/cmap_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.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=269.783 yref=-48.3777 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.12
user 0.98
sys 3.30

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.fits scfile=/lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits outfile=/lscratch/kocevski/19890641/cmap_HighResolution_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.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=269.783 yref=-48.3777 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.99
user 0.95
sys 3.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.fits evtable="EVENTS" scfile=/lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19890641/Model_4FGL_J1759.1-4822_daily_bin2129.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 FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FGES J1745.8-3028
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RX J1713.7-3946
Working on...
/lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.fits.....................!
real 766.13
user 760.96
sys 4.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.fits', '/lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits', expMap='/lscratch/kocevski/19890641/expmap_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.fits', expCube='/lscratch/kocevski/19890641/ltcube_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19890641/Model_4FGL_J1759.1-4822_daily_bin2129.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1759.1-4822'

4FGL J1759.1-4822
   Spectrum: PowerLaw
1317    Prefactor:  4.494e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
1318        Index:  2.319e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1319        Scale:  1.351e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19890641/ft1_filtered_4FGL_J1759.1-4822_daily_bin2129.fits
Spacecraft file(s): /lscratch/kocevski/19890641/ft2_4FGL_J1759.1-4822_daily_bin2129.fits
Exposure map: /lscratch/kocevski/19890641/expmap_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.fits
Exposure cube: /lscratch/kocevski/19890641/ltcube_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19890641/Model_4FGL_J1759.1-4822_daily_bin2129.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) = 32090.9466659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66180E-06   1.0000          .0000       .10000E+07
     2 'norm      '    3.9537       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.7247       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32885E-03   1.0000          .0000       .10000E+07
     5 'norm      '    6.2076       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.2324       1.0000          .0000       .10000E+07
     7 'Prefactor '    11.977       1.0000          .0000       .10000E+07
     8 'norm      '    .62031       1.0000          .0000       .10000E+07
     9 'norm      '    .73149E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .62955E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .25535E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .21235E-02   1.0000          .0000       .10000E+07
    13 'norm      '    1.3762       1.0000          .0000       .10000E+07
    14 'norm      '    1.3774       1.0000          .0000       .10000E+07
    15 'norm      '    .54568E-01   1.0000          .0000       .10000E+07
    16 'norm      '    7.1187       1.0000          .0000       .10000E+07
    17 'Prefactor '    .32758E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .29541E-02   1.0000          .0000       .10000E+07
    19 'norm      '    19.229       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2664       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93506       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1880E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   32090.94     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2339 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .59372       -.61836E-07** at limit **
   2  norm          3.9534        4.1111        .14294E-06    .10552E-03
   3  Prefactor     3.7742        7.4234       -.58414E-05   -.11765E-03
   4  Prefactor     .55900E-07    11.354       -.45750E-06** at limit **
   5  norm          5.6654        24.233        .32212E-05    .44459E-01
   6  Prefactor     7.1777        10.101        .14696E-05    .24202E-01
   7  Prefactor     13.443        80.254       -.61917E-05    .25311E-01
   8  norm          .61895        7.2282        .17720E-05   -.10892E-01
   9  norm           .0000        8.7417       -.40816E-06** at limit **
  10  Prefactor      .0000        3.7075        .23192E-06** at limit **
  11  norm           .0000        .23742        .82074E-07** at limit **
  12  Prefactor     .44409E-09    6.5676        .60006E-06** at limit **
  13  norm          1.3774        2.8716        .51135E-07   -.11384E-02
  14  norm          1.3791        2.5181       -.32973E-07   -.41035E-03
  15  norm          .55122E-01    .90916       -.47385E-06** at limit **
  16  norm          7.1290        10.823        .26014E-06    .80943E-02
  17  Prefactor     .31142E-07    11.696       -.37049E-06** at limit **
  18  Prefactor     .44409E-09    24.938        .73685E-06** at limit **
  19  norm          19.222        1.4836        .68091E-07   -.30794E-01
  20  Normalizat    1.2659        .24306       -.23102E-04    .11849E-04
  21  Prefactor     .93507        .27641E-01    .20828E-05   -.39182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 3.95337
  Prefactor  = 3.77424
  Prefactor  = 5.58997e-08
  norm       = 5.66536
  Prefactor  = 7.17772
  Prefactor  = 13.4429
  norm       = 0.618952
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 4.44089e-10
  norm       = 1.37741
  norm       = 1.37914
  norm       = 0.055122
  norm       = 7.12898
  Prefactor  = 3.11418e-08
  Prefactor  = 4.44089e-10
  norm       = 19.2219
  Normalizat = 1.26588
  Prefactor  = 0.93507
 **********
 **   18 **HESSE 
 **********

 FCN=   32090.94     FROM HESSE     STATUS=OK           367 CALLS     2706 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .59080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9534        4.1215        .50706E-03   -1.5668    
   3  Prefactor     3.7742        7.4295        .52307E-02   -1.5319    
   4  Prefactor     .55900E-07    23.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6654        47.804        .40268E-03   -1.5660    
   6  Prefactor     7.1777        12.449        .37274E-03   -1.5654    
   7  Prefactor     13.443        87.865        .28921E-03   -1.5635    
   8  norm          .61895        19.520        .67428E-03   -1.5692    
   9  norm           .0000        8.7468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.7135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .23324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .44409E-09    6.5755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3774        2.9131        .92812E-03   -1.5684    
  14  norm          1.3791        2.5548        .92755E-03   -1.5684    
  15  norm          .55122E-01    .24864        .32732E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.1290        10.909        .37573E-03   -1.5655    
  17  Prefactor     .31142E-07    22.894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44409E-09    24.882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.222        17.867        .22813E-03   -1.5620    
  20  Normalizat    1.2659        .24752        .20707       -.84591    
  21  Prefactor     .93507        .27303E-01    .28009E-01   -.94926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48194e-06
Minuit parameter uncertainties:
  1  3.12238e-06
  2  4.12147
  3  7.43127
  4  0.00227636
  5  32.9141
  6  12.4491
  7  68.7376
  8  6.9519
  9  1.4733e-05
  10  1.47525e-05
  11  6.77835e-07
  12  0.000104962
  13  2.91308
  14  2.55482
  15  0.234139
  16  10.9092
  17  0.00168939
  18  0.000211134
  19  17.8668
  20  0.247747
  21  0.0273029
Done.

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

Extracting fit parameters...

4FGL J1759.1-4822
   Spectrum: PowerLaw
1317    Prefactor:  0.000e+00  1.475e-05  0.000e+00  1.000e+06 ( 1.000e-13)
1318        Index:  2.319e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1319        Scale:  1.351e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1858    Prefactor:  9.351e-01  2.730e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1859        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1860        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1827   Normalization:  1.266e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 269.783 -48.378
Photon Flux Upper Limit: 6.06517505744e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00466098807208 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19890641/likelihoodResults_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.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): 102
logL (Free Index) = 32090.9457376
delta logL = -0.00770901626311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 32090.9380303
delta logL = -1.69638224179e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92334E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.5389       1.0000          .0000       10.000    
     3 'Normalizat'    1.2660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93507       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1880E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32090.94     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      222 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6208        .42118E-03** at limit **
   2  Index         .84175        .64381        .20542E-04     .0000    
   3  Normalizat    1.2659        1.0871        .12760E-05    .12766E-04
   4  Prefactor     .93507        1.2782       -.82858E-07    .49980E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.841745
  Normalizat = 1.26588
  Prefactor  = 0.935071
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   32090.94     FROM HESSE     STATUS=FAILED         9 CALLS      231 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15485E-01    .93959        .20542E-04   -.98207    
   3  Normalizat    1.2659        1.0871        .12760E-05   -.84591    
   4  Prefactor     .93507        1.2782       -.82858E-07   -.94926    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.45723e-12
Minuit parameter uncertainties:
  1  7.17069e-06
  2  0.649722
  3  1.10761
  4  1.32325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 32090.9380286
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J1759.1-4822
   Spectrum: PowerLaw
1317    Prefactor:  0.000e+00  7.171e-06  0.000e+00  1.000e+06 ( 1.000e-13)
1318        Index:  8.417e-01  6.497e-01  0.000e+00  1.000e+01 (-1.000e+00)
1319        Scale:  1.351e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1858    Prefactor:  9.351e-01  1.323e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1859        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1860        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1827   Normalization:  1.266e+00  1.108e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 269.783 -48.378

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/19890641/cmap_HighResolution_791164801_791424001_4FGL_J1759.1-4822_daily_bin2129.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2026-01-30 02:05:23.589889', job_id='19890641', GAL2='0.94', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1769767523.59', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='2129' AND source_name='4FGL J1759.1-4822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 30 02:05:23 PST 2026

