 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19500.58     FROM HESSE     STATUS=FAILED         7 CALLS      282 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .10319        .31049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2020        .86826       -.56510E-04    .79464    
   3  Normalizat    1.2174        1.1006       -.70167E-06   -.86068    
   4  Prefactor     .94343        1.2860        .69294E-06   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00044e-11
Minuit parameter uncertainties:
  1  2.67559e-06
  2  0.908459
  3  1.12272
  4  1.33163
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) = 19500.5754789
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  2.676e-06  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  4.284e+00  9.085e-01  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.434e-01  1.332e+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.217e+00  1.123e+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/31704960/cmap_HighResolution_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.27e-08', time_completed='2026-07-14 21:52:55.555515', job_id='31704960', GAL2='0.94', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1784091175.56', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='2180' AND source_name='4FGL J1841.8+3218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 21:52:55 PDT 2026

/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).

file=/lscratch/kocevski/31705509/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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/31705509/ft2_4FGL_J1841.8+3218_daily_bin2180.fits
.....................!
real 7.73
user 7.23
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31705509/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits evtable="EVENTS" scfile=/lscratch/kocevski/31705509/ft2_4FGL_J1841.8+3218_daily_bin2180.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31705509/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits outfile=/lscratch/kocevski/31705509/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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/31705509/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
.....................!
real 61.57
user 57.18
sys 3.71

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/31705509/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits scfile=/lscratch/kocevski/31705509/ft2_4FGL_J1841.8+3218_daily_bin2180.fits outfile=/lscratch/kocevski/31705509/cmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31705509/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits scfile=/lscratch/kocevski/31705509/ft2_4FGL_J1841.8+3218_daily_bin2180.fits outfile=/lscratch/kocevski/31705509/cmap_HighResolution_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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.57
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31705509/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits evtable="EVENTS" scfile=/lscratch/kocevDone.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  5.286e-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.434e-01  4.649e-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.217e+00  1.719e-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: 1.27333278128e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13899572239e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31704985/likelihoodResults_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.6038728
delta logL = -0.0283938759931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19500.575479
delta logL = -1.60071067512e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94342       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=   19500.58     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      275 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .10319        .31049E-02** at limit **
   2  alpha         4.2840        .86826       -.56510E-04     .0000    
   3  Normalizat    1.2174        1.1006       -.70167E-06    .49025E-04
   4  Prefactor     .94343        1.2860        .69294E-06    .22518E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.28403
  Normalizat = 1.21735
  Prefactor  = 0.943427
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19500.58     FROM HESSE     STATUS=FAILED         7 CALLS      282 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .10319        .31049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2020        .86826       -.56510E-04    .79464    
   3  Normalizat    1.2174        1.1006       -.70167E-06   -.86068    
   4  Prefactor     .94343        1.2860        .69294E-06   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00044e-11
Minuit parameter uncertainties:
  1  2.67559e-06
  2  0.908459
  3  1.12272
  4  1.33163
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) = 19500.5754789
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  2.676e-06  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  4.284e+00  9.085e-01  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.434e-01  1.332e+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.217e+00  1.123e+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/31704985/cmap_HighResolution_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.27e-08', time_completed='2026-07-14 21:53:56.992732', job_id='31704985', GAL2='0.94', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1784091236.99', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='2180' AND source_name='4FGL J1841.8+3218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 21:53:57 PDT 2026

number of points = 7669
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1841.8+3218_daily_bin2180
RA = 280.453, Dec = 32.301
tmin = 804384001, tmax = 804643201
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='31705768', job_status='RUN', time_executed='2026-07-14 21:53:06.651432', time_epoch_executed='1784091186.65' WHERE source_name='4FGL J1841.8+3218' and cadence='daily' and bin_id='2180'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31705768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31705768/ft1_4FGL_J1841.8+3218_daily_bin2180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31705768/ft1_4FGL_J1841.8+3218_daily_bin2180.fits outfile=/lscratch/kocevski/31705768/ft1_filteredMKT_4FGL_J1841.8+3218_daily_bin2180.fits ra=280.453 dec=32.301 rad=12.0 tmin=804384001.0 tmax=804643201.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 2.12
user 1.68
sys 0.17

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

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

