/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).

ile=/lscratch/kocevski/36578214/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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/36578214/ft2_4FGL_J1627.7+0251_daily_bin2200.fits
.....................!
real 9.34
user 8.67
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36578214/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits evtable="EVENTS" scfile=/lscratch/kocevski/36578214/ft2_4FGL_J1627.7+0251_daily_bin2200.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36578214/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36578214/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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/36578214/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
.....................!
real 76.64
user 71.33
sys 4.51

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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 164 point sources and 1 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 J1627.7+0251 @ 246.942 2.8584

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36578214/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits scfile=/lscratch/kocevski/36578214/ft2_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36578214/cmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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=246.942 yref=2.8584 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.62
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36578214/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits scfile=/lscratch/kocevski/36578214/ft2_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36578214/cmap_HighResolution_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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=246.942 yref=2.8584 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.58
user 0.27
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36578214/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits evtable="EVENTS" scfile=/lscratch/kocevski/36578214/ft2_4FGL_J1627.7+0251_daily_bin2200.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36578214/Model_4FGL_J1627.7+0251_daily_bin2200.xml irfs="P8R3_SOURCE_V2" e/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).

tfile=/lscratch/kocevski/36577774/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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/36577774/ft2_4FGL_J1627.7+0251_daily_bin2200.fits
.....................!
real 36.85
user 35.05
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36577774/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits evtable="EVENTS" scfile=/lscratch/kocevski/36577774/ft2_4FGL_J1627.7+0251_daily_bin2200.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36577774/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36577774/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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/36577774/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
.....................!
real 293.69
user 272.52
sys 17.01

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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 164 point sources and 1 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 J1627.7+0251 @ 246.942 2.8584

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36577774/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits scfile=/lscratch/kocevski/36577774/ft2_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36577774/cmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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=246.942 yref=2.8584 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 1.19
user 0.70
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36577774/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits scfile=/lscratch/kocevski/36577774/ft2_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36577774/cmap_HighResolution_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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=246.942 yref=2.8584 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 1.14
user 0.73
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36577774/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits evtable="EVENTS" scfile=/lscratch/kocevski/36577774/ft2_4FGL_J1627.7+0251_daily_bin2200.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36577774/Model_4FGL_J1627.7+0251_daily_bin2200.xml irfs="P8R3_SOURCvclsmin=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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/36577965/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits.....................!
real 37.07
user 35.89
sys 0.70

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36577965/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits', '/lscratch/kocevski/36577965/ft2_4FGL_J1627.7+0251_daily_bin2200.fits', expMap='/lscratch/kocevski/36577965/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits', expCube='/lscratch/kocevski/36577965/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36577965/Model_4FGL_J1627.7+0251_daily_bin2200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1627.7+0251'

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.087e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36577965/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits
Spacecraft file(s): /lscratch/kocevski/36577965/ft2_4FGL_J1627.7+0251_daily_bin2200.fits
Exposure map: /lscratch/kocevski/36577965/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
Exposure cube: /lscratch/kocevski/36577965/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36577965/Model_4FGL_J1627.7+0251_daily_bin2200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9495.39897621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9494.06612207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2955       1.0000          .0000       .10000E+07
     2 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     3 'norm      '    .37076E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    10.951       1.0000          .0000       .10000E+07
     5 'norm      '    4.4019       1.0000          .0000       .10000E+07
     6 'norm      '    116.62       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15422E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.210       1.0000          .0000       .10000E+07
     9 'Prefactor '    .52985E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .37061E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27534E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.4724       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.8764       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.0666       1.0000          .0000       .10000E+07
    15 'Prefactor '    .49738E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.470       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9493.836     FROM MIGRAD    STATUS=CONVERGED    211 CALLS      899 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9232        11.666       -.82632E-06   -.10107E-01
   2  Prefactor      .0000        1.9776        .47688E-08** at limit **
   3  norm           .0000        1.3124       -.25351E-07** at limit **
   4  Prefactor     12.365        27.683       -.51094E-06   -.24322E-01
   5  norm          4.4099        2.1589        .14325E-07    .11971E-02
   6  norm          117.25        22.145        .29125E-06    .43554E-01
   7  Prefactor      .0000        28.392        .20758E-06** at limit **
   8  Prefactor     40.964        33.552       -.15948E-06   -.27969E-01
   9  Prefactor      .0000        4.6268        .36258E-09** at limit **
  10  Prefactor     .30349E-01    501.11       -.53823E-05** at limit **
  11  Prefactor      .0000        33.697       -.18231E-05** at limit **
  12  Prefactor     8.9247        35.477       -.28431E-05    .11203E-01
  13  Prefactor     3.8715        5.5544       -.23758E-07    .14723E-04
  14  Prefactor     5.2257        7.6133        .19399E-07    .28223E-03
  15  Prefactor      .0000        5.9830       -.19086E-07** at limit **
  16  Prefactor     196.46        291.30        .19786E-05    .11585E-03
  17  Normalizat    1.2840        .35559       -.82161E-05    .46678E-04
  18  Prefactor     1.0897        .10196        .30432E-05    .12100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92319
  Prefactor  = 0
  norm       = 0
  Prefactor  = 12.3653
  norm       = 4.40987
  norm       = 117.247
  Prefactor  = 0
  Prefactor  = 40.9642
  Prefactor  = 0
  Prefactor  = 0.030349
  Prefactor  = 0
  Prefactor  = 8.92469
  Prefactor  = 3.87145
  Prefactor  = 5.22573
  Prefactor  = 0
  Prefactor  = 196.455
  Normalizat = 1.28399
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********

 FCN=   9493.836     FROM HESSE     STATUS=OK           292 CALLS     1191 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9232        52.278        .55747E-03   -1.5668    
   2  Prefactor      .0000        2.0123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.3186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.365        39.329        .30250E-03   -1.5638    
   5  norm          4.4099        2.1569        .47978E-03   -1.5666    
   6  norm          117.25        27.685        .92605E-04   -1.5491    
   7  Prefactor      .0000        28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.964        36.961        .15579E-03   -1.5580    
   9  Prefactor      .0000        4.7139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30349E-01    7.3912        .69833E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        33.160        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9247        40.552        .39425E-03   -1.5648    
  13  Prefactor     3.8715        5.5852        .51227E-03   -1.5669    
  14  Prefactor     5.2257        7.6349        .44647E-03   -1.5662    
  15  Prefactor      .0000        6.0903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     196.46        291.57        .28341E-03   -1.5428    
  17  Normalizat    1.2840        .32248        .11665       -.84046    
  18  Prefactor     1.0897        .89858E-01    .37583E-01   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54914e-07
