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


Performing analysis on: 4FGL_J1759.1-4822_daily_bin2001
RA = 269.783, Dec = -48.3777
tmin = 757987201, tmax = 758246401
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='61540937', job_status='RUN', time_executed='2025-01-11 00:41:26.937897', time_epoch_executed='1736584886.94' WHERE source_name='4FGL J1759.1-4822' and cadence='daily' and bin_id='2001'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61540937

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61540937/ft1_4FGL_J1759.1-4822_daily_bin2001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61540937/ft1_4FGL_J1759.1-4822_daily_bin2001.fits outfile=/lscratch/kocevski/61540937/ft1_filteredMKT_4FGL_J1759.1-4822_daily_bin2001.fits ra=269.783 dec=-48.3777 rad=12.0 tmin=757987201.0 tmax=758246401.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 1.68
user 1.37
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.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/61540937/ft1_filteredMKT_4FGL_J1759.1-4822_daily_bin2001.fits evtable="EVENTS" outfile="/lscratch/kocevski/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.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.39
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 1865

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61540937/ltcube_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.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/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits
.....................!
real 7.94
user 7.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.fits evtable="EVENTS" scfile=/lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61540937/ltcube_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.fits outfile=/lscratch/kocevski/61540937/expmap_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.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/61540937/ltcube_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.fits
.....................!
real 59.86
user 55.88
sys 3.63

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/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.fits scfile=/lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits outfile=/lscratch/kocevski/61540937/cmap_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.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 0.42
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.fits scfile=/lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits outfile=/lscratch/kocevski/61540937/cmap_HighResolution_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.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.41
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.fits evtable="EVENTS" scfile=/lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61540937/Model_4FGL_J1759.1-4822_daily_bin2001.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/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.fits.....................!
real 349.37
user 346.63
sys 0.81

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.fits', '/lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits', expMap='/lscratch/kocevski/61540937/expmap_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.fits', expCube='/lscratch/kocevski/61540937/ltcube_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61540937/Model_4FGL_J1759.1-4822_daily_bin2001.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/61540937/ft1_filtered_4FGL_J1759.1-4822_daily_bin2001.fits
Spacecraft file(s): /lscratch/kocevski/61540937/ft2_4FGL_J1759.1-4822_daily_bin2001.fits
Exposure map: /lscratch/kocevski/61540937/expmap_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.fits
Exposure cube: /lscratch/kocevski/61540937/ltcube_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61540937/Model_4FGL_J1759.1-4822_daily_bin2001.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) = 16699.4607462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16957E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .89461E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.908       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.601       1.0000          .0000       .10000E+07
     5 'norm      '    .20332E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .29485E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22960       1.0000          .0000       .10000E+07
     8 'norm      '    1.1676       1.0000          .0000       .10000E+07
     9 'norm      '    .28429E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16386E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .10543E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .24599       1.0000          .0000       .10000E+07
    13 'norm      '    .26053E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .53186E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .96809       1.0000          .0000       .10000E+07
    16 'norm      '    19.762       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12308       1.0000          .0000       .10000E+07
    18 'Prefactor '    15.501       1.0000          .0000       .10000E+07
    19 'norm      '    .11380E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.7024       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90694       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=   16699.46     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1659 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11190E-05    77.315        .38289E-05** at limit **
   2  norm          .23370E-07    28.158        .92666E-06** at limit **
   3  Prefactor     10.906        8.6587       -.33577E-06    .19930E-04
   4  Prefactor     14.745        12.684        .50284E-06    .12906E-01
   5  norm          .55511E-10    30.668       -.23787E-06** at limit **
   6  Prefactor     .32807E-07    24.162       -.11225E-05** at limit **
   7  Prefactor      .0000        59.200        .73162E-06** at limit **
   8  norm          1.1810        27.233       -.13637E-06   -.14469E-03
   9  norm           .0000        17.606        .87002E-06** at limit **
  10  Prefactor      .0000        19.403        .52365E-06** at limit **
  11  norm           .0000        .72296        .93152E-07** at limit **
  12  Prefactor     .22204E-09    62.676       -.81139E-06** at limit **
  13  norm          .16653E-09    3.1896        .32368E-06** at limit **
  14  norm          .22204E-09    3.6685        .15052E-06** at limit **
  15  norm          .96935        1.0368       -.85650E-07    .48424E-03
  16  norm          19.985        10.124        .16263E-06    .34496E-01
  17  Prefactor     .55511E-10    43.424        .20080E-06** at limit **
  18  Prefactor     14.784        84.350        .39240E-06    .46823E-03
  19  norm          .23093E-07    24.601        .10128E-05** at limit **
  20  Normalizat    1.7034        .40250        .10356E-04   -.35874E-04
  21  Prefactor     .90690        .38473E-01   -.12306E-05   -.33815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11905e-06
  norm       = 2.33702e-08
  Prefactor  = 10.9058
  Prefactor  = 14.7446
  norm       = 5.55112e-11
  Prefactor  = 3.28071e-08
  Prefactor  = 0
  norm       = 1.18101
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.22045e-10
  norm       = 1.66533e-10
  norm       = 2.22045e-10
  norm       = 0.969349
  norm       = 19.9852
  Prefactor  = 5.55112e-11
  Prefactor  = 14.7841
  norm       = 2.30926e-08
  Normalizat = 1.70343
  Prefactor  = 0.906902
 **********
 **   18 **HESSE 
 **********

 FCN=   16699.46     FROM HESSE     STATUS=OK           363 CALLS     2022 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11190E-05    1.0462        .46729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .23370E-07    27.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.906        8.6700        .30326E-02   -1.5047    
   4  Prefactor     14.745        40.440        .26186E-03   -1.5631    
   5  norm          .55511E-10    30.378        .17015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32807E-07    24.348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        59.080        .11271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1810        26.881        .10629E-02   -1.5686    
   9  norm           .0000        17.612        .16535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        19.127        .17287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .71573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    62.340        .11009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .16653E-09    3.1965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.6696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .96935        1.0426        .42632E-03   -1.5688    
  16  norm          19.985        44.328        .22503E-03   -1.5619    
  17  Prefactor     .55511E-10    43.511        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.784        85.343        .25413E-03   -1.5631    
  19  norm          .23093E-07    24.776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7034        .41529        .21999       -.72212    
  21  Prefactor     .90690        .38068E-01    .28710E-01   -.95900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90802e-07
