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


Performing analysis on: 4FGL_J1955.4+5132_weekly_bin907
RA = 298.858, Dec = 51.5434
tmin = 787536001, tmax = 788140801
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='17775945', job_status='RUN', time_executed='2025-12-23 02:19:01.580355', time_epoch_executed='1766485141.58' WHERE source_name='4FGL J1955.4+5132' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17775945

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17775945/ft1_4FGL_J1955.4+5132_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17775945/ft1_4FGL_J1955.4+5132_weekly_bin907.fits outfile=/lscratch/kocevski/17775945/ft1_filteredMKT_4FGL_J1955.4+5132_weekly_bin907.fits ra=298.858 dec=51.5434 rad=12.0 tmin=787536001.0 tmax=788140801.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 5.26
user 4.44
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.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/17775945/ft1_filteredMKT_4FGL_J1955.4+5132_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.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.79
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 7543

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17775945/ltcube_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.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/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits
.....................!
real 19.01
user 18.12
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17775945/ltcube_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.fits outfile=/lscratch/kocevski/17775945/expmap_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.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/17775945/ltcube_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.fits
.....................!
real 71.80
user 66.62
sys 4.32

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 HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 202 point sources and 5 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 J1955.4+5132 @ 298.858 51.5434

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.fits scfile=/lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits outfile=/lscratch/kocevski/17775945/cmap_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.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=298.858 yref=51.5434 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.25
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.fits scfile=/lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits outfile=/lscratch/kocevski/17775945/cmap_HighResolution_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.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=298.858 yref=51.5434 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.75
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17775945/Model_4FGL_J1955.4+5132_weekly_bin907.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.fits.....................!
real 401.60
user 397.49
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.fits', '/lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits', expMap='/lscratch/kocevski/17775945/expmap_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.fits', expCube='/lscratch/kocevski/17775945/ltcube_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17775945/Model_4FGL_J1955.4+5132_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1955.4+5132'

4FGL J1955.4+5132
   Spectrum: PowerLaw
300    Prefactor:  9.222e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  9.505e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17775945/ft1_filtered_4FGL_J1955.4+5132_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17775945/ft2_4FGL_J1955.4+5132_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17775945/expmap_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17775945/ltcube_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17775945/Model_4FGL_J1955.4+5132_weekly_bin907.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) = 67594.4453229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25813E-07   1.0000          .0000       .10000E+07
     2 'norm      '    2.7824       1.0000          .0000       .10000E+07
     3 'norm      '    5.7002       1.0000          .0000       .10000E+07
     4 'norm      '    .10483E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .20743E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.914       1.0000          .0000       .10000E+07
     7 'Prefactor '    .35863E-04   1.0000          .0000       .10000E+07
     8 'norm      '    8.4109       1.0000          .0000       .10000E+07
     9 'norm      '    .91071       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0916       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1346       1.0000          .0000       .10000E+07
    12 'norm      '    2.0566       1.0000          .0000       .10000E+07
    13 'Prefactor '    .30207E-04   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1056       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   67594.44     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      821 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .87319        .64476E-06** at limit **
   2  norm          2.7823        1.4626       -.12156E-07    .36216E-02
   3  norm          5.6996        2.7779       -.67501E-08   -.13105E-02
   4  norm          .55511E-10    1.8746        .25665E-06** at limit **
   5  Prefactor     .11102E-09    2.0778        .10008E-06** at limit **
   6  Prefactor     21.940        1.0206       -.74505E-08    .13512    
   7  Prefactor      .0000        9.8018        .80902E-06** at limit **
   8  norm          8.4016        1.2711       -.27645E-07    .16243E-01
   9  norm          .91056        .80280       -.27491E-06   -.23606E-02
  10  Prefactor     2.0916        .19922       -.26326E-06   -.27621E-02
  11  norm          2.1336        2.5259        .83671E-06   -.47124E-02
  12  norm          2.0476        3.3050       -.41343E-06    .19906E-02
  13  Prefactor     .55511E-10    2.8392        .57517E-06** at limit **
  14  Normalizat    1.1056        .12225       -.14020E-05   -.72581E-04
  15  Prefactor     1.0210        .19521E-01   -.32385E-05    .35602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 2.78228
  norm       = 5.69964
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 21.9397
  Prefactor  = 0
  norm       = 8.40156
  norm       = 0.910563
  Prefactor  = 2.09159
  norm       = 2.13364
  norm       = 2.04761
  Prefactor  = 5.55112e-11
  Normalizat = 1.10556
  Prefactor  = 1.02103
 **********
 **   18 **HESSE 
 **********

 FCN=   67594.44     FROM HESSE     STATUS=OK           218 CALLS     1039 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .85236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7823        1.4617        .60977E-03   -1.5675    
   3  norm          5.6996        2.7871        .42048E-03   -1.5660    
   4  norm          .55511E-10    1.8821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    2.0905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.940        15.107        .21368E-03   -1.5614    
   7  Prefactor      .0000        9.7849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.4016        6.8488        .34542E-03   -1.5650    
   9  norm          .91056        .80563        .45022E-03   -1.5689    
  10  Prefactor     2.0916        .19940        .71358E-02   -1.5419    
  11  norm          2.1336        2.5453        .70531E-03   -1.5679    
  12  norm          2.0476        3.2916        .72041E-03   -1.5679    
  13  Prefactor     .55511E-10    2.8413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1056        .12345        .17604       -.89573    
  15  Prefactor     1.0210        .19221E-01    .28380E-01   -.92032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78624e-06
