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


Performing analysis on: 4FGL_J1955.4+5132_weekly_bin858
RA = 298.858, Dec = 51.5434
tmin = 757900801, tmax = 758505601
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='61727458', job_status='RUN', time_executed='2025-01-14 03:31:17.728535', time_epoch_executed='1736854277.73' WHERE source_name='4FGL J1955.4+5132' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61727458

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61727458/ft1_4FGL_J1955.4+5132_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61727458/ft1_4FGL_J1955.4+5132_weekly_bin858.fits outfile=/lscratch/kocevski/61727458/ft1_filteredMKT_4FGL_J1955.4+5132_weekly_bin858.fits ra=298.858 dec=51.5434 rad=12.0 tmin=757900801.0 tmax=758505601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.22
user 2.95
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.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/61727458/ft1_filteredMKT_4FGL_J1955.4+5132_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.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.39
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 13041

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61727458/ltcube_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.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/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits
.....................!
real 17.62
user 17.22
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61727458/ltcube_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.fits outfile=/lscratch/kocevski/61727458/expmap_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.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/61727458/ltcube_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.fits
.....................!
real 60.15
user 56.13
sys 3.63

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/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.fits scfile=/lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits outfile=/lscratch/kocevski/61727458/cmap_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.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.37
user 0.21
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.fits scfile=/lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits outfile=/lscratch/kocevski/61727458/cmap_HighResolution_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.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.39
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61727458/Model_4FGL_J1955.4+5132_weekly_bin858.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/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.fits.....................!
real 582.16
user 577.63
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.fits', '/lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits', expMap='/lscratch/kocevski/61727458/expmap_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.fits', expCube='/lscratch/kocevski/61727458/ltcube_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61727458/Model_4FGL_J1955.4+5132_weekly_bin858.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/61727458/ft1_filtered_4FGL_J1955.4+5132_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61727458/ft2_4FGL_J1955.4+5132_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61727458/expmap_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61727458/ltcube_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61727458/Model_4FGL_J1955.4+5132_weekly_bin858.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) = 119499.850165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9237       1.0000          .0000       .10000E+07
     2 'norm      '    1.0780       1.0000          .0000       .10000E+07
     3 'norm      '    1.8166       1.0000          .0000       .10000E+07
     4 'norm      '    3.8703       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14678E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.3985       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11879E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .14742E-05   1.0000          .0000       .10000E+07
     9 'norm      '    2.4452       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0808       1.0000         .10000E-03   10000.    
    11 'norm      '    .38179       1.0000          .0000       .10000E+07
    12 'norm      '    1.5580       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.1904       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1493       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0045       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=   119498.9     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      773 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9243        1.1317        .41041E-07    .17273E-01
   2  norm          1.0783        .65737        .49990E-07   -.68403E-02
   3  norm          1.8174        1.7704       -.11622E-06   -.22695E-02
   4  norm          3.8639        4.3604        .10622E-05    .93006E-02
   5  Prefactor     .45297E-07    3.4782        .31170E-06** at limit **
   6  Prefactor     9.4268        1.0516        .33091E-07   -.20807E-01
   7  Prefactor     .47851E-07    3.4629        .24986E-06** at limit **
   8  norm          .10048E-06    1.3492        .54418E-06** at limit **
   9  norm          2.4451        .84337        .10299E-07    .19870E-02
  10  Prefactor     2.0808        .16092       -.25367E-07   -.39040E-02
  11  norm          .38390        2.5860        .55890E-06    .13795E-02
  12  norm          1.5559        2.3088        .11916E-07    .50137E-03
  13  Prefactor     1.2037        4.4780       -.99446E-06   -.16587E-02
  14  Normalizat    1.1493        .91717E-01   -.45539E-05   -.86691E-04
  15  Prefactor     1.0045        .14848E-01   -.81519E-07   -.31198E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92432
  norm       = 1.07833
  norm       = 1.8174
  norm       = 3.86387
  Prefactor  = 4.52971e-08
  Prefactor  = 9.42684
  Prefactor  = 4.78506e-08
  norm       = 1.00475e-07
  norm       = 2.44514
  Prefactor  = 2.08081
  norm       = 0.383905
  norm       = 1.55594
  Prefactor  = 1.20372
  Normalizat = 1.1493
  Prefactor  = 1.00449
 **********
 **   18 **HESSE 
 **********

 FCN=   119498.9     FROM HESSE     STATUS=OK           224 CALLS      997 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9243        1.1296        .59385E-03   -1.5674    
   2  norm          1.0783        .66431        .11622E-02   -1.5687    
   3  norm          1.8174        1.7974        .77462E-03   -1.5681    
   4  norm          3.8639        4.4221        .51268E-03   -1.5669    
   5  Prefactor     .45297E-07    4.4125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4268        9.4398        .32666E-03   -1.5647    
   7  Prefactor     .47851E-07    4.2367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10048E-06    3.1636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4451        .84446        .65397E-03   -1.5677    
  10  Prefactor     2.0808        .16113        .71569E-02   -1.5419    
  11  norm          .38390        .85610        .91627E-02   -1.5696    
  12  norm          1.5559        2.3226        .85238E-03   -1.5683    
  13  Prefactor     1.2037        4.4937        .10436E-02   -1.5686    
  14  Normalizat    1.1493        .91871E-01    .16867       -.88184    
  15  Prefactor     1.0045        .14618E-01    .28588E-01   -.92580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15507e-06
