 **********
 **   18 **HESSE 
 **********

 FCN=   40193.89     FROM HESSE     STATUS=OK           294 CALLS     1634 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4067        15.706        .83493E-03   -1.5684    
   2  Prefactor     6.3287        31.182        .39074E-03   -1.5658    
   3  Prefactor     19.257        52.174        .23240E-03   -1.5620    
   4  norm           .0000        .47946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.255        34.537        .21690E-03   -1.5612    
   6  Prefactor     2.0697        3.1001        .71569E-03   -1.5679    
   7  norm          8.0213        4.1829        .35265E-03   -1.5651    
   8  Prefactor     .55511E-10    3.2023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.482        12.431        .25551E-03   -1.5629    
  10  Prefactor     8.0078        4.3172        .35359E-03   -1.5651    
  11  norm          .55511E-10    4.7215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .48826        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .25798        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9728        5.1003        .35466E-03   -1.5651    
  15  Prefactor     .55511E-10    4.3022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.441        36.505        .16693E-03   -1.5587    
  17  Normalizat    1.1190        .12602        .10511       -.89145    
  18  Prefactor     .98653        .33419E-01    .31615E-01   -.93180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62333e-06
Minuit parameter uncertainties:
  1  9.40074
  2  28.0959
  3  52.1754
  4  7.5964e-07
  5  34.537
  6  3.10006
  7  4.18294
  8  2.71363e-05
  9  12.4314
  10  4.31717
  11  3.36679e-05
  12  5.77636e-06
  13  3.5886e-06
  14  5.10033
  15  2.54715e-05
  16  36.5057
  17  0.126057
  18  0.0334197
/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 = 17494
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1841.8+3218_weekly_bin778
RA = 280.453, Dec = 32.301
tmin = 709516801, tmax = 710121601
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='18886853', job_status='RUN', time_executed='2023-07-10 10:12:48.998572', time_epoch_executed='1689009169.0' WHERE source_name='4FGL J1841.8+3218' and cadence='weekly' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18886853

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18886853/ft1_4FGL_J1841.8+3218_weekly_bin778.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18886853/ft1_4FGL_J1841.8+3218_weekly_bin778.fits outfile=/lscratch/kocevski/18886853/ft1_filteredMKT_4FGL_J1841.8+3218_weekly_bin778.fits ra=280.453 dec=32.301 rad=12.0 tmin=709516801.0 tmax=710121601.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.29
user 3.79
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.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/18886853/ft1_filteredMKT_4FGL_J1841.8+3218_weekly_bin778.fits evtable="EVENTS" outfile="/lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.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.19
sys 0.13

Number of photons that the gtmktime cut: 3925

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18886853/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.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/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits
.....................!
real 15.44
user 14.91
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18886853/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits outfile=/lscratch/kocevski/18886853/expmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.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/18886853/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits
.....................!
real 59.59
user 55.58
sys 3.48

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 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 gamma Cygni in ROI with RadialDisk spatial model.
Added 236 point sources and 2 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 J1841.8+3218 @ 280.453 32.301

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits scfile=/lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits outfile=/lscratch/kocevski/18886853/cmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.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=280.453 yref=32.301 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.62
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits scfile=/lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits outfile=/lscratch/kocevski/18886853/cmap_HighResolution_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.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=280.453 yref=32.301 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.59
user 0.20
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/konumber of points = 17494
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1841.8+3218_weekly_bin778
RA = 280.453, Dec = 32.301
tmin = 709516801, tmax = 710121601
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='18887332', job_status='RUN', time_executed='2023-07-10 10:14:54.471463', time_epoch_executed='1689009294.47' WHERE source_name='4FGL J1841.8+3218' and cadence='weekly' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18887332

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18887332/ft1_4FGL_J1841.8+3218_weekly_bin778.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18887332/ft1_4FGL_J1841.8+3218_weekly_bin778.fits outfile=/lscratch/kocevski/18887332/ft1_filteredMKT_4FGL_J1841.8+3218_weekly_bin778.fits ra=280.453 dec=32.301 rad=12.0 tmin=709516801.0 tmax=710121601.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.93
user 4.36
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.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/18887332/ft1_filteredMKT_4FGL_J1841.8+3218_weekly_bin778.fits evtable="EVENTS" outfile="/lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.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.51
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 3925

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits sctable="SC_DATA" oocevski/18884859/ft2_4FGL_J1841.8+3218_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18884859/Model_4FGL_J1841.8+3218_weekly_bin778.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 W 51C
adding source gamma Cygni
Working on...
/lscratch/kocevski/18884859/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits.....................!
real 219.64
user 217.24
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18884859/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits', '/lscratch/kocevski/18884859/ft2_4FGL_J1841.8+3218_weekly_bin778.fits', expMap='/lscratch/kocevski/18884859/expmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits', expCube='/lscratch/kocevski/18884859/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18884859/Model_4FGL_J1841.8+3218_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1841.8+3218'

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  4.939e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18884859/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18884859/ft2_4FGL_J1841.8+3218_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18884859/expmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18884859/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18884859/Model_4FGL_J1841.8+3218_weekly_bin778.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) = 40193.9075976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6088       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5881       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.529       1.0000          .0000       .10000E+07
     4 'norm      '    .94580E-06   1.0000          .0000       .10000E+07
     5 'norm      '    21.268       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0804       1.0000          .0000       .10000E+07
     7 'norm      '    8.0723       1.0000          .0000       .10000E+07
     8 'Prefactor '    .62368E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.334       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.0296       1.0000          .0000       .10000E+07
    11 'norm      '    .31130E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .68556E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .14211E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.9818       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18479E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    35.896       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 *******Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  3.367e-05  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.865e-01  3.342e-02  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.119e+00  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.453 32.301
