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


Performing analysis on: 4FGL_J2141.8-3727_daily_bin2128
RA = 325.462, Dec = -37.4545
tmin = 790905601, tmax = 791164801
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='19717808', job_status='RUN', time_executed='2026-01-27 01:36:30.815999', time_epoch_executed='1769506590.82' WHERE source_name='4FGL J2141.8-3727' and cadence='daily' and bin_id='2128'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19717808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19717808/ft1_4FGL_J2141.8-3727_daily_bin2128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19717808/ft2_4FGL_J2141.8-3727_daily_bin2128.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19717808/ft1_4FGL_J2141.8-3727_daily_bin2128.fits outfile=/lscratch/kocevski/19717808/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin2128.fits ra=325.462 dec=-37.4545 rad=12.0 tmin=790905601.0 tmax=791164801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.47
user 2.24
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19717808/ft2_4FGL_J2141.8-3727_daily_bin2128.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/19717808/ft1_filteredMKT_4FGL_J2141.8-3727_daily_bin2128.fits evtable="EVENTS" outfile="/lscratch/kocevski/19717808/ft1_filtered_4FGL_J2141.8-3727_daily_bin2128.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 1.28
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 576

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19717808/ft1_filtered_4FGL_J2141.8-3727_daily_bin2128.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19717808/ft2_4FGL_J2141.8-3727_daily_bin2128.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19717808/ltcube_790905601_791164801_4FGL_J2141.8-3727_daily_bin2128.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/19717808/ft2_4FGL_J2141.8-3727_daily_bin2128.fits
.....................!
real 10.34
user 8.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19717808/ft1_filtered_4FGL_J2141.8-3727_daily_bin2128.fits evtable="EVENTS" scfile=/lscratch/kocevski/19717808/ft2_4FGL_J2141.8-3727_daily_bin2128.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19717808/ltcube_790905601_791164801_4FGL_J2141.8-3727_daily_bin2128.fits outfile=/lscratch/kocevski/19717808/expmap_790905601_791164801_4FGL_J2141.8-3727_daily_bin2128.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/19717808/ltcube_790905601_791164801_4FGL_J2141.8-3727_daily_bin2128.fits
.....................!
real 73.15
user 66.57
sys 4.32

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/19717808/ft1_filtered_4FGL_J2141.8-3727_daily_bin2128.fits scfile=/lscratch/kocevski/19717808/ft2_4FGL_J2141.8-3727_daily_bin2128.fits outfile=/lscratch/kocevski/19717808/cmap_790905601_791164801_4FGL_J2141.8-3727_daily_bin2128.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 1.19
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19717808/ft1_filtered_4FGL_J2141.8-3727_daily_bin2128.fits scfile=/lscratch/kocevski/19717808/ft2_4FGL_J2141.8-3727_daily_bin2128.fits outfile=/lscratch/kocevski/19717808/cmap_HighResolution_790905601_791164801_4FGL_J2141.8-3727_daily_bin2128.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 1.48
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19717808/ft1_filtered_4FGL_J2141.8-3727_daily_bin2128.fits evtable="EVENTS" scfile=/lscratch/kocevski/19717808/ft2_4FGL_J2141.8-3727_daily_bin2128.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19717808/Model_4FGL_J2141.8-3727_daily_bin2128.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/19717808/ft1_filtered_4FGL_J2141.8-3727_daily_bin2128.fits.....................!
real 26.02
user 22.55
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    136.93       1.0000          .0000       .10000E+07
     2 'Prefactor '    16.068       1.0000          .0000       .10000E+07
     3 'Prefactor '    37.162       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59962E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.5656       1.0000          .0000       .10000E+07
     6 'norm      '    .11467E-03   1.0000          .0000       .10000E+07
     7 'norm      '    8.1821       1.0000          .0000       .10000E+07
     8 'Prefactor '    .24996E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16927E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.1434       1.0000          .0000       .10000E+07
    11 'norm      '    6.7706       1.0000          .0000       .10000E+07
    12 'Prefactor '    26.266       1.0000          .0000       .10000E+07
    13 'Prefactor '    23.283       1.0000          .0000       .10000E+07
    14 'norm      '    .47129E-07   1.0000          .0000       .10000E+07
    15 'norm      '    2.0789       1.0000          .0000       .10000E+07
    16 'Prefactor '    23.931       1.0000          .0000       .10000E+07
    17 'Prefactor '    .93030E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11038E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .29871E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    16.257       1.0000          .0000       .10000E+07
    21 'Prefactor '    .80429E-04   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1615       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94119       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=   6367.800     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     1868 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     140.16        93.561        .43243E-06   -.13249E-01
   2  Prefactor     16.791        26.438       -.27913E-06    .26873E-02
   3  Prefactor     37.168        5.8899       -.11638E-06    .19908E-02
   4  Prefactor      .0000        4.6761        .13357E-06** at limit **
   5  Prefactor     7.6504        20.568        .30768E-06    .17986E-03
   6  norm           .0000        3.7820        .12026E-06** at limit **
   7  norm          8.1838        4.8014        .41090E-07    .23865E-05
   8  Prefactor      .0000        2.4731       -.53626E-08** at limit **
   9  Prefactor      .0000        7.7334       -.43543E-06** at limit **
  10  Prefactor     4.1809        8.8599       -.38502E-06    .76953E-04
  11  norm          6.7753        6.6294        .99593E-07    .21946E-04
  12  Prefactor     26.362        22.972        .11029E-06   -.95435E-02
  13  Prefactor     24.022        15.108        .23748E-06    .39548E-01
  14  norm           .0000        3.6394        .73490E-07** at limit **
  15  norm          2.0776        .55177        .36602E-07   -.31815E-03
  16  Prefactor     21.156        49.410       -.11930E-05    .49127E-02
  17  Prefactor      .0000        2.5849       -.22192E-06** at limit **
  18  Prefactor      .0000        2.7487        .11620E-07** at limit **
  19  Prefactor     .30531E-08    49.217       -.34412E-06** at limit **
  20  Prefactor     15.903        23.738        .47099E-06    .52524E-02
  21  Prefactor     .17042E-07    74.495       -.22813E-05** at limit **
  22  Normalizat    1.1643        .23566        .82248E-05   -.13991E-04
  23  Prefactor     .93946        .15102       -.28108E-05   -.17899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 140.157
  Prefactor  = 16.7907
  Prefactor  = 37.1682
  Prefactor  = 0
  Prefactor  = 7.65038
  norm       = 0
  norm       = 8.1838
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.18093
  norm       = 6.7753
  Prefactor  = 26.3616
  Prefactor  = 24.0216
  norm       = 0
  norm       = 2.07761
  Prefactor  = 21.156
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.05311e-09
  Prefactor  = 15.9034
  Prefactor  = 1.70419e-08
  Normalizat = 1.16433
  Prefactor  = 0.93946
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.800     FROM HESSE     STATUS=OK           416 CALLS     2284 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     140.16        94.660        .85465E-04   -1.5471    
   2  Prefactor     16.791        26.406        .24959E-03   -1.5626    
   3  Prefactor     37.168        26.329        .16406E-03   -1.5586    
   4  Prefactor      .0000        4.6601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6504        20.619        .36436E-03   -1.5653    
   6  norm           .0000        3.7808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1838        4.8077        .35025E-03   -1.5651    
   8  Prefactor      .0000        2.4715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        7.7279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1809        8.8760        .49494E-03   -1.5667    
  11  norm          6.7753        6.6278        .38537E-03   -1.5656    
  12  Prefactor     26.362        31.703        .19516E-03   -1.5605    
  13  Prefactor     24.022        72.177        .20729E-03   -1.5610    
  14  norm           .0000        3.6239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0776        .55136        .66625E-03   -1.5679    
  16  Prefactor     21.156        49.358        .20447E-03   -1.5616    
  17  Prefactor      .0000        2.5840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.7432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .30531E-08    49.251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.903        24.252        .24814E-03   -1.5628    
  21  Prefactor     .17042E-07    74.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1643        .20569        .67362E-01   -.87712    
  23  Prefactor     .93946        .13197        .45528E-01   -.94776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03871e-07
