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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin2156
RA = 325.462, Dec = -37.4545
tmin = 798163201, tmax = 798422401
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='25590133', job_status='RUN', time_executed='2026-04-21 01:02:54.894596', time_epoch_executed='1776758574.89' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='2156'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/25590133

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/25590133/ft1_4FGL_J2141.8-3727_daily_bin2156.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/25590133/ft1_4FGL_J2141.8-3727_daily_bin2156.fits outfile=/lscratch/kocevski/25590133/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin2156.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=798163201.0 tmax=798422401.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.57
user 1.97
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.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/25590133/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin2156.fits evtable="EVENTS" outfile="/lscratch/kocevski/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.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.82
user 0.18
sys 0.12

Number of photons that the gtmktime cut: 836

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.fits" evtable="EVENTS" scfile=/lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits sctable="SC_DATA" outfile=/lscratch/kocevski/25590133/ltcube_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.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/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits
.....................!
real 8.51
user 7.69
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.fits evtable="EVENTS" scfile=/lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits sctable="SC_DATA" expcube=/lscratch/kocevski/25590133/ltcube_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.fits outfile=/lscratch/kocevski/25590133/expmap_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.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/25590133/ltcube_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.fits
.....................!
real 69.51
user 64.68
sys 4.11

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/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.fits scfile=/lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits outfile=/lscratch/kocevski/25590133/cmap_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.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.53
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.fits scfile=/lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits outfile=/lscratch/kocevski/25590133/cmap_HighResolution_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.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.49
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.fits evtable="EVENTS" scfile=/lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/25590133/Model_4FGL_J2141.8-3727_daily_bin2156.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/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.fits.....................!
real 26.58
user 25.50
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.fits', '/lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits', expMap='/lscratch/kocevski/25590133/expmap_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.fits', expCube='/lscratch/kocevski/25590133/ltcube_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/25590133/Model_4FGL_J2141.8-3727_daily_bin2156.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/25590133/ft1_filtered_4FGL_J2141.8-3727_daily_bin2156.fits
Spacecraft file(s): /lscratch/kocevski/25590133/ft2_4FGL_J2141.8-3727_daily_bin2156.fits
Exposure map: /lscratch/kocevski/25590133/expmap_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.fits
Exposure cube: /lscratch/kocevski/25590133/ltcube_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/25590133/Model_4FGL_J2141.8-3727_daily_bin2156.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) = 9075.02003212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19118E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.6737       1.0000          .0000       .10000E+07
     3 'Prefactor '    .42460E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9647       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.0806       1.0000          .0000       .10000E+07
     6 'norm      '    3.4545       1.0000          .0000       .10000E+07
     7 'norm      '    6.4969       1.0000          .0000       .10000E+07
     8 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .20972E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .42299E-07   1.0000          .0000       .10000E+07
    11 'norm      '    1.3364       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13195E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    16.375       1.0000          .0000       .10000E+07
    14 'norm      '    3.1487       1.0000          .0000       .10000E+07
    15 'norm      '    .67289       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20147E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .53232E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13969E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .10481E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .10813E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    16.197       1.0000          .0000       .10000E+07
    22 'Normalizat'    .85491       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0346       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=   9074.978     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1503 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    83.724        .14642E-05** at limit **
   2  Prefactor     1.6569        12.286       -.58739E-07    .82911E-04
   3  Prefactor     .15127E-06    3.8422       -.79030E-07** at limit **
   4  Prefactor     3.9807        6.7663       -.19544E-07   -.31233E-03
   5  Prefactor     6.0438        2.7346        .77643E-08    .10872E-01
   6  norm          3.4529        3.6238        .41749E-07   -.42127E-03
   7  norm          6.5012        3.5741       -.25623E-07   -.91461E-04
   8  Prefactor      .0000        1.9284        .38552E-09** at limit **
   9  Prefactor     .55511E-10    3.1488       -.25285E-06** at limit **
  10  Prefactor      .0000        1.2921        .29043E-07** at limit **
  11  norm          1.3545        4.7091       -.18473E-06    .40896E-03
  12  Prefactor     .27756E-09    5.7319       -.23482E-08** at limit **
  13  Prefactor     16.843        5.5971       -.36561E-07    .34139E-01
  14  norm          3.1400        3.2898       -.28231E-07    .18078E-03
  15  norm          .67278        .28473       -.86949E-08    .27191E-02
  16  Prefactor     .19873E-07    24.175        .27287E-06** at limit **
  17  Prefactor     .79936E-08    14.621        .43119E-07** at limit **
  18  Prefactor     .11768E-07    5.9812       -.13056E-06** at limit **
  19  Prefactor     .94369E-09    12.226       -.11398E-06** at limit **
  20  Prefactor     .40523E-08    6.4696       -.71664E-07** at limit **
  21  Prefactor     16.266        8.0158        .25411E-07   -.11696E-03
  22  Normalizat    .85461        .16350       -.38839E-06   -.22516E-04
  23  Prefactor     1.0346        .11226        .11679E-05   -.59701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 1.65689
  Prefactor  = 1.51268e-07
  Prefactor  = 3.9807
  Prefactor  = 6.04379
  norm       = 3.4529
  norm       = 6.50116
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 1.35451
  Prefactor  = 2.77556e-10
  Prefactor  = 16.8432
  norm       = 3.14002
  norm       = 0.672783
  Prefactor  = 1.9873e-08
  Prefactor  = 7.99361e-09
  Prefactor  = 1.17684e-08
  Prefactor  = 9.4369e-10
  Prefactor  = 4.05231e-09
  Prefactor  = 16.2661
  Normalizat = 0.854608
  Prefactor  = 1.03462
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.978     FROM HESSE     STATUS=OK           422 CALLS     1925 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    83.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6569        12.336        .81437E-03   -1.5682    
   3  Prefactor     .15127E-06    9.9348        .10542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9807        6.8691        .50633E-03   -1.5668    
   5  Prefactor     6.0438        21.712        .40692E-03   -1.5659    
   6  norm          3.4529        3.6115        .54389E-03   -1.5671    
   7  norm          6.5012        3.6865        .39350E-03   -1.5657    
   8  Prefactor      .0000        1.9292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    3.1537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.2934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3545        4.7211        .94853E-03   -1.5685    
  12  Prefactor     .27756E-09    5.7847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.843        24.726        .24724E-03   -1.5626    
  14  norm          3.1400        3.3232        .57099E-03   -1.5673    
  15  norm          .67278        .28533        .62937E-03   -1.5692    
  16  Prefactor     .19873E-07    24.924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .79936E-08    14.616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11768E-07    7.9436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .94369E-09    12.397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .40523E-08    7.1088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.266        13.753        .24860E-03   -1.5627    
  22  Normalizat    .85461        .14545        .65122E-01   -.98074    
  23  Prefactor     1.0346        .98808E-01    .40914E-01   -.91584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53827e-07