Minuit parameter uncertainties:
  1  28.6428
  2  1.65574e-06
  3  4.71484e-07
  4  39.3303
  5  2.15694
  6  27.6854
  7  4.45782e-05
  8  36.9611
  9  5.94622e-06
  10  0.947242
  11  6.02969e-05
  12  38.0485
  13  5.58526
  14  7.6349
  15  4.23712e-06
  16  291.587
  17  0.322984
  18  0.0898706
number of points = 7527
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1627.7+0251_daily_bin2200
RA = 246.942, Dec = 2.8584
tmin = 809568001, tmax = 809827201
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='36578319', job_status='RUN', time_executed='2026-08-31 15:43:04.871410', time_epoch_executed='1788216184.87' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='2200'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36578319

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36578319/ft1_4FGL_J1627.7+0251_daily_bin2200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36578319/ft1_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36578319/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin2200.fits ra=246.942 dec=2.8584 rad=12.0 tmin=809568001.0 tmax=809827201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.85
user 3.22
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.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/36578319/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin2200.fits evtable="EVENTS" outfile="/lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.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.84
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 884

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits sctable="SC_DATA" outfDone.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  4.458e-05  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.090e+00  8.987e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.284e+00  3.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 8.04579040145e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00612437550151 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36577965/likelihoodResults_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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) = 9493.85307905
delta logL = -0.0166315573515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9493.83644776
delta logL = -2.68724761554e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9493.836     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      226 TOTAL
                     EDM=   .34E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        23.214        .42118E-03** at limit **
   2  Index         2.4340        1.4525        .13349E-03     .0000    
   3  Normalizat    1.2840        1.0830        .23456E-04    .30782E-05
   4  Prefactor     1.0897        1.1555       -.74194E-05   -.21143E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.43397
  Normalizat = 1.28399
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9493.836     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .34E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        23.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66558        1.9198        .13349E-03   -.53892    
   3  Normalizat    1.2840        1.0830        .23456E-04   -.84046    
   4  Prefactor     1.0897        1.1555       -.74194E-05   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.39633e-13
