 **********
 **   18 **HESSE 
 **********

 FCN=   7441.865     FROM HESSE     STATUS=OK           312 CALLS     1709 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31475E-07    11.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .87415        .17497        .35045E-02   -1.5521    
   3  Prefactor     7.9997        41.071        .41068E-03   -1.5651    
   4  Prefactor     3.4345        5.1792        .54543E-03   -1.5671    
   5  Prefactor     .16653E-09    5.0456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3732        7.0304        .43585E-03   -1.5662    
   7  Prefactor     10.732        9.8890        .30577E-03   -1.5642    
   8  Prefactor     19.209        19.019        .22890E-03   -1.5620    
   9  Prefactor     .19429E-08    15.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11102E-09    3.0095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3472        6.7022        .36922E-03   -1.5654    
  12  Prefactor     .53180E-07    17.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .24425E-08    8.3127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2332        25.215        .49740E-03   -1.5667    
  15  Prefactor     .68823E-04    22.205        .13045E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .93814E-08    5.8170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .26645E-08    3.8478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .44931        .20804        .94290E-01   -1.1483    
  19  Prefactor     1.2218        .13007        .34135E-01   -.85663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43006e-07
Minuit parameter uncertainties:
  1  0.00121824
  2  0.17497
  3  36.2527
  4  5.1792
  5  5.99791e-05
  6  7.03041
  7  9.88902
  8  19.0195
  9  0.000345351
  10  3.65376e-05
  11  6.70221
  12  0.00193814
  13  0.00028563
  14  20.6632
  15  0.078185
  16  0.000467086
  17  0.000202603
  18  0.208401
  19  0.130102
/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).

Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.110e-10  3.654e-05  0.000e+00  1.000e+06 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.222e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  4.493e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.896 9.654
Photon Flux Upper Limit: 6.75470070644e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.67971087195e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19484613/likelihoodResults_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.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) = 7441.86784627
delta logL = -0.00327048405961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7441.86458351
delta logL = -7.72808743932e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41402E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .29637       1.0000          .0000       5.0000    
     3 'Normalizat'    .44950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2219       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7441.865     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      272 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.2376        .42118E-03** at limit **
   2  alpha         3.9905        1.0203        .54697E-04     .0000    
   3  Normalizat    .44931        .77570       -.10655E-04    .34424E-04
   4  Prefactor     1.2218        1.0962        .34675E-05    .11497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.99049
  Normalizat = 0.449311
  Prefactor  = 1.22181
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7441.865     FROM HESSE     STATUS=FAILED         7 CALLS      279 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.2376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8210        1.0203        .54697E-04    .63875    
   3  Normalizat    .44931        .77570       -.10655E-04   -1.1483    
   4  Prefactor     1.2218        1.0962        .34675E-05   -.85663    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6851e-11
Minuit parameter uncertainties:
  1  9.58577e-06
  2  1.07032
  3  0.795546
  4  1.11781
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) = 7441.86457578
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  0.000e+00  9.586e-06  0.000e+00  1.000e+06 ( 1.000e-12)
410        alpha:  3.990e+00  1.070e+00  0.000e+00  5.000e+00 ( 1.000e+00)
411         beta:  1.276e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.222e+00  1.118e+00  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  4.493e-01  7.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.896 9.654

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/19484613/cmap_HighResolution_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2023-07-15 01:21:35.126271', job_id='19484613', GAL2='1.22', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1689409295.13', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1819' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 15 01:21:35 PDT 2023

number of points = 7440
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2327.5+0939_daily_bin1819
RA = 351.896, Dec = 9.6543
tmin = 710812801, tmax = 711072001
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='19485516', job_status='RUN', time_executed='2023-07-15 01:21:16.704552', time_epoch_executed='1689409276.7' WHERE source_name='4FGL J2327.5+0939' and cadence='daily' and bin_id='1819'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19485516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19485516/ft1_4FGL_J2327.5+0939_daily_bin1819.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19485516/ft1_4FGL_J2327.5+0939_daily_bin1819.fits outfile=/lscratch/kocevski/19485516/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin1819.fits ra=351.896 dec=9.6543 rad=12.0 tmin=710812801.0 tmax=711072001.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 1.88
user 1.68
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.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/19485516/ft1_filteredMKT_4FGL_J2327.5+0939_daily_bin1819.fits evtable="EVENTS" outfile="/lscratch/kocevski/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.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.34
user 0.18
sys 0.12

