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

 FCN=   7894.488     FROM HESSE     STATUS=OK           304 CALLS     1740 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0132        3.1976        .50352E-03   -1.5668    
   2  Prefactor     14.562        12.098        .26215E-03   -1.5632    
   3  Prefactor     .55511E-10    3.6242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        30.389        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4844        .21793        .34518E-02   -1.5464    
   6  Prefactor     .22649E-07    21.480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.1304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3392        5.0539        .55525E-03   -1.5671    
   9  Prefactor     .12045E-05    13.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21694E-06    196.55        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.456        8.6153        .29909E-03   -1.5640    
  12  Prefactor     .18380E-05    16.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57016E-06    13.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .90755E-06    16.384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    25.649        .16911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.109        22.763        .19956E-03   -1.5608    
  17  Prefactor     6.4203        5.2289        .39482E-03   -1.5657    
  18  Normalizat    1.0532        .19479        .71037E-01   -.91269    
  19  Prefactor     .95623        .11548        .45717E-01   -.94203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34215e-07
Minuit parameter uncertainties:
  1  3.19761
  2  12.0977
  3  2.80432e-05
  4  2.00501e-05
  5  0.217934
  6  0.00139499
  7  1.29303e-05
  8  5.05388
  9  0.00817476
  10  0.0130605
  11  8.61535
  12  0.0108916
  13  0.00561741
  14  0.00771225
  15  8.1873e-05
  16  22.7627
  17  5.22891
  18  0.194921
  19  0.115507
/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) = 7894.48773195

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  9.076e-07  7.712e-03  0.000e+00  1.000e+06 ( 1.000e-13)
450        alpha:  1.902e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  8.816e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  9.562e-01  1.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.053e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.723 14.535
Photon Flux Upper Limit: 5.06195356391e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28166332742e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19062150/likelihoodResults_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.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) = 7894.4877537
delta logL = -2.17562037506e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7894.48773945
delta logL = -7.5019970609e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7894.488     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      228 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        15.398       -.19525E-05** at limit **
   2  alpha         2.1206        3.5599        .10371E-03     .0000    
   3  Normalizat    1.0532        .21430       -.15195E-04    .89394E-04
   4  Prefactor     .95623        .13295        .62673E-05    .22796E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.12059
  Normalizat = 1.05321
  Prefactor  = 0.956226
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7894.488     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        15.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .96256        1.2690        .10371E-03   -.15235    
   3  Normalizat    1.0532        1.1989       -.15195E-04   -.91269    
   4  Prefactor     .95623        1.2980        .62673E-05   -.94203    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.95179e-11
Minuit parameter uncertainties:
  1  6.66633e-06
  2  1.33272
  3  1.23206
  4  1.34431
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) = 7894.48773192
delta logL = 2.76131686405e-08

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  0.000e+00  6.666e-06  0.000e+00  1.000e+06 ( 1.000e-13)
450        alpha:  2.121e+00  1.333e+00  0.000e+00  5.000e+00 ( 1.000e+00)
451         beta:  8.816e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  9.562e-01  1.344e+00  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.053e+00  1.232e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.723 14.535

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/19062150/cmap_HighResolution_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-05', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2023-07-12 01:06:09.320804', job_id='19062150', GAL2='0.96', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1689149169.32', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.76e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1818' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 12 01:06:09 PDT 2023

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


Performing analysis on: 4FGL_J2334.8+1432_daily_bin1818
RA = 353.723, Dec = 14.5346
tmin = 710553601, tmax = 710812801
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='19062477', job_status='RUN', time_executed='2023-07-12 01:05:48.044415', time_epoch_executed='1689149148.04' WHERE source_name='4FGL J2334.8+1432' and cadence='daily' and bin_id='1818'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19062477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19062477/ft1_4FGL_J2334.8+1432_daily_bin1818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19062477/ft1_4FGL_J2334.8+1432_daily_bin1818.fits outfile=/lscratch/kocevski/19062477/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin1818.fits ra=353.723 dec=14.5346 rad=12.0 tmin=710553601.0 tmax=710812801.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.17
user 1.93
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.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/19062477/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin1818.fits evtable="EVENTS" outfile="/lscratch/kocevski/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.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.14

