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


Performing analysis on: 4FGL_J1955.1-1604_weekly_bin940
RA = 298.777, Dec = -16.0715
tmin = 807494401, tmax = 808099201
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='34695593', job_status='RUN', time_executed='2026-08-11 01:45:11.540515', time_epoch_executed='1786437911.54' WHERE source_name='4FGL J1955.1-1604' and cadence='weekly' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34695593

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34695593/ft1_4FGL_J1955.1-1604_weekly_bin940.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34695593/ft1_4FGL_J1955.1-1604_weekly_bin940.fits outfile=/lscratch/kocevski/34695593/ft1_filteredMKT_4FGL_J1955.1-1604_weekly_bin940.fits ra=298.777 dec=-16.0715 rad=12.0 tmin=807494401.0 tmax=808099201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.03
user 3.39
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.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/34695593/ft1_filteredMKT_4FGL_J1955.1-1604_weekly_bin940.fits evtable="EVENTS" outfile="/lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.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.73
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 191

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34695593/ltcube_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.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/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits
.....................!
real 19.35
user 18.65
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.fits evtable="EVENTS" scfile=/lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34695593/ltcube_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.fits outfile=/lscratch/kocevski/34695593/expmap_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.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/34695593/ltcube_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.fits
.....................!
real 68.35
user 63.58
sys 4.08

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 HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Added 247 point sources and 7 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.1-1604 @ 298.777 -16.0715

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.fits scfile=/lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits outfile=/lscratch/kocevski/34695593/cmap_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.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.777 yref=-16.0715 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.72
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.fits scfile=/lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits outfile=/lscratch/kocevski/34695593/cmap_HighResolution_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.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.777 yref=-16.0715 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.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.fits evtable="EVENTS" scfile=/lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34695593/Model_4FGL_J1955.1-1604_weekly_bin940.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1825-137
adding source HESS J1841-055
adding source Kes 73
adding source W 41
Working on...
/lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.fits......................!
real 19.53
user 18.09
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.fits', '/lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits', expMap='/lscratch/kocevski/34695593/expmap_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.fits', expCube='/lscratch/kocevski/34695593/ltcube_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34695593/Model_4FGL_J1955.1-1604_weekly_bin940.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1955.1-1604'

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  5.966e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
578        Index:  2.029e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34695593/ft1_filtered_4FGL_J1955.1-1604_weekly_bin940.fits
Spacecraft file(s): /lscratch/kocevski/34695593/ft2_4FGL_J1955.1-1604_weekly_bin940.fits
Exposure map: /lscratch/kocevski/34695593/expmap_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.fits
Exposure cube: /lscratch/kocevski/34695593/ltcube_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34695593/Model_4FGL_J1955.1-1604_weekly_bin940.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2216.9727772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2213.80024687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0362       1.0000          .0000       .10000E+07
     2 'Prefactor '    42.483       1.0000          .0000       .10000E+07
     3 'norm      '    55.637       1.0000          .0000       .10000E+07
     4 'Prefactor '    62.640       1.0000          .0000       .10000E+07
     5 'Prefactor '    .68834E-02   1.0000          .0000       .10000E+07
     6 'norm      '    12.182       1.0000          .0000       .10000E+07
     7 'norm      '    5.8166       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17997E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .50827E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .86792E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .35277E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .97243E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .82254E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.9108       1.0000          .0000       .10000E+07
    15 'Prefactor '    18.360       1.0000          .0000       .10000E+07
    16 'norm      '    .60922       1.0000          .0000       .10000E+07
    17 'norm      '    .10620E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.7358       1.0000          .0000       .10000E+07
    19 'norm      '    .15107       1.0000          .0000       .10000E+07
    20 'norm      '    3.6985       1.0000          .0000       .10000E+07
    21 'norm      '    .66685E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .44674       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.2226       1.0000          .0000       .10000E+07
    24 'Normalizat'    .84911       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71833       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2213.778     FROM MIGRAD    STATUS=CONVERGED    226 CALLS      656 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0420        2.4375       -.49440E-07   -.14606E-02
   2  Prefactor     42.542        1.3424       -.31057E-08   -.58606E-04
   3  norm          56.571        9.2641        .27028E-07    .22986E-01
   4  Prefactor     59.646        72.211       -.73024E-07   -.13364    
   5  Prefactor     .44409E-09    24.026        .37384E-06** at limit **
   6  norm          12.495        18.834        .13301E-07    .38404E-02
   7  norm          6.3219        27.139        .60059E-06   -.11031E-03
   8  Prefactor      .0000        21.470        .12374E-06** at limit **
   9  Prefactor     .27756E-09    129.68        .33289E-06** at limit **
  10  Prefactor      .0000        57.014        .14210E-07** at limit **
  11  Prefactor      .0000        7.2033       -.17797E-07** at limit **
  12  Prefactor      .0000        92.538       -.26718E-07** at limit **
  13  Prefactor     .61023E-06    74.712        .31384E-06** at limit **
  14  Prefactor     3.9292        10.991       -.78167E-08   -.26766E-03
  15  Prefactor     42.433        177.42        .12770E-05   -.37435E-02
  16  norm          .11062E-04    213.60        .19913E-06** at limit **
  17  norm          .27756E-09    50.763        .78766E-07** at limit **
  18  Prefactor     .30070E-02    565.14       -.13939E-06** at limit **
  19  norm          .27756E-09    93.303       -.28307E-06** at limit **
  20  norm          .24420E-04    307.95        .25002E-06** at limit **
  21  norm           .0000        16.590        .33167E-07** at limit **
  22  norm          .18536E-04    40.499        .93515E-07** at limit **
  23  Prefactor     1.2226        1.1267         .0000         .0000    
  24  Normalizat    .84331        1.1489       -.38831E-05   -.10042E-04
  25  Prefactor     .71720        .17875       -.59859E-06   -.74135E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.04203
  Prefactor  = 42.542
  norm       = 56.5708
  Prefactor  = 59.6464
  Prefactor  = 4.44089e-10
  norm       = 12.4948
  norm       = 6.32189
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.10234e-07
  Prefactor  = 3.92922
  Prefactor  = 42.4325
  norm       = 1.1062e-05
  norm       = 2.77556e-10
  Prefactor  = 0.00300701
  norm       = 2.77556e-10
  norm       = 2.44204e-05
  norm       = 0
  norm       = 1.85361e-05
  Prefactor  = 1.22262
  Normalizat = 0.843311
  Prefactor  = 0.7172
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2213.778     FROM HESSE     STATUS=FAILED        99 CALLS      755 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0420        2.1747        .72453E-03   -1.5679    
   2  Prefactor     42.542        38.600        .15344E-03   -1.5578    
   3  norm          56.571        52.870        .13408E-03   -1.5558    
   4  Prefactor     59.646        86.949        .12636E-03   -1.5553    
   5  Prefactor     .44409E-09    23.899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.495        17.516        .28676E-03   -1.5637    
   7  norm          6.3219        21.812        .41619E-03   -1.5658    
   8  Prefactor      .0000        21.416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    129.24        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        55.752        .14298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        7.1401        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        92.165        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .61023E-06    74.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9292        10.818        .50993E-03   -1.5668    
  15  Prefactor     42.433        171.90        .23347E-03   -1.5578    
  16  norm          .11062E-04    214.92        .68406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .27756E-09    50.496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30070E-02    1020.8        .79625E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .27756E-09    91.534        .12721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .24420E-04    326.88        .52489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        16.456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .18536E-04    835.35        .84260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     63089.        63088.         .0000       -1.5686    
  24  Normalizat    .84331        1.1828       -.38831E-05   -.98482    
  25  Prefactor     .71720        1.0673       -.59859E-06   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.01892e-10
