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


Performing analysis on: 4FGL_J2132.0-5418_weekly_bin859
RA = 323.023, Dec = -54.3125
tmin = 758505601, tmax = 759110401
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='62412127', job_status='RUN', time_executed='2025-01-21 01:31:26.258574', time_epoch_executed='1737451886.26' WHERE source_name='4FGL J2132.0-5418' and cadence='weekly' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62412127

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/62412127/ft1_4FGL_J2132.0-5418_weekly_bin859.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62412127/ft1_4FGL_J2132.0-5418_weekly_bin859.fits outfile=/lscratch/kocevski/62412127/ft1_filteredMKT_4FGL_J2132.0-5418_weekly_bin859.fits ra=323.023 dec=-54.3125 rad=12.0 tmin=758505601.0 tmax=759110401.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.20
user 2.95
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.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/62412127/ft1_filteredMKT_4FGL_J2132.0-5418_weekly_bin859.fits evtable="EVENTS" outfile="/lscratch/kocevski/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.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.55
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 846

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62412127/ltcube_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.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/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits
.....................!
real 18.41
user 18.03
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62412127/ltcube_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.fits outfile=/lscratch/kocevski/62412127/expmap_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.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/62412127/ltcube_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.fits
.....................!
real 66.42
user 62.33
sys 3.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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2132.0-5418 @ 323.023 -54.3125

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.fits scfile=/lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits outfile=/lscratch/kocevski/62412127/cmap_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.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=323.023 yref=-54.3125 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.41
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.fits scfile=/lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits outfile=/lscratch/kocevski/62412127/cmap_HighResolution_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.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=323.023 yref=-54.3125 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.41
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/62412127/Model_4FGL_J2132.0-5418_weekly_bin859.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/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.fits.....................!
real 26.88
user 25.95
sys 0.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.fits', '/lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits', expMap='/lscratch/kocevski/62412127/expmap_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.fits', expCube='/lscratch/kocevski/62412127/ltcube_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/62412127/Model_4FGL_J2132.0-5418_weekly_bin859.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2132.0-5418'

4FGL J2132.0-5418
   Spectrum: PowerLaw
293    Prefactor:  6.328e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
294        Index:  2.416e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  9.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/62412127/ft1_filtered_4FGL_J2132.0-5418_weekly_bin859.fits
Spacecraft file(s): /lscratch/kocevski/62412127/ft2_4FGL_J2132.0-5418_weekly_bin859.fits
Exposure map: /lscratch/kocevski/62412127/expmap_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.fits
Exposure cube: /lscratch/kocevski/62412127/ltcube_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/62412127/Model_4FGL_J2132.0-5418_weekly_bin859.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9065.78269156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22565E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .44843E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .13878E-07   1.0000          .0000       .10000E+07
     4 'norm      '    .11546E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.4664       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13795       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13374E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    6.5652       1.0000          .0000       .10000E+07
     9 'norm      '    16.960       1.0000          .0000       .10000E+07
    10 'norm      '    .34144       1.0000          .0000       .10000E+07
    11 'Prefactor '    82.527       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.6349       1.0000          .0000       .10000E+07
    13 'Prefactor '    22.079       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.3400       1.0000          .0000       .10000E+07
    15 'norm      '    .69344E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.3005       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.6774       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.4162       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96728       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9063.730     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      905 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    1.4631        .51623E-07** at limit **
   2  Prefactor     .11102E-08    11.201        .15421E-06** at limit **
   3  norm          .16653E-09    .91535       -.10150E-06** at limit **
   4  norm           .0000        .58304       -.66945E-08** at limit **
   5  Prefactor     7.5286        2.7866        .13191E-07   -.41656E-01
   6  Prefactor     .51070E-08    64.748       -.15292E-07** at limit **
   7  Prefactor      .0000        14.507        .11842E-06** at limit **
   8  Prefactor     6.5600        5.5433       -.69948E-08    .10989E-03
   9  norm          16.969        8.9764        .13246E-07    .59970E-02
  10  norm          .34140        .56934        .55683E-08    .39712E-03
  11  Prefactor     81.841        48.089       -.17527E-08    .63599E-01
  12  Prefactor     6.9736        11.460        .23696E-07    .55520E-03
  13  Prefactor     22.028        5.6781        .32529E-07    .32987E-02
  14  Prefactor     .91038E-07    126.96        .63084E-06** at limit **
  15  norm          .99920E-09    6.7110       -.13880E-06** at limit **
  16  Prefactor     7.2801        5.9753       -.10552E-07    .26083E-02
  17  Prefactor     8.7341        9.1416        .72114E-08   -.10858    
  18  Normalizat    1.4165        .24506       -.33835E-05   -.15821E-03
  19  Prefactor     .96726        .15223        .21999E-05    .38998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-09
  norm       = 1.66533e-10
  norm       = 0
  Prefactor  = 7.52857
  Prefactor  = 5.10703e-09
  Prefactor  = 0
  Prefactor  = 6.55997
  norm       = 16.9685
  norm       = 0.341398
  Prefactor  = 81.8408
  Prefactor  = 6.97358
  Prefactor  = 22.028
  Prefactor  = 9.10383e-08
  norm       = 9.99201e-10
  Prefactor  = 7.28012
  Prefactor  = 8.73408
  Normalizat = 1.41654
  Prefactor  = 0.967264
 **********
 **   18 **HESSE 
 **********

 FCN=   9063.730     FROM HESSE     STATUS=OK           304 CALLS     1209 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    1.4590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-08    11.198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .16653E-09    .91193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .58264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5286        12.106        .36680E-03   -1.5653    
   6  Prefactor     .51070E-08    66.195        .13005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        14.496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5600        5.5948        .39143E-03   -1.5657    
   9  norm          16.969        9.1974        .24293E-03   -1.5626    
  10  norm          .34140        .56988        .96611E-04   -1.5696    
  11  Prefactor     81.841        51.156        .11009E-03   -1.5527    
  12  Prefactor     6.9736        11.539        .38934E-03   -1.5655    
  13  Prefactor     22.028        5.6803        .21288E-03   -1.5614    
  14  Prefactor     .91038E-07    126.31        .55356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .99920E-09    6.6746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.2801        6.0809        .37098E-03   -1.5654    
  17  Prefactor     8.7341        24.499        .34004E-03   -1.5649    
  18  Normalizat    1.4165        .20482        .66596E-01   -.80151    
  19  Prefactor     .96726        .12709        .45857E-01   -.93829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66096e-07
