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

 FCN=   7133.641     FROM HESSE     STATUS=OK           514 CALLS     2729 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    6.3151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .91838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .42493E-04    9.7893        .94496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.6399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8824        4.7673        .45483E-03   -1.5664    
   6  Prefactor     17.167        20.149        .24199E-03   -1.5625    
   7  Prefactor     49.483        44.342        .14436E-03   -1.5567    
   8  Prefactor     .76660E-04    11.495        .12015E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4608        2.0402        .89013E-03   -1.5684    
  10  Prefactor     4.5988        6.4968        .46867E-03   -1.5665    
  11  norm          4.1870        2.4097        .49225E-03   -1.5667    
  12  Prefactor     .88929E-07    11.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.9663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .42832E-06    62.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7977        32.250        .45673E-03   -1.5664    
  16  Prefactor     .42827E-06    19.185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.6890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6643        13.490        .62367E-03   -1.5675    
  19  Prefactor     .55511E-10    5.1169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9717        37.043        .50484E-03   -1.5668    
  21  Prefactor     .24653E-06    51.006        .10686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.5299        6.8661        .47315E-03   -1.5665    
  23  Prefactor     12.060        21.085        .28811E-03   -1.5639    
  24  Prefactor     .15704E-06    13.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1252        .13962        .37074E-01   -.88947    
  26  Prefactor     .78547        .15140        .43535E-01   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88972e-07
Minuit parameter uncertainties:
  1  7.25961e-05
  2  4.18475e-06
  3  0.0407911
  4  9.33969e-06
  5  4.76729
  6  20.1493
  7  44.3421
  8  0.0593704
  9  2.04025
  10  6.49677
  11  2.40973
  12  0.00204872
  13  1.27024e-05
  14  0.0103372
  15  24.8779
  16  0.00573281
  17  1.63913e-05
  18  11.9903
  19  2.93375e-05
  20  24.2591
  21  0.00709244
  22  6.86608
  23  21.0854
  24  0.00288299
  25  0.139668
  26  0.151476
/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) = 7133.64051088

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  4.283e-07  1.034e-02  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  7.855e-01  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.125e+00  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.556 67.915
Photon Flux Upper Limit: 5.29656101261e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00402573508548 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18908110/likelihoodResults_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.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) = 7133.64824089
delta logL = -0.00773000786648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7133.2001298
delta logL = 0.440381083046

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7133.200     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86753        23.414        .49557E-03    .12775E-01
   2  Index         4.1274        3.0144        .91953E-01    .22945E-03
   3  Normalizat    1.0786        .37687E-01    .38945E-01    .35022E-05
   4  Prefactor     .81495        .40700E-01    .43912E-01    .16273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.867532
  Index      = 4.12742
  Normalizat = 1.07861
  Prefactor  = 0.814947
 **********
 **   18 **HESSE 
 **********

 FCN=   7133.200     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86753        52.768        .84053E-05   -1.5689    
   2  Index         4.1274        7.0370        .57193E-02   -.17541    
   3  Normalizat    1.0786        .12989        .20632E-03   -.90442    
   4  Prefactor     .81495        .13914        .25497E-03   -.99180    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32179e-06
Minuit parameter uncertainties:
  1  13.532
  2  6.14977
  3  0.129926
  4  0.139198
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) = 7133.20011757
delta logL = 0.440393314201

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  8.675e-01  1.353e+01  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  4.127e+00  6.150e+00  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  8.149e-01  1.392e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.079e+00  1.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.556 67.915

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/18908110/cmap_HighResolution_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2023-07-10 12:16:30.519044', job_id='18908110', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.13', time_epoch_completed='1689016590.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.40e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1817' AND source_name='4FGL J1318.2+6754' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 12:16:30 PDT 2023

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


Performing analysis on: 4FGL_J1318.2+6754_daily_bin1817
RA = 199.556, Dec = 67.9152
tmin = 710294401, tmax = 710553601
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='18908961', job_status='RUN', time_executed='2023-07-10 12:15:50.863037', time_epoch_executed='1689016550.86' WHERE source_name='4FGL J1318.2+6754' and cadence='daily' and bin_id='1817'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18908961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18908961/ft1_4FGL_J1318.2+6754_daily_bin1817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18908961/ft1_4FGL_J1318.2+6754_daily_bin1817.fits outfile=/lscratch/kocevski/18908961/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin1817.fits ra=199.556 dec=67.9152 rad=12.0 tmin=710294401.0 tmax=710553601.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.06
user 1.79
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.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/18908961/ft1_filteredMKT_4FGL_J1318.2+6754_daily_bin1817.fits evtable="EVENTS" outfile="/lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.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.51
user 0.20
sys 0.11

