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


Performing analysis on: 4FGL_J1848.4+3217_weekly_bin908
RA = 282.105, Dec = 32.295
tmin = 788140801, tmax = 788745601
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='18161084', job_status='RUN', time_executed='2025-12-30 02:44:44.280029', time_epoch_executed='1767091484.28' WHERE source_name='4FGL J1848.4+3217' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18161084

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18161084/ft1_4FGL_J1848.4+3217_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18161084/ft1_4FGL_J1848.4+3217_weekly_bin908.fits outfile=/lscratch/kocevski/18161084/ft1_filteredMKT_4FGL_J1848.4+3217_weekly_bin908.fits ra=282.105 dec=32.295 rad=12.0 tmin=788140801.0 tmax=788745601.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 6.55
user 4.56
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.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/18161084/ft1_filteredMKT_4FGL_J1848.4+3217_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.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 1.79
user 0.25
sys 0.13

Number of photons that the gtmktime cut: 3488

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18161084/ltcube_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.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/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits
.....................!
real 21.50
user 19.69
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18161084/ltcube_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.fits outfile=/lscratch/kocevski/18161084/expmap_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.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/18161084/ltcube_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.fits
.....................!
real 76.53
user 70.13
sys 4.28

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.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 238 point sources and 3 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 J1848.4+3217 @ 282.105 32.295

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.fits scfile=/lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits outfile=/lscratch/kocevski/18161084/cmap_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.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=282.105 yref=32.295 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 1.34
user 0.28
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.fits scfile=/lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits outfile=/lscratch/kocevski/18161084/cmap_HighResolution_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.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=282.105 yref=32.295 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 1.32
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18161084/Model_4FGL_J1848.4+3217_weekly_bin908.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 Cygnus Cocoon
adding source EG_v02
adding source GAL_V02
adding source W 51C
adding source gamma Cygni
Working on...
/lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.fits.....................!
real 252.48
user 248.42
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.fits', '/lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits', expMap='/lscratch/kocevski/18161084/expmap_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.fits', expCube='/lscratch/kocevski/18161084/ltcube_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18161084/Model_4FGL_J1848.4+3217_weekly_bin908.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1848.4+3217'

4FGL J1848.4+3217
   Spectrum: LogParabola
364         norm:  2.650e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  2.282e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  1.813e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.136e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18161084/ft1_filtered_4FGL_J1848.4+3217_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18161084/ft2_4FGL_J1848.4+3217_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18161084/expmap_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18161084/ltcube_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18161084/Model_4FGL_J1848.4+3217_weekly_bin908.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) = 34651.3976752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11474E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .10928E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2690       1.0000          .0000       .10000E+07
     4 'norm      '    6.6529       1.0000          .0000       .10000E+07
     5 'Prefactor '    .53471E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42985E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.0889       1.0000          .0000       .10000E+07
     8 'norm      '    21.895       1.0000          .0000       .10000E+07
     9 'norm      '    2.6245       1.0000          .0000       .10000E+07
    10 'norm      '    .78788E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21685E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .17202E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .43694E-03   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.2077       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34651.39     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      853 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .30998        .14276E-07** at limit **
   2  norm          .55511E-10    10.462       -.76314E-07** at limit **
   3  Prefactor     1.2748        1.7062        .18957E-06    .37138E-02
   4  norm          6.6864        4.2528        .29879E-07    .16694E-02
   5  Prefactor      .0000        1.4016        .68264E-07** at limit **
   6  Prefactor     .16653E-09    3.1335        .88077E-06** at limit **
   7  Prefactor     7.0611        4.6668        .43355E-07    .25139E-02
   8  norm          21.901        1.0024       -.41182E-08    .14434E-02
   9  norm          2.6285        1.5738       -.14746E-06    .48929E-03
  10  norm           .0000        4.1095       -.40850E-06** at limit **
  11  Prefactor     .55511E-10    2.4514        .39803E-06** at limit **
  12  Prefactor     .22204E-09    3.5970       -.15705E-05** at limit **
  13  Prefactor      .0000        17.716        .49720E-08** at limit **
  14  Normalizat    1.2077        .14236        .10332E-06    .22513E-04
  15  Prefactor     1.0031        .36390E-01   -.15016E-06   -.11178E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 1.27477
  norm       = 6.68644
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 7.06106
  norm       = 21.9007
  norm       = 2.62845
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Normalizat = 1.20774
  Prefactor  = 1.00308
 **********
 **   18 **HESSE 
 **********

 FCN=   34651.39     FROM HESSE     STATUS=OK           214 CALLS     1067 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .30921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    10.491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2748        1.7384        .98765E-03   -1.5685    
   4  norm          6.6864        4.2557        .38881E-03   -1.5656    
   5  Prefactor      .0000        1.3812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    3.1337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0611        4.6995        .37653E-03   -1.5655    
   8  norm          21.901        21.292        .21377E-03   -1.5614    
   9  norm          2.6285        1.7685        .62925E-03   -1.5676    
  10  norm           .0000        .41601        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    2.4362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    3.6054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        17.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.2077        .13334        .10946       -.86364    
  15  Prefactor     1.0031        .33841E-01    .30763E-01   -.92627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82094e-09
