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


Performing analysis on: 4FGL_J2230.9-7815_daily_bin1877
RA = 337.728, Dec = -78.2594
tmin = 725846401, tmax = 726105601
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='38423681', job_status='RUN', time_executed='2024-01-18 17:40:38.624329', time_epoch_executed='1705628438.62' WHERE source_name='4FGL J2230.9-7815' and cadence='daily' and bin_id='1877'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38423681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38423681/ft1_4FGL_J2230.9-7815_daily_bin1877.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38423681/ft1_4FGL_J2230.9-7815_daily_bin1877.fits outfile=/lscratch/kocevski/38423681/ft1_filteredMKT_4FGL_J2230.9-7815_daily_bin1877.fits ra=337.728 dec=-78.2594 rad=12.0 tmin=725846401.0 tmax=726105601.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.12
user 1.80
sys 0.15

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.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/38423681/ft1_filteredMKT_4FGL_J2230.9-7815_daily_bin1877.fits evtable="EVENTS" outfile="/lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.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.38
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 853

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38423681/ltcube_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.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/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits
.....................!
real 8.90
user 8.41
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.fits evtable="EVENTS" scfile=/lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38423681/ltcube_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.fits outfile=/lscratch/kocevski/38423681/expmap_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.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/38423681/ltcube_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.fits
.....................!
real 72.46
user 67.60
sys 3.97

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 SMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 169 point sources and 1 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 J2230.9-7815 @ 337.728 -78.2594

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.fits scfile=/lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits outfile=/lscratch/kocevski/38423681/cmap_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=337.728 yref=-78.2594 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

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.fits scfile=/lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits outfile=/lscratch/kocevski/38423681/cmap_HighResolution_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=337.728 yref=-78.2594 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.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.fits evtable="EVENTS" scfile=/lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38423681/Model_4FGL_J2230.9-7815_daily_bin1877.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
adding source SMC-Galaxy
Working on...
/lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.fits.....................!
real 958.98
user 951.69
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.fits', '/lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits', expMap='/lscratch/kocevski/38423681/expmap_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.fits', expCube='/lscratch/kocevski/38423681/ltcube_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38423681/Model_4FGL_J2230.9-7815_daily_bin1877.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2230.9-7815'

4FGL J2230.9-7815
   Spectrum: PowerLaw
493    Prefactor:  2.493e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
494        Index:  2.296e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
495        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38423681/ft1_filtered_4FGL_J2230.9-7815_daily_bin1877.fits
Spacecraft file(s): /lscratch/kocevski/38423681/ft2_4FGL_J2230.9-7815_daily_bin1877.fits
Exposure map: /lscratch/kocevski/38423681/expmap_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.fits
Exposure cube: /lscratch/kocevski/38423681/ltcube_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38423681/Model_4FGL_J2230.9-7815_daily_bin1877.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) = 8976.0529363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22901E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .87384E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12652E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .11365E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .22287E-02   1.0000          .0000       .10000E+07
     6 'norm      '    2.7171       1.0000          .0000       .10000E+07
     7 'norm      '    .47630E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    65.212       1.0000          .0000       .10000E+07
     9 'norm      '    .66058E-08   1.0000          .0000       .10000E+07
    10 'norm      '    .24564E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .74408E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    17.518       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16149E-02   1.0000          .0000       .10000E+07
    14 'Normalizat'    .53366       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.3299       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8975.999     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1066 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.7933       -.73377E-06** at limit **
   2  Prefactor     .16442E-06    11.747        .13735E-06** at limit **
   3  Prefactor      .0000        1.5043        .18116E-06** at limit **
   4  norm          .57176E-08    22.361       -.11069E-05** at limit **
   5  Prefactor     .27311E-07    10.792       -.29920E-06** at limit **
   6  norm          .53477E-04    539.37       -.22128E-04** at limit **
   7  norm          .94369E-09    6.2261        .73009E-06** at limit **
   8  Prefactor     66.933        39.318        .44514E-06   -.23456E-01
   9  norm          .55511E-10    1.0757       -.41569E-06** at limit **
  10  norm           .0000        3.4116        .32911E-06** at limit **
  11  Prefactor     .55511E-10    28.538       -.20344E-05** at limit **
  12  Prefactor     16.793        10.440       -.59968E-06   -.15293    
  13  Prefactor     .43232E-06    11.844       -.21554E-05** at limit **
  14  Normalizat    .53220        .20891        .20312E-04    .46919E-04
  15  Prefactor     1.3307        .10697       -.95030E-05    .52906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.64424e-07
  Prefactor  = 0
  norm       = 5.71765e-09
  Prefactor  = 2.73115e-08
  norm       = 5.34765e-05
  norm       = 9.4369e-10
  Prefactor  = 66.9327
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 16.7932
  Prefactor  = 4.32321e-07
  Normalizat = 0.5322
  Prefactor  = 1.33071
 **********
 **   18 **HESSE 
 **********

 FCN=   8975.999     FROM HESSE     STATUS=OK           208 CALLS     1274 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.7629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16442E-06    11.811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.5029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .57176E-08    22.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27311E-07    10.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .53477E-04    547.97        .61759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .94369E-09    6.2494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     66.933        40.389        .12384E-03   -1.5544    
   9  norm          .55511E-10    1.0672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        3.3999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    8.0265        .84208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.793        49.147        .23902E-03   -1.5626    
  13  Prefactor     .43232E-06    11.902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .53220        .20201        .10586       -1.1095    
  15  Prefactor     1.3307        .10248        .32108E-01   -.82398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52093e-06