Minuit parameter uncertainties:
  1  2.99606e-05
  2  1.4818
  3  1.10307
  4  1.18376
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) = 9493.83644749
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  2.996e-05  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.434e+00  1.482e+00  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.090e+00  1.184e+00  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.284e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 246.942 2.858

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/36577965/cmap_HighResolution_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2026-08-31 15:44:05.586402', job_id='36577965', GAL2='1.09', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1788216245.59', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='2200' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 31 15:44:05 PDT 2026

vclsmin=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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/36578214/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits.....................!
real 40.89
user 39.04
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36578214/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits', '/lscratch/kocevski/36578214/ft2_4FGL_J1627.7+0251_daily_bin2200.fits', expMap='/lscratch/kocevski/36578214/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits', expCube='/lscratch/kocevski/36578214/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36578214/Model_4FGL_J1627.7+0251_daily_bin2200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1627.7+0251'

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.087e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36578214/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits
Spacecraft file(s): /lscratch/kocevski/36578214/ft2_4FGL_J1627.7+0251_daily_bin2200.fits
Exposure map: /lscratch/kocevski/36578214/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
Exposure cube: /lscratch/kocevski/36578214/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36578214/Model_4FGL_J1627.7+0251_daily_bin2200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9495.39897621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9494.06612207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2955       1.0000          .0000       .10000E+07
     2 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     3 'norm      '    .37076E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    10.951       1.0000          .0000       .10000E+07
     5 'norm      '    4.4019       1.0000          .0000       .10000E+07
     6 'norm      '    116.62       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15422E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.210       1.0000          .0000       .10000E+07
     9 'Prefactor '    .52985E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .37061E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27534E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.4724       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.8764       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.0666       1.0000          .0000       .10000E+07
    15 'Prefactor '    .49738E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.470       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9493.836     FROM MIGRAD    STATUS=CONVERGED    211 CALLS      899 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9232        11.666       -.82632E-06   -.10107E-01
   2  Prefactor      .0000        1.9776        .47688E-08** at limit **
   3  norm           .0000        1.3124       -.25351E-07** at limit **
   4  Prefactor     12.365        27.683       -.51094E-06   -.24322E-01
   5  norm          4.4099        2.1589        .14325E-07    .11971E-02
   6  norm          117.25        22.145        .29125E-06    .43554E-01
   7  Prefactor      .0000        28.392        .20758E-06** at limit **
   8  Prefactor     40.964        33.552       -.15948E-06   -.27969E-01
   9  Prefactor      .0000        4.6268        .36258E-09** at limit **
  10  Prefactor     .30349E-01    501.11       -.53823E-05** at limit **
  11  Prefactor      .0000        33.697       -.18231E-05** at limit **
  12  Prefactor     8.9247        35.477       -.28431E-05    .11203E-01
  13  Prefactor     3.8715        5.5544       -.23758E-07    .14723E-04
  14  Prefactor     5.2257        7.6133        .19399E-07    .28223E-03
  15  Prefactor      .0000        5.9830       -.19086E-07** at limit **
  16  Prefactor     196.46        291.30        .19786E-05    .11585E-03
  17  Normalizat    1.2840        .35559       -.82161E-05    .46678E-04
  18  Prefactor     1.0897        .10196        .30432E-05    .12100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92319
  Prefactor  = 0
  norm       = 0
  Prefactor  = 12.3653
  norm       = 4.40987
  norm       = 117.247
  Prefactor  = 0
  Prefactor  = 40.9642
  Prefactor  = 0
  Prefactor  = 0.030349
  Prefactor  = 0
  Prefactor  = 8.92469
  Prefactor  = 3.87145
  Prefactor  = 5.22573
  Prefactor  = 0
  Prefactor  = 196.455
  Normalizat = 1.28399
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********

 FCN=   9493.836     FROM HESSE     STATUS=OK           292 CALLS     1191 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9232        52.278        .55747E-03   -1.5668    
   2  Prefactor      .0000        2.0123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.3186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.365        39.329        .30250E-03   -1.5638    
   5  norm          4.4099        2.1569        .47978E-03   -1.5666    
   6  norm          117.25        27.685        .92605E-04   -1.5491    
   7  Prefactor      .0000        28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.964        36.961        .15579E-03   -1.5580    
   9  Prefactor      .0000        4.7139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30349E-01    7.3912        .69833E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        33.160        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9247        40.552        .39425E-03   -1.5648    
  13  Prefactor     3.8715        5.5852        .51227E-03   -1.5669    
  14  Prefactor     5.2257        7.6349        .44647E-03   -1.5662    
  15  Prefactor      .0000        6.0903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     196.46        291.57        .28341E-03   -1.5428    
  17  Normalizat    1.2840        .32248        .11665       -.84046    
  18  Prefactor     1.0897        .89858E-01    .37583E-01   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54914e-07
