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


Performing analysis on: 4FGL_J1627.7+0251_weekly_bin855
RA = 246.942, Dec = 2.8584
tmin = 756086401, tmax = 756691201
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='60730008', job_status='RUN', time_executed='2024-12-24 03:55:59.103242', time_epoch_executed='1735041359.1' WHERE source_name='4FGL J1627.7+0251' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60730008

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60730008/ft1_4FGL_J1627.7+0251_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60730008/ft1_4FGL_J1627.7+0251_weekly_bin855.fits outfile=/lscratch/kocevski/60730008/ft1_filteredMKT_4FGL_J1627.7+0251_weekly_bin855.fits ra=246.942 dec=2.8584 rad=12.0 tmin=756086401.0 tmax=756691201.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.09
user 2.61
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.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/60730008/ft1_filteredMKT_4FGL_J1627.7+0251_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.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.50
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1323

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60730008/ltcube_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.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/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits
.....................!
real 12.58
user 11.92
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60730008/ltcube_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.fits outfile=/lscratch/kocevski/60730008/expmap_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.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/60730008/ltcube_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.fits
.....................!
real 70.79
user 65.16
sys 4.20

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/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.fits scfile=/lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits outfile=/lscratch/kocevski/60730008/cmap_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.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.57
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.fits scfile=/lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits outfile=/lscratch/kocevski/60730008/cmap_HighResolution_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.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.77
user 0.27
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60730008/Model_4FGL_J1627.7+0251_weekly_bin855.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.fits.....................!
real 45.14
user 43.65
sys 0.86

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.fits', '/lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits', expMap='/lscratch/kocevski/60730008/expmap_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.fits', expCube='/lscratch/kocevski/60730008/ltcube_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60730008/Model_4FGL_J1627.7+0251_weekly_bin855.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/60730008/ft1_filtered_4FGL_J1627.7+0251_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60730008/ft2_4FGL_J1627.7+0251_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60730008/expmap_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60730008/ltcube_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60730008/Model_4FGL_J1627.7+0251_weekly_bin855.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) = 13910.6785251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6203       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.9774       1.0000          .0000       .10000E+07
     3 'norm      '    .77469E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .82933E-04   1.0000          .0000       .10000E+07
     5 'norm      '    15.317       1.0000          .0000       .10000E+07
     6 'norm      '    71.431       1.0000          .0000       .10000E+07
     7 'Prefactor '    53.421       1.0000          .0000       .10000E+07
     8 'Prefactor '    .44953E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10045       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.9489       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.9321       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20800E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .75961E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.8713       1.0000          .0000       .10000E+07
    15 'Prefactor '    .15238E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    178.10       1.0000          .0000       .10000E+07
    17 'Normalizat'    .85077       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0489       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=   13910.68     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1448 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6409        27.457       -.80772E-06    .59370E-04
   2  Prefactor     3.9748        3.2075        .61259E-07   -.27141E-03
   3  norm           .0000        6.1023       -.32333E-06** at limit **
   4  Prefactor      .0000        142.94        .29620E-05** at limit **
   5  norm          15.317        2.7008       -.11465E-08    .15870E-03
   6  norm          71.431        17.194        .19137E-07    .26835E-04
   7  Prefactor     52.618        59.871        .28610E-06    .17052E-04
   8  Prefactor      .0000        8.8877       -.24313E-08** at limit **
   9  Prefactor      .0000        62.481        .15351E-05** at limit **
  10  Prefactor     9.9560        7.7472        .40506E-07    .35166E-03
  11  Prefactor     6.9524        11.656        .20141E-06   -.10956E-04
  12  Prefactor      .0000        12.206       -.82547E-06** at limit **
  13  Prefactor      .0000        2.7724       -.21262E-06** at limit **
  14  Prefactor     1.8738        4.1841       -.28487E-06   -.77772E-04
  15  Prefactor      .0000        4.4313       -.61774E-06** at limit **
  16  Prefactor     180.83        175.64       -.31523E-06   -.96015E-05
  17  Normalizat    .85157        .25552        .15019E-05   -.18940E-05
  18  Prefactor     1.0487        .75455E-01   -.75693E-06   -.10023E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64086
  Prefactor  = 3.9748
  norm       = 0
  Prefactor  = 0
  norm       = 15.3166
  norm       = 71.4315
  Prefactor  = 52.6183
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.95597
  Prefactor  = 6.95238
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.87381
  Prefactor  = 0
  Prefactor  = 180.826
  Normalizat = 0.851567
  Prefactor  = 1.04872
 **********
 **   18 **HESSE 
 **********

 FCN=   13910.68     FROM HESSE     STATUS=OK           290 CALLS     1738 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6409        27.687        .53076E-03   -1.5670    
   2  Prefactor     3.9748        3.2175        .50550E-03   -1.5668    
   3  norm           .0000        5.9292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        142.84        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.317        2.7019        .25566E-03   -1.5630    
   6  norm          71.431        17.163        .11833E-03   -1.5539    
   7  Prefactor     52.618        59.776        .13683E-03   -1.5563    
   8  Prefactor      .0000        8.9138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        4.0768        .75747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9560        7.9925        .31744E-03   -1.5645    
  11  Prefactor     6.9524        11.619        .38081E-03   -1.5655    
  12  Prefactor      .0000        12.240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.7669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8738        4.2175        .76105E-03   -1.5681    
  15  Prefactor      .0000        4.4274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     180.83        175.17        .74939E-04   -1.5439    
  17  Normalizat    .85157        .23333        .11942       -.98183    
  18  Prefactor     1.0487        .67648E-01    .39973E-01   -.91123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25786e-06