Number of photons that the gtmktime cut: 653

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits sctable="SC_DATA" ouAL_V02
Working on...
/lscratch/kocevski/18908638/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits.....................!
real 29.23
user 27.99
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18908638/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits', '/lscratch/kocevski/18908638/ft2_4FGL_J1318.2+6754_daily_bin1817.fits', expMap='/lscratch/kocevski/18908638/expmap_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits', expCube='/lscratch/kocevski/18908638/ltcube_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18908638/Model_4FGL_J1318.2+6754_daily_bin1817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.2+6754'

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  6.773e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18908638/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits
Spacecraft file(s): /lscratch/kocevski/18908638/ft2_4FGL_J1318.2+6754_daily_bin1817.fits
Exposure map: /lscratch/kocevski/18908638/expmap_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits
Exposure cube: /lscratch/kocevski/18908638/ltcube_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18908638/Model_4FGL_J1318.2+6754_daily_bin1817.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) = 7133.64965103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11800E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13900E-06   1.0000          .0000       .10000E+07
     3 'norm      '    .25969E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .75204E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.8857       1.0000          .0000       .10000E+07
     6 'Prefactor '    17.092       1.0000          .0000       .10000E+07
     7 'Prefactor '    47.991       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18684       1.0000          .0000       .10000E+07
     9 'norm      '    1.4602       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.6075       1.0000          .0000       .10000E+07
    11 'norm      '    4.1875       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57090E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .76650E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17938E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.8460       1.0000          .0000       .10000E+07
    16 'Prefactor '    .87094E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11735E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.6682       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10409E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.9874       1.0000          .0000       .10000E+07
    21 'Prefactor '    .26709       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.5228       1.0000          .0000       .10000E+07
    23 'Prefactor '    12.068       1.0000          .0000       .10000E+07
    24 'Prefactor '    .22456E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1247       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7133.641     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2215 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    6.2955       -.46125E-07** at limit **
   2  Prefactor      .0000        .91849       -.59989E-07** at limit **
   3  norm          .42493E-04    102.08       -.37718E-05** at limit **
   4  norm           .0000        1.6316        .54234E-07** at limit **
   5  Prefactor     4.8824        4.6497        .79131E-06    .75208E-03
   6  Prefactor     17.167        1.3127        .29789E-07    .28779E-02
   7  Prefactor     49.483        22.082        .25488E-06    .12458    
   8  Prefactor     .76660E-04    17.578       -.45797E-05** at limit **
   9  norm          1.4608        2.0166       -.67664E-06    .33628E-03
  10  Prefactor     4.5988        6.4821        .22117E-06    .67809E-03
  11  norm          4.1870        2.4057       -.41121E-06    .80264E-03
  12  Prefactor     .88929E-07    11.658       -.62149E-06** at limit **
  13  Prefactor      .0000        2.9604       -.30985E-06** at limit **
  14  Prefactor     .42832E-06    61.585        .56179E-05** at limit **
  15  Prefactor     4.7977        1.6413       -.21611E-06    .13027E-01
  16  Prefactor     .42827E-06    18.590       -.39637E-05** at limit **
  17  Prefactor      .0000        3.7253       -.82583E-06** at limit **
  18  Prefactor     2.6643        13.263        .69364E-05    .14585E-01
  19  Prefactor     .55511E-10    5.1038       -.10420E-05** at limit **
  20  Prefactor     3.9717        1.1429        .33758E-07    .34554E-02
  21  Prefactor     .24653E-06    50.950        .20860E-05** at limit **
  22  Prefactor     4.5299        6.8584        .18294E-06    .21089E-03
  23  Prefactor     12.060        1.6080       -.19580E-06    .12903E-01
  24  Prefactor     .15704E-06    12.962        .75138E-06** at limit **
  25  Normalizat    1.1252        .15824        .55004E-05    .31691E-04
  26  Prefactor     .78547        .17135       -.58692E-06    .41493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  norm       = 4.2493e-05
  norm       = 0
  Prefactor  = 4.88239
  Prefactor  = 17.1668
  Prefactor  = 49.4831
  Prefactor  = 7.66596e-05
  norm       = 1.4608
  Prefactor  = 4.59883
  norm       = 4.18702
  Prefactor  = 8.89289e-08
  Prefactor  = 0
  Prefactor  = 4.28324e-07
  Prefactor  = 4.79767
  Prefactor  = 4.28269e-07
  Prefactor  = 0
  Prefactor  = 2.66433
  Prefactor  = 5.55112e-11
  Prefactor  = 3.97168
  Prefactor  = 2.46525e-07
  Prefactor  = 4.52988
  Prefactor  = 12.0602
  Prefactor  = 1.57041e-07
  Normalizat = 1.12518
  Prefactor  = 0.785465
 **********
 **   18 **HESSE 
 **********

 FCN=   7133.641     FROM HESSE     STATUS=OK           514 CALLS     2729 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    6.3151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .91838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .42493E-04    9.7893        .94496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.6399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8824        4.7673        .45483E-03   -1.5664    
   6  Prefactor     17.167        20.149        .24199E-03   -1.5625    
   7  Prefactor     49.483        44.342        .14436E-03   -1.5567    
   8  Prefactor     .76660E-04    11.495        .12015E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4608        2.0402        .89013E-03   -1.5684    
  10  Prefactor     4.5988        6.4968        .46867E-03   -1.5665    
  11  norm          4.1870        2.4097        .49225E-03   -1.5667    
  12  Prefactor     .88929E-07    11.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.9663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .42832E-06    62.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7977        32.250        .45673E-03   -1.5664    
  16  Prefactor     .42827E-06    19.185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.6890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6643        13.490        .62367E-03   -1.5675    
  19  Prefactor     .55511E-10    5.1169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9717        37.043        .50484E-03   -1.5668    
  21  Prefactor     .24653E-06    51.006        .10686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.5299        6.8661        .47315E-03   -1.5665    
  23  Prefactor     12.060        21.085        .28811E-03   -1.5639    
  24  Prefactor     .15704E-06    13.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1252        .13962        .37074E-01   -.88947    
  26  Prefactor     .78547        .15140        .43535E-01   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88972e-07
