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


Performing analysis on: 4FGL_J1955.1-1604_weekly_bin947
RA = 298.777, Dec = -16.0715
tmin = 811728001, tmax = 812332801
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='39490922', job_status='RUN', time_executed='2026-09-29 21:26:39.838860', time_epoch_executed='1790742399.84' WHERE source_name='4FGL J1955.1-1604' and cadence='weekly' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/39490922

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/39490922/ft1_4FGL_J1955.1-1604_weekly_bin947.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/39490922/ft1_4FGL_J1955.1-1604_weekly_bin947.fits outfile=/lscratch/kocevski/39490922/ft1_filteredMKT_4FGL_J1955.1-1604_weekly_bin947.fits ra=298.777 dec=-16.0715 rad=12.0 tmin=811728001.0 tmax=812332801.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 7.42
user 6.14
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.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/39490922/ft1_filteredMKT_4FGL_J1955.1-1604_weekly_bin947.fits evtable="EVENTS" outfile="/lscratch/kocevski/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.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.67
user 0.26
sys 0.14

Number of photons that the gtmktime cut: 3804

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.fits" evtable="EVENTS" scfile=/lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits sctable="SC_DAT7
    15 'Prefactor '    15.500       1.0000          .0000       .10000E+07
    16 'norm      '    .31058E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .53910E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14188E-03   1.0000          .0000       .10000E+07
    19 'norm      '    10.705       1.0000          .0000       .10000E+07
    20 'norm      '    .33979E-05   1.0000          .0000       .10000E+07
    21 'norm      '    2.3299       1.0000          .0000       .10000E+07
    22 'norm      '    .17372E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .59002       1.0000          .0000       .10000E+07
    24 'Normalizat'    .57483       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0780       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   38465.35     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     2665 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63309        .33973       -.11578E-09    .29509E-04
   2  Prefactor     6.3099        6.7442       -.25378E-08    .10147E-04
   3  norm           .0000        82.838        .82102E-06** at limit **
   4  Prefactor     8.4274        14.927       -.90258E-06   -.21592E-03
   5  Prefactor     1.7868        1.8840       -.86805E-09    .69514E-03
   6  norm          .68068        1.6897        .23150E-07   -.87983E-02
   7  norm           .0000        2.1767       -.33460E-08** at limit **
   8  Prefactor     .33307E-09    1.8476       -.12546E-07** at limit **
   9  Prefactor     4.1083        11.415        .56047E-06   -.59139E-04
  10  Prefactor      .0000        4.2740        .50174E-07** at limit **
  11  Prefactor     5.7596        2.3831        .25636E-07   -.48715E-02
  12  Prefactor      .0000        6.9235       -.65677E-09** at limit **
  13  Prefactor      .0000        4.3610       -.39041E-07** at limit **
  14  Prefactor     15.141        1.5025       -.59333E-08   -.46099E-03
  15  Prefactor     15.431        20.186       -.17363E-05   -.71945E-04
  16  norm           .0000        2.2585       -.14505E-09** at limit **
  17  norm           .0000        3.6133       -.79451E-08** at limit **
  18  Prefactor      .0000        10.618        .13071E-07** at limit **
  19  norm          10.706        6.9493        .21297E-07    .22460E-03
  20  norm           .0000        94.019       -.84991E-06** at limit **
  21  norm          2.3300        .76734       -.93209E-09    .12209E-02
  22  norm           .0000        1.1291        .58647E-09** at limit **
  23  Prefactor     .58920        .62165       -.13797E-07   -.26080E-01
  24  Normalizat    .57486        .15648        .19408E-05    .18865E-03
  25  Prefactor     1.0781        .42346E-01    .15561E-06   -.32508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.633091
  Prefactor  = 6.30994
  norm       = 0
  Prefactor  = 8.42738
  Prefactor  = 1.78683
  norm       = 0.680684
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 4.1083
  Prefactor  = 0
  Prefactor  = 5.75963
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.1405
  Prefactor  = 15.4315
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 10.7064
  norm       = 0
  norm       = 2.32997
  norm       = 0
  Prefactor  = 0.5892
  Normalizat = 0.574865
  Prefactor  = 1.07807