Number of photons that the gtmktime cut: 1907

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31705768/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits sctable="SC_DATA" outski/31705311/ft2_4FGL_J1841.8+3218_daily_bin2180.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31705311/Model_4FGL_J1841.8+3218_daily_bin2180.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/31705311/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits.....................!
real 114.76
user 112.97
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31705311/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits', '/lscratch/kocevski/31705311/ft2_4FGL_J1841.8+3218_daily_bin2180.fits', expMap='/lscratch/kocevski/31705311/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits', expCube='/lscratch/kocevski/31705311/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31705311/Model_4FGL_J1841.8+3218_daily_bin2180.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/31705311/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits
Spacecraft file(s): /lscratch/kocevski/31705311/ft2_4FGL_J1841.8+3218_daily_bin2180.fits
Exposure map: /lscratch/kocevski/31705311/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
Exposure cube: /lscratch/kocevski/31705311/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31705311/Model_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.626196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14115E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38277E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    194.97       1.0000          .0000       .10000E+07
     4 'norm      '    .78493E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .78721E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11555E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .68782E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .44148E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.430       1.0000          .0000       .10000E+07
    10 'Prefactor '    .71530E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .12962E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .92593E-07   1.0000          .0000       .10000E+07
    13 'norm      '    3.1609       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11481E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16765E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10824E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94312       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=   19500.58     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1335 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2471       -.44183E-07** at limit **
   2  Prefactor     .33307E-09    14.238       -.35174E-05** at limit **
   3  Prefactor     202.96        77.368        .88147E-06   -.89221E-03
   4  norm           .0000        .38883        .72981E-07** at limit **
   5  norm          .22204E-09    15.255        .67841E-05** at limit **
   6  Prefactor      .0000        1.5934        .14483E-06** at limit **
   7  norm          .55511E-10    5.5341       -.25344E-06** at limit **
   8  Prefactor      .0000        2.4680       -.47082E-07** at limit **
   9  Prefactor     40.388        4.9926       -.72352E-06   -.32462E-02
  10  Prefactor     .11102E-09    10.452       -.60470E-06** at limit **
  11  norm          .55511E-10    16.888       -.55598E-05** at limit **
  12  norm           .0000        2.0666       -.27820E-07** at limit **
  13  norm          3.1682        1.6247       -.58363E-07    .47713E-02
  14  Prefactor      .0000        3.8697        .20371E-06** at limit **
  15  Prefactor      .0000        3.7614        .16292E-06** at limit **
  16  Prefactor     .55511E-09    39.704       -.10673E-05** at limit **
  17  Normalizat    1.2174        .18372       -.16863E-05    .19800E-03
  18  Prefactor     .94343        .50763E-01   -.85360E-06    .61854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 202.961
  norm       = 0
  norm       = 2.22045e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 40.388
  Prefactor  = 1.11022e-10
  norm       = 5.55112e-11
  norm       = 0
  norm       = 3.16824
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Normalizat = 1.21735
  Prefactor  = 0.943427
file=/lscratch/kocevski/31705768/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits
.....................!
real 8.27
user 7.70
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31705768/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits evtable="EVENTS" scfile=/lscratch/kocevski/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31705768/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits outfile=/lscratch/kocevski/31705768/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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/31705768/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
.....................!
real 67.49
user 62.78
sys 3.84

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/31705768/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits scfile=/lscratch/kocevski/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits outfile=/lscratch/kocevski/31705768/cmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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.74
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31705768/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits scfile=/lscratch/kocevski/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits outfile=/lscratch/kocevski/31705768/cmap_HighResolution_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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.70
user 0.22
sys 0.13

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

 FCN=   19500.58     FROM HESSE     STATUS=OK           272 CALLS     1607 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    14.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     202.96        77.193        .71624E-04   -1.5423    
   4  norm           .0000        .38753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22204E-09    16.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.5910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    5.5047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.4504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.388        18.380        .15729E-03   -1.5581    
  10  Prefactor     .11102E-09    10.344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    16.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.0407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1682        1.6323        .56983E-03   -1.5672    
  14  Prefactor      .0000        3.8646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.7637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-09    39.713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2174        .17183        .10165       -.86068    
  18  Prefactor     .94343        .46489E-01    .31814E-01   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06095e-10
