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


Performing analysis on: 4FGL_J0931.2-8533_weekly_bin827
RA = 142.818, Dec = -85.5626
tmin = 739152001, tmax = 739756801
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='50335737', job_status='RUN', time_executed='2024-06-11 01:01:00.935224', time_epoch_executed='1718092860.94' WHERE source_name='4FGL J0931.2-8533' and cadence='weekly' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/50335737

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/50335737/ft1_4FGL_J0931.2-8533_weekly_bin827.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/50335737/ft1_4FGL_J0931.2-8533_weekly_bin827.fits outfile=/lscratch/kocevski/50335737/ft1_filteredMKT_4FGL_J0931.2-8533_weekly_bin827.fits ra=142.818 dec=-85.5626 rad=12.0 tmin=739152001.0 tmax=739756801.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.17
user 4.47
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.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/50335737/ft1_filteredMKT_4FGL_J0931.2-8533_weekly_bin827.fits evtable="EVENTS" outfile="/lscratch/kocevski/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.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.68
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 2663

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.fits" evtable="EVENTS" scfile=/lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits sctable="SC_DATA" outfile=/lscratch/kocevski/50335737/ltcube_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.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/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits
.....................!
real 16.46
user 15.74
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits sctable="SC_DATA" expcube=/lscratch/kocevski/50335737/ltcube_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.fits outfile=/lscratch/kocevski/50335737/expmap_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.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/50335737/ltcube_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.fits
.....................!
real 62.70
user 58.46
sys 3.65

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 181 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 J0931.2-8533 @ 142.818 -85.5626

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.fits scfile=/lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits outfile=/lscratch/kocevski/50335737/cmap_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.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=142.818 yref=-85.5626 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.95
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.fits scfile=/lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits outfile=/lscratch/kocevski/50335737/cmap_HighResolution_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.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=142.818 yref=-85.5626 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.94
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/50335737/Model_4FGL_J0931.2-8533_weekly_bin827.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/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.fits.....................!
real 7551.18
user 7509.90
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.fits', '/lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits', expMap='/lscratch/kocevski/50335737/expmap_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.fits', expCube='/lscratch/kocevski/50335737/ltcube_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/50335737/Model_4FGL_J0931.2-8533_weekly_bin827.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0931.2-8533'

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  7.409e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
221        Index:  2.533e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/50335737/ft1_filtered_4FGL_J0931.2-8533_weekly_bin827.fits
Spacecraft file(s): /lscratch/kocevski/50335737/ft2_4FGL_J0931.2-8533_weekly_bin827.fits
Exposure map: /lscratch/kocevski/50335737/expmap_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.fits
Exposure cube: /lscratch/kocevski/50335737/ltcube_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/50335737/Model_4FGL_J0931.2-8533_weekly_bin827.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) = 27063.3275179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57315E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.8636       1.0000          .0000       .10000E+07
     3 'Prefactor '    .54162E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .43983E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.2886       1.0000          .0000       .10000E+07
     6 'norm      '    .17764E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .75576E-03   1.0000          .0000       .10000E+07
     8 'norm      '    22.140       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.0364       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79936E-08   1.0000          .0000       .10000E+07
    11 'norm      '    1.5164       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.2596       1.0000          .0000       .10000E+07
    13 'Prefactor '    24.254       1.0000          .0000       .10000E+07
    14 'norm      '    10.125       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.8766       1.0000          .0000       .10000E+07
    16 'Prefactor '    .57077E-06   1.0000          .0000       .10000E+07
    17 'norm      '    1.9584       1.0000          .0000       .10000E+07
    18 'Prefactor '    52.067       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0193       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98564       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27063.25     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1197 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    34.857        .14310E-05** at limit **
   2  Prefactor     1.8621        3.1521        .13654E-06    .13026E-02
   3  Prefactor      .0000        3.0470       -.46273E-07** at limit **
   4  Prefactor      .0000        6.7366        .58035E-07** at limit **
   5  Prefactor     7.2535        7.0894        .14566E-06    .60258E-03
   6  norm           .0000        .71199       -.79520E-07** at limit **
   7  Prefactor     .55511E-09    15.304        .76944E-06** at limit **
   8  norm          22.139        3.6431       -.58301E-06    .11733E-01
   9  Prefactor     2.0234        7.4785       -.40794E-05   -.27713E-02
  10  Prefactor      .0000        3.5596        .67301E-07** at limit **
  11  norm          1.5162        2.2230       -.11742E-06    .30557E-02
  12  Prefactor     9.2586        3.7409       -.25618E-07    .21385E-02
  13  Prefactor     24.329        1.0771       -.29715E-07    .15800E-01
  14  norm          10.142        1.4262       -.24825E-06    .20286E-01
  15  Prefactor     3.8745        2.2531        .10913E-07    .30828E-02
  16  Prefactor     .55511E-10    1.3287        .35002E-07** at limit **
  17  norm          1.9607        2.2717        .31165E-07    .18198E-02
  18  Prefactor     51.842        1.6527        .19966E-07    .61921E-02
  19  Normalizat    1.0194        .16839        .74621E-05   -.34507E-03
  20  Prefactor     .98565        .50994E-01   -.27933E-06   -.78523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 1.86207
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.25347
  norm       = 0
  Prefactor  = 5.55112e-10
  norm       = 22.1394
  Prefactor  = 2.02342
  Prefactor  = 0
  norm       = 1.51622
  Prefactor  = 9.25864
  Prefactor  = 24.3286
  norm       = 10.1416
  Prefactor  = 3.87454
  Prefactor  = 5.55112e-11
  norm       = 1.96065
  Prefactor  = 51.8422
  Normalizat = 1.01936
  Prefactor  = 0.985649
 **********
 **   18 **HESSE 
 **********

 FCN=   27063.25     FROM HESSE     STATUS=OK           337 CALLS     1534 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    34.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8621        3.1736        .76292E-03   -1.5681    
   3  Prefactor      .0000        3.0527        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        6.7473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2535        7.1192        .37129E-03   -1.5654    
   6  norm           .0000        .71859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-09    15.307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          22.139        8.6740        .21258E-03   -1.5614    
   9  Prefactor     2.0234        8.6068        .72450E-03   -1.5680    
  10  Prefactor      .0000        3.5669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5162        2.2374        .86772E-03   -1.5683    
  12  Prefactor     9.2586        3.7546        .32911E-03   -1.5647    
  13  Prefactor     24.329        21.142        .20310E-03   -1.5609    
  14  norm          10.142        10.938        .31466E-03   -1.5644    
  15  Prefactor     3.8745        2.2691        .51225E-03   -1.5669    
  16  Prefactor     .55511E-10    1.3294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9607        2.3046        .74103E-03   -1.5680    
  18  Prefactor     51.842        30.149        .13860E-03   -1.5564    
  19  Normalizat    1.0194        .15362        .10180       -.92385    
  20  Prefactor     .98565        .45405E-01    .32067E-01   -.93209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61287e-07