A" outfile=/lscratch/kocevski/39490922/ltcube_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.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/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits
.....................!
real 20.24
user 19.54
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits sctable="SC_DATA" expcube=/lscratch/kocevski/39490922/ltcube_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.fits outfile=/lscratch/kocevski/39490922/expmap_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.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/39490922/ltcube_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.fits
.....................!
real 74.39
user 69.44
sys 4.10

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/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.fits scfile=/lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits outfile=/lscratch/kocevski/39490922/cmap_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.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.57
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.fits scfile=/lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits outfile=/lscratch/kocevski/39490922/cmap_HighResolution_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.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="T **********
 **   18 **HESSE 
 **********

 FCN=   38465.35     FROM HESSE     STATUS=OK           433 CALLS     3098 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63309        .33799        .80348E-05   -1.5692    
   2  Prefactor     6.3099        6.7328        .15976E-04   -1.5658    
   3  norm           .0000        85.713        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4274        14.957        .13792E-04   -1.5650    
   5  Prefactor     1.7868        1.8842        .13423E-03   -1.5681    
   6  norm          .68068        1.8847        .12472E-03   -1.5691    
   7  norm           .0000        2.2174        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33307E-09    32.386        .50878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1083        11.399        .19872E-04   -1.5667    
  10  Prefactor      .0000        4.2838        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7596        2.4035        .83663E-04   -1.5660    
  12  Prefactor      .0000        6.9282        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.3619        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.141        1.4957        .71589E-05   -1.5630    
  15  Prefactor     15.431        20.180        .10165E-04   -1.5629    
  16  norm           .0000        2.2641        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        3.6877        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        10.618        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.706        6.9440        .12239E-04   -1.5643    
  20  norm           .0000        97.006        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3300        .76287        .94652E-05   -1.5677    
  22  norm           .0000        1.1367        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .58920        1.2660        .14025E-03   -1.5693    
  24  Normalizat    .57486        .15710        .66023E-03   -1.0906    
  25  Prefactor     1.0781        .43274E-01    .13654E-03   -.90171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27257e-09
Minuit parameter uncertainties:
  1  0.337993
  2  6.73282
  3  8.18073e-05
  4  14.9567
  5  1.88417
  6  1.88474
  7  3.94334e-06
  8  0.000201938
  9  11.3991
  10  5.66337e-06
  11  2.40345
  12  2.34268e-06
  13  1.87159e-05
  14  1.49571
  15  20.1805
  16  3.91108e-06
  17  6.05343e-06
  18  1.43925e-06
  19  6.94397
  20  3.60522e-05
  21  0.762869
  22  1.32351e-06
  23  1.26604
  24  0.157221
  25  0.0432756
Done.

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

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  0.000e+00  2.343e-06  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:  1.078e+00  4.328e-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:  5.749e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/39489973/likelihoodResults_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.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) = 38465.4212761
delta logL = -0.0699006455907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38465.3513756
delta logL = -7.42147676647e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92648E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .96050       1.0000          .0000       10.000    
     3 'Normalizat'    .57483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0781       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   38465.35     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      212 TOTAL
                     EDM=   .18E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.2719        .42118E-03** at limit **
   2  Index         1.7505        1.6793        .11532E-05     .0000    
   3  Normalizat    .57486        .91113       -.22156E-05    .23710E-05
   4  Prefactor     1.0781        1.1643       -.72296E-08    .29862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.75054
  Normalizat = 0.574862
  Prefactor  = 1.07807
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   38465.35     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .18E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.2719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .30891        1.7761        .11532E-05   -.70744    
   3  Normalizat    .57486        .91113       -.22156E-05   -1.0906    
   4  Prefactor     1.0781        1.1643       -.72296E-08   -.90171    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.80542e-13
Minuit parameter uncertainties:
  1  7.99617e-06
  2  1.73938
  3  0.936643
  4  1.19358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 38465.3513755
delta logL = 1.38243194669e-10

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  0.000e+00  7.996e-06  0.000e+00  1.000e+06 ( 1.000e-14)
578        Index:  1.751e+00  1.739e+00  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:  1.078e+00  1.194e+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:  5.749e-01  9.366e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/39489973/cmap_HighResolution_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-03', job_status='DONE', photon_flux_upper_limit='3.09e-08', time_completed='2026-09-29 21:36:13.350106', job_id='39489973', GAL2='1.08', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1790742973.35', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.38e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='947' AND source_name='4FGL J1955.1-1604' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 21:36:13 PDT 2026

