/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).

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


Performing analysis on: 4FGL_J1308.4-6706_daily_bin1886
RA = 197.11, Dec = -67.1081
tmin = 728179201, tmax = 728438401
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='39013986', job_status='RUN', time_executed='2024-02-01 00:25:53.901577', time_epoch_executed='1706775953.9' WHERE source_name='4FGL J1308.4-6706' and cadence='daily' and bin_id='1886'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39013986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39013986/ft1_4FGL_J1308.4-6706_daily_bin1886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39013986/ft1_4FGL_J1308.4-6706_daily_bin1886.fits outfile=/lscratch/kocevski/39013986/ft1_filteredMKT_4FGL_J1308.4-6706_daily_bin1886.fits ra=197.11 dec=-67.1081 rad=12.0 tmin=728179201.0 tmax=728438401.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.07
user 1.84
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.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/39013986/ft1_filteredMKT_4FGL_J1308.4-6706_daily_bin1886.fits evtable="EVENTS" outfile="/lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.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.35
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 5049

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits sctable="SC_DATA" outfile=/lscratch/kocevski/39013986/ltcube_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.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/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits
.....................!
real 7.93
user 7.60
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.fits evtable="EVENTS" scfile=/lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39013986/ltcube_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.fits outfile=/lscratch/kocevski/39013986/expmap_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.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/39013986/ltcube_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.fits
.....................!
real 64.44
user 60.25
sys 3.81

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
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Added 334 point sources and 16 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1308.4-6706 @ 197.11 -67.1081

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.fits scfile=/lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits outfile=/lscratch/kocevski/39013986/cmap_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.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=197.11 yref=-67.1081 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.37
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.fits scfile=/lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits outfile=/lscratch/kocevski/39013986/cmap_HighResolution_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.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=197.11 yref=-67.1081 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.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.fits evtable="EVENTS" scfile=/lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39013986/Model_4FGL_J1308.4-6706_daily_bin1886.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 FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source FHES J1501.0-6310
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
adding source Westerlund 2
Working on...
/lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.fits.....................!
real 801.68
user 795.46
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.fits', '/lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits', expMap='/lscratch/kocevski/39013986/expmap_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.fits', expCube='/lscratch/kocevski/39013986/ltcube_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39013986/Model_4FGL_J1308.4-6706_daily_bin1886.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1308.4-6706'

4FGL J1308.4-6706
   Spectrum: PowerLaw
548    Prefactor:  5.275e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
549        Index:  2.399e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
550        Scale:  1.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/39013986/ft1_filtered_4FGL_J1308.4-6706_daily_bin1886.fits
Spacecraft file(s): /lscratch/kocevski/39013986/ft2_4FGL_J1308.4-6706_daily_bin1886.fits
Exposure map: /lscratch/kocevski/39013986/expmap_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.fits
Exposure cube: /lscratch/kocevski/39013986/ltcube_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39013986/Model_4FGL_J1308.4-6706_daily_bin1886.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) = 43966.990803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.692       1.0000          .0000       .10000E+07
     2 'norm      '    1.9825       1.0000          .0000       .10000E+07
     3 'Prefactor '    55.516       1.0000          .0000       .10000E+07
     4 'norm      '    18.129       1.0000          .0000       .10000E+07
     5 'Prefactor '    20.071       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.803       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16376E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .39904       1.0000          .0000       .10000E+07
     9 'norm      '    2.3776       1.0000          .0000       .10000E+07
    10 'norm      '    13.853       1.0000          .0000       .10000E+07
    11 'norm      '    12.759       1.0000          .0000       .10000E+07
    12 'Prefactor '    .80659E-01   1.0000          .0000       .10000E+07
    13 'norm      '    3.6390       1.0000          .0000       .10000E+07
    14 'Normalizat'    .83962       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .94592       1.0000          .0000       10.000    
    16 'Prefactor '     .0000       1.0000          .0000       .10000E+07
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1268E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   43966.98     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     1352 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.637        4.6530        .19324E-06    .96659E-02
   2  norm          1.9790        7.8006        .25139E-06    .33333E-02
   3  Prefactor     55.509        1.6686        .61548E-08    .63821E-01
   4  norm          18.129        5.4783        .20559E-06    .52814E-01
   5  Prefactor     20.066        1.5834       -.72981E-07    .22067E-01
   6  Prefactor     11.794        3.8117       -.25411E-06    .10663E-01
   7  Prefactor      .0000        7.0142       -.34635E-07** at limit **
   8  Prefactor     .38666        18.770        .15729E-05   -.25343E-02
   9  norm          2.3777        .88255       -.49391E-07    .23464E-03
  10  norm          13.851        7.6076        .11419E-08    .36825E-02
  11  norm          12.757        6.4555        .11494E-07    .98690E-04
  12  Prefactor     .47184E-08    386.78        .85523E-05** at limit **
  13  norm          3.6361        3.4153        .34674E-06   -.18084E-01
  14  Normalizat    .83995        .29100       -.16640E-04   -.17796E-04
  15  Prefactor     .94591        .22489E-01    .21301E-06   -.18323E-03
  16  Prefactor      .0000        .56328E-01   -.53154E-07** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6371
  norm       = 1.97897
  Prefactor  = 55.5088
  norm       = 18.1291
  Prefactor  = 20.0664
  Prefactor  = 11.7938
  Prefactor  = 0
  Prefactor  = 0.386662
  norm       = 2.3777
  norm       = 13.8513
  norm       = 12.7566
  Prefactor  = 4.71845e-09
  norm       = 3.6361
  Normalizat = 0.839951
  Prefactor  = 0.945915
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   43966.98     FROM HESSE     STATUS=OK           257 CALLS     1609 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.637        27.781        .20998E-03   -1.5613    
   2  norm          1.9790        8.1108        .73577E-03   -1.5680    
   3  Prefactor     55.509        54.720        .13422E-03   -1.5559    
   4  norm          18.129        10.731        .23495E-03   -1.5623    
   5  Prefactor     20.066        22.033        .22328E-03   -1.5618    
   6  Prefactor     11.794        26.974        .29133E-03   -1.5639    
   7  Prefactor      .0000        7.0088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38666        2.2611        .10917E-01   -1.5696    
   9  norm          2.3777        .89695        .66411E-03   -1.5677    
  10  norm          13.851        7.7108        .26885E-03   -1.5634    
  11  norm          12.757        6.5354        .28018E-03   -1.5637    
  12  Prefactor     .47184E-08    8.0316        .19923E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6361        13.137        .52934E-03   -1.5670    
  14  Normalizat    .83995        .37050        .33947       -.98603    
  15  Prefactor     .94591        .25518E-01    .26155E-01   -.94555    
  16  Prefactor      .0000        .56318E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63407e-07
