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


Performing analysis on: 4FGL_J1830.1+0617_daily_bin1869
RA = 277.536, Dec = 6.2878
tmin = 723772801, tmax = 724032001
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='35827688', job_status='RUN', time_executed='2023-12-12 00:45:48.618762', time_epoch_executed='1702370748.62' WHERE source_name='4FGL J1830.1+0617' and cadence='daily' and bin_id='1869'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35827688

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35827688/ft1_4FGL_J1830.1+0617_daily_bin1869.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35827688/ft2_4FGL_J1830.1+0617_daily_bin1869.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35827688/ft1_4FGL_J1830.1+0617_daily_bin1869.fits outfile=/lscratch/kocevski/35827688/ft1_filteredMKT_4FGL_J1830.1+0617_daily_bin1869.fits ra=277.536 dec=6.2878 rad=12.0 tmin=723772801.0 tmax=724032001.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.31
user 3.09
sys 0.16

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

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

Number of photons that the gtmktime cut: 4563

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35827688/ft1_filtered_4FGL_J1830.1+0617_daily_bin1869.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35827688/ft2_4FGL_J1830.1+0617_daily_bin1869.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35827688/ltcube_723772801_724032001_4FGL_J1830.1+0617_daily_bin1869.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/35827688/ft2_4FGL_J1830.1+0617_daily_bin1869.fits
.....................!
real 9.42
user 9.09
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35827688/ft1_filtered_4FGL_J1830.1+0617_daily_bin1869.fits evtable="EVENTS" scfile=/lscratch/kocevski/35827688/ft2_4FGL_J1830.1+0617_daily_bin1869.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35827688/ltcube_723772801_724032001_4FGL_J1830.1+0617_daily_bin1869.fits outfile=/lscratch/kocevski/35827688/expmap_723772801_724032001_4FGL_J1830.1+0617_daily_bin1869.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/35827688/ltcube_723772801_724032001_4FGL_J1830.1+0617_daily_bin1869.fits
.....................!
real 72.95
user 68.84
sys 3.79

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/35827688/ft1_filtered_4FGL_J1830.1+0617_daily_bin1869.fits scfile=/lscratch/kocevski/35827688/ft2_4FGL_J1830.1+0617_daily_bin1869.fits outfile=/lscratch/kocevski/35827688/cmap_723772801_724032001_4FGL_J1830.1+0617_daily_bin1869.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.41
user 0.23
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4761       1.0000          .0000       .10000E+07
     2 'Prefactor '    .34139E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .44631E-07   1.0000          .0000       .10000E+07
     4 'norm      '    19.196       1.0000          .0000       .10000E+07
     5 'norm      '    5.6010       1.0000          .0000       .10000E+07
     6 'Prefactor '    .57391E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    75.001       1.0000          .0000       .10000E+07
     8 'Prefactor '    .66613E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .73108E-07   1.0000          .0000       .10000E+07
    10 'norm      '    7.5527       1.0000          .0000       .10000E+07
    11 'Normalizat'    .79451       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0806       1.0000          .0000       10.000    
    13 'norm      '    1.7015       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=   40123.45     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     1004 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4757        .86025       -.16617E-06   -.12844E-01
   2  Prefactor     .16098E-08    23.645        .31124E-05** at limit **
   3  norm           .0000        9.6869       -.69476E-07** at limit **
   4  norm          19.198        1.1339        .71802E-07    .74270E-01
   5  norm          5.5978        8.1426       -.14134E-06   -.21689E-02
   6  Prefactor     .62172E-08    226.32       -.23579E-04** at limit **
   7  Prefactor     74.974        2.5486       -.22083E-06    .20509E-01
   8  Prefactor     .22204E-08    9.8587        .50225E-06** at limit **
   9  Prefactor     .32196E-08    15.320       -.89661E-06** at limit **
  10  norm          7.5509        8.6367       -.15043E-06   -.14677E-02
  11  Normalizat    .79513        .35445        .16058E-04    .29861E-03
  12  Prefactor     1.0805        .25590E-01    .40602E-06    .43400E-02
  13  norm          1.7016        .39179       -.57662E-08   -.63839E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4757
  Prefactor  = 1.60982e-09
  norm       = 0
  norm       = 19.198
  norm       = 5.59782
  Prefactor  = 6.21725e-09
  Prefactor  = 74.974
  Prefactor  = 2.22045e-09
  Prefactor  = 3.21965e-09
  norm       = 7.55093
  Normalizat = 0.795128
  Prefactor  = 1.08054
  norm       = 1.70156
 **********
 **   18 **HESSE 
 **********

 FCN=   40123.45     FROM HESSE     STATUS=OK           181 CALLS     1185 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4757        .88179        .88358E-03   -1.5684    
   2  Prefactor     .16098E-08    23.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        9.6670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          19.198        16.455        .22832E-03   -1.5620    
   5  norm          5.5978        8.2828        .42425E-03   -1.5661    
   6  Prefactor     .62172E-08    3.4253        .77285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     74.974        52.419        .11548E-03   -1.5535    
   8  Prefactor     .22204E-08    9.9171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .32196E-08    15.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5509        8.6615        .36468E-03   -1.5653    
  11  Normalizat    .79513        .42499        .43275       -1.0025    
  12  Prefactor     1.0805        .28839E-01    .27052E-01   -.90091    
  13  norm          1.7016        .39510        .80606E-03   -1.5682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11992e-07