IME" 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.55
user 0.28
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.fits evtable="EVENTS" scfile=/lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/39490922/Model_4FGL_J1955.1-1604_weekly_bin947.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/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.fits.....................!
real 203.62
user 201.36
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.fits', '/lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits', expMap='/lscratch/kocevski/39490922/expmap_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.fits', expCube='/lscratch/kocevski/39490922/ltcube_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/39490922/Model_4FGL_J1955.1-1604_weekly_bin947.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/39490922/ft1_filtered_4FGL_J1955.1-1604_weekly_bin947.fits
Spacecraft file(s): /lscratch/kocevski/39490922/ft2_4FGL_J1955.1-1604_weekly_bin947.fits
Exposure map: /lscratch/kocevski/39490922/expmap_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.fits
Exposure cube: /lscratch/kocevski/39490922/ltcube_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/39490922/Model_4FGL_J1955.1-1604_weekly_bin947.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) = 38465.3580484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63340       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.3088       1.0000          .0000       .10000E+07
     3 'norm      '    .36274E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    8.4417       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7868       1.0000          .0000       .10000E+07
     6 'norm      '    .67985       1.0000          .0000       .10000E+07
     7 'norm      '    .63887E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .82931E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.1134       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12769E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.7585       1.0000          .0000       .10000E+07
    12 'Prefactor '    .34470E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .45370E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    15.140       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.500       1.0000          .0000       .10000E+07
    16 'norm      '    .31058E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .53910E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14188E-03   1.0000          .0000       .10000E+07
    19 'norm      '    10.705       1.0000          .0000       .10000E+07
    20 'norm      '    .33979E-05   1.0000          .0000       .10000E+07
    21 'norm      '    2.3299       1.0000          .0000       .10000E+07
    22 'norm      '    .17372E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .59002       1.0000          .0000       .10000E+07
    24 'Normalizat'    .57483       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0780       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   38465.35     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     2665 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63309        .33973       -.11578E-09    .29509E-04
   2  Prefactor     6.3099        6.7442       -.25378E-08    .10147E-04
   3  norm           .0000        82.838        .82102E-06** at limit **
   4  Prefactor     8.4274        14.927       -.90258E-06   -.21592E-03
   5  Prefactor     1.7868        1.8840       -.86805E-09    .69514E-03
   6  norm          .68068        1.6897        .23150E-07   -.87983E-02
   7  norm           .0000        2.1767       -.33460E-08** at limit **
   8  Prefactor     .33307E-09    1.8476       -.12546E-07** at limit **
   9  Prefactor     4.1083        11.415        .56047E-06   -.59139E-04
  10  Prefactor      .0000        4.2740        .50174E-07** at limit **
  11  Prefactor     5.7596        2.3831        .25636E-07   -.48715E-02
  12  Prefactor      .0000        6.9235       -.65677E-09** at limit **
  13  Prefactor      .0000        4.3610       -.39041E-07** at limit **
  14  Prefactor     15.141        1.5025       -.59333E-08   -.46099E-03
  15  Prefactor     15.431        20.186       -.17363E-05   -.71945E-04
  16  norm           .0000        2.2585       -.14505E-09** at limit **
  17  norm           .0000        3.6133       -.79451E-08** at limit **
  18  Prefactor      .0000        10.618        .13071E-07** at limit **
  19  norm          10.706        6.9493        .21297E-07    .22460E-03
  20  norm           .0000        94.019       -.84991E-06** at limit **
  21  norm          2.3300        .76734       -.93209E-09    .12209E-02
  22  norm           .0000        1.1291        .58647E-09** at limit **
  23  Prefactor     .58920        .62165       -.13797E-07   -.26080E-01
  24  Normalizat    .57486        .15648        .19408E-05    .18865E-03
  25  Prefactor     1.0781        .42346E-01    .15561E-06   -.32508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.633091
  Prefactor  = 6.30994
  norm       = 0
  Prefactor  = 8.42738
  Prefactor  = 1.78683
  norm       = 0.680684
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 4.1083
  Prefactor  = 0
  Prefactor  = 5.75963
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.1405
  Prefactor  = 15.4315
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 10.7064
  norm       = 0
  norm       = 2.32997
  norm       = 0
  Prefactor  = 0.5892
  Normalizat = 0.574865
  Prefactor  = 1.07807
 **********
 **   18 **HESSE 
 **********

 FCN=   38465.35     FROM HESSE     STATUS=OK           433 CALLS     3098 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63309        .33799        .80348E-05   -1.5692    
   2  Prefactor     6.3099        6.7328        .15976E-04   -1.5658    
   3  norm           .0000        85.713        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4274        14.957        .13792E-04   -1.5650    
   5  Prefactor     1.7868        1.8842        .13423E-03   -1.5681    
   6  norm          .68068        1.8847        .12472E-03   -1.5691    
   7  norm           .0000        2.2174        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33307E-09    32.386        .50878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1083        11.399        .19872E-04   -1.5667    
  10  Prefactor      .0000        4.2838        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7596        2.4035        .83663E-04   -1.5660    
  12  Prefactor      .0000        6.9282        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.3619        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.141        1.4957        .71589E-05   -1.5630    
  15  Prefactor     15.431        20.180        .10165E-04   -1.5629    
  16  norm           .0000        2.2641        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        3.6877        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        10.618        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.706        6.9440        .12239E-04   -1.5643    
  20  norm           .0000        97.006        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3300        .76287        .94652E-05   -1.5677    
  22  norm           .0000        1.1367        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .58920        1.2660        .14025E-03   -1.5693    
  24  Normalizat    .57486        .15710        .66023E-03   -1.0906    
  25  Prefactor     1.0781        .43274E-01    .13654E-03   -.90171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27257e-09