Number of photons that the gtmktime cut: 744

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19062477/ltcube_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.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/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits
.....................!
real 8.41
user 8.10
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.fits evtable="EVENTS" scfile=/lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19062477/ltcube_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.fits outfile=/lscratch/kocevski/19062477/expmap_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.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/19062477/ltcube_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.fits
.....................!
real 70.01
user 65.41
sys 4.15

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

Setting source of interest to:
4FGL J2334.8+1432 @ 353.723 14.5346

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.fits scfile=/lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits outfile=/lscratch/kocevski/19062477/cmap_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.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=353.723 yref=14.5346 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.37
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.fits scfile=/lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits outfile=/lscratch/kocevski/19062477/cmap_HighResolution_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.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=353.723 yref=14.5346 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.37
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.fits evtable="EVENTS" scfile=/lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19062477/Model_4FGL_J2334.8+1432_daily_bin1818.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/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.fits.....................!
real 34.78
user 33.52
sys 0.74

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.fits', '/lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits', expMap='/lscratch/kocevski/19062477/expmap_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.fits', expCube='/lscratch/kocevski/19062477/ltcube_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19062477/Model_4FGL_J2334.8+1432_daily_bin1818.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.8+1432'

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  4.331e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
450        alpha:  1.902e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  8.816e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19062477/ft1_filtered_4FGL_J2334.8+1432_daily_bin1818.fits
Spacecraft file(s): /lscratch/kocevski/19062477/ft2_4FGL_J2334.8+1432_daily_bin1818.fits
Exposure map: /lscratch/kocevski/19062477/expmap_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.fits
Exposure cube: /lscratch/kocevski/19062477/ltcube_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19062477/Model_4FGL_J2334.8+1432_daily_bin1818.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) = 7894.48944301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0077       1.0000          .0000       .10000E+07
     2 'Prefactor '    14.569       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11463E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51419E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.4847       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44178E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13025E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.3206       1.0000          .0000       .10000E+07
     9 'Prefactor '    .68811E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11001E-01   1.0000          .0000       .10000E+07
    11 'norm      '    11.201       1.0000          .0000       .10000E+07
    12 'Prefactor '    .49044E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .61129E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .21386E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .21964E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    25.121       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.4542       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0538       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95618       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7894.488     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1436 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0132        3.1937       -.13487E-08   -.24727E-03
   2  Prefactor     14.562        12.053        .16467E-06    .45552E-02
   3  Prefactor     .55511E-10    3.6247       -.16147E-06** at limit **
   4  Prefactor      .0000        30.151       -.22644E-06** at limit **
   5  Prefactor     1.4844        .21807       -.12252E-07   -.21309E-03
   6  Prefactor     .22649E-07    21.081       -.25649E-07** at limit **
   7  Prefactor      .0000        2.1217       -.28650E-07** at limit **
   8  Prefactor     3.3392        5.0357       -.10134E-07   -.59412E-03
   9  Prefactor     .12045E-05    8.5710       -.77132E-07** at limit **
  10  Prefactor     .21694E-06    204.13        .38463E-05** at limit **
  11  norm          11.456        8.5726       -.19832E-07    .50160E-04
  12  Prefactor     .18380E-05    4.4857       -.77440E-08** at limit **
  13  Prefactor     .57016E-06    4.9473       -.20465E-07** at limit **
  14  norm          .90755E-06    12.443       -.17702E-07** at limit **
  15  Prefactor     .55511E-10    25.674        .31651E-06** at limit **
  16  Prefactor     25.109        2.0162        .26689E-07   -.92610E-01
  17  Prefactor     6.4203        5.2255       -.37413E-07   -.76158E-03
  18  Normalizat    1.0532        .22669       -.13700E-05   -.11485E-04
  19  Prefactor     .95623        .13524        .72239E-06   -.19976E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01318
  Prefactor  = 14.5619
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.48438
  Prefactor  = 2.26485e-08
  Prefactor  = 0
  Prefactor  = 3.33916
  Prefactor  = 1.20448e-06
  Prefactor  = 2.16938e-07
  norm       = 11.4563
  Prefactor  = 1.83797e-06
  Prefactor  = 5.70155e-07
  norm       = 9.07552e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 25.1087
  Prefactor  = 6.42031
  Normalizat = 1.05321
  Prefactor  = 0.956226
 **********
 **   18 **HESSE 
 **********

 FCN=   7894.488     FROM HESSE     STATUS=OK           304 CALLS     1740 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0132        3.1976        .50352E-03   -1.5668    
   2  Prefactor     14.562        12.098        .26215E-03   -1.5632    
   3  Prefactor     .55511E-10    3.6242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        30.389        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4844        .21793        .34518E-02   -1.5464    
   6  Prefactor     .22649E-07    21.480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.1304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3392        5.0539        .55525E-03   -1.5671    
   9  Prefactor     .12045E-05    13.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21694E-06    196.55        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.456        8.6153        .29909E-03   -1.5640    
  12  Prefactor     .18380E-05    16.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57016E-06    13.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .90755E-06    16.384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    25.649        .16911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.109        22.763        .19956E-03   -1.5608    
  17  Prefactor     6.4203        5.2289        .39482E-03   -1.5657    
  18  Normalizat    1.0532        .19479        .71037E-01   -.91269    
  19  Prefactor     .95623        .11548        .45717E-01   -.94203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34215e-07
