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


Performing analysis on: 4FGL_J1339.1-2620_weekly_bin927
RA = 204.799, Dec = -26.3351
tmin = 799632001, tmax = 800236801
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='26508642', job_status='RUN', time_executed='2026-05-12 02:09:57.099431', time_epoch_executed='1778576997.1' WHERE source_name='4FGL J1339.1-2620' and cadence='weekly' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26508642

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26508642/ft1_4FGL_J1339.1-2620_weekly_bin927.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26508642/ft1_4FGL_J1339.1-2620_weekly_bin927.fits outfile=/lscratch/kocevski/26508642/ft1_filteredMKT_4FGL_J1339.1-2620_weekly_bin927.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=799632001.0 tmax=800236801.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 3.50
user 2.85
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.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/26508642/ft1_filteredMKT_4FGL_J1339.1-2620_weekly_bin927.fits evtable="EVENTS" outfile="/lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.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.69
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 116

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26508642/ltcube_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.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/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits
.....................!
real 16.74
user 16.08
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.fits evtable="EVENTS" scfile=/lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26508642/ltcube_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.fits outfile=/lscratch/kocevski/26508642/expmap_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.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/26508642/ltcube_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.fits
.....................!
real 59.68
user 55.62
sys 3.39

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 198 point sources and 1 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 J1339.1-2620 @ 204.799 -26.3351

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.fits scfile=/lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits outfile=/lscratch/kocevski/26508642/cmap_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.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=204.799 yref=-26.3351 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.65
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.fits scfile=/lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits outfile=/lscratch/kocevski/26508642/cmap_HighResolution_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.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=204.799 yref=-26.3351 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.63
user 0.20
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.fits evtable="EVENTS" scfile=/lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26508642/Model_4FGL_J1339.1-2620_weekly_bin927.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.fits........................!
real 13.02
user 11.61
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.fits', '/lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits', expMap='/lscratch/kocevski/26508642/expmap_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.fits', expCube='/lscratch/kocevski/26508642/ltcube_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26508642/Model_4FGL_J1339.1-2620_weekly_bin927.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.1-2620'

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.296e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26508642/ft1_filtered_4FGL_J1339.1-2620_weekly_bin927.fits
Spacecraft file(s): /lscratch/kocevski/26508642/ft2_4FGL_J1339.1-2620_weekly_bin927.fits
Exposure map: /lscratch/kocevski/26508642/expmap_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.fits
Exposure cube: /lscratch/kocevski/26508642/ltcube_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26508642/Model_4FGL_J1339.1-2620_weekly_bin927.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1413.18233725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1408.56102192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6300       1.0000          .0000       .10000E+07
     2 'Prefactor '    238.98       1.0000          .0000       .10000E+07
     3 'norm      '    .48809E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.1101       1.0000          .0000       .10000E+07
     5 'norm      '    12.921       1.0000          .0000       .10000E+07
     6 'norm      '    .48395E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .21191E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    108.26       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.5985       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15957E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21746       1.0000          .0000       .10000E+07
    12 'norm      '    31.432       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.5867       1.0000          .0000       .10000E+07
    14 'norm      '    .33152E-04   1.0000          .0000       .10000E+07
    15 'norm      '    2.4465       1.0000          .0000       .10000E+07
    16 'norm      '    .59947E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .23896E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.1168       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.6487       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.2765       1.0000          .0000       .10000E+07
    21 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1618       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=   1408.477     FROM MIGRAD    STATUS=CONVERGED    299 CALLS      737 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6412        1.7324       -.13467E-07    .98378E-03
   2  Prefactor     238.48        143.83        .10274E-05    .53170E-01
   3  norm           .0000        11.889       -.35194E-06** at limit **
   4  Prefactor     1.2398        17.756       -.70742E-06   -.24807E-03
   5  norm          13.011        11.374        .17762E-07   -.85307E-03
   6  norm           .0000        2.6436        .20266E-07** at limit **
   7  norm           .0000        19.612       -.55241E-07** at limit **
   8  Prefactor     107.68        108.38       -.27668E-06   -.37287E-01
   9  Prefactor     9.5383        343.85       -.51713E-05    .12638E-01
  10  Prefactor      .0000        25.796       -.49729E-07** at limit **
  11  Prefactor     .11102E-09    103.54       -.10560E-06** at limit **
  12  norm          31.729        47.559        .16483E-06    .28442E-02
  13  Prefactor     .26645E-08    207.16        .31982E-05** at limit **
  14  norm          .55511E-10    109.36       -.35259E-06** at limit **
  15  norm          .12657E-07    173.21        .19563E-05** at limit **
  16  norm           .0000        64.253       -.30496E-06** at limit **
  17  Prefactor     .22204E-09    20.274        .27159E-06** at limit **
  18  Prefactor     1014.7        3196.5       -.18322E-04   -.14882E-03
  19  Prefactor     7.6487        1.0022         .0000         .0000    
  20  Prefactor     1.2765        1.1106         .0000         .0000    
  21  Normalizat    .10000E-01    .58013        .59668E-05** at limit **
  22  Prefactor     1.1549        .17496        .48906E-06   -.16643E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.64121
  Prefactor  = 238.477
  norm       = 0
  Prefactor  = 1.23983
  norm       = 13.0112
  norm       = 0
  norm       = 0
  Prefactor  = 107.677
  Prefactor  = 9.53826
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  norm       = 31.7291
  Prefactor  = 2.66454e-09
  norm       = 5.55112e-11
  norm       = 1.26565e-08
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 1014.67
  Prefactor  = 7.6487
  Prefactor  = 1.27646
  Normalizat = 0.01
  Prefactor  = 1.1549
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1408.477     FROM HESSE     STATUS=FAILED        83 CALLS      820 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6412        1.6897        .62855E-03   -1.5675    
   2  Prefactor     238.48        145.31        .64695E-04   -1.5399    
   3  norm           .0000        11.729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2398        14.698        .11208E-02   -1.5686    
   5  norm          13.011        10.563        .27840E-03   -1.5636    
   6  norm           .0000        2.6558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        18.392        .16960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     107.68        112.56        .96117E-04   -1.5500    
   9  Prefactor     9.5383        757.06        .32322E-03   -1.5646    
  10  Prefactor      .0000        25.509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    104.22        .11473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          31.729        43.472        .17839E-03   -1.5595    
  13  Prefactor     .26645E-08    206.26        .42480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    107.86        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .12657E-07    167.20        .65377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        60.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22204E-09    19.499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1014.7        3167.5        .40570E-03   -1.5071    
  19  Prefactor     31496.        31488.         .0000       -1.5653    
  20  Prefactor     1.2765        1.1106         .0000       -1.5685    
  21  Normalizat    .10000E-01    .25739        .59668E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1549        1.1141        .48906E-06   -.87731    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.3188e-10
