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


Performing analysis on: 4FGL_J1109.7-4814_daily_bin1881
RA = 167.443, Dec = -48.2452
tmin = 726883201, tmax = 727142401
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='38409807', job_status='RUN', time_executed='2024-01-18 13:55:39.675897', time_epoch_executed='1705614939.68' WHERE source_name='4FGL J1109.7-4814' and cadence='daily' and bin_id='1881'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38409807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38409807/ft1_4FGL_J1109.7-4814_daily_bin1881.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38409807/ft1_4FGL_J1109.7-4814_daily_bin1881.fits outfile=/lscratch/kocevski/38409807/ft1_filteredMKT_4FGL_J1109.7-4814_daily_bin1881.fits ra=167.443 dec=-48.2452 rad=12.0 tmin=726883201.0 tmax=727142401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.49
user 1.21
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.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/38409807/ft1_filteredMKT_4FGL_J1109.7-4814_daily_bin1881.fits evtable="EVENTS" outfile="/lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.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.40
user 0.17
sys 0.13

Number of photons that the gtmktime cut: 3528

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38409807/ltcube_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.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/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits
.....................!
real 8.48
user 8.19
sys 0.18

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.fits evtable="EVENTS" scfile=/lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38409807/ltcube_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.fits outfile=/lscratch/kocevski/38409807/expmap_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.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/38409807/ltcube_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.fits
.....................!
real 58.87
user 55.40
sys 3.23

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 Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk 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 FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Added 254 point sources and 6 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 J1109.7-4814 @ 167.443 -48.2452

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.fits scfile=/lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits outfile=/lscratch/kocevski/38409807/cmap_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.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=167.443 yref=-48.2452 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.34
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.fits scfile=/lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits outfile=/lscratch/kocevski/38409807/cmap_HighResolution_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.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=167.443 yref=-48.2452 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.34
user 0.20
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.fits evtable="EVENTS" scfile=/lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38409807/Model_4FGL_J1109.7-4814_daily_bin1881.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 G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source Westerlund 2
Working on...
/lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.fits.....................!
real 161.27
user 160.09
sys 0.55

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.fits', '/lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits', expMap='/lscratch/kocevski/38409807/expmap_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.fits', expCube='/lscratch/kocevski/38409807/ltcube_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38409807/Model_4FGL_J1109.7-4814_daily_bin1881.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1109.7-4814'

4FGL J1109.7-4814
   Spectrum: PowerLaw
442    Prefactor:  1.149e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
443        Index:  2.464e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
444        Scale:  1.398e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38409807/ft1_filtered_4FGL_J1109.7-4814_daily_bin1881.fits
Spacecraft file(s): /lscratch/kocevski/38409807/ft2_4FGL_J1109.7-4814_daily_bin1881.fits
Exposure map: /lscratch/kocevski/38409807/expmap_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.fits
Exposure cube: /lscratch/kocevski/38409807/ltcube_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38409807/Model_4FGL_J1109.7-4814_daily_bin1881.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) = 33192.954164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26001       1.0000          .0000       .10000E+07
     2 'norm      '    2.9259       1.0000          .0000       .10000E+07
     3 'norm      '    2.8553       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.9149       1.0000          .0000       .10000E+07
     5 'norm      '    4.6802       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
     7 'norm      '    3.1762       1.0000          .0000       .10000E+07
     8 'Prefactor '    .76050E-08   1.0000          .0000       .10000E+07
     9 'norm      '    5.8320       1.0000          .0000       .10000E+07
    10 'Prefactor '    .36106E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.233       1.0000          .0000       .10000E+07
    12 'Normalizat'    1.3270       1.0000         .10000E-01   10.000    
    13 'norm      '    2.0826       1.0000          .0000       .10000E+07
    14 'Prefactor '    .92935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33192.15     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      687 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24552        8.6913       -.11505E-06** at limit **
   2  norm          2.8098        9.6616       -.60199E-07    .68011E-02
   3  norm          2.8551        1.9083       -.63734E-07    .28780E-03
   4  Prefactor     9.8819        1.4532       -.67706E-08    .25192E-01
   5  norm          4.6806        2.2409        .34299E-08   -.52455E-03
   6  Prefactor      .0000        2.0068       -.52915E-07** at limit **
   7  norm          3.1776        1.5983        .19022E-08   -.12234E-03
   8  Prefactor      .0000        2.5332        .16045E-06** at limit **
   9  norm          5.7075        1.0870        .49547E-08   -.20326E-01
  10  Prefactor     .11102E-09    11.966        .25819E-07** at limit **
  11  Prefactor     11.219        2.8618       -.14470E-09   -.57387E-01
  12  Normalizat    1.3272        .18339        .93016E-06   -.17397E-04
  13  norm          2.0829        1.0928        .44354E-09   -.50519E-03
  14  Prefactor     .92940        .38710E-01    .47376E-06   -.11984E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.245518
  norm       = 2.80982
  norm       = 2.85509
  Prefactor  = 9.88192
  norm       = 4.68063
  Prefactor  = 0
  norm       = 3.17757
  Prefactor  = 0
  norm       = 5.70751
  Prefactor  = 1.11022e-10
  Prefactor  = 11.2187
  Normalizat = 1.32721
  norm       = 2.08295
  Prefactor  = 0.929402
 **********
 **   18 **HESSE 
 **********

 FCN=   33192.15     FROM HESSE     STATUS=OK           200 CALLS      887 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24552        1.3624        .10792E-01   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8098        10.166        .59362E-03   -1.5674    
   3  norm          2.8551        1.9400        .60140E-03   -1.5674    
   4  Prefactor     9.8819        17.541        .31799E-03   -1.5645    
   5  norm          4.6806        2.2490        .46494E-03   -1.5665    
   6  Prefactor      .0000        2.0023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1776        1.6114        .56838E-03   -1.5672    
   8  Prefactor      .0000        2.5298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7075        16.036        .41563E-03   -1.5660    
  10  Prefactor     .11102E-09    11.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.219        11.072        .29866E-03   -1.5641    
  12  Normalizat    1.3272        .17483        .13898       -.82758    
  13  norm          2.0829        1.1139        .71525E-03   -1.5679    
  14  Prefactor     .92940        .36439E-01    .32292E-01   -.95121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04472e-07