Minuit parameter uncertainties:
  1  28.6428
  2  1.65574e-06
  3  4.71484e-07
  4  39.3303
  5  2.15694
  6  27.6854
  7  4.45782e-05
  8  36.9611
  9  5.94622e-06
  10  0.947242
  11  6.02969e-05
  12  38.0485
  13  5.58526
  14  7.6349
  15  4.23712e-06
  16  291.587
  17  0.322984
  18  0.0898706
ile=/lscratch/kocevski/36578319/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits
.....................!
real 9.08
user 8.38
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits evtable="EVENTS" scfile=/lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36578319/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36578319/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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/36578319/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
.....................!
real 76.10
user 70.65
sys 4.37

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 FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 164 point sources and 1 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 J1627.7+0251 @ 246.942 2.8584

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits scfile=/lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36578319/cmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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=246.942 yref=2.8584 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.63
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits scfile=/lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits outfile=/lscratch/kocevski/36578319/cmap_HighResolution_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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=246.942 yref=2.8584 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.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits evtable="EVENTS" scfile=/lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36578319/Model_4FGL_J1627.7+0251_daily_bin2200.xml irfs="P8R3_SOURCE_V2" eDone.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  4.458e-05  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.090e+00  8.987e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.284e+00  3.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 8.04579040145e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00612437550151 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36578214/likelihoodResults_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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) = 9493.85307905
delta logL = -0.0166315573515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9493.83644776
delta logL = -2.68724761554e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9493.836     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      226 TOTAL
                     EDM=   .34E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        23.214        .42118E-03** at limit **
   2  Index         2.4340        1.4525        .13349E-03     .0000    
   3  Normalizat    1.2840        1.0830        .23456E-04    .30782E-05
   4  Prefactor     1.0897        1.1555       -.74194E-05   -.21143E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.43397
  Normalizat = 1.28399
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9493.836     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .34E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        23.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66558        1.9198        .13349E-03   -.53892    
   3  Normalizat    1.2840        1.0830        .23456E-04   -.84046    
   4  Prefactor     1.0897        1.1555       -.74194E-05   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.39633e-13
Minuit parameter uncertainties:
  1  2.99606e-05
  2  1.4818
  3  1.10307
  4  1.18376
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) = 9493.83644749
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  2.996e-05  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.434e+00  1.482e+00  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.090e+00  1.184e+00  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.284e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 246.942 2.858

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/36578214/cmap_HighResolution_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2026-08-31 15:45:40.794979', job_id='36578214', GAL2='1.09', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1788216340.8', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='2200' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 31 15:45:40 PDT 2026

