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


Performing analysis on: 4FGL_J1129.1-5230_daily_bin1869
RA = 172.286, Dec = -52.513
tmin = 723772801, tmax = 724032001
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='35826799', job_status='RUN', time_executed='2023-12-12 00:25:45.048322', time_epoch_executed='1702369545.05' WHERE source_name='4FGL J1129.1-5230' and cadence='daily' and bin_id='1869'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35826799

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35826799/ft1_4FGL_J1129.1-5230_daily_bin1869.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35826799/ft1_4FGL_J1129.1-5230_daily_bin1869.fits outfile=/lscratch/kocevski/35826799/ft1_filteredMKT_4FGL_J1129.1-5230_daily_bin1869.fits ra=172.286 dec=-52.513 rad=12.0 tmin=723772801.0 tmax=724032001.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.40
user 3.05
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.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/35826799/ft1_filteredMKT_4FGL_J1129.1-5230_daily_bin1869.fits evtable="EVENTS" outfile="/lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.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.43
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 4024

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35826799/ltcube_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.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/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits
.....................!
real 8.76
user 8.40
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.fits evtable="EVENTS" scfile=/lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35826799/ltcube_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.fits outfile=/lscratch/kocevski/35826799/expmap_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.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/35826799/ltcube_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.fits
.....................!
real 75.06
user 70.79
sys 3.94

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 270 point sources and 7 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1129.1-5230 @ 172.286 -52.513

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.fits scfile=/lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits outfile=/lscratch/kocevski/35826799/cmap_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.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=172.286 yref=-52.513 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.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.fits scfile=/lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits outfile=/lscratch/kocevski/35826799/cmap_HighResolution_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.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=172.286 yref=-52.513 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.42
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.fits evtable="EVENTS" scfile=/lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35826799/Model_4FGL_J1129.1-5230_daily_bin1869.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 CenA Lobes
adding source EG_v02
adding source FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source Westerlund 2
Working on...
/lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.fits.....................!
real 401.51
user 398.83
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.fits', '/lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits', expMap='/lscratch/kocevski/35826799/expmap_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.fits', expCube='/lscratch/kocevski/35826799/ltcube_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35826799/Model_4FGL_J1129.1-5230_daily_bin1869.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.1-5230'

4FGL J1129.1-5230
   Spectrum: PowerLaw
446    Prefactor:  3.338e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
447        Index:  2.246e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
448        Scale:  2.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35826799/ft1_filtered_4FGL_J1129.1-5230_daily_bin1869.fits
Spacecraft file(s): /lscratch/kocevski/35826799/ft2_4FGL_J1129.1-5230_daily_bin1869.fits
Exposure map: /lscratch/kocevski/35826799/expmap_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.fits
Exposure cube: /lscratch/kocevski/35826799/ltcube_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35826799/Model_4FGL_J1129.1-5230_daily_bin1869.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) = 35956.6253295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58778E-04   1.0000          .0000       .10000E+07
     2 'norm      '    3.8609       1.0000          .0000       .10000E+07
     3 'Prefactor '    .70629E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .76514       1.0000          .0000       .10000E+07
     5 'norm      '    8.0005       1.0000          .0000       .10000E+07
     6 'norm      '    5.4911       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6528       1.0000          .0000       .10000E+07
     8 'norm      '    .33744E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    73.885       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16709E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.668       1.0000          .0000       .10000E+07
    12 'Prefactor '    .97635       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.745       1.0000          .0000       .10000E+07
    14 'norm      '    .55089E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0077       1.0000         .10000E-01   10.000    
    16 'norm      '     .0000       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.0152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35956.61     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1240 TOTAL
                     EDM=   .19E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        4.1316       -.29560E-07** at limit **
   2  norm          3.8603        1.3833       -.15811E-07    .11014E-03
   3  Prefactor      .0000        6.7413       -.57060E-07** at limit **
   4  Prefactor     .76580        1.2619        .13101E-07   -.99904E-04
   5  norm          8.0017        3.0741        .16247E-07   -.51145E-04
   6  norm          5.4957        2.1492        .41063E-08   -.81301E-04
   7  Prefactor     7.7022        7.1491        .11025E-06   -.75585E-04
   8  norm           .0000        6.3513        .95399E-07** at limit **
   9  Prefactor     73.902        1.1249        .55050E-09   -.36750E-02
  10  Prefactor      .0000        48.682        .24232E-06** at limit **
  11  Prefactor     26.783        28.587       -.17922E-06   -.24769E-05
  12  Prefactor     .86561        3.7015        .18274E-05   -.72864E-05
  13  Prefactor     10.973        24.685       -.12521E-06   -.15698E-04
  14  norm           .0000        1.8498        .14738E-07** at limit **
  15  Normalizat    1.0058        .21191        .33133E-06    .74627E-06
  16  norm           .0000        .36117        .82118E-08** at limit **
  17  Prefactor     1.0153        .30770E-01   -.17442E-06    .14686E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 3.86031
  Prefactor  = 0
  Prefactor  = 0.765798
  norm       = 8.00173
  norm       = 5.49568
  Prefactor  = 7.70221
  norm       = 0
  Prefactor  = 73.9024
  Prefactor  = 0
  Prefactor  = 26.7831
  Prefactor  = 0.865609
  Prefactor  = 10.9735
  norm       = 0
  Normalizat = 1.0058
  norm       = 0
  Prefactor  = 1.01528
 **********
 **   18 **HESSE 
 **********

 FCN=   35956.61     FROM HESSE     STATUS=OK           267 CALLS     1507 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        4.1356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8603        1.3828        .51333E-03   -1.5669    
   3  Prefactor      .0000        6.7390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76580        1.2800        .55570E-03   -1.5690    
   5  norm          8.0017        3.0763        .35424E-03   -1.5651    
   6  norm          5.4957        2.1534        .42855E-03   -1.5661    
   7  Prefactor     7.7022        7.1591        .36226E-03   -1.5652    
   8  norm           .0000        6.3510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.902        41.383        .11634E-03   -1.5536    
  10  Prefactor      .0000        7.7587        .28890E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.783        41.705        .19742E-03   -1.5604    
  12  Prefactor     .86561        7.8658        .13082E-01   -1.5522    
  13  Prefactor     10.973        24.717        .30540E-03   -1.5642    
  14  norm           .0000        1.8440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0058        .21555        .20106       -.92836    
  16  norm           .0000        .35304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0153        .31107E-01    .30471E-01   -.92222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60751e-07