Photon Flux Upper Limit: 4.76294315163e-09 ph cm-2 s-1
Energy Flux Upper Limit: 1.54820496421e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18883098/likelihoodResults_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 40193.8903713
delta logL = -4.28126368206e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 40193.8903287
delta logL = -2.10209691431e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14433E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    .15149       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   40193.89     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      252 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.1936        .42118E-03** at limit **
   2  alpha         3.4012        1.1171        .24997E-05     .0000    
   3  Normalizat    1.1190        1.1429        .48405E-05   -.72896E-05
   4  Prefactor     .98653        1.3265       -.96422E-06    .46565E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.40119
  Normalizat = 1.11897
  Prefactor  = 0.986525
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40193.89     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.1936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1481        1.1429        .24997E-05    .36878    
   3  Normalizat    1.1190        1.1429        .48405E-05   -.89145    
   4  Prefactor     .98653        1.3265       -.96422E-06   -.93180    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.03057e-13
Minuit parameter uncertainties:
  1  8.85095e-07
  2  1.16493
  3  1.16984
  4  1.37464
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) = 40193.8903285
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  8.851e-07  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  3.401e+00  1.165e+00  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.865e-01  1.375e+00  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.119e+00  1.170e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.453 32.301

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/18883098/cmap_HighResolution_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-05', job_status='DONE', photon_flux_upper_limit='4.76e-09', time_completed='2023-07-10 10:18:15.992235', job_id='18883098', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1689009495.99', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='778' AND source_name='4FGL J1841.8+3218' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:18:16 PDT 2023

***
 **   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   40193.89     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1340 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4067        15.072       -.26843E-06   -.25254E-03
   2  Prefactor     6.3287        29.068       -.98921E-07   -.50699E-01
   3  Prefactor     19.257        47.300        .13690E-06   -.61307E-01
   4  norm           .0000        .49616       -.20483E-07** at limit **
   5  norm          23.255        33.325        .19775E-06   -.17878E-01
   6  Prefactor     2.0697        3.0889       -.76104E-07   -.10675E-02
   7  norm          8.0213        4.1798       -.21874E-07   -.18221E-03
   8  Prefactor     .55511E-10    3.2520       -.20393E-06** at limit **
   9  Prefactor     15.482        12.409        .53203E-07    .44703E-02
  10  Prefactor     8.0078        4.2769        .26013E-07    .94636E-03
  11  norm          .55511E-10    4.7252       -.18662E-06** at limit **
  12  norm           .0000        2.0859        .12118E-06** at limit **
  13  norm           .0000        1.1793       -.10639E-06** at limit **
  14  Prefactor     7.9728        5.0925        .48541E-07    .11641E-02
  15  Prefactor     .55511E-10    4.3185       -.17107E-06** at limit **
  16  Prefactor     36.441        21.346        .41044E-07    .13514    
  17  Normalizat    1.1190        .13578        .12715E-05    .96367E-04
  18  Prefactor     .98653        .36490E-01   -.19904E-06    .19274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40666
  Prefactor  = 6.32867
  Prefactor  = 19.2565
  norm       = 0
  norm       = 23.2553
  Prefactor  = 2.06971
  norm       = 8.02134
  Prefactor  = 5.55112e-11
  Prefactor  = 15.4816
  Prefactor  = 8.00784
  norm       = 5.55112e-11
  norm       = 0
  norm       = 0
  Prefactor  = 7.97279
  Prefactor  = 5.55112e-11
  Prefactor  = 36.4408
  Normalizat = 1.11897
  Prefactor  = 0.986525