Minuit parameter uncertainties:
  1  0.00216404
  2  0.00160529
  3  8.67098
  4  40.4403
  5  7.98036e-05
  6  0.00178761
  7  3.48979e-05
  8  11.2688
  9  2.01133e-06
  10  9.1268e-06
  11  1.64474e-06
  12  0.000228393
  13  4.65869e-05
  14  5.57034e-05
  15  1.04261
  16  44.3287
  17  8.8356e-05
  18  71.0432
  19  0.00151319
  20  0.41614
  21  0.0380689
Done.

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

Extracting fit parameters...

4FGL J1759.1-4822
   Spectrum: PowerLaw
1317    Prefactor:  0.000e+00  9.127e-06  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.069e-01  3.807e-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.703e+00  4.161e-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: 1.70686909235e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0131170104815 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61540937/likelihoodResults_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.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) = 16699.4833918
delta logL = -0.0250666928005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16698.8162723
delta logL = 0.642052758983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12910E-04   1.0000          .0000       .10000E+07
     2 'Index     '    8.8251       1.0000          .0000       10.000    
     3 'Normalizat'    1.5742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91131       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=   16699.46     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      575 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.047        .45143E-06** at limit **
   2  Index         1.7342        .35151E-01   -.77297E-06     .0000    
   3  Normalizat    1.7034        .38102        .16946E-04   -.31852E-04
   4  Prefactor     .90690        .38247E-01    .34881E-05    .13597E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.73417
  Normalizat = 1.70343
  Prefactor  = 0.906902
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16699.46     FROM HESSE     STATUS=FAILED        11 CALLS      586 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.061        .42118E-03   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .30149        1.6335       -.77297E-06   -35061.    
   3  Normalizat    1.7034        1.0766        .16946E-04    11.844    
   4  Prefactor     .90690        1.2529        .34881E-05   -21.032    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.11725e-12
Minuit parameter uncertainties:
  1  3.25949e-05
  2  1.33472
  3  1.09201
  4  1.29653
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) = 16699.4583251
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1759.1-4822
   Spectrum: PowerLaw
1317    Prefactor:  0.000e+00  3.259e-05  0.000e+00  1.000e+06 ( 1.000e-13)
1318        Index:  1.734e+00  1.335e+00  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.069e-01  1.297e+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.703e+00  1.092e+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/61540937/cmap_HighResolution_757987201_758246401_4FGL_J1759.1-4822_daily_bin2001.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2025-01-11 01:06:32.291379', job_id='61540937', GAL2='0.91', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1736586392.29', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='2001' AND source_name='4FGL J1759.1-4822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 11 01:06:32 PST 2025