Minuit parameter uncertainties:
  1  1.15671
  2  10.1656
  3  1.93999
  4  17.5413
  5  2.24898
  6  1.3584e-06
  7  1.61136
  8  4.45368e-06
  9  16.0363
  10  6.61333e-05
  11  11.0719
  12  0.174908
  13  1.11394
  14  0.0364397
Done.

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

Extracting fit parameters...

4FGL J1109.7-4814
   Spectrum: PowerLaw
442    Prefactor:  0.000e+00  4.454e-06  0.000e+00  1.000e+06 ( 1.000e-13)
443        Index:  2.464e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
444        Scale:  1.398e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
918    Prefactor:  9.294e-01  3.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
919        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
920        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
903   Normalization:  1.327e+00  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 167.443 -48.245
Photon Flux Upper Limit: 4.97640505148e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00386167391126 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38409807/likelihoodResults_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.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) = 33192.1482409
delta logL = -0.000206865064683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 33192.1480349
delta logL = -9.08818037715e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81640E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .68527       1.0000          .0000       10.000    
     3 'Normalizat'    1.3273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   33192.15     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      250 TOTAL
                     EDM=   .78E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3431        .42118E-03** at limit **
   2  Index         3.4520        1.9475       -.50563E-05     .0000    
   3  Normalizat    1.3272        1.0739       -.63925E-05   -.54336E-05
   4  Prefactor     .92940        1.2728        .11748E-05   -.94975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.45198
  Normalizat = 1.32721
  Prefactor  = 0.929402
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   33192.15     FROM HESSE     STATUS=FAILED         9 CALLS      259 TOTAL
                     EDM=   .78E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3280        2.2598       -.50563E-05   -.31478    
   3  Normalizat    1.3272        1.0739       -.63925E-05   -.82758    
   4  Prefactor     .92940        1.2728        .11748E-05   -.95121    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.82445e-13
Minuit parameter uncertainties:
  1  1.68953e-06
  2  2.00655
  3  1.09282
  4  1.31756
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) = 33192.148034
delta logL = 0.0

Extracting fit parameters...

4FGL J1109.7-4814
   Spectrum: PowerLaw
442    Prefactor:  0.000e+00  1.690e-06  0.000e+00  1.000e+06 ( 1.000e-13)
443        Index:  3.452e+00  2.007e+00  0.000e+00  1.000e+01 (-1.000e+00)
444        Scale:  1.398e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
918    Prefactor:  9.294e-01  1.318e+00  0.000e+00  1.000e+01 ( 1.000e+00)
919        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
920        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
903   Normalization:  1.327e+00  1.093e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 167.443 -48.245

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/38409807/cmap_HighResolution_726883201_727142401_4FGL_J1109.7-4814_daily_bin1881.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2024-01-18 14:07:43.294207', job_id='38409807', GAL2='0.93', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1705615663.29', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1881' AND source_name='4FGL J1109.7-4814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 18 14:07:43 PST 2024

