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


Performing analysis on: 4FGL_J1830.1+0617_weekly_bin797
RA = 277.536, Dec = 6.2878
tmin = 721008001, tmax = 721612801
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='33963329', job_status='RUN', time_executed='2023-11-14 01:06:03.237852', time_epoch_executed='1699952763.24' WHERE source_name='4FGL J1830.1+0617' and cadence='weekly' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/33963329

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/33963329/ft1_4FGL_J1830.1+0617_weekly_bin797.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/33963329/ft1_4FGL_J1830.1+0617_weekly_bin797.fits outfile=/lscratch/kocevski/33963329/ft1_filteredMKT_4FGL_J1830.1+0617_weekly_bin797.fits ra=277.536 dec=6.2878 rad=12.0 tmin=721008001.0 tmax=721612801.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 4.21
user 3.80
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.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/33963329/ft1_filteredMKT_4FGL_J1830.1+0617_weekly_bin797.fits evtable="EVENTS" outfile="/lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.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.59
user 0.22
sys 0.25

Number of photons that the gtmktime cut: 13263

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.fits" evtable="EVENTS" scfile=/lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits sctable="SC_DATA" outfile=/lscratch/kocevski/33963329/ltcube_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.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/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits
.....................!
real 19.05
user 18.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.fits evtable="EVENTS" scfile=/lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits sctable="SC_DATA" expcube=/lscratch/kocevski/33963329/ltcube_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.fits outfile=/lscratch/kocevski/33963329/expmap_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.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/33963329/ltcube_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.fits
.....................!
real 65.96
user 61.71
sys 3.74

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 Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Added 342 point sources and 13 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 J1830.1+0617 @ 277.536 6.2878

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.fits scfile=/lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits outfile=/lscratch/kocevski/33963329/cmap_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.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=277.536 yref=6.2878 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.48
user 0.21
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.fits scfile=/lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits outfile=/lscratch/kocevski/33963329/cmap_HighResolution_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.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=277.536 yref=6.2878 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.51
user 0.22
sys 0.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.fits evtable="EVENTS" scfile=/lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/33963329/Model_4FGL_J1830.1+0617_weekly_bin797.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 J1836.5-0651
adding source FGES J1838.9-0704
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source G42.8+0.6
adding source GAL_V02
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
adding source W 51C
Working on...
/lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.fits.....................!
real 1606.15
user 1598.85
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.fits', '/lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits', expMap='/lscratch/kocevski/33963329/expmap_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.fits', expCube='/lscratch/kocevski/33963329/ltcube_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/33963329/Model_4FGL_J1830.1+0617_weekly_bin797.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1830.1+0617'

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  3.993e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/33963329/ft1_filtered_4FGL_J1830.1+0617_weekly_bin797.fits
Spacecraft file(s): /lscratch/kocevski/33963329/ft2_4FGL_J1830.1+0617_weekly_bin797.fits
Exposure map: /lscratch/kocevski/33963329/expmap_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.fits
Exposure cube: /lscratch/kocevski/33963329/ltcube_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/33963329/Model_4FGL_J1830.1+0617_weekly_bin797.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) = 119782.749721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92586       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.3024       1.0000          .0000       .10000E+07
     3 'norm      '    2.7452       1.0000          .0000       .10000E+07
     4 'norm      '    .27867E-06   1.0000          .0000       .10000E+07
     5 'norm      '    3.6449       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7765       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.568       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12990E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    22.950       1.0000          .0000       .10000E+07
    10 'norm      '    1.0252       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.3929       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0463       1.0000          .0000       10.000    
    13 'norm      '    1.5197       1.0000          .0000       .10000E+07
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1294E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   119782.6     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      669 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92597        .47382        .38826E-07   -.11046E-02
   2  Prefactor     4.2686        8.9393       -.10864E-06   -.35450E-01
   3  norm          2.7450        3.1624       -.40386E-10   -.58174E-04
   4  norm           .0000        4.3868       -.25725E-06** at limit **
   5  norm          3.6437        3.7770        .90689E-08   -.25350E-03
   6  Prefactor     1.7825        3.4487        .86128E-07   -.58053E-03
   7  Prefactor     12.629        12.563        .96477E-07   -.43772E-01
   8  Prefactor      .0000        2.9563       -.21222E-07** at limit **
   9  Prefactor     22.949        1.0121        .79539E-10    .17014E-01
  10  norm          1.0266        7.6289        .20776E-06   -.21187E-03
  11  Normalizat    1.3929        .22187       -.36866E-05    .12189E-05
  12  Prefactor     1.0462        .14967E-01    .21639E-06   -.89267E-04
  13  norm          1.5197        .23152        .29491E-09   -.54068E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.925968
  Prefactor  = 4.26864
  norm       = 2.74502
  norm       = 0
  norm       = 3.64373
  Prefactor  = 1.78247
  Prefactor  = 12.6294
  Prefactor  = 0
  Prefactor  = 22.9488
  norm       = 1.02664
  Normalizat = 1.39291
  Prefactor  = 1.04625
  norm       = 1.51972
 **********
 **   18 **HESSE 
 **********

 FCN=   119782.6     FROM HESSE     STATUS=OK           179 CALLS      848 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92597        .47630        .43988E-03   -1.5689    
   2  Prefactor     4.2686        13.533        .48544E-03   -1.5667    
   3  norm          2.7450        3.1719        .61419E-03   -1.5675    
   4  norm           .0000        4.3863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6437        3.7975        .52889E-03   -1.5670    
   6  Prefactor     1.7825        3.4655        .78509E-03   -1.5681    
   7  Prefactor     12.629        16.748        .28230E-03   -1.5637    
   8  Prefactor      .0000        2.9560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.949        14.064        .20879E-03   -1.5612    
  10  norm          1.0266        7.4806        .12644E-02   -1.5688    
  11  Normalizat    1.3929        .23769        .31320       -.80834    
  12  Prefactor     1.0462        .15276E-01    .27555E-01   -.91203    
  13  norm          1.5197        .23347        .86645E-03   -1.5683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64873e-06
