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

 FCN=   7860.264     FROM HESSE     STATUS=OK           361 CALLS     1730 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    7.1121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    2.3904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.000        7.7986        .27803E-03   -1.5636    
   4  norm          2.0247        2.2727        .72679E-03   -1.5680    
   5  norm          .10387        .32971        .13823E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .27756E-09    25.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.4863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12879E-07    43.091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5590        4.1987        .53556E-03   -1.5670    
  10  norm          .50029        1.8426        .78807E-03   -1.5694    
  11  Prefactor     .11102E-09    5.0276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        35.376        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    11.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .44748E-03    19.722        .14248E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27756E-09    33.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8992        1.0334        .51072E-04   -1.5668    
  17  Prefactor     2.3910        2.8276        .66233E-03   -1.5677    
  18  norm          1.3054        3.2641        .96432E-03   -1.5685    
  19  Prefactor     .12744E-05    155.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .92446        .23548        .93722E-01   -.95606    
  21  Prefactor     1.0390        .91428E-01    .40614E-01   -.91441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11303e-08
Minuit parameter uncertainties:
  1  5.40644e-05
  2  1.72358e-05
  3  7.79856
  4  2.27268
  5  0.329706
  6  0.00015894
  7  1.27465e-06
  8  0.0014898
  9  4.19875
  10  1.84263
  11  4.23222e-05
  12  5.35679e-05
  13  5.95338e-05
  14  0.187885
  15  0.000184346
  16  1.03343
  17  2.82762
  18  3.26413
  19  0.0281698
  20  0.23574
  21  0.0914414
/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) = 7860.26439344

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  5.357e-05  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.039e+00  9.144e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  9.245e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 43.383 32.283
Photon Flux Upper Limit: 7.85558086137e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00597330580025 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18858554/likelihoodResults_709257601_709516801_4FGL_J0253.5+3216_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): 102
logL (Free Index) = 7860.27788569
delta logL = -0.0134922444859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7860.26440392
delta logL = -1.04767350422e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7860.264     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        38.092        .42118E-03** at limit **
   2  Index         2.1086        1.4758        .35473E-04     .0000    
   3  Normalizat    .92446        1.2584        .74817E-05    .89989E-05
   4  Prefactor     1.0390        1.2053       -.31749E-05   -.26913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.10858
  Normalizat = 0.924459
  Prefactor  = 1.03899
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7860.264     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        38.092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .48517        1.8193        .35473E-04   -.61662    
   3  Normalizat    .92446        1.2584        .74817E-05   -.95606    
   4  Prefactor     1.0390        1.2053       -.31749E-05   -.91441    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.51232e-12
Minuit parameter uncertainties:
  1  3.2279e-05
  2  1.51007
  3  1.30235
  4  1.23903
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) = 7860.26439344
delta logL = -9.09494701773e-13

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  3.228e-05  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.109e+00  1.510e+00  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.039e+00  1.239e+00  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  9.245e-01  1.302e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 43.383 32.283

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/18858554/cmap_HighResolution_709257601_709516801_4FGL_J0253.5+3216_daily_bin1813.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2023-07-10 08:29:18.291749', job_id='18858554', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689002958.29', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-9.09e-13', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1813' AND source_name='4FGL J0253.5+3216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:29:18 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_J0253.5+3216_daily_bin1813
RA = 43.3829, Dec = 32.2826
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='18859908', job_status='RUN', time_executed='2023-07-10 08:28:59.102616', time_epoch_executed='1689002939.1' WHERE source_name='4FGL J0253.5+3216' and cadence='daily' and bin_id='1813'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18859908

Creating custom pfile directory:
/lscratch/kocevski/18859908/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/18859908/ft1_4FGL_J0253.5+3216_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/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18859908/ft1_4FGL_J0253.5+3216_daily_bin1813.fits outfile=/lscratch/kocevski/18859908/ft1_filteredMKT_4FGL_J0253.5+3216_daily_bin1813.fits ra=43.3829 dec=32.2826 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.65
user 1.39
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_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/18859908/ft1_filteredMKT_4FGL_J0253.5+3216_daily_bin1813.fits evtable="EVENTS" outfile="/lscratch/kocevski/18859908/ft1_filtered_4FGL_J0253.5+3216_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.42
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 748

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18859908/ft1_filtered_4FGL_J0253.5+3216_daily_bin1813.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18859908/ltcube_709257601_709516801_4FGL_J0253.5+3216_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/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits
.....................!
real 8.80
user 8.42
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18859908/ft1_filtered_4FGL_J0253.5+3216_daily_bin1813.fits evtable="EVENTS" scfile=/lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18859908/ltcube_709257601_709516801_4FGL_J0253.5+3216_daily_bin1813.fits outfile=/lscratch/kocevski/18859908/expmap_709257601_709516801_4FGL_J0253.5+3216_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/18859908/ltcube_709257601_709516801_4FGL_J0253.5+3216_daily_bin1813.fits
.....................!
real 70.19
user 65.97
sys 3.74

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