Minuit parameter uncertainties:
  1  20.0805
  2  3.2175
  3  4.56786e-06
  4  5.0472e-05
  5  2.70189
  6  17.1633
  7  59.7765
  8  1.0953e-06
  9  8.91294e-06
  10  7.99249
  11  11.6194
  12  1.28815e-05
  13  1.68401e-06
  14  4.21753
  15  8.5896e-06
  16  175.171
  17  0.233604
  18  0.0676532
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  5.262e+01  5.978e+01  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.049e+00  6.765e-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:  8.516e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 246.942 2.858
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.90e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.51e-05

TS (Fixed Index): 1.06
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 1.034855146e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00787721427923 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60730008/likelihoodResults_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.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) = 13910.6174659
delta logL = 0.0598870949525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13910.615099
delta logL = 0.0622539721189

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13910.62     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      319 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.236        85.267        .65518E-05    .11452E-03
   2  Index         2.4682        1.1117        .93966E-02    .45602E-04
   3  Normalizat    .83939        .24478        .53325E-03    .57478E-04
   4  Prefactor     1.0508        .74078E-01    .14682E-03   -.22424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2361
  Index      = 2.46821
  Normalizat = 0.839392
  Prefactor  = 1.05078
 **********
 **   18 **HESSE 
 **********

 FCN=   13910.62     FROM HESSE     STATUS=OK            25 CALLS      344 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.236        64.389        .26207E-06   -1.5586    
   2  Index         2.4682        .84232        .37587E-03   -.53096    
   3  Normalizat    .83939        .24360        .21330E-04   -.98624    
   4  Prefactor     1.0508        .73872E-01    .58729E-05   -.91056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.92047e-11
Minuit parameter uncertainties:
  1  64.3905
  2  0.847769
  3  0.243923
  4  0.0738796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13910.6150936
delta logL = 0.062259391354

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  3.724e+01  6.439e+01  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  2.468e+00  8.478e-01  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.051e+00  7.388e-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:  8.394e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 246.942 2.858
Photon Index (Free Index): 2.47 +/- 0.85
Photon Flux (Free Index): 3.81e-08 +/- 4.60e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.31e-05

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/60730008/cmap_HighResolution_756086401_756691201_4FGL_J1627.7+0251_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', comment='SUCCESS', photon_flux='2.90e-08', energy_flux2='1.15e-05', photon_flux_error='3.29e-08', dlogl='6.23e-02', energy_flux='1.33e-05', photon_flux2='3.81e-08', job_status='DONE', time_completed='2024-12-24 04:02:36.460435', photon_index_error2='0.85', photon_index2='2.47', ts='1.06', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.31e-05', EG='0.85', time_epoch_completed='1735041756.46', return_code='0', job_id='60730008', GAL2='1.05', EG2='0.84', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='4.60e-08', ts2='1.19', photon_index='2.19' WHERE bin_id='855' AND source_name='4FGL J1627.7+0251' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 04:02:36 PST 2024

