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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin2135
RA = 337.758, Dec = -44.2791
tmin = 792720001, tmax = 792979201
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='21228813', job_status='RUN', time_executed='2026-02-17 01:12:14.073029', time_epoch_executed='1771319534.07' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='2135'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/21228813

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/21228813/ft1_4FGL_J2231.0-4416_daily_bin2135.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/21228813/ft1_4FGL_J2231.0-4416_daily_bin2135.fits outfile=/lscratch/kocevski/21228813/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin2135.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=792720001.0 tmax=792979201.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.85
user 2.21
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.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/21228813/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin2135.fits evtable="EVENTS" outfile="/lscratch/kocevski/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.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.81
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 523

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.fits" evtable="EVENTS" scfile=/lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits sctable="SC_DATA" outfile=/lscratch/kocevski/21228813/ltcube_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.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/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits
.....................!
real 8.76
user 7.99
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.fits evtable="EVENTS" scfile=/lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits sctable="SC_DATA" expcube=/lscratch/kocevski/21228813/ltcube_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.fits outfile=/lscratch/kocevski/21228813/expmap_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.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/21228813/ltcube_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.fits
.....................!
real 67.24
user 62.37
sys 3.93

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

Setting source of interest to:
4FGL J2231.0-4416 @ 337.758 -44.2791

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.fits scfile=/lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits outfile=/lscratch/kocevski/21228813/cmap_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.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=337.758 yref=-44.2791 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.72
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.fits scfile=/lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits outfile=/lscratch/kocevski/21228813/cmap_HighResolution_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.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=337.758 yref=-44.2791 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.70
user 0.20
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.fits evtable="EVENTS" scfile=/lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/21228813/Model_4FGL_J2231.0-4416_daily_bin2135.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/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.fits.....................!
real 17.12
user 15.85
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.fits', '/lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits', expMap='/lscratch/kocevski/21228813/expmap_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.fits', expCube='/lscratch/kocevski/21228813/ltcube_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/21228813/Model_4FGL_J2231.0-4416_daily_bin2135.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2231.0-4416'

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.304e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/21228813/ft1_filtered_4FGL_J2231.0-4416_daily_bin2135.fits
Spacecraft file(s): /lscratch/kocevski/21228813/ft2_4FGL_J2231.0-4416_daily_bin2135.fits
Exposure map: /lscratch/kocevski/21228813/expmap_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.fits
Exposure cube: /lscratch/kocevski/21228813/ltcube_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/21228813/Model_4FGL_J2231.0-4416_daily_bin2135.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) = 5790.71528528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4825       1.0000          .0000       .10000E+07
     2 'Prefactor '    .52756E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .21567E-03   1.0000          .0000       .10000E+07
     4 'norm      '    10.672       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54913E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4649       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.3703       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11131E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8242       1.0000          .0000       .10000E+07
    10 'Prefactor '    .46827       1.0000          .0000       .10000E+07
    11 'norm      '    5.5349       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.954       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10024E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25097E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10772E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.1262       1.0000          .0000       .10000E+07
    17 'Prefactor '    17.090       1.0000          .0000       .10000E+07
    18 'Prefactor '    26.324       1.0000          .0000       .10000E+07
    19 'Prefactor '    .95151E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .33129E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    5.2572       1.0000          .0000       .10000E+07
    22 'norm      '    .51211E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .16552E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .22243E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .28933       1.0000          .0000       .10000E+07
    26 'Prefactor '    .58022E-02   1.0000          .0000       .10000E+07
    27 'norm      '    .82737E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .31429E-03   1.0000          .0000       .10000E+07
    29 'norm      '    .10764E-06   1.0000          .0000       .10000E+07
    30 'Normalizat'    .51473       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2207       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5790.681     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     2968 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4844        2.1741       -.51502E-07   -.42045E-02
   2  Prefactor      .0000        21.607       -.59431E-07** at limit **
   3  Prefactor     .54068E-07    1.5729       -.30591E-06** at limit **
   4  norm          10.704        4.8797       -.10317E-06   -.14578E-02
   5  Prefactor     .27589E-07    3.8336        .14995E-06** at limit **
   6  Prefactor     1.4321        11.427        .54732E-06    .16100E-02
   7  Prefactor     8.7143        7.0907        .16666E-07   -.18058E-01
   8  Prefactor     .75856E-06    10.187        .34236E-07** at limit **
   9  Prefactor     3.8242        3.1911        .33162E-06    .20527E-02
  10  Prefactor     .18898E-05    186.18       -.71208E-06** at limit **
  11  norm          5.5246        3.4235       -.13267E-06   -.40367E-01
  12  Prefactor     10.932        6.7086       -.22304E-06   -.31998E-02
  13  Prefactor      .0000        1.0712       -.24168E-06** at limit **
  14  Prefactor     .59730E-06    8.3539        .46256E-06** at limit **
  15  Prefactor     .21955E-06    8.0776        .31724E-06** at limit **
  16  Prefactor     3.1260        2.2201       -.80886E-09    .75439E-02
  17  Prefactor     17.078        1.8608       -.61339E-08    .11723E-01
  18  Prefactor     26.550        4.6253       -.44544E-07    .41112E-01
  19  Prefactor      .0000        1.4891       -.12149E-06** at limit **
  20  Prefactor      .0000        23.667        .42572E-06** at limit **
  21  Prefactor     5.2183        10.579       -.52778E-06   -.67006E-02
  22  norm          .18319E-08    3.6822       -.16625E-06** at limit **
  23  norm          .27756E-09    2.0261       -.59662E-07** at limit **
  24  norm           .0000        1.4030       -.70644E-07** at limit **
  25  Prefactor     .30545        12.631       -.73096E-06   -.18250E-02
  26  Prefactor     .14194E-06    4.7416        .25687E-06** at limit **
  27  norm           .0000        1.0690       -.20806E-06** at limit **
  28  Prefactor     .87708E-08    3.2244       -.34865E-06** at limit **
  29  norm           .0000        .77638        .90864E-07** at limit **
  30  Normalizat    .51453        .19048        .35930E-05    .34983E-04
  31  Prefactor     1.2214        .18994       -.21428E-05    .37123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.48443
  Prefactor  = 0
  Prefactor  = 5.40679e-08
  norm       = 10.7042
  Prefactor  = 2.7589e-08
  Prefactor  = 1.4321
  Prefactor  = 8.7143
  Prefactor  = 7.5856e-07
  Prefactor  = 3.8242
  Prefactor  = 1.88977e-06
  norm       = 5.52456
  Prefactor  = 10.9325
  Prefactor  = 0
  Prefactor  = 5.973e-07
  Prefactor  = 2.19547e-07
  Prefactor  = 3.12596
  Prefactor  = 17.078
  Prefactor  = 26.5499
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.21832
  norm       = 1.83187e-09
  norm       = 2.77556e-10
  norm       = 0
  Prefactor  = 0.305454
  Prefactor  = 1.41942e-07
  norm       = 0
  Prefactor  = 8.77076e-09
  norm       = 0
  Normalizat = 0.514528
  Prefactor  = 1.22142
 **********
 **   18 **HESSE 
 **********

 FCN=   5790.681     FROM HESSE     STATUS=OK           686 CALLS     3654 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4844        7.3767        .36640E-03   -1.5653    
   2  Prefactor      .0000        21.380        .15432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .54068E-07    4.2460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.704        4.8989        .30644E-03   -1.5643    
   5  Prefactor     .27589E-07    8.4569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4321        11.630        .88815E-03   -1.5684    
   7  Prefactor     8.7143        31.008        .32715E-03   -1.5649    
   8  Prefactor     .75856E-06    16.568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8242        3.1987        .51587E-03   -1.5669    
  10  Prefactor     .18898E-05    198.02        .81968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5246        6.9487        .42682E-03   -1.5661    
  12  Prefactor     10.932        7.9422        .30246E-03   -1.5642    
  13  Prefactor      .0000        1.0692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .59730E-06    12.727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .21955E-06    10.969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1260        16.423        .57316E-03   -1.5673    
  17  Prefactor     17.078        18.745        .24200E-03   -1.5625    
  18  Prefactor     26.550        25.246        .19494E-03   -1.5605    
  19  Prefactor      .0000        1.4884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        24.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2183        11.267        .43814E-03   -1.5662    
  22  norm          .18319E-08    4.1347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .27756E-09    2.0367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.4027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .30545        2.5985        .67072E-02   -1.5697    
  26  Prefactor     .14194E-06    8.1457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        1.0648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .87708E-08    3.7975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm           .0000        .75779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .51453        .17300        .65558E-01   -1.1175    
  31  Prefactor     1.2214        .16592        .34160E-01   -.85675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57667e-07