Minuit parameter uncertainties:
  1  6.16305e-06
  2  0.000135218
  3  77.1935
  4  1.80135e-06
  5  0.000111706
  6  7.22281e-06
  7  2.49984e-05
  8  3.32917e-06
  9  18.3798
  10  7.56337e-05
  11  5.28615e-05
  12  2.02904e-06
  13  1.63225
  14  9.10191e-06
  15  6.23701e-06
  16  0.000302883
  17  0.171912
  18  0.0464905
Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  5.286e-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.434e-01  4.649e-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.217e+00  1.719e-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: 1.27333278128e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13899572239e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31705311/likelihoodResults_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.6038728
delta logL = -0.0283938759931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19500.575479
delta logL = -1.60071067512e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94342       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=   19500.58     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      275 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .10319        .31049E-02** at limit **
   2  alpha         4.2840        .86826       -.56510E-04     .0000    
   3  Normalizat    1.2174        1.1006       -.70167E-06    .49025E-04
   4  Prefactor     .94343        1.2860        .69294E-06    .22518E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.28403
  Normalizat = 1.21735
  Prefactor  = 0.943427
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19500.58     FROM HESSE     STATUS=FAILED         7 CALLS      282 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .10319        .31049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2020        .86826       -.56510E-04    .79464    
   3  Normalizat    1.2174        1.1006       -.70167E-06   -.86068    
   4  Prefactor     .94343        1.2860        .69294E-06   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00044e-11
Minuit parameter uncertainties:
  1  2.67559e-06
  2  0.908459
  3  1.12272
  4  1.33163
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) = 19500.5754789
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  2.676e-06  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  4.284e+00  9.085e-01  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.434e-01  1.332e+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.217e+00  1.123e+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/31705311/cmap_HighResolution_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.27e-08', time_completed='2026-07-14 21:57:34.022790', job_id='31705311', GAL2='0.94', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1784091454.02', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='2180' AND source_name='4FGL J1841.8+3218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 21:57:34 PDT 2026

ski/31705447/ft2_4FGL_J1841.8+3218_daily_bin2180.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31705447/Model_4FGL_J1841.8+3218_daily_bin2180.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/31705447/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits.....................!
real 125.67
user 122.62
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31705447/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits', '/lscratch/kocevski/31705447/ft2_4FGL_J1841.8+3218_daily_bin2180.fits', expMap='/lscratch/kocevski/31705447/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits', expCube='/lscratch/kocevski/31705447/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31705447/Model_4FGL_J1841.8+3218_daily_bin2180.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/31705447/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits
Spacecraft file(s): /lscratch/kocevski/31705447/ft2_4FGL_J1841.8+3218_daily_bin2180.fits
Exposure map: /lscratch/kocevski/31705447/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
Exposure cube: /lscratch/kocevski/31705447/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31705447/Model_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.626196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14115E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38277E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    194.97       1.0000          .0000       .10000E+07
     4 'norm      '    .78493E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .78721E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11555E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .68782E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .44148E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.430       1.0000          .0000       .10000E+07
    10 'Prefactor '    .71530E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .12962E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .92593E-07   1.0000          .0000       .10000E+07
    13 'norm      '    3.1609       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11481E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16765E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10824E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 ski/31705509/ft2_4FGL_J1841.8+3218_daily_bin2180.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31705509/Model_4FGL_J1841.8+3218_daily_bin2180.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/31705509/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits.....................!