utfile=/lscratch/kocevski/18887332/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.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/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits
.....................!
real 18.05
user 17.52
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18887332/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits outfile=/lscratch/kocevski/18887332/expmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.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/18887332/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits
.....................!
real 67.61
user 63.15
sys 3.96

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 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 gamma Cygni in ROI with RadialDisk spatial model.
Added 236 point sources and 2 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 J1841.8+3218 @ 280.453 32.301

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits scfile=/lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits outfile=/lscratch/kocevski/18887332/cmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.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=280.453 yref=32.301 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.54
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits scfile=/lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits outfile=/lscratch/kocevski/18887332/cmap_HighResolution_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.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=280.453 yref=32.301 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.53
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits evtable="EVENTS" scfile=/lscratch/k **********
 **   18 **HESSE 
 **********

 FCN=   40193.89     FROM HESSE     STATUS=OK           294 CALLS     1634 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4067        15.706        .83493E-03   -1.5684    
   2  Prefactor     6.3287        31.182        .39074E-03   -1.5658    
   3  Prefactor     19.257        52.174        .23240E-03   -1.5620    
   4  norm           .0000        .47946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.255        34.537        .21690E-03   -1.5612    
   6  Prefactor     2.0697        3.1001        .71569E-03   -1.5679    
   7  norm          8.0213        4.1829        .35265E-03   -1.5651    
   8  Prefactor     .55511E-10    3.2023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.482        12.431        .25551E-03   -1.5629    
  10  Prefactor     8.0078        4.3172        .35359E-03   -1.5651    
  11  norm          .55511E-10    4.7215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .48826        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .25798        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9728        5.1003        .35466E-03   -1.5651    
  15  Prefactor     .55511E-10    4.3022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.441        36.505        .16693E-03   -1.5587    
  17  Normalizat    1.1190        .12602        .10511       -.89145    
  18  Prefactor     .98653        .33419E-01    .31615E-01   -.93180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62333e-06
Minuit parameter uncertainties:
  1  9.40074
  2  28.0959
  3  52.1754
  4  7.5964e-07
  5  34.537
  6  3.10006
  7  4.18294
  8  2.71363e-05
  9  12.4314
  10  4.31717
  11  3.36679e-05
  12  5.77636e-06
  13  3.5886e-06
  14  5.10033
  15  2.54715e-05
  16  36.5057
  17  0.126057
  18  0.0334197
Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  3.367e-05  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.865e-01  3.342e-02  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.119e+00  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.453 32.301
Photon Flux Upper Limit: 4.76294315163e-09 ph cm-2 s-1
Energy Flux Upper Limit: 1.54820496421e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18884859/likelihoodResults_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 40193.8903713
delta logL = -4.28126368206e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 40193.8903287
delta logL = -2.10209691431e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14433E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    .15149       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   40193.89     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      252 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.1936        .42118E-03** at limit **
   2  alpha         3.4012        1.1171        .24997E-05     .0000    
   3  Normalizat    1.1190        1.1429        .48405E-05   -.72896E-05
   4  Prefactor     .98653        1.3265       -.96422E-06    .46565E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.40119
  Normalizat = 1.11897
  Prefactor  = 0.986525
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40193.89     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.1936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1481        1.1429        .24997E-05    .36878    
   3  Normalizat    1.1190        1.1429        .48405E-05   -.89145    
   4  Prefactor     .98653        1.3265       -.96422E-06   -.93180    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.03057e-13
Minuit parameter uncertainties:
  1  8.85095e-07
  2  1.16493
  3  1.16984
  4  1.37464
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) = 40193.8903285
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  8.851e-07  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  3.401e+00  1.165e+00  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.865e-01  1.375e+00  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.119e+00  1.170e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.453 32.301

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/18884859/cmap_HighResolution_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-05', job_status='DONE', photon_flux_upper_limit='4.76e-09', time_completed='2023-07-10 10:23:17.625972', job_id='18884859', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1689009797.63', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='778' AND source_name='4FGL J1841.8+3218' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:23:17 PDT 2023

cevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18886853/Model_4FGL_J1841.8+3218_weekly_bin778.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 W 51C
adding source gamma Cygni
Working on...
/lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits.....................!
real 218.62
user 216.44
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits', '/lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits', expMap='/lscratch/kocevski/18886853/expmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits', expCube='/lscratch/kocevski/18886853/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18886853/Model_4FGL_J1841.8+3218_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1841.8+3218'

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  4.939e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18886853/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18886853/ft2_4FGL_J1841.8+3218_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18886853/expmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18886853/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18886853/Model_4FGL_J1841.8+3218_weekly_bin778.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) = 40193.9075976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6088       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5881       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.529       1.0000          .0000       .10000E+07
     4 'norm      '    .94580E-06   1.0000          .0000       .10000E+07
     5 'norm      '    21.268       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0804       1.0000          .0000       .10000E+07
     7 'norm      '    8.0723       1.0000          .0000       .10000E+07
     8 'Prefactor '    .62368E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.334       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.0296       1.0000          .0000       .10000E+07
    11 'norm      '    .31130E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .68556E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .14211E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.9818       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18479E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    35.896       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   40193.89     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1340 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4067        15.072       -.26843E-06   -.25254E-03
   2  Prefactor     6.3287        29.068       -.98921E-07   -.50699E-01
   3  Prefactor     19.257        47.300        .13690E-06   -.61307E-01
   4  norm           .0000        .49616       -.20483E-07** at limit **
   5  norm          23.255        33.325        .19775E-06   -.17878E-01
   6  Prefactor     2.0697        3.0889       -.76104E-07   -.10675E-02
   7  norm          8.0213        4.1798       -.21874E-07   -.18221E-03
   8  Prefactor     .55511E-10    3.2520       -.20393E-06** at limit **
   9  Prefactor     15.482        12.409        .53203E-07    .44703E-02
  10  Prefactor     8.0078        4.2769        .26013E-07    .94636E-03
  11  norm          .55511E-10    4.7252       -.18662E-06** at limit **
  12  norm           .0000        2.0859        .12118E-06** at limit **
  13  norm           .0000        1.1793       -.10639E-06** at limit **
  14  Prefactor     7.9728        5.0925        .48541E-07    .11641E-02
  15  Prefactor     .55511E-10    4.3185       -.17107E-06** at limit **
  16  Prefactor     36.441        21.346        .41044E-07    .13514    
  17  Normalizat    1.1190        .13578        .12715E-05    .96367E-04
  18  Prefactor     .98653        .36490E-01   -.19904E-06    .19274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40666
  Prefactor  = 6.32867
  Prefactor  = 19.2565
  norm       = 0
  norm       = 23.2553
  Prefactor  = 2.06971
  norm       = 8.02134
  Prefactor  = 5.55112e-11
  Prefactor  = 15.4816
  Prefactor  = 8.00784
  norm       = 5.55112e-11
  norm       = 0
  norm       = 0
  Prefactor  = 7.97279
  Prefactor  = 5.55112e-11
  Prefactor  = 36.4408
  Normalizat = 1.11897
  Prefactor  = 0.986525
 **********
 **   18 **HESSE 
 **********

 FCN=   40193.89     FROM HESSE     STATUS=OK           294 CALLS     1634 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4067        15.706        .83493E-03   -1.5684    
   2  Prefactor     6.3287        31.182        .39074E-03   -1.5658    
   3  Prefactor     19.257        52.174        .23240E-03   -1.5620    
   4  norm           .0000        .47946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.255        34.537        .21690E-03   -1.5612    
   6  Prefactor     2.0697        3.1001        .71569E-03   -1.5679    
   7  norm          8.0213        4.1829        .35265E-03   -1.5651    
   8  Prefactor     .55511E-10    3.2023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.482        12.431        .25551E-03   -1.5629    
  10  Prefactor     8.0078        4.3172        .35359E-03   -1.5651    
  11  norm          .55511E-10    4.7215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .48826        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .25798        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9728        5.1003        .35466E-03   -1.5651    
  15  Prefactor     .55511E-10    4.3022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.441        36.505        .16693E-03   -1.5587    
  17  Normalizat    1.1190        .12602        .10511       -.89145    
  18  Prefactor     .98653        .33419E-01    .31615E-01   -.93180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62333e-06