Minuit parameter uncertainties:
  1  8.21923e-05
  2  3.17357
  3  1.02836e-05
  4  1.34974e-05
  5  7.11923
  6  6.84888e-06
  7  0.000184158
  8  8.67401
  9  8.34631
  10  3.13025e-06
  11  2.23738
  12  3.7546
  13  21.1426
  14  10.9378
  15  2.26915
  16  1.23791e-05
  17  2.30461
  18  30.1487
  19  0.153687
  20  0.0454064
Done.

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

Extracting fit parameters...

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  0.000e+00  3.130e-06  0.000e+00  1.000e+06 ( 1.000e-13)
221        Index:  2.533e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.856e-01  4.541e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.019e+00  1.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 142.818 -85.563
Photon Flux Upper Limit: 3.26219277242e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00254257819742 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/50335737/likelihoodResults_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.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) = 27063.247288
delta logL = -0.000737554491934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 27063.2465507
delta logL = -3.26232111547e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   27063.25     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      244 TOTAL
                     EDM=   .47E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1899        .42118E-03** at limit **
   2  Index         2.6733        1.4994        .24290E-04     .0000    
   3  Normalizat    1.0194        1.2673       -.22599E-05   -.26403E-04
   4  Prefactor     .98565        1.3257       -.78944E-06   -.93705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.67331
  Normalizat = 1.01936
  Prefactor  = 0.985649
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27063.25     FROM HESSE     STATUS=FAILED         9 CALLS      253 TOTAL
                     EDM=   .47E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.1899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .80888        2.0020        .24290E-04   -.48402    
   3  Normalizat    1.0194        1.2673       -.22599E-05   -.92385    
   4  Prefactor     .98565        1.3257       -.78944E-06   -.93209    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.73507e-13
Minuit parameter uncertainties:
  1  9.02833e-07
  2  1.52968
  3  1.30807
  4  1.37377
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) = 27063.2465504
delta logL = 5.09317032993e-11

Extracting fit parameters...

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  0.000e+00  9.028e-07  0.000e+00  1.000e+06 ( 1.000e-13)
221        Index:  2.673e+00  1.530e+00  0.000e+00  1.000e+01 (-1.000e+00)
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.856e-01  1.374e+00  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.019e+00  1.308e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 142.818 -85.563

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/50335737/cmap_HighResolution_739152001_739756801_4FGL_J0931.2-8533_weekly_bin827.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-03', job_status='DONE', photon_flux_upper_limit='3.26e-08', time_completed='2024-06-11 03:20:01.109383', job_id='50335737', GAL2='0.99', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1718101201.11', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='827' AND source_name='4FGL J0931.2-8533' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 11 03:20:01 PDT 2024

