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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin2116
RA = 325.462, Dec = -37.4545
tmin = 787795201, tmax = 788054401
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='17723413', job_status='RUN', time_executed='2025-12-22 01:02:05.536534', time_epoch_executed='1766394125.54' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='2116'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17723413

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17723413/ft1_4FGL_J2141.8-3727_daily_bin2116.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17723413/ft1_4FGL_J2141.8-3727_daily_bin2116.fits outfile=/lscratch/kocevski/17723413/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin2116.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=787795201.0 tmax=788054401.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.95
user 2.35
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.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/17723413/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin2116.fits evtable="EVENTS" outfile="/lscratch/kocevski/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.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.71
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 548

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17723413/ltcube_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.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/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits
.....................!
real 9.94
user 9.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.fits evtable="EVENTS" scfile=/lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17723413/ltcube_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.fits outfile=/lscratch/kocevski/17723413/expmap_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.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/17723413/ltcube_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.fits
.....................!
real 77.76
user 71.99
sys 4.66

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J2141.8-3727 @ 325.462 -37.4545

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.fits scfile=/lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits outfile=/lscratch/kocevski/17723413/cmap_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.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=325.462 yref=-37.4545 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.46
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.fits scfile=/lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits outfile=/lscratch/kocevski/17723413/cmap_HighResolution_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.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=325.462 yref=-37.4545 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.47
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.fits evtable="EVENTS" scfile=/lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17723413/Model_4FGL_J2141.8-3727_daily_bin2116.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/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.fits.....................!
real 22.61
user 21.04
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.fits', '/lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits', expMap='/lscratch/kocevski/17723413/expmap_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.fits', expCube='/lscratch/kocevski/17723413/ltcube_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17723413/Model_4FGL_J2141.8-3727_daily_bin2116.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2141.8-3727'

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  3.345e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17723413/ft1_filtered_4FGL_J2141.8-3727_daily_bin2116.fits
Spacecraft file(s): /lscratch/kocevski/17723413/ft2_4FGL_J2141.8-3727_daily_bin2116.fits
Exposure map: /lscratch/kocevski/17723413/expmap_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.fits
Exposure cube: /lscratch/kocevski/17723413/ltcube_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17723413/Model_4FGL_J2141.8-3727_daily_bin2116.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) = 6168.77767499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19381       1.0000          .0000       .10000E+07
     2 'Prefactor '    23.777       1.0000          .0000       .10000E+07
     3 'Prefactor '    41.704       1.0000          .0000       .10000E+07
     4 'Prefactor '    17.295       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11885       1.0000          .0000       .10000E+07
     6 'norm      '    4.1771       1.0000          .0000       .10000E+07
     7 'norm      '    8.6859       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17315E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11453E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.102       1.0000          .0000       .10000E+07
    11 'norm      '    .12558E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .25068E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .87771E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .98112       1.0000          .0000       .10000E+07
    15 'norm      '    1.7793       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10113E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15346E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10376E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .16649E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    8.6964       1.0000          .0000       .10000E+07
    21 'Prefactor '    .15676E-01   1.0000          .0000       .10000E+07
    22 'Normalizat'    .84004       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1192       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6168.749     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1872 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76605E-08    67.039       -.42352E-06** at limit **
   2  Prefactor     23.736        15.649        .11716E-05   -.25380E-01
   3  Prefactor     41.751        9.5521        .54511E-06   -.37078E-01
   4  Prefactor     17.296        6.1841       -.49660E-06   -.39903E-01
   5  Prefactor     .41800E-07    24.541       -.29383E-05** at limit **
   6  norm          4.1819        5.1127       -.62818E-07   -.23760E-04
   7  norm          8.7590        6.1771        .34605E-07    .80699E-03
   8  Prefactor      .0000        5.3145       -.46462E-06** at limit **
   9  Prefactor      .0000        6.8676       -.51111E-06** at limit **
  10  Prefactor     13.100        5.5229        .42399E-06   -.17225E-02
  11  norm          .18041E-06    303.80       -.35638E-05** at limit **
  12  Prefactor     .15321E-07    16.232       -.23538E-05** at limit **
  13  Prefactor     .21261E-07    49.193       -.20064E-05** at limit **
  14  norm          .98429        4.0857        .25370E-06   -.24611E-02
  15  norm          1.7793        .50835       -.58190E-07    .24363E-03
  16  Prefactor     .53291E-08    18.733       -.35728E-06** at limit **
  17  Prefactor      .0000        3.2562        .74010E-07** at limit **
  18  Prefactor      .0000        3.3706       -.11731E-06** at limit **
  19  Prefactor     .22204E-09    18.120        .43755E-06** at limit **
  20  Prefactor     8.7449        9.4518       -.92832E-06   -.44388E-01
  21  Prefactor      .0000        15.798       -.41495E-06** at limit **
  22  Normalizat    .84005        .22307        .21859E-04    .26027E-04
  23  Prefactor     1.1192        .15179       -.56705E-05    .60317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.66054e-09
  Prefactor  = 23.7361
  Prefactor  = 41.7512
  Prefactor  = 17.2965
  Prefactor  = 4.17999e-08
  norm       = 4.18188
  norm       = 8.75897
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 13.1005
  norm       = 1.80411e-07
  Prefactor  = 1.53211e-08
  Prefactor  = 2.12608e-08
  norm       = 0.984289
  norm       = 1.77928
  Prefactor  = 5.32907e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 8.74485
  Prefactor  = 0
  Normalizat = 0.840055
  Prefactor  = 1.11921
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.749     FROM HESSE     STATUS=OK           420 CALLS     2292 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76605E-08    67.569        .11887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.736        26.714        .20512E-03   -1.5611    
   3  Prefactor     41.751        29.533        .15486E-03   -1.5579    
   4  Prefactor     17.296        10.425        .24056E-03   -1.5625    
   5  Prefactor     .41800E-07    55.162        .13448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1819        5.1150        .49288E-03   -1.5667    
   7  norm          8.7590        6.3395        .33987E-03   -1.5649    
   8  Prefactor      .0000        5.3437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        6.8689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.100        11.119        .27647E-03   -1.5636    
  11  norm          .18041E-06    6.8717        .62385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .15321E-07    26.695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .21261E-07    49.771        .14270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .98429        4.2414        .43096E-03   -1.5688    
  15  norm          1.7793        .50851        .63891E-03   -1.5681    
  16  Prefactor     .53291E-08    18.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.2661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.3599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22204E-09    26.772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.7449        18.223        .33967E-03   -1.5649    
  21  Prefactor      .0000        15.641        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .84005        .20452        .74671E-01   -.98600    
  23  Prefactor     1.1192        .13630        .36898E-01   -.88855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94673e-07
