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


Performing analysis on: 4FGL_J1238.5-1201_weekly_bin926
RA = 189.625, Dec = -12.028
tmin = 799027201, tmax = 799632001
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='26195903', job_status='RUN', time_executed='2026-05-05 01:09:20.841971', time_epoch_executed='1777968560.84' WHERE source_name='4FGL J1238.5-1201' and cadence='weekly' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26195903

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26195903/ft1_4FGL_J1238.5-1201_weekly_bin926.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26195903/ft1_4FGL_J1238.5-1201_weekly_bin926.fits outfile=/lscratch/kocevski/26195903/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin926.fits ra=189.625 dec=-12.028 rad=12.0 tmin=799027201.0 tmax=799632001.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 4.26
user 3.73
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.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/26195903/ft1_filteredMKT_4FGL_J1238.5-1201_weekly_bin926.fits evtable="EVENTS" outfile="/lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.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.52
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 553

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26195903/ltcube_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.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/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits
.....................!
real 20.26
user 19.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26195903/ltcube_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.fits outfile=/lscratch/kocevski/26195903/expmap_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.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/26195903/ltcube_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.fits
.....................!
real 72.08
user 67.05
sys 4.15

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.fits scfile=/lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits outfile=/lscratch/kocevski/26195903/cmap_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.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=189.625 yref=-12.028 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.62
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.fits scfile=/lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits outfile=/lscratch/kocevski/26195903/cmap_HighResolution_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.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=189.625 yref=-12.028 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.62
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.fits evtable="EVENTS" scfile=/lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26195903/Model_4FGL_J1238.5-1201_weekly_bin926.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.fits.....................!
real 25.17
user 23.83
sys 0.80

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.fits', '/lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits', expMap='/lscratch/kocevski/26195903/expmap_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.fits', expCube='/lscratch/kocevski/26195903/ltcube_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26195903/Model_4FGL_J1238.5-1201_weekly_bin926.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26195903/ft1_filtered_4FGL_J1238.5-1201_weekly_bin926.fits
Spacecraft file(s): /lscratch/kocevski/26195903/ft2_4FGL_J1238.5-1201_weekly_bin926.fits
Exposure map: /lscratch/kocevski/26195903/expmap_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.fits
Exposure cube: /lscratch/kocevski/26195903/ltcube_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26195903/Model_4FGL_J1238.5-1201_weekly_bin926.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) = 6512.51527092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15321E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    65.455       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5181       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11460E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15396E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.9809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1015       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.4608       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48961E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .96423E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    57.812       1.0000          .0000       .10000E+07
    13 'norm      '    28.010       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.7964       1.0000          .0000       .10000E+07
    15 'norm      '    .55245       1.0000          .0000       .10000E+07
    16 'norm      '    .63838E-08   1.0000          .0000       .10000E+07
    17 'norm      '    20.612       1.0000          .0000       .10000E+07
    18 'Prefactor '    .79967E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .20706E-07   1.0000          .0000       .10000E+07
    20 'norm      '    7.5003       1.0000          .0000       .10000E+07
    21 'Prefactor '    8.4285       1.0000          .0000       .10000E+07
    22 'Prefactor '    26.261       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.6747       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6510.702     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1184 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1639       -.10390E-07** at limit **
   2  Prefactor     65.470        9.3077        .66986E-08   -.58126E-01
   3  Prefactor     2.7448        19.780       -.10230E-06    .46736E-03
   4  Prefactor      .0000        13.098        .89692E-07** at limit **
   5  norm           .0000        .76186        .64769E-07** at limit **
   6  Prefactor      .0000        3.7471        .61476E-08** at limit **
   7  Prefactor     7.9807        3.0340        .70496E-07   -.27288E-04
   8  Prefactor     6.0839        6.8966        .71861E-08   -.13995E-03
   9  Prefactor     3.4709        20.671        .48896E-07    .82721E-02
  10  Prefactor      .0000        5.8883       -.86888E-07** at limit **
  11  Prefactor      .0000        3.1192        .11083E-06** at limit **
  12  Prefactor     57.268        43.280        .84225E-07   -.14595E-02
  13  norm          28.132        5.5369       -.49230E-08   -.12812E-02
  14  Prefactor     .55511E-10    206.89       -.17940E-05** at limit **
  15  norm          .55319        .25089       -.97012E-08    .12251E-02
  16  norm           .0000        5.8023       -.66221E-07** at limit **
  17  norm          20.944        14.383       -.17982E-07   -.76884E-02
  18  Prefactor     .14433E-08    23.458       -.24751E-07** at limit **
  19  norm           .0000        4.5329       -.19271E-06** at limit **
  20  norm          7.4560        3.0800        .17287E-07   -.34537E-02
  21  Prefactor     8.4605        7.3609        .17301E-07   -.61617E-02
  22  Prefactor     26.217        2.1757        .66201E-08    .64721E-02
  23  Normalizat    1.6736        .29628       -.23123E-05    .76437E-05
  24  Prefactor     .72109        .16296        .13737E-05    .18989E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 65.4702
  Prefactor  = 2.74479
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 7.98071
  Prefactor  = 6.08391
  Prefactor  = 3.47088
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 57.2681
  norm       = 28.132
  Prefactor  = 5.55112e-11
  norm       = 0.553194
  norm       = 0
  norm       = 20.9437
  Prefactor  = 1.44329e-09
  norm       = 0
  norm       = 7.45596
  Prefactor  = 8.46049
  Prefactor  = 26.2172
  Normalizat = 1.67364
  Prefactor  = 0.721087
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.702     FROM HESSE     STATUS=OK           447 CALLS     1631 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1615        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.470        23.964        .12361E-03   -1.5546    
   3  Prefactor     2.7448        19.989        .64355E-03   -1.5675    
   4  Prefactor      .0000        13.124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .75954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.7444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9807        3.0366        .35482E-02   -1.5143    
   8  Prefactor     6.0839        6.9090        .40622E-03   -1.5659    
   9  Prefactor     3.4709        28.881        .54337E-03   -1.5671    
  10  Prefactor      .0000        5.8826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        3.1230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.268        43.243        .13153E-03   -1.5557    
  13  norm          28.132        22.122        .18898E-03   -1.5602    
  14  Prefactor     .55511E-10    206.84        .41692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55319        .25206        .57632E-03   -1.5693    
  16  norm           .0000        5.8013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.944        14.849        .22033E-03   -1.5616    
  18  Prefactor     .14433E-08    23.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        4.5335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4560        16.340        .36596E-03   -1.5653    
  21  Prefactor     8.4605        22.258        .34506E-03   -1.5650    
  22  Prefactor     26.217        22.830        .19518E-03   -1.5606    
  23  Normalizat    1.6736        .25835        .70372E-01   -.73009    
  24  Prefactor     .72109        .14248        .42675E-01   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81154e-08