Minuit parameter uncertainties:
  1  7.25961e-05
  2  4.18475e-06
  3  0.0407911
  4  9.33969e-06
  5  4.76729
  6  20.1493
  7  44.3421
  8  0.0593704
  9  2.04025
  10  6.49677
  11  2.40973
  12  0.00204872
  13  1.27024e-05
  14  0.0103372
  15  24.8779
  16  0.00573281
  17  1.63913e-05
  18  11.9903
  19  2.93375e-05
  20  24.2591
  21  0.00709244
  22  6.86608
  23  21.0854
  24  0.00288299
  25  0.139668
  26  0.151476
tfile=/lscratch/kocevski/18908961/ltcube_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.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/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits
.....................!
real 9.56
user 9.13
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits evtable="EVENTS" scfile=/lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18908961/ltcube_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits outfile=/lscratch/kocevski/18908961/expmap_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.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/18908961/ltcube_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits
.....................!
real 64.69
user 60.67
sys 3.66

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

Setting source of interest to:
4FGL J1318.2+6754 @ 199.556 67.9152

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits scfile=/lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits outfile=/lscratch/kocevski/18908961/cmap_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.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=199.556 yref=67.9152 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.36
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits scfile=/lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits outfile=/lscratch/kocevski/18908961/cmap_HighResolution_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.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=199.556 yref=67.9152 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.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits evtable="EVENTS" scfile=/lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18908961/Model_4FGL_J1318.2+6754_daily_bin1817.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 GALDone.

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

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  4.283e-07  1.034e-02  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  7.855e-01  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.125e+00  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.556 67.915
Photon Flux Upper Limit: 5.29656101261e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00402573508548 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18908638/likelihoodResults_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.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) = 7133.64824089
delta logL = -0.00773000786648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7133.2001298
delta logL = 0.440381083046

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7133.200     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86753        23.414        .49557E-03    .12775E-01
   2  Index         4.1274        3.0144        .91953E-01    .22945E-03
   3  Normalizat    1.0786        .37687E-01    .38945E-01    .35022E-05
   4  Prefactor     .81495        .40700E-01    .43912E-01    .16273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.867532
  Index      = 4.12742
  Normalizat = 1.07861
  Prefactor  = 0.814947
 **********
 **   18 **HESSE 
 **********

 FCN=   7133.200     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86753        52.768        .84053E-05   -1.5689    
   2  Index         4.1274        7.0370        .57193E-02   -.17541    
   3  Normalizat    1.0786        .12989        .20632E-03   -.90442    
   4  Prefactor     .81495        .13914        .25497E-03   -.99180    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32179e-06
