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

 FCN=   7484.150     FROM HESSE     STATUS=OK           459 CALLS     2013 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10315E-04    38.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0453        4.9220        .35324E-03   -1.5651    
   3  Prefactor     3.7044        2.3785        .52392E-03   -1.5669    
   4  norm          1.5681        .86330        .84780E-03   -1.5683    
   5  Prefactor     5.9306        41.758        .43524E-03   -1.5659    
   6  Prefactor     .21372E-07    107.74        .16858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.811        10.218        .29187E-03   -1.5639    
   8  Prefactor     13.368        27.771        .26623E-03   -1.5635    
   9  Prefactor     .13711E-07    11.308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .67498E-05    60.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.429        17.702        .31114E-03   -1.5643    
  12  norm          .17225E-06    7.0153        .13299E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.373        14.254        .20656E-03   -1.5611    
  14  Prefactor     .14036E-04    46.327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .81890E-06    26.066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6585        3.7962        .52851E-03   -1.5670    
  17  norm          3.2675        6.5052        .56928E-03   -1.5672    
  18  norm          3.9012        3.2811        .51052E-03   -1.5668    
  19  Prefactor     3.7369        4.2464        .52211E-03   -1.5669    
  20  norm          18.873        10.070        .23048E-03   -1.5621    
  21  Prefactor     17.800        21.512        .23646E-03   -1.5624    
  22  Prefactor     .22204E-09    4.3409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93427        .19568        .77366E-01   -.95266    
  24  Prefactor     1.0249        .10693        .41696E-01   -.91905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15265e-07
Minuit parameter uncertainties:
  1  0.0399463
  2  4.92196
  3  2.37847
  4  0.863303
  5  31.474
  6  0.00303629
  7  10.2181
  8  27.7711
  9  0.00078695
  10  0.0405366
  11  17.7021
  12  0.00219853
  13  14.2539
  14  0.0509998
  15  0.00924037
  16  3.79619
  17  6.50526
  18  3.2811
  19  4.24641
  20  10.0702
  21  21.5125
  22  5.95301e-05
  23  0.195833
  24  0.106949
/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) = 7484.14999933

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.043e+01  1.770e+01  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.025e+00  1.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  9.343e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 39.940 4.264
Photon Flux Upper Limit: 1.39357863478e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0110174681868 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18857251/likelihoodResults_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.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) = 7484.14818716
delta logL = 0.00181217441605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7484.14796534
delta logL = 0.00203399341535

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7484.148     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      271 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.182        17.947        .12548E-04    .84260E-04
   2  Index         2.8810        1.7161        .10840E-01    .66180E-05
   3  Normalizat    .93183        .20125        .34281E-03   -.15557E-02
   4  Prefactor     1.0257        .11290        .18876E-03   -.21897E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1816
  Index      = 2.88103
  Normalizat = 0.931828
  Prefactor  = 1.02571
 **********
 **   18 **HESSE 
 **********

 FCN=   7484.148     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.182        17.594        .50191E-06   -1.5644    
   2  Index         2.8810        1.6817        .43359E-03   -.43763    
   3  Normalizat    .93183        .20135        .68563E-04   -.95351    
   4  Prefactor     1.0257        .11290        .37752E-04   -.91877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50103e-09
Minuit parameter uncertainties:
  1  17.5943
  2  1.72296
  3  0.201517
  4  0.11293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7484.14795974
delta logL = 0.00203959405735

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.018e+01  1.759e+01  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  2.881e+00  1.723e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.026e+00  1.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  9.318e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
Ra Dec: 39.940 4.264

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/18857251/cmap_HighResolution_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2023-07-10 08:24:01.495684', job_id='18857251', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1689002641.5', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.04e-03', ts2='0.45', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1813' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:24:01 PDT 2023

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


Performing analysis on: 4FGL_J0239.7+0415_daily_bin1813
RA = 39.9403, Dec = 4.2643
tmin = 709257601, tmax = 709516801
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='18858251', job_status='RUN', time_executed='2023-07-10 08:23:38.659002', time_epoch_executed='1689002618.66' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='1813'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18858251

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18858251/ft1_4FGL_J0239.7+0415_daily_bin1813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18858251/ft1_4FGL_J0239.7+0415_daily_bin1813.fits outfile=/lscratch/kocevski/18858251/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1813.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=709257601.0 tmax=709516801.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.53
user 1.25
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.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/18858251/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1813.fits evtable="EVENTS" outfile="/lscratch/kocevski/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.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.40
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 688

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18858251/ltcube_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.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/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits
.....................!
real 7.96
user 7.61
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.fits evtable="EVENTS" scfile=/lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18858251/ltcube_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.fits outfile=/lscratch/kocevski/18858251/expmap_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.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/18858251/ltcube_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.fits
.....................!
real 64.12
user 60.12
sys 3.48

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

