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


Performing analysis on: 4FGL_J2134.5-2130_daily_bin1898
RA = 323.641, Dec = -21.5029
tmin = 731289601, tmax = 731548801
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='44569123', job_status='RUN', time_executed='2024-04-20 19:20:38.922099', time_epoch_executed='1713666038.92' WHERE source_name='4FGL J2134.5-2130' and cadence='daily' and bin_id='1898'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44569123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44569123/ft1_4FGL_J2134.5-2130_daily_bin1898.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44569123/ft1_4FGL_J2134.5-2130_daily_bin1898.fits outfile=/lscratch/kocevski/44569123/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1898.fits ra=323.641 dec=-21.5029 rad=12.0 tmin=731289601.0 tmax=731548801.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.47
user 2.22
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.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/44569123/ft1_filteredMKT_4FGL_J2134.5-2130_daily_bin1898.fits evtable="EVENTS" outfile="/lscratch/kocevski/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.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.36
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 829

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44569123/ltcube_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.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/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits
.....................!
real 6.95
user 6.66
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.fits evtable="EVENTS" scfile=/lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44569123/ltcube_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.fits outfile=/lscratch/kocevski/44569123/expmap_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.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/44569123/ltcube_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.fits
.....................!
real 59.01
user 55.47
sys 3.17

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

Setting source of interest to:
4FGL J2134.5-2130 @ 323.641 -21.5029

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.fits scfile=/lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits outfile=/lscratch/kocevski/44569123/cmap_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.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.641 yref=-21.5029 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.36
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.fits scfile=/lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits outfile=/lscratch/kocevski/44569123/cmap_HighResolution_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.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.641 yref=-21.5029 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.36
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.fits evtable="EVENTS" scfile=/lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44569123/Model_4FGL_J2134.5-2130_daily_bin1898.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/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.fits.....................!
real 26.03
user 24.91
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.fits', '/lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits', expMap='/lscratch/kocevski/44569123/expmap_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.fits', expCube='/lscratch/kocevski/44569123/ltcube_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44569123/Model_4FGL_J2134.5-2130_daily_bin1898.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2134.5-2130'

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  1.845e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.996e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44569123/ft1_filtered_4FGL_J2134.5-2130_daily_bin1898.fits
Spacecraft file(s): /lscratch/kocevski/44569123/ft2_4FGL_J2134.5-2130_daily_bin1898.fits
Exposure map: /lscratch/kocevski/44569123/expmap_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.fits
Exposure cube: /lscratch/kocevski/44569123/ltcube_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44569123/Model_4FGL_J2134.5-2130_daily_bin1898.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) = 8803.67150076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19640E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .30201E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .36967       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11892E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.4740       1.0000          .0000       .10000E+07
     6 'norm      '    .11118E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .76050E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11262E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.463       1.0000          .0000       .10000E+07
    10 'norm      '    .23746E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10846       1.0000          .0000       .10000E+07
    12 'Prefactor '    .33214       1.0000          .0000       .10000E+07
    13 'norm      '    .37911E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .56599E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .27911E-02   1.0000          .0000       .10000E+07
    16 'norm      '    1.1407       1.0000          .0000       .10000E+07
    17 'Prefactor '    .49983E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.7660       1.0000          .0000       .10000E+07
    19 'Prefactor '    14.496       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3122       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8803.577     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1278 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17486E-07    4.1923        .97448E-07** at limit **
   2  Prefactor      .0000        36.074        .34349E-06** at limit **
   3  Prefactor     .37966        1.1609        .52241E-07   -.42612E-02
   4  Prefactor     .38913E-07    2.6722        .29607E-06** at limit **
   5  Prefactor     5.4330        8.9514        .16410E-06    .18524E-01
   6  norm          .11935E-07    5.0290        .23240E-06** at limit **
   7  Prefactor      .0000        1.4966        .18924E-07** at limit **
   8  Prefactor     .33307E-08    8.7300       -.10483E-06** at limit **
   9  Prefactor     10.278        1.5762       -.13889E-07   -.21729E-02
  10  norm           .0000        2.3221       -.49980E-07** at limit **
  11  Prefactor     .54633E-01    395.54       -.21475E-05** at limit **
  12  Prefactor     .16946E-04    45.374        .15977E-05** at limit **
  13  norm          .77827E-06    6.8447        .66338E-06** at limit **
  14  Prefactor     .13302E-05    19.652        .63887E-06** at limit **
  15  Prefactor     .55511E-10    4.1260       -.49698E-07** at limit **
  16  norm          1.1409        .34746        .24946E-08   -.28186E-02
  17  Prefactor     .12601E-07    11.315       -.17285E-06** at limit **
  18  Prefactor     2.7711        8.3998        .18847E-06    .12220E-01
  19  Prefactor     14.522        1.1633       -.14105E-07    .87705E-03
  20  Normalizat    1.3129        .21332       -.15914E-05   -.10241E-04
  21  Prefactor     .92870        .13024        .12049E-05    .95369E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7486e-08
  Prefactor  = 0
  Prefactor  = 0.379662
  Prefactor  = 3.89133e-08
  Prefactor  = 5.433
  norm       = 1.19349e-08
  Prefactor  = 0
  Prefactor  = 3.33067e-09
  Prefactor  = 10.2775
  norm       = 0
  Prefactor  = 0.054633
  Prefactor  = 1.69455e-05
  norm       = 7.78266e-07
  Prefactor  = 1.33021e-06
  Prefactor  = 5.55112e-11
  norm       = 1.1409
  Prefactor  = 1.2601e-08
  Prefactor  = 2.77109
  Prefactor  = 14.5222
  Normalizat = 1.31294
  Prefactor  = 0.928697
 **********
 **   18 **HESSE 
 **********

 FCN=   8803.577     FROM HESSE     STATUS=OK           379 CALLS     1657 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17486E-07    6.0330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        10.160        .94257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .37966        4.3533        .60449E-02   -1.5696    
   4  Prefactor     .38913E-07    5.7599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4330        9.2992        .42923E-03   -1.5661    
   6  norm          .11935E-07    5.3554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.4974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33307E-08    8.8048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.278        14.193        .30950E-03   -1.5644    
  10  norm           .0000        2.3231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .54633E-01    9.0286        .10201E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16946E-04    130.67        .97811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .77827E-06    2.4429        .48593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .13302E-05    23.603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    4.2041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1409        .36043        .66544E-03   -1.5687    
  17  Prefactor     .12601E-07    11.314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7711        8.5239        .61171E-03   -1.5675    
  19  Prefactor     14.522        12.040        .26281E-03   -1.5632    
  20  Normalizat    1.3129        .18594        .62365E-01   -.83181    
  21  Prefactor     .92870        .10820        .45372E-01   -.95145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02303e-07
