/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 = 17388
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0146.0-6746_weekly_bin808
RA = 26.5182, Dec = -67.7748
tmin = 727660801, tmax = 728265601
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='38943136', job_status='RUN', time_executed='2024-01-30 00:01:42.075976', time_epoch_executed='1706601702.08' WHERE source_name='4FGL J0146.0-6746' and cadence='weekly' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38943136

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38943136/ft1_4FGL_J0146.0-6746_weekly_bin808.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38943136/ft1_4FGL_J0146.0-6746_weekly_bin808.fits outfile=/lscratch/kocevski/38943136/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin808.fits ra=26.5182 dec=-67.7748 rad=12.0 tmin=727660801.0 tmax=728265601.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 5.79
user 5.28
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.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/38943136/ft1_filteredMKT_4FGL_J0146.0-6746_weekly_bin808.fits evtable="EVENTS" outfile="/lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.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.61
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 1219

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38943136/ltcube_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.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/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits
.....................!
real 21.07
user 20.60
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.fits evtable="EVENTS" scfile=/lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38943136/ltcube_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.fits outfile=/lscratch/kocevski/38943136/expmap_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.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/38943136/ltcube_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.fits
.....................!
real 74.73
user 70.27
sys 4.14

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 SMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Added 190 point sources and 5 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 J0146.0-6746 @ 26.5182 -67.7748

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.fits scfile=/lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits outfile=/lscratch/kocevski/38943136/cmap_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.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=26.5182 yref=-67.7748 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.fits scfile=/lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits outfile=/lscratch/kocevski/38943136/cmap_HighResolution_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.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=26.5182 yref=-67.7748 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.47
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.fits evtable="EVENTS" scfile=/lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38943136/Model_4FGL_J0146.0-6746_weekly_bin808.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.fits.....................!
real 4311.04
user 4291.62
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.fits', '/lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits', expMap='/lscratch/kocevski/38943136/expmap_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.fits', expCube='/lscratch/kocevski/38943136/ltcube_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38943136/Model_4FGL_J0146.0-6746_weekly_bin808.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0146.0-6746'

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  1.171e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
169        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38943136/ft1_filtered_4FGL_J0146.0-6746_weekly_bin808.fits
Spacecraft file(s): /lscratch/kocevski/38943136/ft2_4FGL_J0146.0-6746_weekly_bin808.fits
Exposure map: /lscratch/kocevski/38943136/expmap_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.fits
Exposure cube: /lscratch/kocevski/38943136/ltcube_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38943136/Model_4FGL_J0146.0-6746_weekly_bin808.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) = 13154.5603802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5971       1.0000          .0000       .10000E+07
     2 'Prefactor '    .87474       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.1080       1.0000          .0000       .10000E+07
     4 'norm      '    .14799E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.2596       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13595E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .18241E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16251E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .68520       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.6568       1.0000          .0000       .10000E+07
    11 'norm      '    .35520E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.1137       1.0000          .0000       .10000E+07
    13 'Prefactor '    .36566E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    59.883       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.711       1.0000          .0000       .10000E+07
    16 'norm      '    7.4123       1.0000          .0000       .10000E+07
    17 'norm      '    1.0037       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0140       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87332       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13154.56     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1413 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6015        2.8583       -.70554E-06    .91238E-03
   2  Prefactor     .87904        3.0013       -.18000E-05   -.91876E-03
   3  Prefactor     4.1345        3.9966       -.79171E-07   -.58001E-02
   4  norm          .22204E-09    1.9451       -.20230E-06** at limit **
   5  Prefactor     2.3162        5.8379        .47972E-07   -.35217E-02
   6  Prefactor     .22315E-07    30.588        .42959E-06** at limit **
   7  Prefactor     .16653E-09    1.1509       -.29205E-07** at limit **
   8  Prefactor     .61062E-09    2.0732        .98585E-07** at limit **
   9  Prefactor     .68612        1.9889       -.12091E-06   -.11037E-01
  10  Prefactor     3.6548        1.4922       -.15316E-06    .32126E-02
  11  norm          .27756E-09    4.4099       -.70127E-07** at limit **
  12  Prefactor     3.1146        1.9730        .10495E-07    .25749E-02
  13  Prefactor     .61062E-09    3.6678        .73678E-07** at limit **
  14  Prefactor     59.902        1.5888        .70737E-07   -.51732E-01
  15  Prefactor     10.624        16.290        .11014E-05    .82608E-03
  16  norm          7.4084        3.6974       -.17280E-07   -.11375E-01
  17  norm          1.0033        .64129        .16822E-08    .73279E-03
  18  Normalizat    1.0134        .14164        .70901E-06   -.71129E-03
  19  Prefactor     .87352        .10561        .25549E-06   -.55857E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.60151
  Prefactor  = 0.879035
  Prefactor  = 4.13454
  norm       = 2.22045e-10
  Prefactor  = 2.3162
  Prefactor  = 2.23155e-08
  Prefactor  = 1.66533e-10
  Prefactor  = 6.10623e-10
  Prefactor  = 0.68612
  Prefactor  = 3.65478
  norm       = 2.77556e-10
  Prefactor  = 3.11457
  Prefactor  = 6.10623e-10
  Prefactor  = 59.9022
  Prefactor  = 10.6243
  norm       = 7.40845
  norm       = 1.00332
  Normalizat = 1.01343
  Prefactor  = 0.873517
 **********
 **   18 **HESSE 
 **********

 FCN=   13154.56     FROM HESSE     STATUS=OK           308 CALLS     1721 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6015        8.8366        .53254E-03   -1.5670    
   2  Prefactor     .87904        3.3221        .47523E-03   -1.5689    
   3  Prefactor     4.1345        3.9961        .49713E-03   -1.5667    
   4  norm          .22204E-09    1.9407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3162        5.8577        .68313E-03   -1.5678    
   6  Prefactor     .22315E-07    30.915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16653E-09    1.1534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .61062E-09    2.0662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68612        2.0038        .61918E-03   -1.5691    
  10  Prefactor     3.6548        38.370        .52800E-03   -1.5670    
  11  norm          .27756E-09    4.4093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1146        2.0034        .57437E-03   -1.5673    
  13  Prefactor     .61062E-09    3.6621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.902        43.473        .12923E-03   -1.5553    
  15  Prefactor     10.624        16.318        .30589E-03   -1.5643    
  16  norm          7.4084        3.7214        .36815E-03   -1.5654    
  17  norm          1.0033        .64787        .43895E-03   -1.5688    
  18  Normalizat    1.0134        .12326        .44445E-01   -.92582    
  19  Prefactor     .87352        .90466E-01    .44664E-01   -.97073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67138e-06