Minuit parameter uncertainties:
  1  7.05976e-06
  2  0.00278693
  3  7.67473e-06
  4  0.00071051
  5  0.00108925
  6  0.342396
  7  0.000152379
  8  40.3892
  9  1.22527e-05
  10  1.89228e-05
  11  3.14995e-05
  12  49.1478
  13  0.00453664
  14  0.202289
  15  0.102493
Done.

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

Extracting fit parameters...

4FGL J2230.9-7815
   Spectrum: PowerLaw
493    Prefactor:  5.551e-11  3.150e-05  0.000e+00  1.000e+06 ( 1.000e-13)
494        Index:  2.296e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
495        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  1.331e+00  1.025e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  5.322e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 337.728 -78.259
Photon Flux Upper Limit: 9.10466796549e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00698538117942 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38423681/likelihoodResults_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.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) = 8976.01836187
delta logL = -0.0198147981755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8975.99854724
delta logL = -1.64171069628e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8975.999     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      201 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        30.484       -.17916E-05** at limit **
   2  Index         1.9725        2.8918       -.15427E-04     .0000    
   3  Normalizat    .53220        .20838       -.10642E-04   -.17929E-04
   4  Prefactor     1.3307        .10639        .33816E-05   -.40738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.97246
  Normalizat = 0.5322
  Prefactor  = 1.33071
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8975.999     FROM HESSE     STATUS=FAILED        11 CALLS      212 TOTAL
                     EDM=   .54E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        30.259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .41518        1.6472       -.15427E-04   -.65040    
   3  Normalizat    .53220        .86597       -.10642E-04   -1.1095    
   4  Prefactor     1.3307        1.0715        .33816E-05   -.82398    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.3983e-13
Minuit parameter uncertainties:
  1  1.94921e-05
  2  0.972205
  3  0.889506
  4  1.09013
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) = 8975.99854707
delta logL = 5.45696821064e-12

Extracting fit parameters...

4FGL J2230.9-7815
   Spectrum: PowerLaw
493    Prefactor:  0.000e+00  1.949e-05  0.000e+00  1.000e+06 ( 1.000e-13)
494        Index:  1.972e+00  9.722e-01  0.000e+00  1.000e+01 (-1.000e+00)
495        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  1.331e+00  1.090e+00  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  5.322e-01  8.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 337.728 -78.259

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/38423681/cmap_HighResolution_725846401_726105601_4FGL_J2230.9-7815_daily_bin1877.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2024-01-18 18:00:36.738028', job_id='38423681', GAL2='1.33', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1705629636.74', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='5.46e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1877' AND source_name='4FGL J2230.9-7815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 18 18:00:36 PST 2024