Minuit parameter uncertainties:
  1  0.337993
  2  6.73282
  3  8.18073e-05
  4  14.9567
  5  1.88417
  6  1.88474
  7  3.94334e-06
  8  0.000201938
  9  11.3991
  10  5.66337e-06
  11  2.40345
  12  2.34268e-06
  13  1.87159e-05
  14  1.49571
  15  20.1805
  16  3.91108e-06
  17  6.05343e-06
  18  1.43925e-06
  19  6.94397
  20  3.60522e-05
  21  0.762869
  22  1.32351e-06
  23  1.26604
  24  0.157221
  25  0.0432756
Done.

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

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  0.000e+00  2.343e-06  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:  1.078e+00  4.328e-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:  5.749e-01  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/39490922/likelihoodResults_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.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) = 38465.4212761
delta logL = -0.0699006455907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38465.3513756
delta logL = -7.42147676647e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92648E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .96050       1.0000          .0000       10.000    
     3 'Normalizat'    .57483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0781       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   38465.35     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      212 TOTAL
                     EDM=   .18E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.2719        .42118E-03** at limit **
   2  Index         1.7505        1.6793        .11532E-05     .0000    
   3  Normalizat    .57486        .91113       -.22156E-05    .23710E-05
   4  Prefactor     1.0781        1.1643       -.72296E-08    .29862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.75054
  Normalizat = 0.574862
  Prefactor  = 1.07807
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   38465.35     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .18E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.2719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .30891        1.7761        .11532E-05   -.70744    
   3  Normalizat    .57486        .91113       -.22156E-05   -1.0906    
   4  Prefactor     1.0781        1.1643       -.72296E-08   -.90171    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.80542e-13
Minuit parameter uncertainties:
  1  7.99617e-06
  2  1.73938
  3  0.936643
  4  1.19358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 38465.3513755
delta logL = 1.38243194669e-10

Extracting fit parameters...

4FGL J1955.1-1604
   Spectrum: PowerLaw
577    Prefactor:  0.000e+00  7.996e-06  0.000e+00  1.000e+06 ( 1.000e-14)
578        Index:  1.751e+00  1.739e+00  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:  1.078e+00  1.194e+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:  5.749e-01  9.366e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/39490922/cmap_HighResolution_811728001_812332801_4FGL_J1955.1-1604_weekly_bin947.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-03', job_status='DONE', photon_flux_upper_limit='3.09e-08', time_completed='2026-09-29 21:56:31.960857', job_id='39490922', GAL2='1.08', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1790744191.96', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.38e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='947' AND source_name='4FGL J1955.1-1604' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 29 21:56:32 PDT 2026

