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


Performing analysis on: 4FGL_J1939.5-1525_daily_bin2130
RA = 294.877, Dec = -15.4256
tmin = 791424001, tmax = 791683201
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='20041946', job_status='RUN', time_executed='2026-02-02 02:52:22.222125', time_epoch_executed='1770029542.22' WHERE source_name='4FGL J1939.5-1525' and cadence='daily' and bin_id='2130'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/20041946

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/20041946/ft1_4FGL_J1939.5-1525_daily_bin2130.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/20041946/ft1_4FGL_J1939.5-1525_daily_bin2130.fits outfile=/lscratch/kocevski/20041946/ft1_filteredMKT_4FGL_J1939.5-1525_daily_bin2130.fits ra=294.877 dec=-15.4256 rad=12.0 tmin=791424001.0 tmax=791683201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.52
user 1.84
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.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/20041946/ft1_filteredMKT_4FGL_J1939.5-1525_daily_bin2130.fits evtable="EVENTS" outfile="/lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.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.77
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 1316

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.fits" evtable="EVENTS" scfile=/lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits sctable="SC_DATA" outfile=/lscratch/kocevski/20041946/ltcube_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.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/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits
.....................!
real 8.57
user 7.72
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.fits evtable="EVENTS" scfile=/lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits sctable="SC_DATA" expcube=/lscratch/kocevski/20041946/ltcube_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.fits outfile=/lscratch/kocevski/20041946/expmap_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.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/20041946/ltcube_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.fits
.....................!
real 65.92
user 61.33
sys 3.69

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 W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 310 point sources and 12 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 J1939.5-1525 @ 294.877 -15.4256

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.fits scfile=/lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits outfile=/lscratch/kocevski/20041946/cmap_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.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=294.877 yref=-15.4256 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.88
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.fits scfile=/lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits outfile=/lscratch/kocevski/20041946/cmap_HighResolution_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.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=294.877 yref=-15.4256 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.81
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.fits evtable="EVENTS" scfile=/lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/20041946/Model_4FGL_J1939.5-1525_daily_bin2130.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 J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
Working on...
/lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.fits.....................!
real 101.21
user 98.84
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.fits', '/lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits', expMap='/lscratch/kocevski/20041946/expmap_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.fits', expCube='/lscratch/kocevski/20041946/ltcube_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/20041946/Model_4FGL_J1939.5-1525_daily_bin2130.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1939.5-1525'

4FGL J1939.5-1525
   Spectrum: PowerLaw
822    Prefactor:  1.826e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
823        Index:  2.417e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
824        Scale:  1.314e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/20041946/ft1_filtered_4FGL_J1939.5-1525_daily_bin2130.fits
Spacecraft file(s): /lscratch/kocevski/20041946/ft2_4FGL_J1939.5-1525_daily_bin2130.fits
Exposure map: /lscratch/kocevski/20041946/expmap_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.fits
Exposure cube: /lscratch/kocevski/20041946/ltcube_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/20041946/Model_4FGL_J1939.5-1525_daily_bin2130.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) = 13720.3337417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16383E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .14544E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    35.547       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.3983       1.0000          .0000       .10000E+07
     5 'norm      '    .22162E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    71.898       1.0000          .0000       .10000E+07
     7 'Prefactor '    .52736E-08   1.0000          .0000       .10000E+07
     8 'norm      '    11.958       1.0000          .0000       .10000E+07
     9 'norm      '    .27314E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .30126E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    88.394       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.9137       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12337E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .86283E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .43469E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7807       1.0000          .0000       .10000E+07
    17 'Prefactor '    .41939E-02   1.0000          .0000       .10000E+07
    18 'norm      '    21.165       1.0000          .0000       .10000E+07
    19 'norm      '    .54239E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .10947       1.0000          .0000       .10000E+07
    21 'norm      '    27.134       1.0000          .0000       .10000E+07
    22 'norm      '    6.8659       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1762       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0270       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1148E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13720.05     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     2026 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96811E-07    13.252       -.21581E-06** at limit **
   2  norm           .0000        .31255        .17446E-07** at limit **
   3  Prefactor     35.513        3.7622        .28307E-07   -.61585E-01
   4  Prefactor     1.4049        3.2240        .48705E-07   -.77234E-05
   5  norm          .63838E-08    28.316       -.13874E-06** at limit **
   6  Prefactor     74.473        51.255        .10903E-06    .40430E-02
   7  Prefactor      .0000        7.6193       -.32991E-07** at limit **
   8  norm          12.000        7.3309        .11911E-07    .84688E-04
   9  norm           .0000        1.5579        .16973E-07** at limit **
  10  Prefactor      .0000        4.7785        .17241E-07** at limit **
  11  Prefactor     92.243        57.776       -.57625E-07   -.38496E-02
  12  Prefactor     1.8772        26.732        .19252E-06    .39723E-02
  13  Prefactor      .0000        1.8818        .51807E-07** at limit **
  14  Prefactor     .17097E-06    6.4545       -.10717E-06** at limit **
  15  Prefactor     .68834E-08    8.6292        .15447E-06** at limit **
  16  Prefactor     3.7884        2.8101        .49087E-08   -.53278E-04
  17  Prefactor     .20095E-07    10.723        .20271E-06** at limit **
  18  norm          20.967        11.534        .45029E-07   -.74335E-02
  19  norm           .0000        8.9001       -.21840E-07** at limit **
  20  Prefactor      .0000        51.730        .26887E-06** at limit **
  21  norm          26.968        2.0231       -.83081E-08   -.58008E-02
  22  norm          6.8822        1.6054       -.10797E-07    .15246E-02
  23  Normalizat    1.1731        .36175        .19334E-05   -.22873E-06
  24  Prefactor     1.0268        .68966E-01   -.70101E-06   -.33823E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.68114e-08
  norm       = 0
  Prefactor  = 35.5132
  Prefactor  = 1.40487
  norm       = 6.38378e-09
  Prefactor  = 74.4732
  Prefactor  = 0
  norm       = 12
  norm       = 0
  Prefactor  = 0
  Prefactor  = 92.2432
  Prefactor  = 1.87722
  Prefactor  = 0
  Prefactor  = 1.70974e-07
  Prefactor  = 6.88338e-09
  Prefactor  = 3.78843
  Prefactor  = 2.0095e-08
  norm       = 20.9667
  norm       = 0
  Prefactor  = 0
  norm       = 26.9683
  norm       = 6.88217
  Normalizat = 1.17306
  Prefactor  = 1.02679
 **********
 **   18 **HESSE 
 **********

 FCN=   13720.05     FROM HESSE     STATUS=OK           445 CALLS     2471 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96811E-07    18.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .31055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.513        27.147        .16774E-03   -1.5589    
   4  Prefactor     1.4049        3.2157        .91752E-03   -1.5684    
   5  norm          .63838E-08    28.424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     74.473        51.549        .11794E-03   -1.5535    
   7  Prefactor      .0000        7.5915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.000        7.3304        .28943E-03   -1.5639    
   9  norm           .0000        1.5573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.7656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     92.243        57.921        .10637E-03   -1.5516    
  12  Prefactor     1.8772        43.985        .75108E-03   -1.5681    
  13  Prefactor      .0000        1.8819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17097E-06    19.103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .68834E-08    20.133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7884        2.8222        .51894E-03   -1.5669    
  17  Prefactor     .20095E-07    20.267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.967        17.822        .21743E-03   -1.5616    
  19  norm           .0000        8.9217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        51.670        .13682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          26.968        19.980        .19201E-03   -1.5604    
  22  norm          6.8822        25.652        .38266E-03   -1.5655    
  23  Normalizat    1.1731        .34700        .15638       -.87439    
  24  Prefactor     1.0268        .64883E-01    .31692E-01   -.91842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04674e-07
