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


Performing analysis on: 4FGL_J1543.6+0452_weekly_bin842
RA = 235.906, Dec = 4.8689
tmin = 748224001, tmax = 748828801
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='56077708', job_status='RUN', time_executed='2024-09-24 00:56:14.758989', time_epoch_executed='1727164574.76' WHERE source_name='4FGL J1543.6+0452' and cadence='weekly' and bin_id='842'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/56077708

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/56077708/ft1_4FGL_J1543.6+0452_weekly_bin842.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/56077708/ft1_4FGL_J1543.6+0452_weekly_bin842.fits outfile=/lscratch/kocevski/56077708/ft1_filteredMKT_4FGL_J1543.6+0452_weekly_bin842.fits ra=235.906 dec=4.8689 rad=12.0 tmin=748224001.0 tmax=748828801.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.73
user 3.43
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.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/56077708/ft1_filteredMKT_4FGL_J1543.6+0452_weekly_bin842.fits evtable="EVENTS" outfile="/lscratch/kocevski/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.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.20
sys 0.12

Number of photons that the gtmktime cut: 2450

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.fits" evtable="EVENTS" scfile=/lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits sctable="SC_DATA" outfile=/lscratch/kocevski/56077708/ltcube_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.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/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits
.....................!
real 16.70
user 16.31
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.fits evtable="EVENTS" scfile=/lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits sctable="SC_DATA" expcube=/lscratch/kocevski/56077708/ltcube_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.fits outfile=/lscratch/kocevski/56077708/expmap_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.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/56077708/ltcube_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.fits
.....................!
real 67.89
user 63.46
sys 3.87

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

Setting source of interest to:
4FGL J1543.6+0452 @ 235.906 4.8689

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.fits scfile=/lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits outfile=/lscratch/kocevski/56077708/cmap_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.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=235.906 yref=4.8689 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.40
user 0.24
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.fits scfile=/lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits outfile=/lscratch/kocevski/56077708/cmap_HighResolution_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.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=235.906 yref=4.8689 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.38
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.fits evtable="EVENTS" scfile=/lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/56077708/Model_4FGL_J1543.6+0452_weekly_bin842.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/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.fits.....................!
real 69.04
user 67.79
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.fits', '/lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits', expMap='/lscratch/kocevski/56077708/expmap_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.fits', expCube='/lscratch/kocevski/56077708/ltcube_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/56077708/Model_4FGL_J1543.6+0452_weekly_bin842.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.6+0452'

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  3.372e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  1.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/56077708/ft1_filtered_4FGL_J1543.6+0452_weekly_bin842.fits
Spacecraft file(s): /lscratch/kocevski/56077708/ft2_4FGL_J1543.6+0452_weekly_bin842.fits
Exposure map: /lscratch/kocevski/56077708/expmap_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.fits
Exposure cube: /lscratch/kocevski/56077708/ltcube_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/56077708/Model_4FGL_J1543.6+0452_weekly_bin842.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) = 26112.8296223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52380       1.0000          .0000       .10000E+07
     2 'norm      '    5.0988       1.0000          .0000       .10000E+07
     3 'norm      '    4.5835       1.0000          .0000       .10000E+07
     4 'norm      '    5.5755       1.0000          .0000       .10000E+07
     5 'Prefactor '    .35761E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .19443E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    30.174       1.0000          .0000       .10000E+07
     8 'norm      '    .10392E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12224E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .54220       1.0000          .0000       .10000E+07
    11 'Prefactor '    .23254E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .94758E-07   1.0000          .0000       .10000E+07
    13 'norm      '    6.8716       1.0000          .0000       .10000E+07
    14 'norm      '    55.408       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.171       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2557       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95594       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26112.77     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      993 TOTAL
                     EDM=   .24E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52373        .13319        .35619E-08    .13432E-03
   2  norm          5.0985        1.7714       -.86184E-08    .20114E-03
   3  norm          4.5855        3.2393        .67135E-09    .15503E-05
   4  norm          5.5687        2.8311       -.36060E-08   -.10141E-03
   5  Prefactor      .0000        3.7001       -.11696E-06** at limit **
   6  Prefactor      .0000        3.6443       -.31144E-07** at limit **
   7  Prefactor     29.796        18.616        .27218E-07   -.70452E-04
   8  norm           .0000        .51704        .11060E-07** at limit **
   9  Prefactor      .0000        .58331        .21695E-07** at limit **
  10  norm          .54170        1.1786        .12935E-07   -.49490E-06
  11  Prefactor      .0000        34.390       -.31878E-07** at limit **
  12  norm           .0000        .78572        .19571E-07** at limit **
  13  norm          6.8699        1.2184        .12623E-07   -.47236E-03
  14  norm          55.514        10.813        .27145E-10    .30244E-04
  15  Prefactor     12.755        33.915       -.13618E-06    .46135E-04
  16  Normalizat    1.2555        .15788       -.13329E-05    .10258E-04
  17  Prefactor     .95631        .62909E-01    .55849E-06    .21905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.523728
  norm       = 5.0985
  norm       = 4.58546
  norm       = 5.56865
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 29.7956
  norm       = 0
  Prefactor  = 0
  norm       = 0.541698
  Prefactor  = 0
  norm       = 0
  norm       = 6.86987
  norm       = 55.5138
  Prefactor  = 12.7551
  Normalizat = 1.2555
  Prefactor  = 0.956309
 **********
 **   18 **HESSE 
 **********

 FCN=   26112.77     FROM HESSE     STATUS=OK           263 CALLS     1256 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52373        .13384        .64497E-03   -1.5693    
   2  norm          5.0985        1.7743        .44503E-03   -1.5663    
   3  norm          4.5855        3.2406        .46993E-03   -1.5665    
   4  norm          5.5687        2.8383        .42523E-03   -1.5661    
   5  Prefactor      .0000        3.6144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.6463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.796        18.646        .18207E-03   -1.5599    
   8  norm           .0000        .50127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .58173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .54170        1.2055        .74573E-03   -1.5693    
  11  Prefactor      .0000        34.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .78536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8699        1.2188        .38250E-03   -1.5656    
  14  norm          55.514        10.800        .13435E-03   -1.5559    
  15  Prefactor     12.755        34.178        .25688E-03   -1.5637    
  16  Normalizat    1.2555        .13485        .85375E-01   -.84905    
  17  Prefactor     .95631        .53600E-01    .45714E-01   -.94200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88191e-08