Minuit parameter uncertainties:
  1  0.000649426
  2  2.92196e-05
  3  2.57121
  4  0.000947069
  5  9.29919
  6  0.000505632
  7  6.07927e-06
  8  0.000341545
  9  14.1926
  10  5.71308e-06
  11  1.40465
  12  0.0941127
  13  0.00275774
  14  0.0112067
  15  3.16808e-05
  16  0.360435
  17  0.000755505
  18  8.52393
  19  12.0402
  20  0.186039
  21  0.108221
Done.

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

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  0.000e+00  6.079e-06  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  1.996e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  9.287e-01  1.082e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.313e+00  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 323.641 -21.503
Photon Flux Upper Limit: 3.20218494135e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00240088749211 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44569123/likelihoodResults_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.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): 102
logL (Free Index) = 8803.57697489
delta logL = -0.000157945547471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8803.57681844
delta logL = -1.50209416461e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8803.577     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      247 TOTAL
                     EDM=   .27E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .92006        .42118E-03** at limit **
   2  Index         2.3440        1.7521        .61524E-05     .0000    
   3  Normalizat    1.3129        1.0766       -.28619E-05    .10796E-04
   4  Prefactor     .92870        1.2721        .15843E-05    .63662E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.34399
  Normalizat = 1.31294
  Prefactor  = 0.928697
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8803.577     FROM HESSE     STATUS=FAILED         9 CALLS      256 TOTAL
                     EDM=   .27E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .92006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .61395        1.9678        .61524E-05   -.56002    
   3  Normalizat    1.3129        1.0766       -.28619E-05   -.83181    
   4  Prefactor     .92870        1.2721        .15843E-05   -.95145    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.65922e-13
Minuit parameter uncertainties:
  1  8.14938e-07
  2  1.80631
  3  1.09586
  4  1.31683
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) = 8803.57681694
delta logL = 0.0

Extracting fit parameters...

4FGL J2134.5-2130
   Spectrum: PowerLaw
275    Prefactor:  0.000e+00  8.149e-07  0.000e+00  1.000e+06 ( 1.000e-13)
276        Index:  2.344e+00  1.806e+00  0.000e+00  1.000e+01 (-1.000e+00)
277        Scale:  2.061e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  9.287e-01  1.317e+00  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.313e+00  1.096e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 323.641 -21.503

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/44569123/cmap_HighResolution_731289601_731548801_4FGL_J2134.5-2130_daily_bin1898.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-03', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2024-04-20 19:26:20.018230', job_id='44569123', GAL2='0.93', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1713666380.02', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1898' AND source_name='4FGL J2134.5-2130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 20 19:26:20 PDT 2024