vclsmin=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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits.....................!
real 38.30
user 36.27
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits', '/lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits', expMap='/lscratch/kocevski/36578319/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits', expCube='/lscratch/kocevski/36578319/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36578319/Model_4FGL_J1627.7+0251_daily_bin2200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1627.7+0251'

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.087e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36578319/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits
Spacecraft file(s): /lscratch/kocevski/36578319/ft2_4FGL_J1627.7+0251_daily_bin2200.fits
Exposure map: /lscratch/kocevski/36578319/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
Exposure cube: /lscratch/kocevski/36578319/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36578319/Model_4FGL_J1627.7+0251_daily_bin2200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9495.39897621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9494.06612207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2955       1.0000          .0000       .10000E+07
     2 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     3 'norm      '    .37076E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    10.951       1.0000          .0000       .10000E+07
     5 'norm      '    4.4019       1.0000          .0000       .10000E+07
     6 'norm      '    116.62       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15422E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.210       1.0000          .0000       .10000E+07
     9 'Prefactor '    .52985E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .37061E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27534E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.4724       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.8764       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.0666       1.0000          .0000       .10000E+07
    15 'Prefactor '    .49738E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.470       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9493.836     FROM MIGRAD    STATUS=CONVERGED    211 CALLS      899 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9232        11.666       -.82632E-06   -.10107E-01
   2  Prefactor      .0000        1.9776        .47688E-08** at limit **
   3  norm           .0000        1.3124       -.25351E-07** at limit **
   4  Prefactor     12.365        27.683       -.51094E-06   -.24322E-01
   5  norm          4.4099        2.1589        .14325E-07    .11971E-02
   6  norm          117.25        22.145        .29125E-06    .43554E-01
   7  Prefactor      .0000        28.392        .20758E-06** at limit **
   8  Prefactor     40.964        33.552       -.15948E-06   -.27969E-01
   9  Prefactor      .0000        4.6268        .36258E-09** at limit **
  10  Prefactor     .30349E-01    501.11       -.53823E-05** at limit **
  11  Prefactor      .0000        33.697       -.18231E-05** at limit **
  12  Prefactor     8.9247        35.477       -.28431E-05    .11203E-01
  13  Prefactor     3.8715        5.5544       -.23758E-07    .14723E-04
  14  Prefactor     5.2257        7.6133        .19399E-07    .28223E-03
  15  Prefactor      .0000        5.9830       -.19086E-07** at limit **
  16  Prefactor     196.46        291.30        .19786E-05    .11585E-03
  17  Normalizat    1.2840        .35559       -.82161E-05    .46678E-04
  18  Prefactor     1.0897        .10196        .30432E-05    .12100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92319
  Prefactor  = 0
  norm       = 0
  Prefactor  = 12.3653
  norm       = 4.40987
  norm       = 117.247
  Prefactor  = 0
  Prefactor  = 40.9642
  Prefactor  = 0
  Prefactor  = 0.030349
  Prefactor  = 0
  Prefactor  = 8.92469
  Prefactor  = 3.87145
  Prefactor  = 5.22573
  Prefactor  = 0
  Prefactor  = 196.455
  Normalizat = 1.28399
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********

 FCN=   9493.836     FROM HESSE     STATUS=OK           292 CALLS     1191 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9232        52.278        .55747E-03   -1.5668    
   2  Prefactor      .0000        2.0123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.3186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.365        39.329        .30250E-03   -1.5638    
   5  norm          4.4099        2.1569        .47978E-03   -1.5666    
   6  norm          117.25        27.685        .92605E-04   -1.5491    
   7  Prefactor      .0000        28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.964        36.961        .15579E-03   -1.5580    
   9  Prefactor      .0000        4.7139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30349E-01    7.3912        .69833E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        33.160        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9247        40.552        .39425E-03   -1.5648    
  13  Prefactor     3.8715        5.5852        .51227E-03   -1.5669    
  14  Prefactor     5.2257        7.6349        .44647E-03   -1.5662    
  15  Prefactor      .0000        6.0903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     196.46        291.57        .28341E-03   -1.5428    
  17  Normalizat    1.2840        .32248        .11665       -.84046    
  18  Prefactor     1.0897        .89858E-01    .37583E-01   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54914e-07