real 111.81
user 110.27
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31705509/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits', '/lscratch/kocevski/31705509/ft2_4FGL_J1841.8+3218_daily_bin2180.fits', expMap='/lscratch/kocevski/31705509/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits', expCube='/lscratch/kocevski/31705509/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31705509/Model_4FGL_J1841.8+3218_daily_bin2180.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/31705509/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits
Spacecraft file(s): /lscratch/kocevski/31705509/ft2_4FGL_J1841.8+3218_daily_bin2180.fits
Exposure map: /lscratch/kocevski/31705509/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
Exposure cube: /lscratch/kocevski/31705509/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31705509/Model_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.626196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14115E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38277E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    194.97       1.0000          .0000       .10000E+07
     4 'norm      '    .78493E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .78721E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11555E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .68782E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .44148E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.430       1.0000          .0000       .10000E+07
    10 'Prefactor '    .71530E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .12962E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .92593E-07   1.0000          .0000       .10000E+07
    13 'norm      '    3.1609       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11481E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16765E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10824E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94312       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=   19500.58     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1335 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2471       -.44183E-07** at limit **
   2  Prefactor     .33307E-09    14.238       -.35174E-05** at limit **
   3  Prefactor     202.96        77.368        .88147E-06   -.89221E-03
   4  norm           .0000        .38883        .72981E-07** at limit **
   5  norm          .22204E-09    15.255        .67841E-05** at limit **
   6  Prefactor      .0000        1.5934        .14483E-06** at limit **
   7  norm          .55511E-10    5.5341       -.25344E-06** at limit **
   8  Prefactor      .0000        2.4680       -.47082E-07** at limit **
   9  Prefactor     40.388        4.9926       -.72352E-06   -.32462E-02
  10  Prefactor     .11102E-09    10.452       -.60470E-06** at limit **
  11  norm          .55511E-10    16.888       -.55598E-05** at limit **
  12  norm           .0000        2.0666       -.27820E-07** at limit **
  13  norm          3.1682        1.6247       -.58363E-07    .47713E-02
  14  Prefactor      .0000        3.8697        .20371E-06** at limit **
  15  Prefactor      .0000        3.7614        .16292E-06** at limit **
  16  Prefactor     .55511E-09    39.704       -.10673E-05** at limit **
  17  Normalizat    1.2174        .18372       -.16863E-05    .19800E-03
  18  Prefactor     .94343        .50763E-01   -.85360E-06    .61854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 202.961
  norm       = 0
  norm       = 2.22045e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 40.388
  Prefactor  = 1.11022e-10
  norm       = 5.55112e-11
  norm       = 0
  norm       = 3.16824
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Normalizat = 1.21735
  Prefactor  = 0.943427