Minuit parameter uncertainties:
  1  7.72836e-06
  2  1.46168
  3  2.78712
  4  1.7292e-05
  5  2.82276e-05
  6  15.1072
  7  1.52559e-05
  8  6.84881
  9  0.805632
  10  0.199404
  11  2.54535
  12  3.29158
  13  1.8502e-05
  14  0.123482
  15  0.0192216
Done.

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

Extracting fit parameters...

4FGL J1955.4+5132
   Spectrum: PowerLaw
300    Prefactor:  2.194e+01  1.511e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  9.505e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.021e+00  1.922e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.106e+00  1.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 298.858 51.543
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 8.39e-06

TS (Fixed Index): 2.76
Ra Dec: 298.858 51.543
Photon Flux Upper Limit: 1.02742509119e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00801794907661 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17775945/likelihoodResults_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.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) = 67594.4371664
delta logL = 0.000214777275687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 67594.4370239
delta logL = 0.000357261436875

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.252       1.0000          .0000       .10000E+07
     2 'Index     '    2.5397       1.0000          .0000       10.000    
     3 'Normalizat'    1.1061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   67594.44     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      269 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.259        22.511        .84819E-05    .27879E-03
   2  Index         2.5392        .61707        .14565E-01    .11799E-03
   3  Normalizat    1.1059        .12327        .78437E-03    .12569E-03
   4  Prefactor     1.0210        .18906E-01    .12542E-03   -.11211E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2589
  Index      = 2.53916
  Normalizat = 1.10591
  Prefactor  = 1.02101
 **********
 **   18 **HESSE 
 **********

 FCN=   67594.44     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.259        19.529        .33927E-06   -1.5614    
   2  Index         2.5392        .53603        .58262E-03   -.51458    
   3  Normalizat    1.1059        .12325        .31375E-04   -.89562    
   4  Prefactor     1.0210        .18903E-01    .50169E-05   -.92032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17318e-10
Minuit parameter uncertainties:
  1  19.5295
  2  0.537391
  3  0.123278
  4  0.0189031
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) = 67594.437021
delta logL = 0.000360210848157

Extracting fit parameters...

4FGL J1955.4+5132
   Spectrum: PowerLaw
300    Prefactor:  2.226e+01  1.953e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.539e+00  5.374e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  9.505e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.021e+00  1.890e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.106e+00  1.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 298.858 51.543
Photon Index (Free Index): 2.54 +/- 0.54
Photon Flux (Free Index): 4.40e-08 +/- 3.34e-08
Energy Flux (Free Index): 1.23e-05 +/- 8.93e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/17775945/cmap_HighResolution_787536001_788140801_4FGL_J1955.4+5132_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='1.23e-05', photon_flux_error='3.06e-08', dlogl='3.60e-04', energy_flux='1.22e-05', photon_flux2='4.40e-08', job_status='DONE', time_completed='2025-12-23 02:48:02.324859', photon_index_error2='0.54', photon_index2='2.54', ts='2.76', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='8.93e-06', EG='1.11', time_epoch_completed='1766486882.32', return_code='0', job_id='17775945', GAL2='1.02', EG2='1.11', return_code2='0', energy_flux_error='8.39e-06', photon_flux_error2='3.34e-08', ts2='2.75', photon_index='2.55' WHERE bin_id='907' AND source_name='4FGL J1955.4+5132' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:48:02 PST 2025

