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

 FCN=   9575.761     FROM HESSE     STATUS=OK           266 CALLS     2275 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0383        .93390        .93626E-04   -1.5688    
   2  norm           .0000        3.8750        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        16.976        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.4921        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        18.171        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .78019        .83833E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.127        24.903        .65654E-05   -1.5586    
   8  Prefactor     9.7476        11.018        .12831E-04   -1.5646    
   9  Prefactor     35.385        23.702        .67249E-05   -1.5589    
  10  norm          2.4105        4.1295        .12577E-03   -1.5677    
  11  norm          8.0792        7.4115        .70499E-04   -1.5651    
  12  Prefactor      .0000        8.1926        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.4850        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.334        135.93        .10572E-04   -1.5632    
  15  Prefactor      .0000        64.943        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     139.22        65.092        .16952E-04   -1.5472    
  17  Prefactor     .18874E-08    6.4499        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3370        .23729        .34407E-03   -.82468    
  19  Prefactor     .84492        .89328E-01    .16473E-03   -.98093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40781e-09
Minuit parameter uncertainties:
  1  0.933898
  2  1.20503e-05
  3  2.5143e-05
  4  1.27732e-06
  5  1.93168e-06
  6  2.53621e-06
  7  24.9031
  8  11.0182
  9  23.7025
  10  4.12951
  11  7.41153
  12  1.46858e-06
  13  5.09422e-07
  14  88.2844
  15  1.35084e-05
  16  65.0925
  17  0.000221284
  18  0.237483
  19  0.0893433
/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) = 9575.7613672

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  0.000e+00  1.932e-06  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.449e-01  8.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.337e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 4.98415387851e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00368921193651 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18923091/likelihoodResults_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.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) = 9575.78825588
delta logL = -0.0268886737467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9575.7613678
delta logL = -5.95066012465e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60640E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .64482       1.0000          .0000       10.000    
     3 'Normalizat'    1.3372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9575.761     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      199 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    18.831       -.14196E-05** at limit **
   2  Index         1.6413        3.0676       -.77481E-05   -.78317E-11
   3  Normalizat    1.3370        .22443       -.24880E-05    .14203E-04
   4  Prefactor     .84492        .88496E-01   -.12559E-05    .10913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 1.64133
  Normalizat = 1.33702
  Prefactor  = 0.844924
 **********
 **   18 **HESSE 
 **********

 FCN=   9575.761     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      232 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    .17764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6413        5.2860        .41662       -.73655    
   3  Normalizat    1.3370        .53087E-03    .77740E-01   -.82468    
   4  Prefactor     .84492        .20849E-03    .44298E-01   -.98093    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78627e-13
Minuit parameter uncertainties:
  1  1.64017e-05
  2  6515.81
  3  0.000530869
  4  0.000208489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9575.7613672