Minuit parameter uncertainties:
  1  0.000106373
  2  9.04185
  3  0.00245192
  4  6.86916
  5  21.7123
  6  3.61145
  7  3.68647
  8  5.33809e-06
  9  3.06213e-05
  10  5.14383e-07
  11  4.72114
  12  7.82337e-05
  13  24.7261
  14  3.32318
  15  0.285329
  16  0.00140669
  17  0.000684316
  18  0.000611733
  19  0.000213985
  20  0.000338871
  21  13.7532
  22  0.145517
  23  0.0988253
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  5.338e-06  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.035e+00  9.883e-02  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.546e-01  1.455e-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: 4.47880895054e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00350992762456 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/25590133/likelihoodResults_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.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) = 9074.97931925
delta logL = -0.00104744752389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9074.97827267
delta logL = -8.63743480295e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34317E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .76076       1.0000          .0000       10.000    
     3 'Normalizat'    .85458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0346       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=   9074.541     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      368 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10446E-03    .12591E-03    .44285E-09** at limit **
   2  Index        10.0000        8.3009        .80106E-03** at limit **
   3  Normalizat    .81787        .16619        .18285E-05    .13435E-04
   4  Prefactor     1.0496        .11292       -.19663E-05    .38208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104455
  Index      = 10
  Normalizat = 0.81787
  Prefactor  = 1.04964
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.541     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      405 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10446E-03    .45308E-02    .26042E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        9.9932        .43204        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81787        .49670E-01    .66432E-01   -.99409    
   4  Prefactor     1.0496        .33828E-01    .40909E-01   -.91093    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43365e-08
Minuit parameter uncertainties:
  1  0.00137588
  2  0.00129892
  3  0.0496732
  4  0.033829
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) = 9074.54062323
delta logL = 0.437648578461

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  1.045e-04  1.376e-03  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  1.000e+01  1.299e-03  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.050e+00  3.383e-02  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.179e-01  4.967e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/25590133/cmap_HighResolution_798163201_798422401_4FGL_J2141.8-3727_daily_bin2156.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2026-04-21 01:08:52.655587', job_id='25590133', GAL2='1.05', fit_tolerance='1e-08', EG2='0.82', EG='0.85', time_epoch_completed='1776758932.66', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.38e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='2156' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 21 01:08:52 PDT 2026

