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

 FCN=   6458.464     FROM HESSE     STATUS=OK           583 CALLS     3131 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.909        29.547        .27776E-03   -1.5636    
   3  norm          .99920E-09    4.8489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4018        3.0936        .91541E-03   -1.5684    
   5  Prefactor     .15338E-06    13.386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    36.497        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73830E-08    5.5695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7492        10.680        .33860E-03   -1.5649    
   9  Prefactor     .11324E-05    12.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .51513E-05    18.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.314        21.887        .24724E-03   -1.5627    
  12  Prefactor     27.752        30.710        .19024E-03   -1.5603    
  13  Prefactor     33.060        17.881        .17395E-03   -1.5593    
  14  norm           .0000        1.0450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.0957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9375        22.751        .35534E-03   -1.5652    
  17  norm          6.7687        20.558        .38503E-03   -1.5656    
  18  norm          .75301        .65739        .56516E-03   -1.5691    
  19  Prefactor     5.4637        13.768        .43013E-03   -1.5661    
  20  Prefactor     37.577        19.314        .16313E-03   -1.5585    
  21  norm          1.3831        1.7625        .92358E-03   -1.5684    
  22  Prefactor     12.625        8.5816        .28208E-03   -1.5637    
  23  Prefactor     .29475E-05    20.155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .40135E-07    8.7160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        .90082E-01    .14123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .13323E-08    29.007        .15934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4282        .22544        .62831E-01   -.79817    
  28  Prefactor     .86438        .16183        .44552E-01   -.97397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45321e-06
Minuit parameter uncertainties:
  1  5.62047e-06
  2  29.5478
  3  0.000140236
  4  3.09357
  5  0.00286552
  6  0.000159439
  7  0.00040563
  8  10.6805
  9  0.00756084
  10  0.0196148
  11  21.8867
  12  30.7101
  13  17.8813
  14  4.89057e-06
  15  3.78911e-06
  16  22.7514
  17  20.5578
  18  0.657389
  19  13.7684
  20  19.3143
  21  1.76253
  22  8.58166
  23  0.0154152
  24  0.00118305
  25  2.45549e-06
  26  0.000393644
  27  0.225601
  28  0.161918
/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) = 6458.4639449

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  0.000e+00  4.891e-06  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.844e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.644e-01  1.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.428e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 5.72256019523e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19657043/likelihoodResults_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.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) = 6458.46420958
delta logL = -0.000264679055363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6458.46394491
delta logL = -9.74341674009e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6458.464     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      248 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .89319        .42118E-03** at limit **
   2  alpha         1.7122        .95778        .10389E-03     .0000    
   3  Normalizat    1.4282        1.0581       -.47301E-04   -.27485E-03
   4  Prefactor     .86438        1.2109        .31782E-04   -.36116E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.71223
  Normalizat = 1.42819
  Prefactor  = 0.864382
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6458.464     FROM HESSE     STATUS=FAILED         9 CALLS      257 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .89319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .65421        1.1251        .10389E-03   -.32057    
   3  Normalizat    1.4282        1.0581       -.47301E-04   -.79817    
   4  Prefactor     .86438        1.2109        .31782E-04   -.97397    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.93998e-11
Minuit parameter uncertainties:
  1  4.9012e-06
  2  0.985909
  3  1.07501
  4  1.25188
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) = 6458.4639449
delta logL = -2.36468622461e-11

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  0.000e+00  4.901e-06  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  1.712e+00  9.859e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.844e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.644e-01  1.252e+00  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.428e+00  1.075e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 184.639 -1.327

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19657043/cmap_HighResolution_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.72e-08', time_completed='2023-07-18 01:15:50.050758', job_id='19657043', GAL2='0.86', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1689668150.05', return_code2='101', ts='0.00', return_code='0', GAL='0.86', dlogl='-2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1820' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:15:50 PDT 2023

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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin1820
RA = 184.639, Dec = -1.327
tmin = 711072001, tmax = 711331201
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='19658174', job_status='RUN', time_executed='2023-07-18 01:15:24.052197', time_epoch_executed='1689668124.05' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='1820'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19658174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19658174/ft1_4FGL_J1218.5-0119_daily_bin1820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19658174/ft1_4FGL_J1218.5-0119_daily_bin1820.fits outfile=/lscratch/kocevski/19658174/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin1820.fits ra=184.639 dec=-1.327 rad=12.0 tmin=711072001.0 tmax=711331201.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.33
user 1.60
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.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/19658174/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin1820.fits evtable="EVENTS" outfile="/lscratch/kocevski/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.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 1.27
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19658174/ltcube_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.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/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits
.....................!
real 7.45
user 6.69
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19658174/ltcube_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.fits outfile=/lscratch/kocevski/19658174/expmap_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.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/19658174/ltcube_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.fits
.....................!
real 59.78
user 55.76
sys 3.19

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