Setting source of interest to:
4FGL J0253.5+3216 @ 43.3829 32.2826

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18859908/ft1_filtered_4FGL_J0253.5+3216_daily_bin1813.fits scfile=/lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits outfile=/lscratch/kocevski/18859908/cmap_709257601_709516801_4FGL_J0253.5+3216_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=43.3829 yref=32.2826 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.57
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18859908/ft1_filtered_4FGL_J0253.5+3216_daily_bin1813.fits scfile=/lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits outfile=/lscratch/kocevski/18859908/cmap_HighResolution_709257601_709516801_4FGL_J0253.5+3216_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=43.3829 yref=32.2826 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.59
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18859908/ft1_filtered_4FGL_J0253.5+3216_daily_bin1813.fits evtable="EVENTS" scfile=/lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18859908/Model_4FGL_J0253.5+3216_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/18859908/ft1_filtered_4FGL_J0253.5+3216_daily_bin1813.fits.....................!
real 45.90
user 44.68
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18859908/ft1_filtered_4FGL_J0253.5+3216_daily_bin1813.fits', '/lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits', expMap='/lscratch/kocevski/18859908/expmap_709257601_709516801_4FGL_J0253.5+3216_daily_bin1813.fits', expCube='/lscratch/kocevski/18859908/ltcube_709257601_709516801_4FGL_J0253.5+3216_daily_bin1813.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18859908/Model_4FGL_J0253.5+3216_daily_bin1813.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.5+3216'

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  8.270e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18859908/ft1_filtered_4FGL_J0253.5+3216_daily_bin1813.fits
Spacecraft file(s): /lscratch/kocevski/18859908/ft2_4FGL_J0253.5+3216_daily_bin1813.fits
Exposure map: /lscratch/kocevski/18859908/expmap_709257601_709516801_4FGL_J0253.5+3216_daily_bin1813.fits
Exposure cube: /lscratch/kocevski/18859908/ltcube_709257601_709516801_4FGL_J0253.5+3216_daily_bin1813.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18859908/Model_4FGL_J0253.5+3216_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) = 7860.28332257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21865E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .18358E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    12.956       1.0000          .0000       .10000E+07
     4 'norm      '    2.0252       1.0000          .0000       .10000E+07
     5 'norm      '    .10401       1.0000          .0000       .10000E+07
     6 'norm      '    .92682E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33307E-09   1.0000          .0000       .10000E+07
     8 'Prefactor '    .69875E-04   1.0000          .0000       .10000E+07
     9 'norm      '    3.5582       1.0000          .0000       .10000E+07
    10 'norm      '    .49903       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10534E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .19193E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .66291E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .22479       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13414E-02   1.0000          .0000       .10000E+07
    16 'norm      '    3.8990       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.3893       1.0000          .0000       .10000E+07
    18 'norm      '    1.3078       1.0000          .0000       .10000E+07
    19 'Prefactor '    .39918E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    .92485       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7860.264     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1369 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    7.1144       -.10028E-05** at limit **
   2  norm          .55511E-10    2.3920       -.35918E-06** at limit **
   3  Prefactor     13.000        7.8005       -.46003E-06    .12633E-02
   4  norm          2.0247        2.1698       -.16662E-06   -.54921E-03
   5  norm          .10387        .30216        .89472E-07** at limit **
   6  norm          .27756E-09    25.195       -.11390E-05** at limit **
   7  Prefactor      .0000        1.4865       -.63854E-07** at limit **
   8  Prefactor     .12879E-07    43.009        .99630E-07** at limit **
   9  norm          3.5590        4.2063        .38351E-07    .44722E-03
  10  norm          .50029        1.8319        .10235E-05   -.17654E-02
  11  Prefactor     .11102E-09    5.0363       -.98684E-06** at limit **
  12  Prefactor      .0000        35.476       -.23526E-06** at limit **
  13  norm          .55511E-10    11.374       -.14578E-05** at limit **
  14  norm          .44748E-03    24.142        .10276E-05** at limit **
  15  Prefactor     .27756E-09    33.963       -.21257E-05** at limit **
  16  norm          3.8992        1.0323       -.20246E-06    .85076E-02
  17  Prefactor     2.3910        2.7491        .15174E-06   -.21041E-02
  18  norm          1.3054        3.1885       -.11732E-06    .43243E-03
  19  Prefactor     .12744E-05    152.29        .23708E-05** at limit **
  20  Normalizat    .92446        .25457        .14804E-04   -.22463E-04
  21  Prefactor     1.0390        .10120       -.38482E-05   -.41693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 5.55112e-11
  Prefactor  = 13.0001
  norm       = 2.02474
  norm       = 0.103871
  norm       = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 1.28786e-08
  norm       = 3.55896
  norm       = 0.500291
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 0.000447479
  Prefactor  = 2.77556e-10
  norm       = 3.89921
  Prefactor  = 2.39098
  norm       = 1.3054
  Prefactor  = 1.27437e-06
  Normalizat = 0.924459
  Prefactor  = 1.03899
 **********
 **   18 **HESSE 
 **********

 FCN=   7860.264     FROM HESSE     STATUS=OK           361 CALLS     1730 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    7.1121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    2.3904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.000        7.7986        .27803E-03   -1.5636    
   4  norm          2.0247        2.2727        .72679E-03   -1.5680    
   5  norm          .10387        .32971        .13823E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .27756E-09    25.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.4863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12879E-07    43.091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5590        4.1987        .53556E-03   -1.5670    
  10  norm          .50029        1.8426        .78807E-03   -1.5694    
  11  Prefactor     .11102E-09    5.0276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        35.376        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    11.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .44748E-03    19.722        .14248E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27756E-09    33.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8992        1.0334        .51072E-04   -1.5668    
  17  Prefactor     2.3910        2.8276        .66233E-03   -1.5677    
  18  norm          1.3054        3.2641        .96432E-03   -1.5685    
  19  Prefactor     .12744E-05    155.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .92446        .23548        .93722E-01   -.95606    
  21  Prefactor     1.0390        .91428E-01    .40614E-01   -.91441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11303e-08