Minuit parameter uncertainties:
  1  9.40074
  2  28.0959
  3  52.1754
  4  7.5964e-07
  5  34.537
  6  3.10006
  7  4.18294
  8  2.71363e-05
  9  12.4314
  10  4.31717
  11  3.36679e-05
  12  5.77636e-06
  13  3.5886e-06
  14  5.10033
  15  2.54715e-05
  16  36.5057
  17  0.126057
  18  0.0334197
ocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18887332/Model_4FGL_J1841.8+3218_weekly_bin778.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 W 51C
adding source gamma Cygni
Working on...
/lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits.....................!
real 247.14
user 244.71
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits', '/lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits', expMap='/lscratch/kocevski/18887332/expmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits', expCube='/lscratch/kocevski/18887332/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18887332/Model_4FGL_J1841.8+3218_weekly_bin778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1841.8+3218'

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  4.939e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18887332/ft1_filtered_4FGL_J1841.8+3218_weekly_bin778.fits
Spacecraft file(s): /lscratch/kocevski/18887332/ft2_4FGL_J1841.8+3218_weekly_bin778.fits
Exposure map: /lscratch/kocevski/18887332/expmap_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits
Exposure cube: /lscratch/kocevski/18887332/ltcube_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18887332/Model_4FGL_J1841.8+3218_weekly_bin778.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) = 40193.9075976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6088       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5881       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.529       1.0000          .0000       .10000E+07
     4 'norm      '    .94580E-06   1.0000          .0000       .10000E+07
     5 'norm      '    21.268       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0804       1.0000          .0000       .10000E+07
     7 'norm      '    8.0723       1.0000          .0000       .10000E+07
     8 'Prefactor '    .62368E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.334       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.0296       1.0000          .0000       .10000E+07
    11 'norm      '    .31130E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .68556E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .14211E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.9818       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18479E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    35.896       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   40193.89     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1340 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4067        15.072       -.26843E-06   -.25254E-03
   2  Prefactor     6.3287        29.068       -.98921E-07   -.50699E-01
   3  Prefactor     19.257        47.300        .13690E-06   -.61307E-01
   4  norm           .0000        .49616       -.20483E-07** at limit **
   5  norm          23.255        33.325        .19775E-06   -.17878E-01
   6  Prefactor     2.0697        3.0889       -.76104E-07   -.10675E-02
   7  norm          8.0213        4.1798       -.21874E-07   -.18221E-03
   8  Prefactor     .55511E-10    3.2520       -.20393E-06** at limit **
   9  Prefactor     15.482        12.409        .53203E-07    .44703E-02
  10  Prefactor     8.0078        4.2769        .26013E-07    .94636E-03
  11  norm          .55511E-10    4.7252       -.18662E-06** at limit **
  12  norm           .0000        2.0859        .12118E-06** at limit **
  13  norm           .0000        1.1793       -.10639E-06** at limit **
  14  Prefactor     7.9728        5.0925        .48541E-07    .11641E-02
  15  Prefactor     .55511E-10    4.3185       -.17107E-06** at limit **
  16  Prefactor     36.441        21.346        .41044E-07    .13514    
  17  Normalizat    1.1190        .13578        .12715E-05    .96367E-04
  18  Prefactor     .98653        .36490E-01   -.19904E-06    .19274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40666
  Prefactor  = 6.32867
  Prefactor  = 19.2565
  norm       = 0
  norm       = 23.2553
  Prefactor  = 2.06971
  norm       = 8.02134
  Prefactor  = 5.55112e-11
  Prefactor  = 15.4816
  Prefactor  = 8.00784
  norm       = 5.55112e-11
  norm       = 0
  norm       = 0
  Prefactor  = 7.97279
  Prefactor  = 5.55112e-11
  Prefactor  = 36.4408
  Normalizat = 1.11897
  Prefactor  = 0.986525
Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  3.367e-05  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.865e-01  3.342e-02  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.119e+00  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.453 32.301
Photon Flux Upper Limit: 4.76294315163e-09 ph cm-2 s-1
Energy Flux Upper Limit: 1.54820496421e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18886853/likelihoodResults_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 40193.8903713
delta logL = -4.28126368206e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 40193.8903287
delta logL = -2.10209691431e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14433E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    .15149       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   40193.89     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      252 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.1936        .42118E-03** at limit **
   2  alpha         3.4012        1.1171        .24997E-05     .0000    
   3  Normalizat    1.1190        1.1429        .48405E-05   -.72896E-05
   4  Prefactor     .98653        1.3265       -.96422E-06    .46565E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.40119
  Normalizat = 1.11897
  Prefactor  = 0.986525
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40193.89     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.1936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1481        1.1429        .24997E-05    .36878    
   3  Normalizat    1.1190        1.1429        .48405E-05   -.89145    
   4  Prefactor     .98653        1.3265       -.96422E-06   -.93180    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.03057e-13