Minuit parameter uncertainties:
  1  1.68972
  2  145.316
  3  1.76266e-05
  4  8.53772
  5  10.5634
  6  4.20955e-06
  7  4.31244e-05
  8  112.56
  9  169.976
  10  4.80756e-05
  11  0.000213035
  12  43.4723
  13  0.00147912
  14  0.00013894
  15  0.00290893
  16  2.70127e-05
  17  0.000129404
  18  3172.7
  19  1.00215
  20  1.1106
  21  1.33092e-06
  22  1.13795
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1408.47742258

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  0.000e+00  4.808e-05  0.000e+00  1.000e+06 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  1.155e+00  1.138e+00  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.000e-02  1.331e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.799 -26.335
Photon Flux Upper Limit: 5.10281701088e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0390027539108 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/26508642/likelihoodResults_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.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) = 1408.49610947
delta logL = -0.0186868883536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1408.47742267
delta logL = -9.78350271907e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10714E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .80479       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1550       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.

 FCN=   1408.477     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      240 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35416E-07    28.948        .42118E-03** at limit **
   2  Index         1.1653        8.2680        .43780       -.16230E-08
   3  Normalizat    .10000E-01    .46047E-03    .32094    ** at limit **
   4  Prefactor     1.1549        .59408E-02    .35794E-01    .59694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.54161e-08
  Index      = 1.16527
  Normalizat = 0.01
  Prefactor  = 1.1549
 **********
 **   18 **HESSE 
 **********

 FCN=   1408.477     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35416E-07    1167.0        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1653        8.5689        .17512       -.87407    
   3  Normalizat    .10000E-01    .41400E-01    .12148E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1549        .39034E-01    .16630E-03   -.87731    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.35606e-08
Minuit parameter uncertainties:
  1  0.0128594
  2  131055
  3  4.64248e-06
  4  0.0390345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1408.47742258
delta logL = -9.9544195109e-10

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  3.542e-08  1.286e-02  0.000e+00  1.000e+06 ( 1.000e-13)
316        Index:  1.165e+00  1.311e+05  0.000e+00  1.000e+01 (-1.000e+00)
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  1.155e+00  3.903e-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.000e-02  4.642e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.799 -26.335

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/26508642/cmap_HighResolution_799632001_800236801_4FGL_J1339.1-2620_weekly_bin927.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-02', job_status='DONE', photon_flux_upper_limit='5.10e-07', time_completed='2026-05-12 02:16:40.514897', job_id='26508642', GAL2='1.15', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1778577400.51', return_code2='102', ts='0.00', comment='SUCCESS', return_code='101', GAL='1.15', dlogl='-9.95e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='927' AND source_name='4FGL J1339.1-2620' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 12 02:16:40 PDT 2026