Minuit parameter uncertainties:
  1  8.70175e-08
  2  23.9641
  3  14.8144
  4  3.02519e-05
  5  4.62105e-07
  6  1.90641e-06
  7  3.03666
  8  6.90905
  9  20.0244
  10  1.06168e-05
  11  1.36372e-06
  12  43.243
  13  22.1217
  14  0.000171881
  15  0.252065
  16  3.8675e-06
  17  14.8487
  18  0.000370478
  19  7.04956e-06
  20  16.3402
  21  22.2578
  22  22.8303
  23  0.25856
  24  0.142551
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  1.062e-05  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.211e-01  1.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.674e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.22770296718e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00964264354405 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/26195903/likelihoodResults_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.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) = 6510.70160404
delta logL = -7.55206801841e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6510.70152939
delta logL = -8.66696609592e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6510.702     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .83E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8450        .42118E-03** at limit **
   2  Index         4.5684        2.0984       -.11243E-03     .0000    
   3  Normalizat    1.6736        1.0353        .47335E-04   -.15205E-04
   4  Prefactor     .72109        1.0708       -.30463E-04   -.11509E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.56843
  Normalizat = 1.67364
  Prefactor  = 0.721087
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6510.702     FROM HESSE     STATUS=FAILED         9 CALLS      266 TOTAL
                     EDM=   .83E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1916        2.4170       -.11243E-03   -.86421E-01
   3  Normalizat    1.6736        1.0353        .47335E-04   -.73009    
   4  Prefactor     .72109        1.0708       -.30463E-04   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.3472e-13
Minuit parameter uncertainties:
  1  9.85026e-07
  2  2.16604
  3  1.04916
  4  1.104
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) = 6510.70152852
delta logL = 0.0

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  9.850e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  4.568e+00  2.166e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.211e-01  1.104e+00  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.674e+00  1.049e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 189.625 -12.028

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/26195903/cmap_HighResolution_799027201_799632001_4FGL_J1238.5-1201_weekly_bin926.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2026-05-05 01:16:56.981269', job_id='26195903', GAL2='0.72', fit_tolerance='1e-08', EG2='1.67', EG='1.67', time_epoch_completed='1777969016.98', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='926' AND source_name='4FGL J1238.5-1201' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  5 01:16:57 PDT 2026