Minuit parameter uncertainties:
  1  0.881794
  2  0.000391347
  3  1.36811e-05
  4  16.4547
  5  8.28283
  6  0.000291388
  7  52.4196
  8  0.00029602
  9  0.000443484
  10  8.66152
  11  0.426781
  12  0.0288391
  13  0.395096
Done.

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

Extracting fit parameters...

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  2.220e-09  2.960e-04  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.081e+00  2.884e-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:  7.951e-01  4.268e-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: 1.38170229375e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0106577269734 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35827688/likelihoodResults_723772801_724032001_4FGL_J1830.1+0617_daily_bin1869.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) = 40123.5033135
delta logL = -0.0499146550064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 40123.4534003
delta logL = -1.51924177771e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46779E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .55204       1.0000          .0000       10.000    
     3 'Normalizat'    .79563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0805       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=   40123.45     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      223 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.9636        .42118E-03** at limit **
   2  Index         1.4407        1.3803       -.48777E-05     .0000    
   3  Normalizat    .79513        1.1342       -.38363E-04    .12993E-03
   4  Prefactor     1.0805        1.1624        .67741E-06    .10591E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.44071
  Normalizat = 0.795126
  Prefactor  = 1.08054
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40123.45     FROM HESSE     STATUS=FAILED         9 CALLS      232 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17936        1.5478       -.48777E-05   -.79214    
   3  Normalizat    .79513        1.1342       -.38363E-04   -1.0025    
   4  Prefactor     1.0805        1.1624        .67741E-06   -.90091    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.02969e-10
Minuit parameter uncertainties:
  1  1.96946e-05
  2  1.41855
  3  1.17085
  4  1.19144
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) = 40123.4533988
delta logL = 5.09317032993e-10

Extracting fit parameters...

4FGL J1830.1+0617
   Spectrum: PowerLaw
476    Prefactor:  0.000e+00  1.969e-05  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  1.441e+00  1.419e+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.081e+00  1.191e+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:  7.951e-01  1.171e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/35827688/cmap_HighResolution_723772801_724032001_4FGL_J1830.1+0617_daily_bin1869.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2023-12-12 01:16:53.098037', job_id='35827688', GAL2='1.08', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1702372613.1', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.09e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1869' AND source_name='4FGL J1830.1+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 12 01:16:53 PST 2023

