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

 FCN=   6387.442     FROM HESSE     STATUS=OK           686 CALLS     3617 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97800E-05    38.017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .43259E-05    27.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.496        33.241        .17869E-03   -1.5596    
   4  Prefactor      .0000        1.8616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5094        5.7786        .42674E-03   -1.5661    
   6  Prefactor     .55511E-10    3.7271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.091        5.8522        .26650E-03   -1.5633    
   8  norm          .52736E-08    6.1200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .54345E-07    12.057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     58.705        52.904        .13074E-03   -1.5555    
  11  Prefactor     29.737        12.853        .18341E-03   -1.5599    
  12  Prefactor     .37637E-05    77.407        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40562E-06    18.845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.947        17.966        .21853E-03   -1.5616    
  15  norm          .70499E-08    4.3545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .17136E-06    5.0743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.6882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.698        7.4721        .26089E-03   -1.5631    
  19  Prefactor     .31395E-05    46.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.5382        4.4460        .36487E-03   -1.5653    
  21  Prefactor     .12168E-06    11.416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4899        1.3064        .87828E-03   -1.5684    
  23  norm           .0000        2.2535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .31530E-07    5.0986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1727        2.5476        .32251E-02   -1.5686    
  26  Prefactor     .27635E-05    22.113        .11447E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .32985E-06    5.2572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        1.8151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.8126        4.5642        .60749E-03   -1.5674    
  30  Normalizat    .60691        .17917        .67679E-01   -1.0769    
  31  Prefactor     1.4430        .19433        .52818E-01   -.79150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58284e-06
Minuit parameter uncertainties:
  1  0.0385648
  2  0.0217445
  3  33.2408
  4  1.27294e-06
  5  5.77862
  6  2.38355e-05
  7  5.85218
  8  0.000359149
  9  0.00161914
  10  52.9042
  11  12.853
  12  0.0341374
  13  0.00552972
  14  17.9657
  15  0.000350818
  16  0.00186508
  17  5.49208e-06
  18  7.47215
  19  0.0242503
  20  4.44598
  21  0.00235697
  22  1.30641
  23  6.46451e-06
  24  0.000801692
  25  2.5476
  26  0.0156346
  27  0.00263378
  28  2.00589e-06
  29  4.56416
  30  0.17934
  31  0.194425
/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) = 6387.44217731

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  2.763e-06  1.563e-02  0.000e+00  1.000e+06 ( 1.000e-13)
521        Index:  2.559e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
522        Scale:  8.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.443e+00  1.944e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  6.069e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.037 -49.570
Photon Flux Upper Limit: 8.67098352751e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0067689974109 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18924086/likelihoodResults_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.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) = 6387.44533844
delta logL = -0.00316112347446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6387.38477802
delta logL = 0.0573992918526

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6387.385     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      248 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14113        5.2099        .12863E-02** at limit **
   2  Index         4.9188        3.3435        .20140        .81571E-04
   3  Normalizat    .58760        .18918E-01    .68705E-01    .35045E-04
   4  Prefactor     1.4565        .21888E-01    .52608E-01    .25028E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.141135
  Index      = 4.91875
  Normalizat = 0.587597
  Prefactor  = 1.45649
 **********
 **   18 **HESSE 
 **********

 FCN=   6387.385     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      283 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14113        56.438        .78205E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.9188        7.0278        .12550E-01   -.16250E-01
   3  Normalizat    .58760        .99296E-01    .30408E-03   -1.0851    
   4  Prefactor     1.4565        .11379        .23257E-03   -.78766    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.99639e-10
Minuit parameter uncertainties:
  1  5.64466
  2  20.218
  3  0.0993265
  4  0.113806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6387.38477468
delta logL = 0.0574026347904

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.411e-01  5.645e+00  0.000e+00  1.000e+06 ( 1.000e-13)
521        Index:  4.919e+00  2.022e+01  0.000e+00  1.000e+01 (-1.000e+00)
522        Scale:  8.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.456e+00  1.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  5.876e-01  9.933e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.037 -49.570

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/18924086/cmap_HighResolution_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2023-07-10 14:51:15.656878', job_id='18924086', GAL2='1.46', fit_tolerance='1e-08', EG2='0.59', EG='0.61', time_epoch_completed='1689025875.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='5.74e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1812' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 14:51:15 PDT 2023

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