**   17 **MINIMIZE    .8320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19500.58     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1335 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2471       -.44183E-07** at limit **
   2  Prefactor     .33307E-09    14.238       -.35174E-05** at limit **
   3  Prefactor     202.96        77.368        .88147E-06   -.89221E-03
   4  norm           .0000        .38883        .72981E-07** at limit **
   5  norm          .22204E-09    15.255        .67841E-05** at limit **
   6  Prefactor      .0000        1.5934        .14483E-06** at limit **
   7  norm          .55511E-10    5.5341       -.25344E-06** at limit **
   8  Prefactor      .0000        2.4680       -.47082E-07** at limit **
   9  Prefactor     40.388        4.9926       -.72352E-06   -.32462E-02
  10  Prefactor     .11102E-09    10.452       -.60470E-06** at limit **
  11  norm          .55511E-10    16.888       -.55598E-05** at limit **
  12  norm           .0000        2.0666       -.27820E-07** at limit **
  13  norm          3.1682        1.6247       -.58363E-07    .47713E-02
  14  Prefactor      .0000        3.8697        .20371E-06** at limit **
  15  Prefactor      .0000        3.7614        .16292E-06** at limit **
  16  Prefactor     .55511E-09    39.704       -.10673E-05** at limit **
  17  Normalizat    1.2174        .18372       -.16863E-05    .19800E-03
  18  Prefactor     .94343        .50763E-01   -.85360E-06    .61854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 202.961
  norm       = 0
  norm       = 2.22045e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 40.388
  Prefactor  = 1.11022e-10
  norm       = 5.55112e-11
  norm       = 0
  norm       = 3.16824
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Normalizat = 1.21735
  Prefactor  = 0.943427
 **********
 **   18 **HESSE 
 **********

 FCN=   19500.58     FROM HESSE     STATUS=OK           272 CALLS     1607 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    14.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     202.96        77.193        .71624E-04   -1.5423    
   4  norm           .0000        .38753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22204E-09    16.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.5910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    5.5047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.4504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.388        18.380        .15729E-03   -1.5581    
  10  Prefactor     .11102E-09    10.344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    16.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.0407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1682        1.6323        .56983E-03   -1.5672    
  14  Prefactor      .0000        3.8646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.7637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-09    39.713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2174        .17183        .10165       -.86068    
  18  Prefactor     .94343        .46489E-01    .31814E-01   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06095e-10
Minuit parameter uncertainties:
  1  6.16305e-06
  2  0.000135218
  3  77.1935
  4  1.80135e-06
  5  0.000111706
  6  7.22281e-06
  7  2.49984e-05
  8  3.32917e-06
  9  18.3798
  10  7.56337e-05
  11  5.28615e-05
  12  2.02904e-06
  13  1.63225
  14  9.10191e-06
  15  6.23701e-06
  16  0.000302883
  17  0.171912
  18  0.0464905
 **********
 **   18 **HESSE 
 **********

 FCN=   19500.58     FROM HESSE     STATUS=OK           272 CALLS     1607 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    14.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     202.96        77.193        .71624E-04   -1.5423    
   4  norm           .0000        .38753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22204E-09    16.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.5910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    5.5047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.4504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.388        18.380        .15729E-03   -1.5581    
  10  Prefactor     .11102E-09    10.344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    16.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.0407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1682        1.6323        .56983E-03   -1.5672    
  14  Prefactor      .0000        3.8646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.7637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-09    39.713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2174        .17183        .10165       -.86068    
  18  Prefactor     .94343        .46489E-01    .31814E-01   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06095e-10
Minuit parameter uncertainties:
  1  6.16305e-06
  2  0.000135218
  3  77.1935
  4  1.80135e-06
  5  0.000111706
  6  7.22281e-06
  7  2.49984e-05
  8  3.32917e-06
  9  18.3798
  10  7.56337e-05
  11  5.28615e-05
  12  2.02904e-06
  13  1.63225
  14  9.10191e-06
  15  6.23701e-06
  16  0.000302883
  17  0.171912
  18  0.0464905
Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  5.286e-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.434e-01  4.649e-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.217e+00  1.719e-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: 1.27333278128e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13899572239e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31705447/likelihoodResults_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.6038728
delta logL = -0.0283938759931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19500.575479
delta logL = -1.60071067512e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94342       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=   19500.58     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      275 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .10319        .31049E-02** at limit **
   2  alpha         4.2840        .86826       -.56510E-04     .0000    
   3  Normalizat    1.2174        1.1006       -.70167E-06    .49025E-04
   4  Prefactor     .94343        1.2860        .69294E-06    .22518E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.28403
  Normalizat = 1.21735
  Prefactor  = 0.943427
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19500.58     FROM HESSE     STATUS=FAILED         7 CALLS      282 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .10319        .31049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2020        .86826       -.56510E-04    .79464    
   3  Normalizat    1.2174        1.1006       -.70167E-06   -.86068    
   4  Prefactor     .94343        1.2860        .69294E-06   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00044e-11
Minuit parameter uncertainties:
  1  2.67559e-06
  2  0.908459
  3  1.12272
  4  1.33163