Setting source of interest to:
4FGL J0239.7+0415 @ 39.9403 4.2643

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.fits scfile=/lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits outfile=/lscratch/kocevski/18858251/cmap_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.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=39.9403 yref=4.2643 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.49
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.fits scfile=/lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits outfile=/lscratch/kocevski/18858251/cmap_HighResolution_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.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=39.9403 yref=4.2643 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.50
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.fits evtable="EVENTS" scfile=/lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18858251/Model_4FGL_J0239.7+0415_daily_bin1813.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/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.fits.....................!
real 34.29
user 33.28
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.fits', '/lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits', expMap='/lscratch/kocevski/18858251/expmap_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.fits', expCube='/lscratch/kocevski/18858251/ltcube_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18858251/Model_4FGL_J0239.7+0415_daily_bin1813.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.7+0415'

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  7.975e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18858251/ft1_filtered_4FGL_J0239.7+0415_daily_bin1813.fits
Spacecraft file(s): /lscratch/kocevski/18858251/ft2_4FGL_J0239.7+0415_daily_bin1813.fits
Exposure map: /lscratch/kocevski/18858251/expmap_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.fits
Exposure cube: /lscratch/kocevski/18858251/ltcube_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18858251/Model_4FGL_J0239.7+0415_daily_bin1813.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) = 7484.23677864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29094E-02   1.0000          .0000       .10000E+07
     2 'norm      '    8.0454       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.7117       1.0000          .0000       .10000E+07
     4 'norm      '    1.5710       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.3262       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22810E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.761       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.126       1.0000          .0000       .10000E+07
     9 'Prefactor '    .40362E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10136E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    10.354       1.0000          .0000       .10000E+07
    12 'norm      '    .20654E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    23.449       1.0000          .0000       .10000E+07
    14 'Prefactor '    .78975E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .53676E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.6499       1.0000          .0000       .10000E+07
    17 'norm      '    3.1667       1.0000          .0000       .10000E+07
    18 'norm      '    3.9020       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.7365       1.0000          .0000       .10000E+07
    20 'norm      '    18.838       1.0000          .0000       .10000E+07
    21 'Prefactor '    17.899       1.0000          .0000       .10000E+07
    22 'Prefactor '    .47717E-06   1.0000          .0000       .10000E+07
    23 'Normalizat'    .93402       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7484.150     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1554 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10315E-04    23.880       -.23011E-06** at limit **
   2  norm          8.0453        4.9070       -.62047E-07   -.57737E-03
   3  Prefactor     3.7044        2.3151       -.52644E-07   -.21805E-02
   4  norm          1.5681        .85814        .84044E-09   -.16467E-02
   5  Prefactor     5.9306        3.7735        .62312E-07    .11365E-01
   6  Prefactor     .21372E-07    108.80       -.14202E-05** at limit **
   7  Prefactor     11.811        6.9923        .15165E-06   -.99246E-01
   8  Prefactor     13.368        5.1122        .13931E-07   -.16117E-02
   9  Prefactor     .13711E-07    11.292        .32327E-06** at limit **
  10  Prefactor     .67498E-05    52.407       -.25767E-06** at limit **
  11  Prefactor     10.429        13.951        .22959E-06    .10289E-01
  12  norm          .17225E-06    83.516       -.25852E-06** at limit **
  13  Prefactor     23.373        3.5612       -.50563E-07   -.54600E-01
  14  Prefactor     .14036E-04    27.487       -.31188E-06** at limit **
  15  Prefactor     .81890E-06    24.783        .33046E-06** at limit **
  16  Prefactor     3.6585        3.7909       -.11596E-06   -.16383E-02
  17  norm          3.2675        6.4838        .21933E-06    .16821E-02
  18  norm          3.9012        3.2776       -.62721E-07   -.16177E-02
  19  Prefactor     3.7369        4.2230       -.86457E-08   -.36034E-03
  20  norm          18.873        8.4065        .20015E-06    .98222E-01
  21  Prefactor     17.800        4.1158       -.64350E-07    .24808E-01
  22  Prefactor     .22204E-09    4.3524       -.36288E-06** at limit **
  23  Normalizat    .93427        .19848       -.54312E-05   -.58582E-04
  24  Prefactor     1.0249        .11588        .19940E-05    .71937E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03155e-05
  norm       = 8.04534
  Prefactor  = 3.70442
  norm       = 1.56811
  Prefactor  = 5.93056
  Prefactor  = 2.13718e-08
  Prefactor  = 11.8114
  Prefactor  = 13.3681
  Prefactor  = 1.37113e-08
  Prefactor  = 6.74982e-06
  Prefactor  = 10.4291
  norm       = 1.72251e-07
  Prefactor  = 23.3735
  Prefactor  = 1.40359e-05
  Prefactor  = 8.18901e-07
  Prefactor  = 3.65847
  norm       = 3.2675
  norm       = 3.9012
  Prefactor  = 3.7369
  norm       = 18.8727
  Prefactor  = 17.8002
  Prefactor  = 2.22045e-10
  Normalizat = 0.934268
  Prefactor  = 1.02487
 **********
 **   18 **HESSE 
 **********

 FCN=   7484.150     FROM HESSE     STATUS=OK           459 CALLS     2013 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10315E-04    38.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0453        4.9220        .35324E-03   -1.5651    
   3  Prefactor     3.7044        2.3785        .52392E-03   -1.5669    
   4  norm          1.5681        .86330        .84780E-03   -1.5683    
   5  Prefactor     5.9306        41.758        .43524E-03   -1.5659    
   6  Prefactor     .21372E-07    107.74        .16858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.811        10.218        .29187E-03   -1.5639    
   8  Prefactor     13.368        27.771        .26623E-03   -1.5635    
   9  Prefactor     .13711E-07    11.308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .67498E-05    60.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.429        17.702        .31114E-03   -1.5643    
  12  norm          .17225E-06    7.0153        .13299E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.373        14.254        .20656E-03   -1.5611    
  14  Prefactor     .14036E-04    46.327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .81890E-06    26.066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6585        3.7962        .52851E-03   -1.5670    
  17  norm          3.2675        6.5052        .56928E-03   -1.5672    
  18  norm          3.9012        3.2811        .51052E-03   -1.5668    
  19  Prefactor     3.7369        4.2464        .52211E-03   -1.5669    
  20  norm          18.873        10.070        .23048E-03   -1.5621    
  21  Prefactor     17.800        21.512        .23646E-03   -1.5624    
  22  Prefactor     .22204E-09    4.3409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93427        .19568        .77366E-01   -.95266    
  24  Prefactor     1.0249        .10693        .41696E-01   -.91905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15265e-07