Setting source of interest to:
4FGL J1218.5-0119 @ 184.639 -1.327

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.fits scfile=/lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits outfile=/lscratch/kocevski/19658174/cmap_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.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=184.639 yref=-1.327 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.92
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.fits scfile=/lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits outfile=/lscratch/kocevski/19658174/cmap_HighResolution_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.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=184.639 yref=-1.327 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.86
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.fits evtable="EVENTS" scfile=/lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19658174/Model_4FGL_J1218.5-0119_daily_bin1820.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/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.fits.....................!
real 21.06
user 19.55
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.fits', '/lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits', expMap='/lscratch/kocevski/19658174/expmap_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.fits', expCube='/lscratch/kocevski/19658174/ltcube_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19658174/Model_4FGL_J1218.5-0119_daily_bin1820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1218.5-0119'

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.397e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.844e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19658174/ft1_filtered_4FGL_J1218.5-0119_daily_bin1820.fits
Spacecraft file(s): /lscratch/kocevski/19658174/ft2_4FGL_J1218.5-0119_daily_bin1820.fits
Exposure map: /lscratch/kocevski/19658174/expmap_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.fits
Exposure cube: /lscratch/kocevski/19658174/ltcube_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19658174/Model_4FGL_J1218.5-0119_daily_bin1820.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) = 6458.48229862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15580E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    12.981       1.0000          .0000       .10000E+07
     3 'norm      '    .44269E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4028       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24493E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23919E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12151E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    8.7507       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29191E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .63771E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    16.375       1.0000          .0000       .10000E+07
    12 'Prefactor '    27.640       1.0000          .0000       .10000E+07
    13 'Prefactor '    33.059       1.0000          .0000       .10000E+07
    14 'norm      '    .17283E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .25136E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.9513       1.0000          .0000       .10000E+07
    17 'norm      '    6.7825       1.0000          .0000       .10000E+07
    18 'norm      '    .75287       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.4514       1.0000          .0000       .10000E+07
    20 'Prefactor '    37.586       1.0000          .0000       .10000E+07
    21 'norm      '    1.3856       1.0000          .0000       .10000E+07
    22 'Prefactor '    12.588       1.0000          .0000       .10000E+07
    23 'Prefactor '    .24186E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .59789E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .14599E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .40662E-01   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.4280       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86461       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6458.464     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     2548 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2018        .12649E-06** at limit **
   2  Prefactor     12.909        2.0158       -.32377E-06    .90010E-01
   3  norm          .99920E-09    4.8531       -.31274E-05** at limit **
   4  Prefactor     1.4018        3.0421        .23324E-06   -.63390E-03
   5  Prefactor     .15338E-06    6.4262        .65844E-05** at limit **
   6  Prefactor     .16653E-09    36.509        .44320E-06** at limit **
   7  Prefactor     .73830E-08    5.5618        .15567E-05** at limit **
   8  Prefactor     8.7492        1.0440        .86071E-07    .51006E-02
   9  Prefactor     .11324E-05    6.3932        .63582E-05** at limit **
  10  Prefactor     .51513E-05    7.8538        .31923E-05** at limit **
  11  Prefactor     16.314        1.2158       -.87868E-07    .14794E-01
  12  Prefactor     27.752        1.6788        .14950E-06   -.10103    
  13  Prefactor     33.060        1.0303       -.63492E-07   -.28338E-02
  14  norm           .0000        1.0465       -.81861E-06** at limit **
  15  norm           .0000        1.0959       -.17367E-05** at limit **
  16  Prefactor     7.9375        1.2870       -.16203E-06    .18993E-01
  17  norm          6.7687        1.0070       -.56863E-07    .29894E-02
  18  norm          .75301        .61439        .16014E-06    .10323E-01
  19  Prefactor     5.4637        1.0682        .16125E-06    .10845E-01
  20  Prefactor     37.577        1.1374       -.51027E-08   -.92441E-03
  21  norm          1.3831        1.7226        .68920E-06   -.47819E-02
  22  Prefactor     12.625        1.0269        .32828E-07    .34365E-01
  23  Prefactor     .29475E-05    12.030        .14691E-05** at limit **
  24  norm          .40135E-07    8.6332        .66940E-06** at limit **
  25  norm           .0000        .96262       -.65028E-06** at limit **
  26  Prefactor     .13323E-08    29.016       -.30645E-05** at limit **
  27  Normalizat    1.4282        .25768        .46628E-04   -.21211E-03
  28  Prefactor     .86438        .18655       -.15150E-04   -.10551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 12.9094
  norm       = 9.99201e-10
  Prefactor  = 1.40177
  Prefactor  = 1.53377e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 7.38298e-09
  Prefactor  = 8.74921
  Prefactor  = 1.13243e-06
  Prefactor  = 5.15127e-06
  Prefactor  = 16.3143
  Prefactor  = 27.7523
  Prefactor  = 33.0601
  norm       = 0
  norm       = 0
  Prefactor  = 7.93751
  norm       = 6.7687
  norm       = 0.753011
  Prefactor  = 5.46366
  Prefactor  = 37.5771
  norm       = 1.38312
  Prefactor  = 12.6245
  Prefactor  = 2.94753e-06
  norm       = 4.01346e-08
  norm       = 0
  Prefactor  = 1.33227e-09
  Normalizat = 1.42818
  Prefactor  = 0.864385
 **********
 **   18 **HESSE 
 **********

 FCN=   6458.464     FROM HESSE     STATUS=OK           583 CALLS     3131 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.909        29.547        .27776E-03   -1.5636    
   3  norm          .99920E-09    4.8489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4018        3.0936        .91541E-03   -1.5684    
   5  Prefactor     .15338E-06    13.386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    36.497        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73830E-08    5.5695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7492        10.680        .33860E-03   -1.5649    
   9  Prefactor     .11324E-05    12.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .51513E-05    18.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.314        21.887        .24724E-03   -1.5627    
  12  Prefactor     27.752        30.710        .19024E-03   -1.5603    
  13  Prefactor     33.060        17.881        .17395E-03   -1.5593    
  14  norm           .0000        1.0450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.0957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9375        22.751        .35534E-03   -1.5652    
  17  norm          6.7687        20.558        .38503E-03   -1.5656    
  18  norm          .75301        .65739        .56516E-03   -1.5691    
  19  Prefactor     5.4637        13.768        .43013E-03   -1.5661    
  20  Prefactor     37.577        19.314        .16313E-03   -1.5585    
  21  norm          1.3831        1.7625        .92358E-03   -1.5684    
  22  Prefactor     12.625        8.5816        .28208E-03   -1.5637    
  23  Prefactor     .29475E-05    20.155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .40135E-07    8.7160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        .90082E-01    .14123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .13323E-08    29.007        .15934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4282        .22544        .62831E-01   -.79817    
  28  Prefactor     .86438        .16183        .44552E-01   -.97397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45321e-06