Performing analysis on: 4FGL_J2348.1-4934_daily_bin1812
RA = 357.037, Dec = -49.57
tmin = 708998401, tmax = 709257601
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='18924326', job_status='RUN', time_executed='2023-07-10 14:50:46.521551', time_epoch_executed='1689025846.52' WHERE source_name='4FGL J2348.1-4934' and cadence='daily' and bin_id='1812'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18924326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18924326/ft1_4FGL_J2348.1-4934_daily_bin1812.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18924326/ft1_4FGL_J2348.1-4934_daily_bin1812.fits outfile=/lscratch/kocevski/18924326/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin1812.fits ra=357.037 dec=-49.57 rad=12.0 tmin=708998401.0 tmax=709257601.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.63
user 1.41
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.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/18924326/ft1_filteredMKT_4FGL_J2348.1-4934_daily_bin1812.fits evtable="EVENTS" outfile="/lscratch/kocevski/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.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.36
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 580

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18924326/ltcube_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.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/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits
.....................!
real 8.67
user 8.38
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.fits evtable="EVENTS" scfile=/lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18924326/ltcube_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.fits outfile=/lscratch/kocevski/18924326/expmap_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.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/18924326/ltcube_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.fits
.....................!
real 63.89
user 59.90
sys 3.56

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