Minuit parameter uncertainties:
  1  94.6606
  2  26.4065
  3  26.3291
  4  1.59314e-06
  5  20.6191
  6  6.19654e-07
  7  4.8077
  8  2.68762e-08
  9  1.02552e-06
  10  8.87606
  11  6.62784
  12  31.7031
  13  72.1799
  14  8.03531e-08
  15  0.551363
  16  49.3586
  17  6.42602e-08
  18  4.07262e-07
  19  0.000776246
  20  24.2523
  21  0.00225542
  22  0.205828
  23  0.132013
Done.

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

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  2.688e-08  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:  9.395e-01  1.320e-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:  1.164e+00  2.058e-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: 6.77643657322e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00531051942316 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19717808/likelihoodResults_790905601_791164801_4FGL_J2141.8-3727_daily_bin2128.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) = 6367.80138106
delta logL = -0.0011818607145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6367.80019974
delta logL = -5.46891897102e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51070E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .43901       1.0000          .0000       10.000    
     3 'Normalizat'    1.1645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93931       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6367.800     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      256 TOTAL
                     EDM=   .87E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8674        .42118E-03** at limit **
   2  Index         3.2565        1.7734       -.15600E-04     .0000    
   3  Normalizat    1.1643        1.1199        .23195E-05    .13277E-04
   4  Prefactor     .93946        1.2823       -.82324E-06    .11067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.25652
  Normalizat = 1.16433
  Prefactor  = 0.93946
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6367.800     FROM HESSE     STATUS=FAILED         9 CALLS      265 TOTAL
                     EDM=   .87E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1907        2.1955       -.15600E-04   -.35618    
   3  Normalizat    1.1643        1.1199        .23195E-05   -.87712    
   4  Prefactor     .93946        1.2823       -.82324E-06   -.94776    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.65635e-12
Minuit parameter uncertainties:
  1  1.2141e-05
  2  1.81875
  3  1.14417
  4  1.3276
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) = 6367.8001992
delta logL = 0.0

Extracting fit parameters...

4FGL J2141.8-3727
   Spectrum: PowerLaw
267    Prefactor:  0.000e+00  1.214e-05  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.257e+00  1.819e+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:  9.395e-01  1.328e+00  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:  1.164e+00  1.144e+00  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/19717808/cmap_HighResolution_790905601_791164801_4FGL_J2141.8-3727_daily_bin2128.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.78e-08', time_completed='2026-01-27 01:44:48.694122', job_id='19717808', GAL2='0.94', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1769507088.69', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='2128' AND source_name='4FGL J2141.8-3727' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 27 01:44:48 PST 2026