Minuit parameter uncertainties:
  1  13.532
  2  6.14977
  3  0.129926
  4  0.139198
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) = 7133.20011757
delta logL = 0.440393314201

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  8.675e-01  1.353e+01  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  4.127e+00  6.150e+00  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  8.149e-01  1.392e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.079e+00  1.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.556 67.915

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/18908638/cmap_HighResolution_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2023-07-10 12:19:12.633294', job_id='18908638', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.13', time_epoch_completed='1689016752.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.40e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1817' AND source_name='4FGL J1318.2+6754' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 12:19:12 PDT 2023

_V02
Working on...
/lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits.....................!
real 26.42
user 25.33
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits', '/lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits', expMap='/lscratch/kocevski/18908961/expmap_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits', expCube='/lscratch/kocevski/18908961/ltcube_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18908961/Model_4FGL_J1318.2+6754_daily_bin1817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.2+6754'

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  6.773e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18908961/ft1_filtered_4FGL_J1318.2+6754_daily_bin1817.fits
Spacecraft file(s): /lscratch/kocevski/18908961/ft2_4FGL_J1318.2+6754_daily_bin1817.fits
Exposure map: /lscratch/kocevski/18908961/expmap_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits
Exposure cube: /lscratch/kocevski/18908961/ltcube_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18908961/Model_4FGL_J1318.2+6754_daily_bin1817.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) = 7133.64965103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11800E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13900E-06   1.0000          .0000       .10000E+07
     3 'norm      '    .25969E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .75204E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.8857       1.0000          .0000       .10000E+07
     6 'Prefactor '    17.092       1.0000          .0000       .10000E+07
     7 'Prefactor '    47.991       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18684       1.0000          .0000       .10000E+07
     9 'norm      '    1.4602       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.6075       1.0000          .0000       .10000E+07
    11 'norm      '    4.1875       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57090E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .76650E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17938E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.8460       1.0000          .0000       .10000E+07
    16 'Prefactor '    .87094E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11735E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.6682       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10409E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.9874       1.0000          .0000       .10000E+07
    21 'Prefactor '    .26709       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.5228       1.0000          .0000       .10000E+07
    23 'Prefactor '    12.068       1.0000          .0000       .10000E+07
    24 'Prefactor '    .22456E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1247       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7133.641     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2215 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    6.2955       -.46125E-07** at limit **
   2  Prefactor      .0000        .91849       -.59989E-07** at limit **
   3  norm          .42493E-04    102.08       -.37718E-05** at limit **
   4  norm           .0000        1.6316        .54234E-07** at limit **
   5  Prefactor     4.8824        4.6497        .79131E-06    .75208E-03
   6  Prefactor     17.167        1.3127        .29789E-07    .28779E-02
   7  Prefactor     49.483        22.082        .25488E-06    .12458    
   8  Prefactor     .76660E-04    17.578       -.45797E-05** at limit **
   9  norm          1.4608        2.0166       -.67664E-06    .33628E-03
  10  Prefactor     4.5988        6.4821        .22117E-06    .67809E-03
  11  norm          4.1870        2.4057       -.41121E-06    .80264E-03
  12  Prefactor     .88929E-07    11.658       -.62149E-06** at limit **
  13  Prefactor      .0000        2.9604       -.30985E-06** at limit **
  14  Prefactor     .42832E-06    61.585        .56179E-05** at limit **
  15  Prefactor     4.7977        1.6413       -.21611E-06    .13027E-01
  16  Prefactor     .42827E-06    18.590       -.39637E-05** at limit **
  17  Prefactor      .0000        3.7253       -.82583E-06** at limit **
  18  Prefactor     2.6643        13.263        .69364E-05    .14585E-01
  19  Prefactor     .55511E-10    5.1038       -.10420E-05** at limit **
  20  Prefactor     3.9717        1.1429        .33758E-07    .34554E-02
  21  Prefactor     .24653E-06    50.950        .20860E-05** at limit **
  22  Prefactor     4.5299        6.8584        .18294E-06    .21089E-03
  23  Prefactor     12.060        1.6080       -.19580E-06    .12903E-01
  24  Prefactor     .15704E-06    12.962        .75138E-06** at limit **
  25  Normalizat    1.1252        .15824        .55004E-05    .31691E-04
  26  Prefactor     .78547        .17135       -.58692E-06    .41493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  norm       = 4.2493e-05
  norm       = 0
  Prefactor  = 4.88239
  Prefactor  = 17.1668
  Prefactor  = 49.4831
  Prefactor  = 7.66596e-05
  norm       = 1.4608
  Prefactor  = 4.59883
  norm       = 4.18702
  Prefactor  = 8.89289e-08
  Prefactor  = 0
  Prefactor  = 4.28324e-07
  Prefactor  = 4.79767
  Prefactor  = 4.28269e-07
  Prefactor  = 0
  Prefactor  = 2.66433
  Prefactor  = 5.55112e-11
  Prefactor  = 3.97168
  Prefactor  = 2.46525e-07
  Prefactor  = 4.52988
  Prefactor  = 12.0602
  Prefactor  = 1.57041e-07
  Normalizat = 1.12518
  Prefactor  = 0.785465
 **********
 **   18 **HESSE 
 **********

 FCN=   7133.641     FROM HESSE     STATUS=OK           514 CALLS     2729 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    6.3151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .91838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .42493E-04    9.7893        .94496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.6399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8824        4.7673        .45483E-03   -1.5664    
   6  Prefactor     17.167        20.149        .24199E-03   -1.5625    
   7  Prefactor     49.483        44.342        .14436E-03   -1.5567    
   8  Prefactor     .76660E-04    11.495        .12015E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4608        2.0402        .89013E-03   -1.5684    
  10  Prefactor     4.5988        6.4968        .46867E-03   -1.5665    
  11  norm          4.1870        2.4097        .49225E-03   -1.5667    
  12  Prefactor     .88929E-07    11.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.9663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .42832E-06    62.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7977        32.250        .45673E-03   -1.5664    
  16  Prefactor     .42827E-06    19.185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.6890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6643        13.490        .62367E-03   -1.5675    
  19  Prefactor     .55511E-10    5.1169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9717        37.043        .50484E-03   -1.5668    
  21  Prefactor     .24653E-06    51.006        .10686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.5299        6.8661        .47315E-03   -1.5665    
  23  Prefactor     12.060        21.085        .28811E-03   -1.5639    
  24  Prefactor     .15704E-06    13.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1252        .13962        .37074E-01   -.88947    
  26  Prefactor     .78547        .15140        .43535E-01   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88972e-07