Minuit parameter uncertainties:
  1  28.6428
  2  1.65574e-06
  3  4.71484e-07
  4  39.3303
  5  2.15694
  6  27.6854
  7  4.45782e-05
  8  36.9611
  9  5.94622e-06
  10  0.947242
  11  6.02969e-05
  12  38.0485
  13  5.58526
  14  7.6349
  15  4.23712e-06
  16  291.587
  17  0.322984
  18  0.0898706
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  4.458e-05  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.090e+00  8.987e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.284e+00  3.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 8.04579040145e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00612437550151 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36578319/likelihoodResults_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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) = 9493.85307905
delta logL = -0.0166315573515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9493.83644776
delta logL = -2.68724761554e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9493.836     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      226 TOTAL
                     EDM=   .34E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        23.214        .42118E-03** at limit **
   2  Index         2.4340        1.4525        .13349E-03     .0000    
   3  Normalizat    1.2840        1.0830        .23456E-04    .30782E-05
   4  Prefactor     1.0897        1.1555       -.74194E-05   -.21143E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.43397
  Normalizat = 1.28399
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9493.836     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .34E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        23.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66558        1.9198        .13349E-03   -.53892    
   3  Normalizat    1.2840        1.0830        .23456E-04   -.84046    
   4  Prefactor     1.0897        1.1555       -.74194E-05   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.39633e-13
Minuit parameter uncertainties:
  1  2.99606e-05
  2  1.4818
  3  1.10307
  4  1.18376
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) = 9493.83644749
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  2.996e-05  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.434e+00  1.482e+00  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.090e+00  1.184e+00  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.284e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 246.942 2.858

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/36578319/cmap_HighResolution_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2026-08-31 15:48:09.391834', job_id='36578319', GAL2='1.09', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1788216489.39', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='2200' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 31 15:48:09 PDT 2026

E_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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/36577774/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits.....................!
real 144.61
user 139.48
sys 2.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36577774/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits', '/lscratch/kocevski/36577774/ft2_4FGL_J1627.7+0251_daily_bin2200.fits', expMap='/lscratch/kocevski/36577774/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits', expCube='/lscratch/kocevski/36577774/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36577774/Model_4FGL_J1627.7+0251_daily_bin2200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1627.7+0251'

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.087e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36577774/ft1_filtered_4FGL_J1627.7+0251_daily_bin2200.fits
Spacecraft file(s): /lscratch/kocevski/36577774/ft2_4FGL_J1627.7+0251_daily_bin2200.fits
Exposure map: /lscratch/kocevski/36577774/expmap_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
Exposure cube: /lscratch/kocevski/36577774/ltcube_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36577774/Model_4FGL_J1627.7+0251_daily_bin2200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9495.39897621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9494.06612207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2955       1.0000          .0000       .10000E+07
     2 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     3 'norm      '    .37076E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    10.951       1.0000          .0000       .10000E+07
     5 'norm      '    4.4019       1.0000          .0000       .10000E+07
     6 'norm      '    116.62       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15422E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.210       1.0000          .0000       .10000E+07
     9 'Prefactor '    .52985E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .37061E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27534E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.4724       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.8764       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.0666       1.0000          .0000       .10000E+07
    15 'Prefactor '    .49738E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.470       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9493.836     FROM MIGRAD    STATUS=CONVERGED    211 CALLS      899 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9232        11.666       -.82632E-06   -.10107E-01
   2  Prefactor      .0000        1.9776        .47688E-08** at limit **
   3  norm           .0000        1.3124       -.25351E-07** at limit **
   4  Prefactor     12.365        27.683       -.51094E-06   -.24322E-01
   5  norm          4.4099        2.1589        .14325E-07    .11971E-02
   6  norm          117.25        22.145        .29125E-06    .43554E-01
   7  Prefactor      .0000        28.392        .20758E-06** at limit **
   8  Prefactor     40.964        33.552       -.15948E-06   -.27969E-01
   9  Prefactor      .0000        4.6268        .36258E-09** at limit **
  10  Prefactor     .30349E-01    501.11       -.53823E-05** at limit **
  11  Prefactor      .0000        33.697       -.18231E-05** at limit **
  12  Prefactor     8.9247        35.477       -.28431E-05    .11203E-01
  13  Prefactor     3.8715        5.5544       -.23758E-07    .14723E-04
  14  Prefactor     5.2257        7.6133        .19399E-07    .28223E-03
  15  Prefactor      .0000        5.9830       -.19086E-07** at limit **
  16  Prefactor     196.46        291.30        .19786E-05    .11585E-03
  17  Normalizat    1.2840        .35559       -.82161E-05    .46678E-04
  18  Prefactor     1.0897        .10196        .30432E-05    .12100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92319
  Prefactor  = 0
  norm       = 0
  Prefactor  = 12.3653
  norm       = 4.40987
  norm       = 117.247
  Prefactor  = 0
  Prefactor  = 40.9642
  Prefactor  = 0
  Prefactor  = 0.030349
  Prefactor  = 0
  Prefactor  = 8.92469
  Prefactor  = 3.87145
  Prefactor  = 5.22573
  Prefactor  = 0
  Prefactor  = 196.455
  Normalizat = 1.28399
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********

 FCN=   9493.836     FROM HESSE     STATUS=OK           292 CALLS     1191 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9232        52.278        .55747E-03   -1.5668    
   2  Prefactor      .0000        2.0123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.3186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.365        39.329        .30250E-03   -1.5638    
   5  norm          4.4099        2.1569        .47978E-03   -1.5666    
   6  norm          117.25        27.685        .92605E-04   -1.5491    
   7  Prefactor      .0000        28.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.964        36.961        .15579E-03   -1.5580    
   9  Prefactor      .0000        4.7139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30349E-01    7.3912        .69833E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        33.160        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9247        40.552        .39425E-03   -1.5648    
  13  Prefactor     3.8715        5.5852        .51227E-03   -1.5669    
  14  Prefactor     5.2257        7.6349        .44647E-03   -1.5662    
  15  Prefactor      .0000        6.0903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     196.46        291.57        .28341E-03   -1.5428    
  17  Normalizat    1.2840        .32248        .11665       -.84046    
  18  Prefactor     1.0897        .89858E-01    .37583E-01   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54914e-07