Minuit parameter uncertainties:
  1  8.83667
  2  3.32207
  3  3.99612
  4  4.35559e-05
  5  5.85767
  6  0.00166148
  7  2.94236e-05
  8  7.26139e-05
  9  2.00382
  10  23.6843
  11  7.06922e-05
  12  2.00336
  13  9.33794e-05
  14  43.4734
  15  16.3177
  16  3.72143
  17  0.647867
  18  0.123294
  19  0.0904813
Done.

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

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  6.106e-10  7.261e-05  0.000e+00  1.000e+06 ( 1.000e-13)
169        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.735e-01  9.048e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.013e+00  1.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 26.518 -67.775
Photon Flux Upper Limit: 2.90357048128e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00218884368183 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38943136/likelihoodResults_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.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) = 13154.5597526
delta logL = -0.00104573425415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13154.3239282
delta logL = 0.234778650265

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13154.32     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      278 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52177E-01    .62887        .84245E-03** at limit **
   2  Index         3.9740        1.8039        .11985        .16869E-03
   3  Normalizat    .98674        .15485E-01    .46000E-01   -.24570E-03
   4  Prefactor     .88535        .12331E-01    .44817E-01   -.15717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0521775
  Index      = 3.97404
  Normalizat = 0.986739
  Prefactor  = 0.88535
 **********
 **   18 **HESSE 
 **********

 FCN=   13154.32     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      313 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52177E-01    5.3504        .34636E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.9740        6.9409        .82450E-02   -.20666    
   3  Normalizat    .98674        .78705E-01    .24778E-03   -.93476    
   4  Prefactor     .88535        .61893E-01    .20608E-03   -.96655    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68454e-10
Minuit parameter uncertainties:
  1  1.05673
  2  7.61684
  3  0.0787139
  4  0.0618981
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) = 13154.3239248
delta logL = 0.234782003396

Extracting fit parameters...

4FGL J0146.0-6746
   Spectrum: PowerLaw
168    Prefactor:  5.218e-02  1.057e+00  0.000e+00  1.000e+06 ( 1.000e-13)
169        Index:  3.974e+00  7.617e+00  0.000e+00  1.000e+01 (-1.000e+00)
170        Scale:  1.872e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.853e-01  6.190e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  9.867e-01  7.871e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 26.518 -67.775

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/38943136/cmap_HighResolution_727660801_728265601_4FGL_J0146.0-6746_weekly_bin808.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.90e-08', time_completed='2024-01-30 01:22:38.002299', job_id='38943136', GAL2='0.89', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1706606558.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.35e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='808' AND source_name='4FGL J0146.0-6746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 30 01:22:38 PST 2024