Minuit parameter uncertainties:
  1  0.002682
  2  1.41957e-07
  3  27.1473
  4  3.21566
  5  0.000853439
  6  51.5494
  7  4.18627e-06
  8  7.33042
  9  3.03337e-07
  10  6.52453e-06
  11  57.9218
  12  18.1737
  13  8.42038e-07
  14  0.00361445
  15  0.000743675
  16  2.82216
  17  0.00127712
  18  17.8224
  19  3.30734e-06
  20  7.73991e-06
  21  19.9799
  22  25.6522
  23  0.347677
  24  0.0648882
Done.

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

Extracting fit parameters...

4FGL J1939.5-1525
   Spectrum: PowerLaw
822    Prefactor:  0.000e+00  6.525e-06  0.000e+00  1.000e+06 ( 1.000e-13)
823        Index:  2.417e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
824        Scale:  1.314e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1113    Prefactor:  1.027e+00  6.489e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1114        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1115        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1102   Normalization:  1.173e+00  3.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 294.877 -15.426
Photon Flux Upper Limit: 8.83895227184e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00683779937375 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/20041946/likelihoodResults_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.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) = 13720.0548449
delta logL = -0.00350401417927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13720.0513418
delta logL = -9.65294020716e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13720.05     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      215 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.0642       -.18202E-05** at limit **
   2  Index         1.3308        5.5656       -.41239E-04     .0000    
   3  Normalizat    1.1731        .33785        .90457E-04    .99515E-05
   4  Prefactor     1.0268        .65071E-01   -.17020E-04   -.17374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.33083
  Normalizat = 1.17306
  Prefactor  = 1.02679
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   13720.05     FROM HESSE     STATUS=FAILED        11 CALLS      226 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.1026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .13959        1.2874       -.41239E-04   -.82395    
   3  Normalizat    1.1731        1.1164        .90457E-04   -.87439    
   4  Prefactor     1.0268        1.2244       -.17020E-04   -.91842    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.35037e-12
Minuit parameter uncertainties:
  1  2.18075e-05
  2  0.77945
  3  1.14035
  4  1.26027
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) = 13720.0513409
delta logL = 0.0

Extracting fit parameters...

4FGL J1939.5-1525
   Spectrum: PowerLaw
822    Prefactor:  0.000e+00  2.181e-05  0.000e+00  1.000e+06 ( 1.000e-13)
823        Index:  1.331e+00  7.795e-01  0.000e+00  1.000e+01 (-1.000e+00)
824        Scale:  1.314e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1113    Prefactor:  1.027e+00  1.260e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1114        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1115        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1102   Normalization:  1.173e+00  1.140e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 294.877 -15.426

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/20041946/cmap_HighResolution_791424001_791683201_4FGL_J1939.5-1525_daily_bin2130.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2026-02-02 03:05:19.085609', job_id='20041946', GAL2='1.03', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1770030319.09', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='2130' AND source_name='4FGL J1939.5-1525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  2 03:05:19 PST 2026