Minuit parameter uncertainties:
  1  0.00143994
  2  26.7143
  3  29.5328
  4  10.425
  5  0.00303657
  6  5.11499
  7  6.33953
  8  1.91539e-05
  9  2.57664e-05
  10  11.1189
  11  0.00222672
  12  0.00127899
  13  0.00205778
  14  4.08647
  15  0.50851
  16  0.000634873
  17  5.62973e-06
  18  6.88136e-06
  19  0.000159819
  20  18.2236
  21  9.05187e-06
  22  0.204703
  23  0.136346
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.915e-05  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.623e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.119e+00  1.363e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.401e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 325.462 -37.455
Photon Flux Upper Limit: 9.98550102534e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00782538087269 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17723413/likelihoodResults_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.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): 0
logL (Free Index) = 6165.7677988
delta logL = 2.98153602512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6165.55013362
delta logL = 3.19920120888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24628E-02   1.0000          .0000       .10000E+07
     2 'Index     '    9.1010       1.0000          .0000       10.000    
     3 'Normalizat'    .67789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1822       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6168.749     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      353 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    1093.9        .42118E-03** at limit **
   2  Index         2.4707        7.5053        .44992        .10107E-09
   3  Normalizat    .84006        .19876        .74665E-01    .18800E-03
   4  Prefactor     1.1192        .13514        .35065E-01   -.54534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Index      = 2.47067
  Normalizat = 0.840056
  Prefactor  = 1.11921
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.749     FROM HESSE     STATUS=OK            31 CALLS      384 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    4.8390        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4707        7.4950        .50000       -115.71    
   3  Normalizat    .84006        .21825        .33048E-03   -2.1556    
   4  Prefactor     1.1192        .14992        .19791E-03   -.88855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82073e-10
Minuit parameter uncertainties:
  1  6.66206e-05
  2  4.50689
  3  0.218481
  4  0.149979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6168.74933483
delta logL = -1.36424205266e-10

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  2.220e-10  6.662e-05  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.471e+00  4.507e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  5.479e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.119e+00  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.401e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 325.462 -37.455

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/17723413/cmap_HighResolution_787795201_788054401_4FGL_J2141.8-3727_daily_bin2116.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', job_status='DONE', photon_flux_upper_limit='9.99e-08', time_completed='2025-12-22 01:08:31.729198', job_id='17723413', GAL2='1.12', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1766394511.73', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-1.36e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='2116' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 22 01:08:32 PST 2025