Minuit parameter uncertainties:
  1  3.19761
  2  12.0977
  3  2.80432e-05
  4  2.00501e-05
  5  0.217934
  6  0.00139499
  7  1.29303e-05
  8  5.05388
  9  0.00817476
  10  0.0130605
  11  8.61535
  12  0.0108916
  13  0.00561741
  14  0.00771225
  15  8.1873e-05
  16  22.7627
  17  5.22891
  18  0.194921
  19  0.115507
Done.

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

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  9.076e-07  7.712e-03  0.000e+00  1.000e+06 ( 1.000e-13)
450        alpha:  1.902e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  8.816e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  9.562e-01  1.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.053e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.723 14.535
Photon Flux Upper Limit: 5.06195356391e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28166332742e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19062477/likelihoodResults_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.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) = 7894.4877537
delta logL = -2.17562037506e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7894.48773945
delta logL = -7.5019970609e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7894.488     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      228 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        15.398       -.19525E-05** at limit **
   2  alpha         2.1206        3.5599        .10371E-03     .0000    
   3  Normalizat    1.0532        .21430       -.15195E-04    .89394E-04
   4  Prefactor     .95623        .13295        .62673E-05    .22796E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.12059
  Normalizat = 1.05321
  Prefactor  = 0.956226
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7894.488     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        15.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .96256        1.2690        .10371E-03   -.15235    
   3  Normalizat    1.0532        1.1989       -.15195E-04   -.91269    
   4  Prefactor     .95623        1.2980        .62673E-05   -.94203    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.95179e-11
Minuit parameter uncertainties:
  1  6.66633e-06
  2  1.33272
  3  1.23206
  4  1.34431
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) = 7894.48773192
delta logL = 2.76131686405e-08

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  0.000e+00  6.666e-06  0.000e+00  1.000e+06 ( 1.000e-13)
450        alpha:  2.121e+00  1.333e+00  0.000e+00  5.000e+00 ( 1.000e+00)
451         beta:  8.816e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  9.562e-01  1.344e+00  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.053e+00  1.232e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.723 14.535

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/19062477/cmap_HighResolution_710553601_710812801_4FGL_J2334.8+1432_daily_bin1818.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-05', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2023-07-12 01:10:24.576787', job_id='19062477', GAL2='0.96', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1689149424.58', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.76e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1818' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 12 01:10:24 PDT 2023