Minuit parameter uncertainties:
  1  0.0399463
  2  4.92196
  3  2.37847
  4  0.863303
  5  31.474
  6  0.00303629
  7  10.2181
  8  27.7711
  9  0.00078695
  10  0.0405366
  11  17.7021
  12  0.00219853
  13  14.2539
  14  0.0509998
  15  0.00924037
  16  3.79619
  17  6.50526
  18  3.2811
  19  4.24641
  20  10.0702
  21  21.5125
  22  5.95301e-05
  23  0.195833
  24  0.106949
Done.

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

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.043e+01  1.770e+01  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.025e+00  1.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  9.343e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 39.940 4.264
Photon Flux Upper Limit: 1.39357863478e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0110174681868 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18858251/likelihoodResults_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.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) = 7484.14818716
delta logL = 0.00181217441605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7484.14796534
delta logL = 0.00203399341535

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7484.148     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      271 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.182        17.947        .12548E-04    .84260E-04
   2  Index         2.8810        1.7161        .10840E-01    .66180E-05
   3  Normalizat    .93183        .20125        .34281E-03   -.15557E-02
   4  Prefactor     1.0257        .11290        .18876E-03   -.21897E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1816
  Index      = 2.88103
  Normalizat = 0.931828
  Prefactor  = 1.02571
 **********
 **   18 **HESSE 
 **********

 FCN=   7484.148     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.182        17.594        .50191E-06   -1.5644    
   2  Index         2.8810        1.6817        .43359E-03   -.43763    
   3  Normalizat    .93183        .20135        .68563E-04   -.95351    
   4  Prefactor     1.0257        .11290        .37752E-04   -.91877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50103e-09
Minuit parameter uncertainties:
  1  17.5943
  2  1.72296
  3  0.201517
  4  0.11293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7484.14795974
delta logL = 0.00203959405735

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.018e+01  1.759e+01  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  2.881e+00  1.723e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.026e+00  1.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  9.318e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
Ra Dec: 39.940 4.264

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/18858251/cmap_HighResolution_709257601_709516801_4FGL_J0239.7+0415_daily_bin1813.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2023-07-10 08:28:36.302829', job_id='18858251', GAL2='1.03', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1689002916.3', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.04e-03', ts2='0.45', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1813' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:28:36 PDT 2023