Minuit parameter uncertainties:
  1  2.17473
  2  38.6003
  3  52.8708
  4  86.9511
  5  0.000212093
  6  17.5156
  7  21.8121
  8  3.39602e-05
  9  0.000365524
  10  2.90538e-06
  11  5.40097e-06
  12  1.43209e-05
  13  0.0134765
  14  10.8177
  15  170.822
  16  0.097522
  17  0.000227641
  18  3.50457
  19  0.000303402
  20  0.1787
  21  1.90363e-05
  22  0.248905
  23  1.12675
  24  1.22227
  25  1.10033
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 2213.77849059

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  0.000e+00  1.432e-05  0.000e+00  1.000e+06 ( 1.000e-14)
578        Index:  2.029e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
868    Prefactor:  7.172e-01  1.100e+00  0.000e+00  1.000e+01 ( 1.000e+00)
869        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
870        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
857   Normalization:  8.433e-01  1.222e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 298.777 -16.072
Photon Flux Upper Limit: 4.69128927645e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0352700986045 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34695593/likelihoodResults_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2213.78366587
delta logL = -0.00517527989496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2213.77849101
delta logL = -4.20296146331e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60496E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6862       1.0000          .0000       10.000    
     3 'Normalizat'    .84231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71734       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2213.778     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      278 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26257E-07    376.02        .42118E-03** at limit **
   2  Index         .59036        9.3910        .50000       -.77307E-09
   3  Normalizat    .84328        .47457E-01    .17479        .67230E-04
   4  Prefactor     .71721        .75113E-02    .29794E-01    .82262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62568e-08
  Index      = 0.590361
  Normalizat = 0.843279
  Prefactor  = 0.717207
 **********
 **   18 **HESSE 
 **********

 FCN=   2213.778     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      309 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26257E-07    1795.8        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .59036        9.6191        .50000       -1.0799    
   3  Normalizat    .84328        .10525        .77698E-03   -.98483    
   4  Prefactor     .71721        .16762E-01    .13164E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16912e-08
Minuit parameter uncertainties:
  1  0.0137433
  2  257521
  3  0.105279
  4  0.0167623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2213.77849059
delta logL = -8.64929461386e-10

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  2.626e-08  1.374e-02  0.000e+00  1.000e+06 ( 1.000e-14)
578        Index:  5.904e-01  2.575e+05  0.000e+00  1.000e+01 (-1.000e+00)
579        Scale:  3.293e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
868    Prefactor:  7.172e-01  1.676e-02  0.000e+00  1.000e+01 ( 1.000e+00)
869        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
870        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
857   Normalization:  8.433e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 298.777 -16.072

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/34695593/cmap_HighResolution_807494401_808099201_4FGL_J1955.1-1604_weekly_bin940.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-02', job_status='DONE', photon_flux_upper_limit='4.69e-07', time_completed='2026-08-11 01:51:38.752190', job_id='34695593', GAL2='0.72', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1786438298.75', return_code2='102', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.72', dlogl='-8.65e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='940' AND source_name='4FGL J1955.1-1604' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug 11 01:51:38 PDT 2026