Minuit parameter uncertainties:
  1  0.133841
  2  1.77431
  3  3.24063
  4  2.83834
  5  1.4374e-06
  6  2.84557e-09
  7  18.6463
  8  3.81084e-08
  9  9.63115e-08
  10  1.20553
  11  3.15158e-06
  12  1.16956e-07
  13  1.21882
  14  10.7996
  15  34.1784
  16  0.134891
  17  0.0536031
Done.

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

Extracting fit parameters...

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  2.846e-09  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  1.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.563e-01  5.360e-02  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.255e+00  1.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 235.906 4.869
Photon Flux Upper Limit: 1.99622842659e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00148106605985 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/56077708/likelihoodResults_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.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) = 26112.8993431
delta logL = -0.131370577103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26112.767974
delta logL = -1.46974343807e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   26112.77     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      198 TOTAL
                     EDM=   .19E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.2169        .42118E-03** at limit **
   2  Index         1.5595        1.4974        .50339E-05     .0000    
   3  Normalizat    1.2555        1.0897        .39732E-06    .30429E-05
   4  Prefactor     .95631        1.2982       -.34731E-06    .24995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.55954
  Normalizat = 1.2555
  Prefactor  = 0.956309
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   26112.77     FROM HESSE     STATUS=FAILED         9 CALLS      207 TOTAL
                     EDM=   .19E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.2169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .22620        1.6401        .50339E-05   -.75885    
   3  Normalizat    1.2555        1.0897        .39732E-06   -.84905    
   4  Prefactor     .95631        1.2982       -.34731E-06   -.94200    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.93481e-13
Minuit parameter uncertainties:
  1  3.28776e-06
  2  1.54358
  3  1.11053
  4  1.34451
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) = 26112.7679725
delta logL = 0.0

Extracting fit parameters...

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  3.288e-06  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  1.560e+00  1.544e+00  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  9.563e-01  1.345e+00  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.255e+00  1.111e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 235.906 4.869

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/56077708/cmap_HighResolution_748224001_748828801_4FGL_J1543.6+0452_weekly_bin842.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-03', job_status='DONE', photon_flux_upper_limit='2.00e-08', time_completed='2024-09-24 01:04:59.251282', job_id='56077708', GAL2='0.96', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1727165099.25', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='842' AND source_name='4FGL J1543.6+0452' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 24 01:04:59 PDT 2024