Minuit parameter uncertainties:
  1  27.7811
  2  8.01276
  3  54.7206
  4  10.7314
  5  22.0332
  6  26.9742
  7  1.34507e-05
  8  1.87007
  9  0.896949
  10  7.71079
  11  6.53545
  12  0.000390182
  13  13.1369
  14  0.371621
  15  0.0255187
  16  5.89253e-08
Done.

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

Extracting fit parameters...

4FGL J1308.4-6706
   Spectrum: PowerLaw
548    Prefactor:  0.000e+00  1.345e-05  0.000e+00  1.000e+06 ( 1.000e-13)
549        Index:  2.399e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
550        Scale:  1.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1233    Prefactor:  9.459e-01  2.552e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1234        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1235        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1210   Normalization:  8.400e-01  3.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 197.110 -67.108
Photon Flux Upper Limit: 1.15736678908e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00894255929066 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/39013986/likelihoodResults_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.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) = 43967.0539731
delta logL = -0.0690315422326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 43966.4193805
delta logL = 0.565561007592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47718E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.9839       1.0000          .0000       10.000    
     3 'Normalizat'    .76941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1268E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   43966.98     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      353 TOTAL
                     EDM=   .90E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .30091        .55858E-07** at limit **
   2  Index         .20928        .12282E-01   -.41465E-06     .0000    
   3  Normalizat    .83995        .27279       -.49742E-05   -.74220E-06
   4  Prefactor     .94591        .22326E-01   -.23686E-06    .19648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.20928
  Normalizat = 0.839951
  Prefactor  = 0.945915
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   43966.98     FROM HESSE     STATUS=FAILED        11 CALLS      364 TOTAL
                     EDM=   .90E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .30221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .12013        .31337       -.41465E-06   -328.01    
   3  Normalizat    .83995        1.1547       -.49742E-05   -.98603    
   4  Prefactor     .94591        1.2888       -.23686E-06   -14.762    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.00444e-15
Minuit parameter uncertainties:
  1  3.45456e-08
  2  0.315925
  3  1.1914
  4  1.33461
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) = 43966.9849415
delta logL = 0.0

Extracting fit parameters...

4FGL J1308.4-6706
   Spectrum: PowerLaw
548    Prefactor:  0.000e+00  3.455e-08  0.000e+00  1.000e+06 ( 1.000e-13)
549        Index:  2.093e-01  3.159e-01  0.000e+00  1.000e+01 (-1.000e+00)
550        Scale:  1.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1233    Prefactor:  9.459e-01  1.335e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1234        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1235        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1210   Normalization:  8.400e-01  1.191e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 197.110 -67.108

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/39013986/cmap_HighResolution_728179201_728438401_4FGL_J1308.4-6706_daily_bin1886.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2024-02-01 01:08:05.789561', job_id='39013986', GAL2='0.95', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1706778485.79', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1886' AND source_name='4FGL J1308.4-6706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  1 01:08:05 PST 2024