Number of photons that the gtmktime cut: 672

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19485516/ltcube_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.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/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits
.....................!
real 7.24
user 6.96
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.fits evtable="EVENTS" scfile=/lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19485516/ltcube_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.fits outfile=/lscratch/kocevski/19485516/expmap_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.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/19485516/ltcube_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.fits
.....................!
real 60.84
user 57.11
sys 3.33

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

Setting source of interest to:
4FGL J2327.5+0939 @ 351.896 9.6543

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.fits scfile=/lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits outfile=/lscratch/kocevski/19485516/cmap_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.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=351.896 yref=9.6543 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/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.fits scfile=/lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits outfile=/lscratch/kocevski/19485516/cmap_HighResolution_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.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=351.896 yref=9.6543 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/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.fits evtable="EVENTS" scfile=/lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19485516/Model_4FGL_J2327.5+0939_daily_bin1819.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/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.fits.....................!
real 28.59
user 27.22
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.fits', '/lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits', expMap='/lscratch/kocevski/19485516/expmap_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.fits', expCube='/lscratch/kocevski/19485516/ltcube_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19485516/Model_4FGL_J2327.5+0939_daily_bin1819.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2327.5+0939'

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  8.298e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19485516/ft1_filtered_4FGL_J2327.5+0939_daily_bin1819.fits
Spacecraft file(s): /lscratch/kocevski/19485516/ft2_4FGL_J2327.5+0939_daily_bin1819.fits
Exposure map: /lscratch/kocevski/19485516/expmap_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.fits
Exposure cube: /lscratch/kocevski/19485516/ltcube_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19485516/Model_4FGL_J2327.5+0939_daily_bin1819.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) = 7441.92598337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17668E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .87389       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9713       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.4358       1.0000          .0000       .10000E+07
     5 'Prefactor '    .48450E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.3118       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.719       1.0000          .0000       .10000E+07
     8 'Prefactor '    19.099       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20758E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .88009E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.3696       1.0000          .0000       .10000E+07
    12 'Prefactor '    .96539E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .70020E-02   1.0000          .0000       .10000E+07
    14 'norm      '    4.1038       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33555       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33149E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .22489E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    .45097       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2218       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7441.865     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1397 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31475E-07    11.279        .50046E-06** at limit **
   2  Prefactor     .87415        .17463        .90992E-07    .12096E-02
   3  Prefactor     7.9997        35.548       -.30049E-06   -.21047E-01
   4  Prefactor     3.4345        5.1658        .24757E-06    .54150E-03
   5  Prefactor     .16653E-09    5.0594        .88721E-07** at limit **
   6  Prefactor     5.3732        6.4956        .16189E-07   -.42996E-02
   7  Prefactor     10.732        5.2811       -.16061E-06   -.14482    
   8  Prefactor     19.209        2.0666        .10987E-07    .12379E-02
   9  Prefactor     .19429E-08    12.079        .37385E-06** at limit **
  10  norm          .11102E-09    3.0090       -.24288E-06** at limit **
  11  Prefactor     7.3472        6.5935       -.90071E-07    .14634E-01
  12  Prefactor     .53180E-07    15.068        .97625E-06** at limit **
  13  norm          .24425E-08    8.3028       -.20639E-06** at limit **
  14  norm          4.2332        1.6073       -.50921E-08    .48572E-04
  15  Prefactor     .68823E-04    55.234        .12414E-05** at limit **
  16  Prefactor     .93814E-08    5.7943        .70615E-07** at limit **
  17  Prefactor     .26645E-08    3.8487       -.72170E-06** at limit **
  18  Normalizat    .44931        .21248        .49651E-05    .26709E-04
  19  Prefactor     1.2218        .13886       -.95877E-06    .40264E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14748e-08
  Prefactor  = 0.87415
  Prefactor  = 7.99966
  Prefactor  = 3.43455
  Prefactor  = 1.66533e-10
  Prefactor  = 5.37317
  Prefactor  = 10.7318
  Prefactor  = 19.2091
  Prefactor  = 1.94289e-09
  norm       = 1.11022e-10
  Prefactor  = 7.3472
  Prefactor  = 5.31797e-08
  norm       = 2.44249e-09
  norm       = 4.2332
  Prefactor  = 6.88225e-05
  Prefactor  = 9.38138e-09
  Prefactor  = 2.66454e-09
  Normalizat = 0.449311
  Prefactor  = 1.22181
 **********
 **   18 **HESSE 
 **********

 FCN=   7441.865     FROM HESSE     STATUS=OK           312 CALLS     1709 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31475E-07    11.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .87415        .17497        .35045E-02   -1.5521    
   3  Prefactor     7.9997        41.071        .41068E-03   -1.5651    
   4  Prefactor     3.4345        5.1792        .54543E-03   -1.5671    
   5  Prefactor     .16653E-09    5.0456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3732        7.0304        .43585E-03   -1.5662    
   7  Prefactor     10.732        9.8890        .30577E-03   -1.5642    
   8  Prefactor     19.209        19.019        .22890E-03   -1.5620    
   9  Prefactor     .19429E-08    15.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11102E-09    3.0095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3472        6.7022        .36922E-03   -1.5654    
  12  Prefactor     .53180E-07    17.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .24425E-08    8.3127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2332        25.215        .49740E-03   -1.5667    
  15  Prefactor     .68823E-04    22.205        .13045E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .93814E-08    5.8170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .26645E-08    3.8478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .44931        .20804        .94290E-01   -1.1483    
  19  Prefactor     1.2218        .13007        .34135E-01   -.85663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43006e-07
