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


Performing analysis on: 4FGL_J1855.8-2028_daily_bin2118
RA = 283.975, Dec = -20.4694
tmin = 788313601, tmax = 788572801
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='18067689', job_status='RUN', time_executed='2025-12-28 01:22:32.973865', time_epoch_executed='1766913752.97' WHERE source_name='4FGL J1855.8-2028' and cadence='daily' and bin_id='2118'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18067689

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18067689/ft1_4FGL_J1855.8-2028_daily_bin2118.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18067689/ft1_4FGL_J1855.8-2028_daily_bin2118.fits outfile=/lscratch/kocevski/18067689/ft1_filteredMKT_4FGL_J1855.8-2028_daily_bin2118.fits ra=283.975 dec=-20.4694 rad=12.0 tmin=788313601.0 tmax=788572801.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 2.30
user 1.75
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.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/18067689/ft1_filteredMKT_4FGL_J1855.8-2028_daily_bin2118.fits evtable="EVENTS" outfile="/lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.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.61
user 0.18
sys 0.12

Number of photons that the gtmktime cut: 3797

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18067689/ltcube_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.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/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits
.....................!
real 7.57
user 6.96
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.fits evtable="EVENTS" scfile=/lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18067689/ltcube_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.fits outfile=/lscratch/kocevski/18067689/expmap_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.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/18067689/ltcube_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.fits
.....................!
real 67.51
user 63.04
sys 3.85

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk 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.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Added 489 point sources and 16 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 J1855.8-2028 @ 283.975 -20.4694

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.fits scfile=/lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits outfile=/lscratch/kocevski/18067689/cmap_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.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=283.975 yref=-20.4694 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.46
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.fits scfile=/lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits outfile=/lscratch/kocevski/18067689/cmap_HighResolution_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.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=283.975 yref=-20.4694 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.49
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.fits evtable="EVENTS" scfile=/lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18067689/Model_4FGL_J1855.8-2028_daily_bin2118.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 J1745.8-3028
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 J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source Kes 73
adding source Kes 79
adding source W 28
adding source W 30
adding source W 41
adding source W 44
Working on...
/lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.fits.....................!
real 416.73
user 412.45
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.fits', '/lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits', expMap='/lscratch/kocevski/18067689/expmap_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.fits', expCube='/lscratch/kocevski/18067689/ltcube_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18067689/Model_4FGL_J1855.8-2028_daily_bin2118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1855.8-2028'

4FGL J1855.8-2028
   Spectrum: PowerLaw
1414    Prefactor:  3.407e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
1415        Index:  2.154e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1416        Scale:  2.454e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18067689/ft1_filtered_4FGL_J1855.8-2028_daily_bin2118.fits
Spacecraft file(s): /lscratch/kocevski/18067689/ft2_4FGL_J1855.8-2028_daily_bin2118.fits
Exposure map: /lscratch/kocevski/18067689/expmap_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.fits
Exposure cube: /lscratch/kocevski/18067689/ltcube_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18067689/Model_4FGL_J1855.8-2028_daily_bin2118.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) = 34155.5240886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.631       1.0000          .0000       .10000E+07
     2 'norm      '    20.588       1.0000          .0000       .10000E+07
     3 'Prefactor '    .47018E-07   1.0000          .0000       .10000E+07
     4 'norm      '    .21649E-08   1.0000          .0000       .10000E+07
     5 'norm      '    1.0746       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10800E-05   1.0000          .0000       .10000E+07
     7 'norm      '    .59341E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    56.943       1.0000          .0000       .10000E+07
     9 'Prefactor '    .62728E-08   1.0000          .0000       .10000E+07
    10 'norm      '    6.8244       1.0000          .0000       .10000E+07
    11 'norm      '    .61562E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .17986E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .55511E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    62.974       1.0000          .0000       .10000E+07
    15 'Normalizat'    .55230       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1839E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34155.51     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1349 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.629        3.8487       -.25808E-07    .12029E-02
   2  norm          20.583        1.0356        .15057E-08   -.17641E-02
   3  Prefactor     .27756E-09    69.987       -.88272E-06** at limit **
   4  norm           .0000        2.1249        .39052E-08** at limit **
   5  norm          1.0746        .93414       -.25057E-06    .56021E-02
   6  Prefactor     .44409E-09    62.357        .28476E-06** at limit **
   7  norm           .0000        10.831       -.13498E-07** at limit **
   8  Prefactor     56.896        1.3475       -.47200E-08    .45738E-02
   9  Prefactor      .0000        5.6341       -.94431E-07** at limit **
  10  norm          6.8245        6.9341        .25531E-07    .45748E-04
  11  norm           .0000        4.0623       -.25285E-06** at limit **
  12  Prefactor      .0000        5.6915       -.20982E-06** at limit **
  13  Prefactor     .11102E-09    40.223        .11233E-05** at limit **
  14  Prefactor     62.964        2.3092       -.13873E-07    .42219E-02
  15  Normalizat    .55297        .31686        .15511E-04   -.16100E-05
  16  Prefactor     1.1092        .28689E-01   -.88163E-06    .22727E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.6293
  norm       = 20.5831
  Prefactor  = 2.77556e-10
  norm       = 0
  norm       = 1.07462
  Prefactor  = 4.44089e-10
  norm       = 0
  Prefactor  = 56.8959
  Prefactor  = 0
  norm       = 6.82448
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 62.9645
  Normalizat = 0.552971
  Prefactor  = 1.10916
 **********
 **   18 **HESSE 
 **********

 FCN=   34155.51     FROM HESSE     STATUS=OK           231 CALLS     1580 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.629        3.8753        .19756E-03   -1.5607    
   2  norm          20.583        24.392        .22046E-03   -1.5617    
   3  Prefactor     .27756E-09    70.046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        2.1243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0746        .97891        .11672E-02   -1.5687    
   6  Prefactor     .44409E-09    62.348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        10.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     56.896        50.938        .13253E-03   -1.5557    
   9  Prefactor      .0000        5.6244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.8245        7.0412        .38384E-03   -1.5656    
  11  norm           .0000        4.0691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.6660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    40.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62.964        42.025        .12602E-03   -1.5549    
  15  Normalizat    .55297        .38323        .40283       -1.1002    
  16  Prefactor     1.1092        .32083E-01    .37247E-01   -.89174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11885e-09