Minuit parameter uncertainties:
  1  1.12962
  2  0.664315
  3  1.79737
  4  4.42215
  5  0.000893982
  6  9.43983
  7  0.00090057
  8  0.00112757
  9  0.84446
  10  0.161129
  11  0.856102
  12  2.32256
  13  4.49369
  14  0.0918835
  15  0.0146182
Done.

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

Extracting fit parameters...

4FGL J1955.4+5132
   Spectrum: PowerLaw
300    Prefactor:  9.427e+00  9.440e+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

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.004e+00  1.462e-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.149e+00  9.188e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 298.858 51.543
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.91e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 5.24e-06 +/- 5.24e-06

TS (Fixed Index): 1.50
Ra Dec: 298.858 51.543
Photon Flux Upper Limit: 5.92704986046e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00462542567465 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61727458/likelihoodResults_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.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) = 119498.896221
delta logL = 0.0221748684708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 119498.886345
delta logL = 0.0320510320598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8856       1.0000          .0000       .10000E+07
     2 'Index     '    2.8719       1.0000          .0000       10.000    
     3 'Normalizat'    1.1424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0048       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.

 FCN=   119498.9     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      246 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8691        25.697        .35683E-03    .15832E-01
   2  Index         2.8741        .29372        .50000        .20541E-03
   3  Normalizat    1.1424        .11935E-01    .16911        .11437E-02
   4  Prefactor     1.0048        .18987E-02    .28584E-01    .58059E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.8691
  Index      = 2.87415
  Normalizat = 1.14236
  Prefactor  = 1.00476
 **********
 **   18 **HESSE 
 **********

 FCN=   119498.9     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8691        14.254        .14273E-04   -1.5652    
   2  Index         2.8741        1.5521        .58889E-02   -.43915    
   3  Normalizat    1.1424        .95093E-01    .75311E-03   -.88403    
   4  Prefactor     1.0048        .14283E-01    .12632E-03   -.92571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60717e-09
Minuit parameter uncertainties:
  1  14.2537
  2  1.58426
  3  0.095107
  4  0.0142833
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) = 119498.886343
delta logL = 0.0320530297322

Extracting fit parameters...

4FGL J1955.4+5132
   Spectrum: PowerLaw
300    Prefactor:  7.869e+00  1.425e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.874e+00  1.584e+00  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.005e+00  1.428e-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.142e+00  9.511e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 298.858 51.543
Photon Index (Free Index): 2.87 +/- 1.58
Photon Flux (Free Index): 2.72e-08 +/- 3.98e-08
Energy Flux (Free Index): 5.81e-06 +/- 5.39e-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/61727458/cmap_HighResolution_757900801_758505601_4FGL_J1955.4+5132_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', comment='SUCCESS', photon_flux='1.91e-08', energy_flux2='5.81e-06', photon_flux_error='1.91e-08', dlogl='3.21e-02', energy_flux='5.24e-06', photon_flux2='2.72e-08', job_status='DONE', time_completed='2025-01-14 04:06:13.973957', photon_index_error2='1.58', photon_index2='2.87', ts='1.50', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.93e-08', energy_flux_error2='5.39e-06', EG='1.15', time_epoch_completed='1736856373.97', return_code='0', job_id='61727458', GAL2='1.00', EG2='1.14', return_code2='0', energy_flux_error='5.24e-06', photon_flux_error2='3.98e-08', ts2='1.59', photon_index='2.55' WHERE bin_id='858' AND source_name='4FGL J1955.4+5132' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 04:06:14 PST 2025