Minuit parameter uncertainties:
  1  7.37673
  2  1.99036e-05
  3  0.000958332
  4  4.89891
  5  0.000966472
  6  8.16222
  7  31.0086
  8  0.00709025
  9  3.19873
  10  0.0386899
  11  6.94867
  12  7.94221
  13  9.65703e-07
  14  0.00551442
  15  0.0031038
  16  14.3303
  17  18.7455
  18  25.2465
  19  2.45076e-06
  20  3.2444e-05
  21  11.2675
  22  0.000174556
  23  4.61648e-05
  24  1.23672e-06
  25  1.78183
  26  0.00215072
  27  4.12608e-06
  28  0.000364454
  29  1.31005e-06
  30  0.173184
  31  0.165993
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  0.000e+00  9.657e-07  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.221e+00  1.660e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  5.145e-01  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 4.5036260624e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00348620694725 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/21228813/likelihoodResults_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.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) = 5790.6812836
delta logL = -0.000589480810959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5790.68069476
delta logL = -6.3945662987e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5790.681     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      258 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .61317        .42118E-03** at limit **
   2  Index         3.0694        1.7376       -.78833E-06     .0000    
   3  Normalizat    .51453        .84695        .50820E-05    .45176E-04
   4  Prefactor     1.2214        1.0964       -.36484E-05    .48019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.06942
  Normalizat = 0.514528
  Prefactor  = 1.22142
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5790.681     FROM HESSE     STATUS=FAILED         9 CALLS      267 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .61317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0635        2.1482       -.78833E-06   -.39642    
   3  Normalizat    .51453        .84695        .50820E-05   -1.1175    
   4  Prefactor     1.2214        1.0964       -.36484E-05   -.85675    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.23797e-12
Minuit parameter uncertainties:
  1  2.96505e-08
  2  1.7816
  3  0.869681
  4  1.11794
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) = 5790.68069412
delta logL = 0.0

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  0.000e+00  2.965e-08  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  3.069e+00  1.782e+00  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.221e+00  1.118e+00  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  5.145e-01  8.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 337.758 -44.279

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/21228813/cmap_HighResolution_792720001_792979201_4FGL_J2231.0-4416_daily_bin2135.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2026-02-17 01:18:23.074190', job_id='21228813', GAL2='1.22', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1771319903.07', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='2135' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 17 01:18:23 PST 2026