Setting source of interest to:
4FGL J2348.1-4934 @ 357.037 -49.57

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.fits scfile=/lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits outfile=/lscratch/kocevski/18924326/cmap_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.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=357.037 yref=-49.57 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.39
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.fits scfile=/lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits outfile=/lscratch/kocevski/18924326/cmap_HighResolution_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.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=357.037 yref=-49.57 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.42
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.fits evtable="EVENTS" scfile=/lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18924326/Model_4FGL_J2348.1-4934_daily_bin1812.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/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.fits....................!
real 18.15
user 17.09
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.fits', '/lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits', expMap='/lscratch/kocevski/18924326/expmap_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.fits', expCube='/lscratch/kocevski/18924326/ltcube_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18924326/Model_4FGL_J2348.1-4934_daily_bin1812.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2348.1-4934'

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  2.252e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
521        Index:  2.559e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
522        Scale:  8.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18924326/ft1_filtered_4FGL_J2348.1-4934_daily_bin1812.fits
Spacecraft file(s): /lscratch/kocevski/18924326/ft2_4FGL_J2348.1-4934_daily_bin1812.fits
Exposure map: /lscratch/kocevski/18924326/expmap_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.fits
Exposure cube: /lscratch/kocevski/18924326/ltcube_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18924326/Model_4FGL_J2348.1-4934_daily_bin1812.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) = 6387.44950276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34501E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .65193E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    31.327       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38867E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.5369       1.0000          .0000       .10000E+07
     6 'Prefactor '    .35399E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    14.098       1.0000          .0000       .10000E+07
     8 'norm      '    .10777E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .15176E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    58.515       1.0000          .0000       .10000E+07
    11 'Prefactor '    29.736       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11128       1.0000          .0000       .10000E+07
    13 'Prefactor '    .95912E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    20.953       1.0000          .0000       .10000E+07
    15 'norm      '    .28828E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .17465E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .22225E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    14.709       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10189E-01   1.0000          .0000       .10000E+07
    20 'norm      '    7.5449       1.0000          .0000       .10000E+07
    21 'Prefactor '    .84011E-03   1.0000          .0000       .10000E+07
    22 'norm      '    1.4892       1.0000          .0000       .10000E+07
    23 'norm      '    .28918E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .13529E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    1.1653       1.0000          .0000       .10000E+07
    26 'Prefactor '    .33473       1.0000          .0000       .10000E+07
    27 'norm      '    .32359E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .20177E-04   1.0000          .0000       .10000E+07
    29 'Prefactor '    2.8020       1.0000          .0000       .10000E+07
    30 'Normalizat'    .60649       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6387.442     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     2931 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97800E-05    18.401        .37462E-05** at limit **
   2  Prefactor     .43259E-05    20.637        .62074E-06** at limit **
   3  Prefactor     31.496        3.4720       -.56518E-07   -.14650E-01
   4  Prefactor      .0000        1.8629       -.12263E-06** at limit **
   5  Prefactor     5.5094        5.7526        .46825E-06    .37470E-03
   6  Prefactor     .55511E-10    3.7308        .16856E-06** at limit **
   7  Prefactor     14.091        5.8462       -.24117E-06   -.10581E-02
   8  norm          .52736E-08    5.8655       -.15448E-06** at limit **
   9  Prefactor     .54345E-07    7.6635        .86832E-06** at limit **
  10  Prefactor     58.705        6.7339        .14144E-06   -.13728    
  11  Prefactor     29.737        2.1147       -.10361E-06   -.25167E-01
  12  Prefactor     .37637E-05    31.111       -.34366E-05** at limit **
  13  Prefactor     .40562E-06    17.709       -.97163E-06** at limit **
  14  Prefactor     20.947        1.1426       -.24034E-07    .41201E-03
  15  norm          .70499E-08    4.3278        .99674E-07** at limit **
  16  norm          .17136E-06    2.2108       -.72192E-06** at limit **
  17  norm           .0000        1.6894        .40991E-06** at limit **
  18  Prefactor     14.698        7.4176       -.81969E-07    .10751E-02
  19  Prefactor     .31395E-05    37.724        .30635E-05** at limit **
  20  norm          7.5382        4.4387        .73645E-07   -.83598E-03
  21  Prefactor     .12168E-06    7.7218       -.58478E-06** at limit **
  22  norm          1.4899        1.2332       -.44607E-07   -.91134E-03
  23  norm           .0000        2.2574       -.28249E-06** at limit **
  24  Prefactor     .31530E-07    1.9250       -.50605E-06** at limit **
  25  Prefactor     1.1727        1.9511       -.85286E-07   -.24618E-03
  26  Prefactor     .27635E-05    5.4770        .19065E-05** at limit **
  27  norm          .32985E-06    2.5969        .25537E-06** at limit **
  28  Prefactor      .0000        1.8189       -.92442E-09** at limit **
  29  Prefactor     2.8126        4.5032       -.40181E-07   -.11408E-02
  30  Normalizat    .60691        .20837       -.42996E-05   -.71035E-04
  31  Prefactor     1.4430        .23256       -.67217E-06   -.65372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.78001e-06
  Prefactor  = 4.32593e-06
  Prefactor  = 31.4958
  Prefactor  = 0
  Prefactor  = 5.50943
  Prefactor  = 5.55112e-11
  Prefactor  = 14.0914
  norm       = 5.27356e-09
  Prefactor  = 5.43454e-08
  Prefactor  = 58.7051
  Prefactor  = 29.7375
  Prefactor  = 3.76366e-06
  Prefactor  = 4.0562e-07
  Prefactor  = 20.9472
  norm       = 7.04992e-09
  norm       = 1.71363e-07
  norm       = 0
  Prefactor  = 14.6979
  Prefactor  = 3.13954e-06
  norm       = 7.53821
  Prefactor  = 1.2168e-07
  norm       = 1.48993
  norm       = 0
  Prefactor  = 3.15303e-08
  Prefactor  = 1.17275
  Prefactor  = 2.76346e-06
  norm       = 3.29847e-07
  Prefactor  = 0
  Prefactor  = 2.81265
  Normalizat = 0.606912
  Prefactor  = 1.44297
 **********
 **   18 **HESSE 
 **********

 FCN=   6387.442     FROM HESSE     STATUS=OK           686 CALLS     3617 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97800E-05    38.017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .43259E-05    27.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.496        33.241        .17869E-03   -1.5596    
   4  Prefactor      .0000        1.8616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5094        5.7786        .42674E-03   -1.5661    
   6  Prefactor     .55511E-10    3.7271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.091        5.8522        .26650E-03   -1.5633    
   8  norm          .52736E-08    6.1200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .54345E-07    12.057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     58.705        52.904        .13074E-03   -1.5555    
  11  Prefactor     29.737        12.853        .18341E-03   -1.5599    
  12  Prefactor     .37637E-05    77.407        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40562E-06    18.845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.947        17.966        .21853E-03   -1.5616    
  15  norm          .70499E-08    4.3545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .17136E-06    5.0743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.6882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.698        7.4721        .26089E-03   -1.5631    
  19  Prefactor     .31395E-05    46.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.5382        4.4460        .36487E-03   -1.5653    
  21  Prefactor     .12168E-06    11.416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4899        1.3064        .87828E-03   -1.5684    
  23  norm           .0000        2.2535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .31530E-07    5.0986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1727        2.5476        .32251E-02   -1.5686    
  26  Prefactor     .27635E-05    22.113        .11447E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .32985E-06    5.2572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        1.8151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.8126        4.5642        .60749E-03   -1.5674    
  30  Normalizat    .60691        .17917        .67679E-01   -1.0769    
  31  Prefactor     1.4430        .19433        .52818E-01   -.79150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58284e-06