Minuit parameter uncertainties:
  1  8.85095e-07
  2  1.16493
  3  1.16984
  4  1.37464
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) = 40193.8903285
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  8.851e-07  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  3.401e+00  1.165e+00  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.865e-01  1.375e+00  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.119e+00  1.170e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.453 32.301

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/18886853/cmap_HighResolution_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-05', job_status='DONE', photon_flux_upper_limit='4.76e-09', time_completed='2023-07-10 10:32:14.924818', job_id='18886853', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1689010334.92', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='778' AND source_name='4FGL J1841.8+3218' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:32:15 PDT 2023

 **********
 **   18 **HESSE 
 **********

 FCN=   40193.89     FROM HESSE     STATUS=OK           294 CALLS     1634 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4067        15.706        .83493E-03   -1.5684    
   2  Prefactor     6.3287        31.182        .39074E-03   -1.5658    
   3  Prefactor     19.257        52.174        .23240E-03   -1.5620    
   4  norm           .0000        .47946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.255        34.537        .21690E-03   -1.5612    
   6  Prefactor     2.0697        3.1001        .71569E-03   -1.5679    
   7  norm          8.0213        4.1829        .35265E-03   -1.5651    
   8  Prefactor     .55511E-10    3.2023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.482        12.431        .25551E-03   -1.5629    
  10  Prefactor     8.0078        4.3172        .35359E-03   -1.5651    
  11  norm          .55511E-10    4.7215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .48826        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .25798        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9728        5.1003        .35466E-03   -1.5651    
  15  Prefactor     .55511E-10    4.3022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.441        36.505        .16693E-03   -1.5587    
  17  Normalizat    1.1190        .12602        .10511       -.89145    
  18  Prefactor     .98653        .33419E-01    .31615E-01   -.93180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62333e-06
Minuit parameter uncertainties:
  1  9.40074
  2  28.0959
  3  52.1754
  4  7.5964e-07
  5  34.537
  6  3.10006
  7  4.18294
  8  2.71363e-05
  9  12.4314
  10  4.31717
  11  3.36679e-05
  12  5.77636e-06
  13  3.5886e-06
  14  5.10033
  15  2.54715e-05
  16  36.5057
  17  0.126057
  18  0.0334197
Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  3.367e-05  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  1.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.865e-01  3.342e-02  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.119e+00  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.453 32.301
Photon Flux Upper Limit: 4.76294315163e-09 ph cm-2 s-1
Energy Flux Upper Limit: 1.54820496421e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18887332/likelihoodResults_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 40193.8903713
delta logL = -4.28126368206e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 40193.8903287
delta logL = -2.10209691431e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14433E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    .15149       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   40193.89     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      252 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.1936        .42118E-03** at limit **
   2  alpha         3.4012        1.1171        .24997E-05     .0000    
   3  Normalizat    1.1190        1.1429        .48405E-05   -.72896E-05
   4  Prefactor     .98653        1.3265       -.96422E-06    .46565E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.40119
  Normalizat = 1.11897
  Prefactor  = 0.986525
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   40193.89     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .20E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.1936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1481        1.1429        .24997E-05    .36878    
   3  Normalizat    1.1190        1.1429        .48405E-05   -.89145    
   4  Prefactor     .98653        1.3265       -.96422E-06   -.93180    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.03057e-13
Minuit parameter uncertainties:
  1  8.85095e-07
  2  1.16493
  3  1.16984
  4  1.37464
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) = 40193.8903285
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  8.851e-07  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  3.401e+00  1.165e+00  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  2.467e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  3.657e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
821    Prefactor:  9.865e-01  1.375e+00  0.000e+00  1.000e+01 ( 1.000e+00)
822        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
823        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
820   Normalization:  1.119e+00  1.170e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.453 32.301

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/18887332/cmap_HighResolution_709516801_710121601_4FGL_J1841.8+3218_weekly_bin778.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-05', job_status='DONE', photon_flux_upper_limit='4.76e-09', time_completed='2023-07-10 10:35:49.625849', job_id='18887332', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1689010549.63', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='778' AND source_name='4FGL J1841.8+3218' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 10 10:35:49 PDT 2023