Minuit parameter uncertainties:
  1  5.40644e-05
  2  1.72358e-05
  3  7.79856
  4  2.27268
  5  0.329706
  6  0.00015894
  7  1.27465e-06
  8  0.0014898
  9  4.19875
  10  1.84263
  11  4.23222e-05
  12  5.35679e-05
  13  5.95338e-05
  14  0.187885
  15  0.000184346
  16  1.03343
  17  2.82762
  18  3.26413
  19  0.0281698
  20  0.23574
  21  0.0914414
Done.

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

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  5.357e-05  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.039e+00  9.144e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  9.245e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 43.383 32.283
Photon Flux Upper Limit: 7.85558086137e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00597330580025 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18859908/likelihoodResults_709257601_709516801_4FGL_J0253.5+3216_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): 102
logL (Free Index) = 7860.27788569
delta logL = -0.0134922444859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7860.26440392
delta logL = -1.04767350422e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7860.264     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      212 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        38.092        .42118E-03** at limit **
   2  Index         2.1086        1.4758        .35473E-04     .0000    
   3  Normalizat    .92446        1.2584        .74817E-05    .89989E-05
   4  Prefactor     1.0390        1.2053       -.31749E-05   -.26913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.10858
  Normalizat = 0.924459
  Prefactor  = 1.03899
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7860.264     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        38.092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .48517        1.8193        .35473E-04   -.61662    
   3  Normalizat    .92446        1.2584        .74817E-05   -.95606    
   4  Prefactor     1.0390        1.2053       -.31749E-05   -.91441    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.51232e-12
Minuit parameter uncertainties:
  1  3.2279e-05
  2  1.51007
  3  1.30235
  4  1.23903
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) = 7860.26439344
delta logL = -9.09494701773e-13

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  3.228e-05  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.109e+00  1.510e+00  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.039e+00  1.239e+00  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  9.245e-01  1.302e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 43.383 32.283

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/18859908/cmap_HighResolution_709257601_709516801_4FGL_J0253.5+3216_daily_bin1813.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2023-07-10 08:34:15.322841', job_id='18859908', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689003255.32', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-9.09e-13', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1813' AND source_name='4FGL J0253.5+3216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 08:34:15 PDT 2023