Minuit parameter uncertainties:
  1  0.0385648
  2  0.0217445
  3  33.2408
  4  1.27294e-06
  5  5.77862
  6  2.38355e-05
  7  5.85218
  8  0.000359149
  9  0.00161914
  10  52.9042
  11  12.853
  12  0.0341374
  13  0.00552972
  14  17.9657
  15  0.000350818
  16  0.00186508
  17  5.49208e-06
  18  7.47215
  19  0.0242503
  20  4.44598
  21  0.00235697
  22  1.30641
  23  6.46451e-06
  24  0.000801692
  25  2.5476
  26  0.0156346
  27  0.00263378
  28  2.00589e-06
  29  4.56416
  30  0.17934
  31  0.194425
Done.

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

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  2.763e-06  1.563e-02  0.000e+00  1.000e+06 ( 1.000e-13)
521        Index:  2.559e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
522        Scale:  8.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.443e+00  1.944e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  6.069e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.037 -49.570
Photon Flux Upper Limit: 8.67098352751e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0067689974109 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18924326/likelihoodResults_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.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) = 6387.44533844
delta logL = -0.00316112347446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6387.38477802
delta logL = 0.0573992918526

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6387.385     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      248 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14113        5.2099        .12863E-02** at limit **
   2  Index         4.9188        3.3435        .20140        .81571E-04
   3  Normalizat    .58760        .18918E-01    .68705E-01    .35045E-04
   4  Prefactor     1.4565        .21888E-01    .52608E-01    .25028E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.141135
  Index      = 4.91875
  Normalizat = 0.587597
  Prefactor  = 1.45649
 **********
 **   18 **HESSE 
 **********

 FCN=   6387.385     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      283 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14113        56.438        .78205E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.9188        7.0278        .12550E-01   -.16250E-01
   3  Normalizat    .58760        .99296E-01    .30408E-03   -1.0851    
   4  Prefactor     1.4565        .11379        .23257E-03   -.78766    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.99639e-10
Minuit parameter uncertainties:
  1  5.64466
  2  20.218
  3  0.0993265
  4  0.113806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6387.38477468
delta logL = 0.0574026347904

Extracting fit parameters...

4FGL J2348.1-4934
   Spectrum: PowerLaw
520    Prefactor:  1.411e-01  5.645e+00  0.000e+00  1.000e+06 ( 1.000e-13)
521        Index:  4.919e+00  2.022e+01  0.000e+00  1.000e+01 (-1.000e+00)
522        Scale:  8.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.456e+00  1.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  5.876e-01  9.933e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.037 -49.570

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/18924326/cmap_HighResolution_708998401_709257601_4FGL_J2348.1-4934_daily_bin1812.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2023-07-10 14:56:14.212717', job_id='18924326', GAL2='1.46', fit_tolerance='1e-08', EG2='0.59', EG='0.61', time_epoch_completed='1689026174.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='5.74e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1812' AND source_name='4FGL J2348.1-4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 14:56:14 PDT 2023