Minuit parameter uncertainties:
  1  28.6428
  2  1.65574e-06
  3  4.71484e-07
  4  39.3303
  5  2.15694
  6  27.6854
  7  4.45782e-05
  8  36.9611
  9  5.94622e-06
  10  0.947242
  11  6.02969e-05
  12  38.0485
  13  5.58526
  14  7.6349
  15  4.23712e-06
  16  291.587
  17  0.322984
  18  0.0898706
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  4.458e-05  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.090e+00  8.987e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.284e+00  3.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 8.04579040145e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00612437550151 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36577774/likelihoodResults_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.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) = 9493.85307905
delta logL = -0.0166315573515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9493.83644776
delta logL = -2.68724761554e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9493.836     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      226 TOTAL
                     EDM=   .34E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        23.214        .42118E-03** at limit **
   2  Index         2.4340        1.4525        .13349E-03     .0000    
   3  Normalizat    1.2840        1.0830        .23456E-04    .30782E-05
   4  Prefactor     1.0897        1.1555       -.74194E-05   -.21143E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.43397
  Normalizat = 1.28399
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9493.836     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .34E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        23.214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66558        1.9198        .13349E-03   -.53892    
   3  Normalizat    1.2840        1.0830        .23456E-04   -.84046    
   4  Prefactor     1.0897        1.1555       -.74194E-05   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.39633e-13
Minuit parameter uncertainties:
  1  2.99606e-05
  2  1.4818
  3  1.10307
  4  1.18376
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) = 9493.83644749
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  0.000e+00  2.996e-05  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.434e+00  1.482e+00  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.090e+00  1.184e+00  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.284e+00  1.103e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 246.942 2.858

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/36577774/cmap_HighResolution_809568001_809827201_4FGL_J1627.7+0251_daily_bin2200.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2026-08-31 15:53:29.977744', job_id='36577774', GAL2='1.09', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1788216809.98', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='2200' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 31 15:53:30 PDT 2026