ski/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31705768/Model_4FGL_J1841.8+3218_daily_bin2180.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/31705768/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits.....................!
real 120.76
user 118.63
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31705768/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits', '/lscratch/kocevski/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits', expMap='/lscratch/kocevski/31705768/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits', expCube='/lscratch/kocevski/31705768/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31705768/Model_4FGL_J1841.8+3218_daily_bin2180.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/31705768/ft1_filtered_4FGL_J1841.8+3218_daily_bin2180.fits
Spacecraft file(s): /lscratch/kocevski/31705768/ft2_4FGL_J1841.8+3218_daily_bin2180.fits
Exposure map: /lscratch/kocevski/31705768/expmap_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
Exposure cube: /lscratch/kocevski/31705768/ltcube_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31705768/Model_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.626196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14115E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38277E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    194.97       1.0000          .0000       .10000E+07
     4 'norm      '    .78493E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .78721E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11555E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .68782E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .44148E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    40.430       1.0000          .0000       .10000E+07
    10 'Prefactor '    .71530E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .12962E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .92593E-07   1.0000          .0000       .10000E+07
    13 'norm      '    3.1609       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11481E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16765E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10824E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 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) = 19500.5754789
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  2.676e-06  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  4.284e+00  9.085e-01  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.434e-01  1.332e+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.217e+00  1.123e+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/31705447/cmap_HighResolution_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.27e-08', time_completed='2026-07-14 22:00:45.889738', job_id='31705447', GAL2='0.94', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1784091645.89', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='2180' AND source_name='4FGL J1841.8+3218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 22:00:46 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  5.286e-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.434e-01  4.649e-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.217e+00  1.719e-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: 1.27333278128e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13899572239e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31705509/likelihoodResults_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.6038728
delta logL = -0.0283938759931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19500.575479
delta logL = -1.60071067512e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94342       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=   19500.58     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      275 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .10319        .31049E-02** at limit **
   2  alpha         4.2840        .86826       -.56510E-04     .0000    
   3  Normalizat    1.2174        1.1006       -.70167E-06    .49025E-04
   4  Prefactor     .94343        1.2860        .69294E-06    .22518E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.28403
  Normalizat = 1.21735
  Prefactor  = 0.943427
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19500.58     FROM HESSE     STATUS=FAILED         7 CALLS      282 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .10319        .31049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2020        .86826       -.56510E-04    .79464    
   3  Normalizat    1.2174        1.1006       -.70167E-06   -.86068    
   4  Prefactor     .94343        1.2860        .69294E-06   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00044e-11