Minuit parameter uncertainties:
  1  0.476298
  2  13.5335
  3  3.17188
  4  6.49571e-06
  5  3.79754
  6  3.46549
  7  16.748
  8  2.76358e-06
  9  14.0637
  10  5.54251
  11  0.237883
  12  0.0152757
  13  0.233465
Done.

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

Extracting fit parameters...

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  0.000e+00  2.764e-06  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1263    Prefactor:  1.046e+00  1.528e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1264        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1265        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1246   Normalization:  1.393e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 277.536 6.288
Photon Flux Upper Limit: 6.38229277562e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00492296598008 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/33963329/likelihoodResults_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.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) = 119782.632251
delta logL = -0.000168499580468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 119782.632083
delta logL = -8.71819793247e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   119782.6     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      241 TOTAL
                     EDM=   .61E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.5517        .42118E-03** at limit **
   2  Index         2.5337        1.8588       -.93384E-06     .0000    
   3  Normalizat    1.3929        1.0630        .35632E-05   -.37174E-05
   4  Prefactor     1.0462        1.1957        .24292E-06    .26623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.53374
  Normalizat = 1.39291
  Prefactor  = 1.04625
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   119782.6     FROM HESSE     STATUS=FAILED         9 CALLS      250 TOTAL
                     EDM=   .61E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.5517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .72429        2.0460       -.93384E-06   -.51582    
   3  Normalizat    1.3929        1.0630        .35632E-05   -.80834    
   4  Prefactor     1.0462        1.1957        .24292E-06   -.91203    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.08709e-14
Minuit parameter uncertainties:
  1  9.86546e-08
  2  1.92058
  3  1.08059
  4  1.22839
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) = 119782.632082
delta logL = 0.0

Extracting fit parameters...

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  0.000e+00  9.865e-08  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  2.534e+00  1.921e+00  0.000e+00  1.000e+01 (-1.000e+00)
478        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1263    Prefactor:  1.046e+00  1.228e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1264        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1265        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1246   Normalization:  1.393e+00  1.081e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 277.536 6.288

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/33963329/cmap_HighResolution_721008001_721612801_4FGL_J1830.1+0617_weekly_bin797.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2023-11-14 02:13:13.043605', job_id='33963329', GAL2='1.05', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1699956793.04', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='797' AND source_name='4FGL J1830.1+0617' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Nov 14 02:13:13 PST 2023