Minuit parameter uncertainties:
  1  5.62047e-06
  2  29.5478
  3  0.000140236
  4  3.09357
  5  0.00286552
  6  0.000159439
  7  0.00040563
  8  10.6805
  9  0.00756084
  10  0.0196148
  11  21.8867
  12  30.7101
  13  17.8813
  14  4.89057e-06
  15  3.78911e-06
  16  22.7514
  17  20.5578
  18  0.657389
  19  13.7684
  20  19.3143
  21  1.76253
  22  8.58166
  23  0.0154152
  24  0.00118305
  25  2.45549e-06
  26  0.000393644
  27  0.225601
  28  0.161918
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  0.000e+00  4.891e-06  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.844e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.644e-01  1.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.428e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 5.72256019523e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19658174/likelihoodResults_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.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) = 6458.46420958
delta logL = -0.000264679055363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6458.46394491
delta logL = -9.74341674009e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6458.464     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      248 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .89319        .42118E-03** at limit **
   2  alpha         1.7122        .95778        .10389E-03     .0000    
   3  Normalizat    1.4282        1.0581       -.47301E-04   -.27485E-03
   4  Prefactor     .86438        1.2109        .31782E-04   -.36116E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.71223
  Normalizat = 1.42819
  Prefactor  = 0.864382
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6458.464     FROM HESSE     STATUS=FAILED         9 CALLS      257 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .89319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .65421        1.1251        .10389E-03   -.32057    
   3  Normalizat    1.4282        1.0581       -.47301E-04   -.79817    
   4  Prefactor     .86438        1.2109        .31782E-04   -.97397    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.93998e-11
Minuit parameter uncertainties:
  1  4.9012e-06
  2  0.985909
  3  1.07501
  4  1.25188
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) = 6458.4639449
delta logL = -2.36468622461e-11

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  0.000e+00  4.901e-06  0.000e+00  1.000e+06 ( 1.000e-12)
336        alpha:  1.712e+00  9.859e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.844e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.644e-01  1.252e+00  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.428e+00  1.075e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 184.639 -1.327

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/19658174/cmap_HighResolution_711072001_711331201_4FGL_J1218.5-0119_daily_bin1820.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='5.72e-08', time_completed='2023-07-18 01:22:59.407976', job_id='19658174', GAL2='0.86', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1689668579.41', return_code2='101', ts='0.00', return_code='0', GAL='0.86', dlogl='-2.36e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1820' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:23:00 PDT 2023