Minuit parameter uncertainties:
  1  0.00121824
  2  0.17497
  3  36.2527
  4  5.1792
  5  5.99791e-05
  6  7.03041
  7  9.88902
  8  19.0195
  9  0.000345351
  10  3.65376e-05
  11  6.70221
  12  0.00193814
  13  0.00028563
  14  20.6632
  15  0.078185
  16  0.000467086
  17  0.000202603
  18  0.208401
  19  0.130102
Done.

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

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  1.110e-10  3.654e-05  0.000e+00  1.000e+06 ( 1.000e-12)
410        alpha:  2.682e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
411         beta:  1.276e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.222e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  4.493e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.896 9.654
Photon Flux Upper Limit: 6.75470070644e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.67971087195e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19485516/likelihoodResults_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.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) = 7441.86784627
delta logL = -0.00327048405961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7441.86458351
delta logL = -7.72808743932e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41402E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .29637       1.0000          .0000       5.0000    
     3 'Normalizat'    .44950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2219       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7441.865     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      272 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.2376        .42118E-03** at limit **
   2  alpha         3.9905        1.0203        .54697E-04     .0000    
   3  Normalizat    .44931        .77570       -.10655E-04    .34424E-04
   4  Prefactor     1.2218        1.0962        .34675E-05    .11497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.99049
  Normalizat = 0.449311
  Prefactor  = 1.22181
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7441.865     FROM HESSE     STATUS=FAILED         7 CALLS      279 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.2376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8210        1.0203        .54697E-04    .63875    
   3  Normalizat    .44931        .77570       -.10655E-04   -1.1483    
   4  Prefactor     1.2218        1.0962        .34675E-05   -.85663    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.6851e-11
Minuit parameter uncertainties:
  1  9.58577e-06
  2  1.07032
  3  0.795546
  4  1.11781
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) = 7441.86457578
delta logL = 1.45519152284e-11

Extracting fit parameters...

4FGL J2327.5+0939
   Spectrum: LogParabola
409         norm:  0.000e+00  9.586e-06  0.000e+00  1.000e+06 ( 1.000e-12)
410        alpha:  3.990e+00  1.070e+00  0.000e+00  5.000e+00 ( 1.000e+00)
411         beta:  1.276e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
412           Eb:  5.819e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.222e+00  1.118e+00  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  4.493e-01  7.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.896 9.654

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/19485516/cmap_HighResolution_710812801_711072001_4FGL_J2327.5+0939_daily_bin1819.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2023-07-15 01:25:00.645320', job_id='19485516', GAL2='1.22', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1689409500.65', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1819' AND source_name='4FGL J2327.5+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 15 01:25:00 PDT 2023