Minuit parameter uncertainties:
  1  3.8753
  2  24.3924
  3  0.000286888
  4  1.26431e-06
  5  0.978908
  6  0.000335909
  7  5.24684e-07
  8  50.938
  9  5.03394e-06
  10  7.04122
  11  2.03696e-05
  12  8.02626e-06
  13  0.000128041
  14  42.0256
  15  0.38508
  16  0.0320832
Done.

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

Extracting fit parameters...

4FGL J1855.8-2028
   Spectrum: PowerLaw
1414    Prefactor:  2.776e-10  2.869e-04  0.000e+00  1.000e+06 ( 1.000e-14)
1415        Index:  2.154e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1416        Scale:  2.454e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1792    Prefactor:  1.109e+00  3.208e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1793        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1794        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1778   Normalization:  5.530e-01  3.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 283.975 -20.469
Photon Flux Upper Limit: 1.42305722697e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.0108045814677 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18067689/likelihoodResults_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.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) = 34155.5214546
delta logL = -0.00685775149032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 34155.5145977
delta logL = -8.41093424242e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29569E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.4978       1.0000          .0000       10.000    
     3 'Normalizat'    .55321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1839E+06   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34155.28     FROM MIGRAD    STATUS=CONVERGED    279 CALLS      436 TOTAL
                     EDM=   .41E-04  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96034E-08    .61545E-06     .0000    ** at limit **
   2  Index        10.0000        9.4959         .0000    ** at limit **
   3  Normalizat    .50479        .26785         .0000        .21883E-02
   4  Prefactor     1.1103        .25502E-01     .0000        .29114E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.60343e-09
  Index      = 10
  Normalizat = 0.504785
  Prefactor  = 1.11032
 **********
 **   18 **HESSE 
 **********

 FCN=   34155.28     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      477 TOTAL
                     EDM=   .21E+03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96034E-08    .55791E-06    .74901E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.6591        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .50479        .36814        .40295       -1.1219    
   4  Prefactor     1.1103        .19478E-01    .37249E-01   -.89138    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 211.341
Minuit parameter uncertainties:
  1  1.46192e-07
  2  0.00104286
  3  0.369935
  4  0.0194784
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) = 34155.2810169
delta logL = 0.233579995111

Extracting fit parameters...

4FGL J1855.8-2028
   Spectrum: PowerLaw
1414    Prefactor:  9.603e-09  1.462e-07  0.000e+00  1.000e+06 ( 1.000e-14)
1415        Index:  1.000e+01  1.043e-03  0.000e+00  1.000e+01 (-1.000e+00)
1416        Scale:  2.454e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1792    Prefactor:  1.110e+00  1.948e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1793        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1794        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1778   Normalization:  5.048e-01  3.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 283.975 -20.469

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/18067689/cmap_HighResolution_788313601_788572801_4FGL_J1855.8-2028_daily_bin2118.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2025-12-28 02:06:53.127521', job_id='18067689', GAL2='1.11', fit_tolerance='1e-08', EG2='0.50', EG='0.55', time_epoch_completed='1766916413.13', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.34e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='2118' AND source_name='4FGL J1855.8-2028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 28 02:06:53 PST 2025