Minuit parameter uncertainties:
  1  2.67559e-06
  2  0.908459
  3  1.12272
  4  1.33163
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) = 19500.5754789
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  2.676e-06  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  4.284e+00  9.085e-01  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.434e-01  1.332e+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.217e+00  1.123e+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/31705509/cmap_HighResolution_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.27e-08', time_completed='2026-07-14 22:00:51.442772', job_id='31705509', GAL2='0.94', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1784091651.44', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='2180' AND source_name='4FGL J1841.8+3218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 22:00:51 PDT 2026

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19500.58     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1335 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2471       -.44183E-07** at limit **
   2  Prefactor     .33307E-09    14.238       -.35174E-05** at limit **
   3  Prefactor     202.96        77.368        .88147E-06   -.89221E-03
   4  norm           .0000        .38883        .72981E-07** at limit **
   5  norm          .22204E-09    15.255        .67841E-05** at limit **
   6  Prefactor      .0000        1.5934        .14483E-06** at limit **
   7  norm          .55511E-10    5.5341       -.25344E-06** at limit **
   8  Prefactor      .0000        2.4680       -.47082E-07** at limit **
   9  Prefactor     40.388        4.9926       -.72352E-06   -.32462E-02
  10  Prefactor     .11102E-09    10.452       -.60470E-06** at limit **
  11  norm          .55511E-10    16.888       -.55598E-05** at limit **
  12  norm           .0000        2.0666       -.27820E-07** at limit **
  13  norm          3.1682        1.6247       -.58363E-07    .47713E-02
  14  Prefactor      .0000        3.8697        .20371E-06** at limit **
  15  Prefactor      .0000        3.7614        .16292E-06** at limit **
  16  Prefactor     .55511E-09    39.704       -.10673E-05** at limit **
  17  Normalizat    1.2174        .18372       -.16863E-05    .19800E-03
  18  Prefactor     .94343        .50763E-01   -.85360E-06    .61854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 202.961
  norm       = 0
  norm       = 2.22045e-10
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 40.388
  Prefactor  = 1.11022e-10
  norm       = 5.55112e-11
  norm       = 0
  norm       = 3.16824
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Normalizat = 1.21735
  Prefactor  = 0.943427
 **********
 **   18 **HESSE 
 **********

 FCN=   19500.58     FROM HESSE     STATUS=OK           272 CALLS     1607 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    14.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     202.96        77.193        .71624E-04   -1.5423    
   4  norm           .0000        .38753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22204E-09    16.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.5910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55511E-10    5.5047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.4504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.388        18.380        .15729E-03   -1.5581    
  10  Prefactor     .11102E-09    10.344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    16.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.0407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1682        1.6323        .56983E-03   -1.5672    
  14  Prefactor      .0000        3.8646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.7637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-09    39.713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2174        .17183        .10165       -.86068    
  18  Prefactor     .94343        .46489E-01    .31814E-01   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06095e-10
Minuit parameter uncertainties:
  1  6.16305e-06
  2  0.000135218
  3  77.1935
  4  1.80135e-06
  5  0.000111706
  6  7.22281e-06
  7  2.49984e-05
  8  3.32917e-06
  9  18.3798
  10  7.56337e-05
  11  5.28615e-05
  12  2.02904e-06
  13  1.63225
  14  9.10191e-06
  15  6.23701e-06
  16  0.000302883
  17  0.171912
  18  0.0464905
Done.

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

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  5.551e-11  5.286e-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.434e-01  4.649e-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.217e+00  1.719e-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: 1.27333278128e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13899572239e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31705768/likelihoodResults_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.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) = 19500.6038728
delta logL = -0.0283938759931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19500.575479
delta logL = -1.60071067512e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
     2 'alpha     '    4.7669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94342       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=   19500.58     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      275 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .10319        .31049E-02** at limit **
   2  alpha         4.2840        .86826       -.56510E-04     .0000    
   3  Normalizat    1.2174        1.1006       -.70167E-06    .49025E-04
   4  Prefactor     .94343        1.2860        .69294E-06    .22518E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.28403
  Normalizat = 1.21735
  Prefactor  = 0.943427
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   19500.58     FROM HESSE     STATUS=FAILED         7 CALLS      282 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .10319        .31049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2020        .86826       -.56510E-04    .79464    
   3  Normalizat    1.2174        1.1006       -.70167E-06   -.86068    
   4  Prefactor     .94343        1.2860        .69294E-06   -.94640    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00044e-11
Minuit parameter uncertainties:
  1  2.67559e-06
  2  0.908459
  3  1.12272
  4  1.33163
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) = 19500.5754789
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1841.8+3218
   Spectrum: LogParabola
365         norm:  0.000e+00  2.676e-06  0.000e+00  1.000e+06 ( 1.000e-14)
366        alpha:  4.284e+00  9.085e-01  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.434e-01  1.332e+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.217e+00  1.123e+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/31705768/cmap_HighResolution_804384001_804643201_4FGL_J1841.8+3218_daily_bin2180.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='1.27e-08', time_completed='2026-07-14 22:03:29.107630', job_id='31705768', GAL2='0.94', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1784091809.11', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.56' WHERE bin_id='2180' AND source_name='4FGL J1841.8+3218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 14 22:03:29 PDT 2026