Minuit parameter uncertainties:
  1  1.17269e-06
  2  5.06112e-05
  3  1.73842
  4  4.25571
  5  8.98578e-06
  6  4.60694e-05
  7  4.69945
  8  21.2923
  9  1.76851
  10  2.65737e-06
  11  2.3306e-05
  12  5.60694e-05
  13  1.02233e-06
  14  0.133377
  15  0.0338417
Done.

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

Extracting fit parameters...

4FGL J1848.4+3217
   Spectrum: LogParabola
364         norm:  2.628e+00  1.769e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  2.282e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  1.813e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.136e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
838    Prefactor:  1.003e+00  3.384e-02  0.000e+00  1.000e+01 ( 1.000e+00)
839        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
840        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
837   Normalization:  1.208e+00  1.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.02
Ra Dec: 282.105 32.295
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.03e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 8.90e-06

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) = 34651.2835021
delta logL = 0.10934927671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34651.2805622
delta logL = 0.112289226003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2328       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6344       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   34651.28     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      241 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2327        13.856        .68769E-03    .30115E-01
   2  alpha         2.6343        3.6426        .41227        .20283E-03
   3  Normalizat    1.1937        .49638E-01    .10999        .10228E-03
   4  Prefactor     1.0043        .10647E-01    .30744E-01   -.40809E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23274
  alpha      = 2.6343
  Normalizat = 1.19367
  Prefactor  = 1.00434
 **********
 **   18 **HESSE 
 **********

 FCN=   34651.28     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2327        2.0647        .14762E-04   -1.5678    
   2  alpha         2.6343        .86283        .21548E-01    .53747E-01
   3  Normalizat    1.1937        .14564        .48766E-03   -.86799    
   4  Prefactor     1.0043        .36645E-01    .13586E-03   -.92585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02415e-08
Minuit parameter uncertainties:
  1  2.06468
  2  0.881002
  3  0.145686
  4  0.0366457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34651.2805621
delta logL = 0.112289250261

Extracting fit parameters...

4FGL J1848.4+3217
   Spectrum: LogParabola
364         norm:  2.233e+00  2.065e+00  0.000e+00  1.000e+06 ( 1.000e-12)
365        alpha:  2.634e+00  8.810e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  1.813e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.136e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
838    Prefactor:  1.004e+00  3.665e-02  0.000e+00  1.000e+01 ( 1.000e+00)
839        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
840        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
837   Normalization:  1.194e+00  1.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 282.105 32.295
Photon Index (Free Index): 2.63 +/- 0.88
Photon Flux (Free Index): 4.43e-08 +/- 3.94e-08
Energy Flux (Free Index): 1.38e-05 +/- 7.58e-06

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/18161084/cmap_HighResolution_788140801_788745601_4FGL_J1848.4+3217_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.03e-08', energy_flux2='1.38e-05', photon_flux_error='2.04e-08', dlogl='1.12e-01', energy_flux='1.32e-05', photon_flux2='4.43e-08', job_status='DONE', time_completed='2025-12-30 03:06:01.514999', photon_index_error2='0.88', photon_index2='2.63', ts='5.02', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='7.58e-06', EG='1.21', time_epoch_completed='1767092761.52', return_code='0', job_id='18161084', GAL2='1.00', EG2='1.19', return_code2='0', energy_flux_error='8.90e-06', photon_flux_error2='3.94e-08', ts2='5.27', photon_index='2.28' WHERE bin_id='908' AND source_name='4FGL J1848.4+3217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 03:06:01 PST 2025