Minuit parameter uncertainties:
  1  7.25961e-05
  2  4.18475e-06
  3  0.0407911
  4  9.33969e-06
  5  4.76729
  6  20.1493
  7  44.3421
  8  0.0593704
  9  2.04025
  10  6.49677
  11  2.40973
  12  0.00204872
  13  1.27024e-05
  14  0.0103372
  15  24.8779
  16  0.00573281
  17  1.63913e-05
  18  11.9903
  19  2.93375e-05
  20  24.2591
  21  0.00709244
  22  6.86608
  23  21.0854
  24  0.00288299
  25  0.139668
  26  0.151476
Done.

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

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  4.283e-07  1.034e-02  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  2.168e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  7.855e-01  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.125e+00  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.556 67.915
Photon Flux Upper Limit: 5.29656101261e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00402573508548 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18908961/likelihoodResults_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.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) = 7133.64824089
delta logL = -0.00773000786648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7133.2001298
delta logL = 0.440381083046

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7133.200     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86753        23.414        .49557E-03    .12775E-01
   2  Index         4.1274        3.0144        .91953E-01    .22945E-03
   3  Normalizat    1.0786        .37687E-01    .38945E-01    .35022E-05
   4  Prefactor     .81495        .40700E-01    .43912E-01    .16273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.867532
  Index      = 4.12742
  Normalizat = 1.07861
  Prefactor  = 0.814947
 **********
 **   18 **HESSE 
 **********

 FCN=   7133.200     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86753        52.768        .84053E-05   -1.5689    
   2  Index         4.1274        7.0370        .57193E-02   -.17541    
   3  Normalizat    1.0786        .12989        .20632E-03   -.90442    
   4  Prefactor     .81495        .13914        .25497E-03   -.99180    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32179e-06
Minuit parameter uncertainties:
  1  13.532
  2  6.14977
  3  0.129926
  4  0.139198
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) = 7133.20011757
delta logL = 0.440393314201

Extracting fit parameters...

4FGL J1318.2+6754
   Spectrum: PowerLaw
391    Prefactor:  8.675e-01  1.353e+01  0.000e+00  1.000e+06 ( 1.000e-14)
392        Index:  4.127e+00  6.150e+00  0.000e+00  1.000e+01 (-1.000e+00)
393        Scale:  1.716e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  8.149e-01  1.392e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.079e+00  1.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.556 67.915

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/18908961/cmap_HighResolution_710294401_710553601_4FGL_J1318.2+6754_daily_bin1817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2023-07-10 12:21:52.845095', job_id='18908961', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.13', time_epoch_completed='1689016912.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.40e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1817' AND source_name='4FGL J1318.2+6754' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 12:21:52 PDT 2023