Minuit parameter uncertainties:
  1  1.21228e-07
  2  1.38279
  3  5.99933e-07
  4  1.28
  5  3.0763
  6  2.15342
  7  7.15908
  8  9.73502e-07
  9  41.3828
  10  2.93571e-06
  11  41.7052
  12  5.21931
  13  24.7174
  14  1.53402e-08
  15  0.215742
  16  2.79585e-08
  17  0.0311076
Done.

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

Extracting fit parameters...

4FGL J1129.1-5230
   Spectrum: PowerLaw
446    Prefactor:  0.000e+00  2.936e-06  0.000e+00  1.000e+06 ( 1.000e-14)
447        Index:  2.246e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
448        Scale:  2.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
980    Prefactor:  1.015e+00  3.111e-02  0.000e+00  1.000e+01 ( 1.000e+00)
981        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
982        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
965   Normalization:  1.006e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 172.286 -52.513
Photon Flux Upper Limit: 6.37247444017e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00487156424869 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35826799/likelihoodResults_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.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) = 35956.6218093
delta logL = -0.0104985729631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 35956.6113141
delta logL = -3.32456693286e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   35956.61     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      255 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        605.62        .42118E-03** at limit **
   2  Index         1.8038        1.0056       -.19041E-04     .0000    
   3  Normalizat    1.0058        1.3349       -.16577E-05   -.22919E-04
   4  Prefactor     1.0153        1.2493        .12126E-05   -.14040E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.80382
  Normalizat = 1.0058
  Prefactor  = 1.01528
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   35956.61     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        605.62        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .33348        1.5816       -.19041E-04   -.69350    
   3  Normalizat    1.0058        1.3349       -.16577E-05   -.92836    
   4  Prefactor     1.0153        1.2493        .12126E-05   -.92222    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.50444e-12
Minuit parameter uncertainties:
  1  4.29239e-05
  2  1.01748
  3  1.3837
  4  1.28803
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) = 35956.6113108
delta logL = 0.0

Extracting fit parameters...

4FGL J1129.1-5230
   Spectrum: PowerLaw
446    Prefactor:  0.000e+00  4.292e-05  0.000e+00  1.000e+06 ( 1.000e-14)
447        Index:  1.804e+00  1.017e+00  0.000e+00  1.000e+01 (-1.000e+00)
448        Scale:  2.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
980    Prefactor:  1.015e+00  1.288e+00  0.000e+00  1.000e+01 ( 1.000e+00)
981        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
982        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
965   Normalization:  1.006e+00  1.384e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 172.286 -52.513

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/35826799/cmap_HighResolution_723772801_724032001_4FGL_J1129.1-5230_daily_bin1869.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2023-12-12 00:50:08.943684', job_id='35826799', GAL2='1.02', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1702371008.94', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1869' AND source_name='4FGL J1129.1-5230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 12 00:50:08 PST 2023