Minuit parameter uncertainties:
  1  1.6236e-05
  2  0.000224921
  3  2.55417e-05
  4  1.49843e-06
  5  12.1059
  6  0.00116551
  7  2.7002e-05
  8  5.59485
  9  9.19743
  10  0.569878
  11  51.1567
  12  11.5388
  13  5.68031
  14  0.00678144
  15  0.000164358
  16  6.08093
  17  24.4989
  18  0.204941
  19  0.127125
Done.

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

Extracting fit parameters...

4FGL J2132.0-5418
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  2.700e-05  0.000e+00  1.000e+06 ( 1.000e-13)
294        Index:  2.416e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  9.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.673e-01  1.271e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.417e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 323.023 -54.312
Photon Flux Upper Limit: 7.06036383496e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00546150611383 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/62412127/likelihoodResults_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.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) = 9063.76377466
delta logL = -0.0333557507674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9063.58910481
delta logL = 0.141314102846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50237E-05   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.3890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97879       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9063.730     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      490 TOTAL
                     EDM=   .54E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8433        .42118E-03** at limit **
   2  Index         .79560        .85325       -.25634E-06     .0000    
   3  Normalizat    1.4165        1.0724       -.62486E-05    .49906E-05
   4  Prefactor     .96726        1.3123       -.81473E-06   -.44286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.795603
  Normalizat = 1.41654
  Prefactor  = 0.967262
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9063.730     FROM HESSE     STATUS=FAILED         9 CALLS      499 TOTAL
                     EDM=   .54E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6517        1.6416       -.25634E-06   -2.1427    
   3  Normalizat    1.4165        1.0724       -.62486E-05   -.80151    
   4  Prefactor     .96726        1.3123       -.81473E-06   -2.2033    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.42392e-12
Minuit parameter uncertainties:
  1  6.57329e-06
  2  0.868059
  3  1.09019
  4  1.35973
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) = 9063.73041891
delta logL = 6.91215973347e-11

Extracting fit parameters...

4FGL J2132.0-5418
   Spectrum: PowerLaw
293    Prefactor:  0.000e+00  6.573e-06  0.000e+00  1.000e+06 ( 1.000e-13)
294        Index:  7.956e-01  8.681e-01  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  9.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.673e-01  1.360e+00  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.417e+00  1.090e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 323.023 -54.312

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/62412127/cmap_HighResolution_758505601_759110401_4FGL_J2132.0-5418_weekly_bin859.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2025-01-21 01:36:13.478307', job_id='62412127', GAL2='0.97', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1737452173.48', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.91e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='859' AND source_name='4FGL J2132.0-5418' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 21 01:36:13 PST 2025

