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


Performing analysis on: 4FGL_J1830.1+0617_weekly_bin818
RA = 277.536, Dec = 6.2878
tmin = 733708801, tmax = 734313601
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='44682690', job_status='RUN', time_executed='2024-04-21 10:05:58.731326', time_epoch_executed='1713719158.73' WHERE source_name='4FGL J1830.1+0617' and cadence='weekly' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44682690

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44682690/ft1_4FGL_J1830.1+0617_weekly_bin818.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44682690/ft1_4FGL_J1830.1+0617_weekly_bin818.fits outfile=/lscratch/kocevski/44682690/ft1_filteredMKT_4FGL_J1830.1+0617_weekly_bin818.fits ra=277.536 dec=6.2878 rad=12.0 tmin=733708801.0 tmax=734313601.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 3.91
user 3.64
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.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/44682690/ft1_filteredMKT_4FGL_J1830.1+0617_weekly_bin818.fits evtable="EVENTS" outfile="/lscratch/kocevski/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.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.38
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 13447

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44682690/ltcube_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.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/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits
.....................!
real 15.43
user 15.12
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.fits evtable="EVENTS" scfile=/lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44682690/ltcube_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.fits outfile=/lscratch/kocevski/44682690/expmap_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.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/44682690/ltcube_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.fits
.....................!
real 59.35
user 55.61
sys 3.41

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/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.fits scfile=/lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits outfile=/lscratch/kocevski/44682690/cmap_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.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.40
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.fits scfile=/lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits outfile=/lscratch/kocevski/44682690/cmap_HighResolution_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.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.39
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.fits evtable="EVENTS" scfile=/lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44682690/Model_4FGL_J1830.1+0617_weekly_bin818.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/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.fits.....................!
real 1427.32
user 1419.59
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.fits', '/lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits', expMap='/lscratch/kocevski/44682690/expmap_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.fits', expCube='/lscratch/kocevski/44682690/ltcube_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44682690/Model_4FGL_J1830.1+0617_weekly_bin818.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/44682690/ft1_filtered_4FGL_J1830.1+0617_weekly_bin818.fits
Spacecraft file(s): /lscratch/kocevski/44682690/ft2_4FGL_J1830.1+0617_weekly_bin818.fits
Exposure map: /lscratch/kocevski/44682690/expmap_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.fits
Exposure cube: /lscratch/kocevski/44682690/ltcube_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44682690/Model_4FGL_J1830.1+0617_weekly_bin818.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) = 114986.645528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52973       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18457E-04   1.0000          .0000       .10000E+07
     3 'norm      '    6.0786       1.0000          .0000       .10000E+07
     4 'norm      '    7.9620       1.0000          .0000       .10000E+07
     5 'norm      '    .13767E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.9570       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.280       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22038E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18402E-01   1.0000          .0000       .10000E+07
    10 'norm      '    2.7088       1.0000          .0000       .10000E+07
    11 'Normalizat'    1.3653       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0456       1.0000          .0000       10.000    
    13 'norm      '    1.3697       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=   114986.6     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      723 TOTAL
                     EDM=   .49E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52913        .32964        .31865E-08   -.43022E-03
   2  Prefactor      .0000        67.501        .58257E-06** at limit **
   3  norm          6.0854        3.9303       -.39473E-07    .11030E-04
   4  norm          7.9589        6.9553        .19468E-07   -.17335E-03
   5  norm           .0000        1.1197        .26389E-07** at limit **
   6  Prefactor     1.9560        3.4279        .78834E-07   -.14972E-03
   7  Prefactor     15.937        23.475        .33868E-07   -.20031E-04
   8  Prefactor      .0000        15.783       -.68736E-07** at limit **
   9  Prefactor      .0000        72.923       -.32085E-06** at limit **
  10  norm          2.7170        3.6438        .36844E-07   -.31995E-04
  11  Normalizat    1.3664        .20982        .14042E-06   -.83745E-05
  12  Prefactor     1.0456        .14878E-01   -.69738E-07   -.85004E-04
  13  norm          1.3699        .21237       -.47818E-09    .44822E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.529133
  Prefactor  = 0
  norm       = 6.08543
  norm       = 7.95889
  norm       = 0
  Prefactor  = 1.95596
  Prefactor  = 15.9368
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.717
  Normalizat = 1.36638
  Prefactor  = 1.04558
  norm       = 1.3699
 **********
 **   18 **HESSE 
 **********

 FCN=   114986.6     FROM HESSE     STATUS=OK           179 CALLS      902 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52913        .33795        .75774E-03   -1.5693    
   2  Prefactor      .0000        66.995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0854        3.9337        .40699E-03   -1.5659    
   4  norm          7.9589        6.9806        .35510E-03   -1.5652    
   5  norm           .0000        1.1264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9560        3.4468        .74132E-03   -1.5680    
   7  Prefactor     15.937        23.488        .24796E-03   -1.5628    
   8  Prefactor      .0000        15.449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        2.5975        .17144E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7170        3.6506        .61861E-03   -1.5675    
  11  Normalizat    1.3664        .22167        .31727       -.81606    
  12  Prefactor     1.0456        .15115E-01    .26747E-01   -.91225    
  13  norm          1.3699        .21449        .93136E-03   -1.5685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23624e-06
Minuit parameter uncertainties:
  1  0.337948
  2  7.17567e-05
  3  3.93369
  4  6.98062
  5  7.93048e-07
  6  3.4468
  7  23.4883
  8  1.97951e-06
  9  7.59074e-06
  10  3.65064
  11  0.221827
  12  0.0151152
  13  0.21449
Done.

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

Extracting fit parameters...

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  0.000e+00  1.980e-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.512e-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.366e+00  2.218e-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: 7.25463690165e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00559584649596 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44682690/likelihoodResults_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.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) = 114986.624218
delta logL = -0.0444083552575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 114986.57981
delta logL = -4.05561877415e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74368E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.0546       1.0000          .0000       10.000    
     3 'Normalizat'    1.3664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0456       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=   114986.6     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      211 TOTAL
                     EDM=   .43E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.181        .42118E-03** at limit **
   2  Index         2.5003        1.0916       -.89403E-05     .0000    
   3  Normalizat    1.3664        1.0671       -.44179E-05   -.88272E-05
   4  Prefactor     1.0456        1.1965        .20398E-06   -.79705E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.50028
  Normalizat = 1.36638
  Prefactor  = 1.04558
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   114986.6     FROM HESSE     STATUS=FAILED         9 CALLS      220 TOTAL
                     EDM=   .43E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .70443        1.8766       -.89403E-05   -.52353    
   3  Normalizat    1.3664        1.0671       -.44179E-05   -.81606    
   4  Prefactor     1.0456        1.1965        .20398E-06   -.91225    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.29848e-13
Minuit parameter uncertainties:
  1  2.00646e-05
  2  1.10354
  3  1.08517
  4  1.22932
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) = 114986.57981
delta logL = 0.0

Extracting fit parameters...

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  0.000e+00  2.006e-05  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  2.500e+00  1.104e+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.229e+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.366e+00  1.085e+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/44682690/cmap_HighResolution_733708801_734313601_4FGL_J1830.1+0617_weekly_bin818.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2024-04-21 11:06:16.350347', job_id='44682690', GAL2='1.05', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1713722776.35', 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='818' AND source_name='4FGL J1830.1+0617' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Apr 21 11:06:16 PDT 2024