delta logL = 7.63975549489e-11

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.886e-10  1.640e-05  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.641e+00  6.516e+03  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.449e-01  2.085e-04  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.337e+00  5.309e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 346.173 37.083

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/18923091/cmap_HighResolution_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2023-07-10 14:41:05.224411', job_id='18923091', GAL2='0.84', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1689025265.22', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1816' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 14:41:05 PDT 2023

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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1816
RA = 346.173, Dec = 37.0826
tmin = 710035201, tmax = 710294401
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='18923504', job_status='RUN', time_executed='2023-07-10 14:40:42.199407', time_epoch_executed='1689025242.2' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1816'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18923504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18923504/ft1_4FGL_J2304.6+3704_daily_bin1816.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18923504/ft1_4FGL_J2304.6+3704_daily_bin1816.fits outfile=/lscratch/kocevski/18923504/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1816.fits ra=346.173 dec=37.0826 rad=12.0 tmin=710035201.0 tmax=710294401.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.31
user 2.09
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.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/18923504/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1816.fits evtable="EVENTS" outfile="/lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.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.39
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 927

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18923504/ltcube_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.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/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits
.....................!
real 8.68
user 8.35
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18923504/ltcube_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.fits outfile=/lscratch/kocevski/18923504/expmap_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.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/18923504/ltcube_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.fits
.....................!
real 61.14
user 57.54
sys 3.23

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 point sources and 2 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 J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.fits scfile=/lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits outfile=/lscratch/kocevski/18923504/cmap_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.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=346.173 yref=37.0826 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.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.fits scfile=/lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits outfile=/lscratch/kocevski/18923504/cmap_HighResolution_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.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=346.173 yref=37.0826 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.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.fits evtable="EVENTS" scfile=/lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18923504/Model_4FGL_J2304.6+3704_daily_bin1816.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.fits.....................!
real 39.23
user 37.94
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.fits', '/lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits', expMap='/lscratch/kocevski/18923504/expmap_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.fits', expCube='/lscratch/kocevski/18923504/ltcube_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18923504/Model_4FGL_J2304.6+3704_daily_bin1816.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18923504/ft1_filtered_4FGL_J2304.6+3704_daily_bin1816.fits
Spacecraft file(s): /lscratch/kocevski/18923504/ft2_4FGL_J2304.6+3704_daily_bin1816.fits
Exposure map: /lscratch/kocevski/18923504/expmap_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.fits
Exposure cube: /lscratch/kocevski/18923504/ltcube_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18923504/Model_4FGL_J2304.6+3704_daily_bin1816.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9575.87809835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0385       1.0000          .0000       .10000E+07
     2 'norm      '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    .94369E-09   1.0000          .0000       .10000E+07
     4 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     6 'norm      '     .0000       1.0000          .0000       .10000E+07
     7 'Prefactor '    37.127       1.0000          .0000       .10000E+07
     8 'Prefactor '    9.7443       1.0000          .0000       .10000E+07
     9 'Prefactor '    35.388       1.0000          .0000       .10000E+07
    10 'norm      '    2.4102       1.0000          .0000       .10000E+07
    11 'norm      '    8.0791       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21649E-08   1.0000          .0000       .10000E+07
    13 'norm      '     .0000       1.0000          .0000       .10000E+07
    14 'Prefactor '    14.334       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11990E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    139.22       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13267E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3370       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9575.761     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2009 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0383        1.0125        .41835E-08   -.23123E-02
   2  norm           .0000        3.8342       -.39569E-08** at limit **
   3  Prefactor      .0000        16.945       -.35668E-07** at limit **
   4  Prefactor      .0000        1.4917       -.27162E-08** at limit **
   5  Prefactor      .0000        18.152        .21311E-07** at limit **
   6  norm           .0000        .77009       -.50795E-08** at limit **
   7  Prefactor     37.127        24.878       -.67296E-07   -.31916E-03
   8  Prefactor     9.7476        10.983        .27755E-07    .14330E-03
   9  Prefactor     35.385        23.691       -.24064E-07    .49816E-04
  10  norm          2.4105        4.1106        .50119E-06   -.31782E-02
  11  norm          8.0792        7.4093       -.21220E-07    .15129E-03
  12  Prefactor      .0000        8.1828        .35508E-08** at limit **
  13  norm           .0000        1.4750       -.48839E-09** at limit **
  14  Prefactor     14.334        135.59        .76853E-06    .11151E-03
  15  Prefactor      .0000        64.796       -.13190E-07** at limit **
  16  Prefactor     139.22        64.994       -.38301E-06   -.13039E-02
  17  Prefactor     .18874E-08    6.3675        .15386E-06** at limit **
  18  Normalizat    1.3370        .20687       -.26533E-05   -.83095E-04
  19  Prefactor     .84492        .77173E-01    .94477E-06    .26561E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03834
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 37.1268
  Prefactor  = 9.74763
  Prefactor  = 35.3855
  norm       = 2.41051
  norm       = 8.07921
  Prefactor  = 0
  norm       = 0
  Prefactor  = 14.3344
  Prefactor  = 0
  Prefactor  = 139.222
  Prefactor  = 1.88738e-09
  Normalizat = 1.33702
  Prefactor  = 0.844925
 **********
 **   18 **HESSE 
 **********

 FCN=   9575.761     FROM HESSE     STATUS=OK           266 CALLS     2275 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0383        .93390        .93626E-04   -1.5688    
   2  norm           .0000        3.8750        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        16.976        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.4921        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        18.171        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .78019        .83833E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.127        24.903        .65654E-05   -1.5586    
   8  Prefactor     9.7476        11.018        .12831E-04   -1.5646    
   9  Prefactor     35.385        23.702        .67249E-05   -1.5589    
  10  norm          2.4105        4.1295        .12577E-03   -1.5677    
  11  norm          8.0792        7.4115        .70499E-04   -1.5651    
  12  Prefactor      .0000        8.1926        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.4850        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.334        135.93        .10572E-04   -1.5632    
  15  Prefactor      .0000        64.943        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     139.22        65.092        .16952E-04   -1.5472    
  17  Prefactor     .18874E-08    6.4499        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3370        .23729        .34407E-03   -.82468    
  19  Prefactor     .84492        .89328E-01    .16473E-03   -.98093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40781e-09
Minuit parameter uncertainties:
  1  0.933898
  2  1.20503e-05
  3  2.5143e-05
  4  1.27732e-06
  5  1.93168e-06
  6  2.53621e-06
  7  24.9031
  8  11.0182
  9  23.7025
  10  4.12951
  11  7.41153
  12  1.46858e-06
  13  5.09422e-07
  14  88.2844
  15  1.35084e-05
  16  65.0925
  17  0.000221284
  18  0.237483
  19  0.0893433
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  0.000e+00  1.932e-06  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.449e-01  8.934e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.337e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 4.98415387851e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00368921193651 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18923504/likelihoodResults_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.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) = 9575.78825588
delta logL = -0.0268886737467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9575.7613678
delta logL = -5.95066012465e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60640E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .64482       1.0000          .0000       10.000    
     3 'Normalizat'    1.3372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9575.761     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      199 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    18.831       -.14196E-05** at limit **
   2  Index         1.6413        3.0676       -.77481E-05   -.78317E-11
   3  Normalizat    1.3370        .22443       -.24880E-05    .14203E-04
   4  Prefactor     .84492        .88496E-01   -.12559E-05    .10913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 1.64133
  Normalizat = 1.33702
  Prefactor  = 0.844924
 **********
 **   18 **HESSE 
 **********

 FCN=   9575.761     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      232 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    .17764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6413        5.2860        .41662       -.73655    
   3  Normalizat    1.3370        .53087E-03    .77740E-01   -.82468    
   4  Prefactor     .84492        .20849E-03    .44298E-01   -.98093    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78627e-13
Minuit parameter uncertainties:
  1  1.64017e-05
  2  6515.81
  3  0.000530869
  4  0.000208489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9575.7613672
delta logL = 7.63975549489e-11

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.886e-10  1.640e-05  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.641e+00  6.516e+03  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.449e-01  2.085e-04  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.337e+00  5.309e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 346.173 37.083

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/18923504/cmap_HighResolution_710035201_710294401_4FGL_J2304.6+3704_daily_bin1816.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2023-07-10 14:45:55.894785', job_id='18923504', GAL2='0.84', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1689025555.89', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1816' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 14:45:55 PDT 2023

