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


Performing analysis on: 4FGL_J1627.7+0251_weekly_bin853
RA = 246.942, Dec = 2.8584
tmin = 754876801, tmax = 755481601
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='59978224', job_status='RUN', time_executed='2024-12-10 00:56:17.528753', time_epoch_executed='1733820977.53' WHERE source_name='4FGL J1627.7+0251' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978224

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978224/ft1_4FGL_J1627.7+0251_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978224/ft2_4FGL_J1627.7+0251_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978224/ft1_4FGL_J1627.7+0251_weekly_bin853.fits outfile=/lscratch/kocevski/59978224/ft1_filteredMKT_4FGL_J1627.7+0251_weekly_bin853.fits ra=246.942 dec=2.8584 rad=12.0 tmin=754876801.0 tmax=755481601.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.62
user 3.24
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978224/ft2_4FGL_J1627.7+0251_weekly_bin853.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/59978224/ft1_filteredMKT_4FGL_J1627.7+0251_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978224/ft1_filtered_4FGL_J1627.7+0251_weekly_bin853.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.44
user 0.23
sys 0.15

Number of photons that the gtmktime cut: 2167

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978224/ft1_filtered_4FGL_J1627.7+0251_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978224/ft2_4FGL_J1627.7+0251_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978224/ltcube_754876801_755481601_4FGL_J1627.7+0251_weekly_bin853.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/59978224/ft2_4FGL_J1627.7+0251_weekly_bin853.fits
.....................!
real 20.52
user 19.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978224/ft1_filtered_4FGL_J1627.7+0251_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978224/ft2_4FGL_J1627.7+0251_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978224/ltcube_754876801_755481601_4FGL_J1627.7+0251_weekly_bin853.fits outfile=/lscratch/kocevski/59978224/expmap_754876801_755481601_4FGL_J1627.7+0251_weekly_bin853.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/59978224/ltcube_754876801_755481601_4FGL_J1627.7+0251_weekly_bin853.fits
.....................!
real 73.13
user 68.33
sys 4.27

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/59978224/ft1_filtered_4FGL_J1627.7+0251_weekly_bin853.fits scfile=/lscratch/kocevski/59978224/ft2_4FGL_J1627.7+0251_weekly_bin853.fits outfile=/lscratch/kocevski/59978224/cmap_754876801_755481601_4FGL_J1627.7+0251_weekly_bin853.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.46
user 0.27
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978224/ft1_filtered_4FGL_J1627.7+0251_weekly_bin853.fits scfile=/lscratch/kocevski/59978224/ft2_4FGL_J1627.7+0251_weekly_bin853.fits outfile=/lscratch/kocevski/59978224/cmap_HighResolution_754876801_755481601_4FGL_J1627.7+0251_weekly_bin853.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.44
user 0.25
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978224/ft1_filtered_4FGL_J1627.7+0251_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978224/ft2_4FGL_J1627.7+0251_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978224/Model_4FGL_J1627.7+0251_weekly_bin853.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/59978224/ft1_filtered_4FGL_J1627.7+0251_weekly_bin853.fits.....................!
real 79.03
user 77.62
sys 0.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.807       1.0000          .0000       .10000E+07
     2 'Prefactor '    .56635       1.0000          .0000       .10000E+07
     3 'norm      '    .26407E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10173E-04   1.0000          .0000       .10000E+07
     5 'norm      '    5.4475       1.0000          .0000       .10000E+07
     6 'norm      '    57.035       1.0000          .0000       .10000E+07
     7 'Prefactor '    38.851       1.0000          .0000       .10000E+07
     8 'Prefactor '    .19057E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .99920E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .29075       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.6454       1.0000          .0000       .10000E+07
    12 'Prefactor '    77.384       1.0000          .0000       .10000E+07
    13 'Prefactor '    .88263E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14468E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .35876E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    45.953       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.5610       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96722       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=   24093.37     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1605 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.804        2.5880        .15495E-06   -.22204E-02
   2  Prefactor     .56450        2.1271       -.16491E-06    .12331E-02
   3  norm          .27756E-09    2.8467        .39011E-07** at limit **
   4  Prefactor     .98810E-08    9.5508       -.11031E-05** at limit **
   5  norm          5.4473        1.2344        .60133E-07   -.76637E-02
   6  norm          57.024        12.365       -.39756E-06   -.17049    
   7  Prefactor     38.893        1.8690       -.62345E-07    .70568E-01
   8  Prefactor     .16870E-05    24.144       -.58149E-06** at limit **
   9  Prefactor     .72164E-09    2.5903       -.13269E-06** at limit **
  10  Prefactor     .27271        8.6662        .22442E-05    .19765E-03
  11  Prefactor     6.6395        3.5239       -.21531E-06    .16694E-01
  12  Prefactor     77.374        2.1712       -.57022E-07    .10876    
  13  Prefactor     .10270E-07    5.7113       -.68724E-06** at limit **
  14  Prefactor     .62237E-05    13.011       -.58475E-07** at limit **
  15  Prefactor     .87911E-05    12.823        .76688E-06** at limit **
  16  Prefactor     45.961        1.0823       -.16239E-07    .24888E-01
  17  Normalizat    1.5613        .20168        .16106E-04   -.85653E-04
  18  Prefactor     .96729        .59609E-01   -.32931E-05   -.11207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8039
  Prefactor  = 0.564496
  norm       = 2.77556e-10
  Prefactor  = 9.88098e-09
  norm       = 5.44726
  norm       = 57.0244
  Prefactor  = 38.8932
  Prefactor  = 1.68704e-06
  Prefactor  = 7.21645e-10
  Prefactor  = 0.272711
  Prefactor  = 6.63955
  Prefactor  = 77.3739
  Prefactor  = 1.02696e-08
  Prefactor  = 6.22374e-06
  Prefactor  = 8.79113e-06
  Prefactor  = 45.9609
  Normalizat = 1.56127
  Prefactor  = 0.967285
 **********
 **   18 **HESSE 
 **********

 FCN=   24093.37     FROM HESSE     STATUS=OK           292 CALLS     1897 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.804        15.471        .26003E-03   -1.5631    
   2  Prefactor     .56450        2.1711        .72297E-03   -1.5693    
   3  norm          .27756E-09    2.7725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98810E-08    9.6295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4473        1.2433        .43029E-03   -1.5661    
   6  norm          57.024        13.206        .13242E-03   -1.5557    
   7  Prefactor     38.893        36.895        .16045E-03   -1.5583    
   8  Prefactor     .16870E-05    26.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .72164E-09    2.6431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27271        1.6738        .74923E-02   -1.5698    
  11  Prefactor     6.6395        19.229        .38903E-03   -1.5656    
  12  Prefactor     77.374        48.790        .11368E-03   -1.5532    
  13  Prefactor     .10270E-07    5.6309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .62237E-05    1.9449        .59795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .87911E-05    23.990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.961        101.72        .14753E-03   -1.5572    
  17  Normalizat    1.5613        .17949        .10066       -.76071    
  18  Prefactor     .96729        .52361E-01    .45856E-01   -.93828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16092e-06
Minuit parameter uncertainties:
  1  15.4707
  2  2.17108
  3  5.42786e-05
  4  0.000616308
  5  1.24331
  6  13.2064
  7  36.8957
  8  0.0134908
  9  8.62503e-05
  10  1.35125
  11  19.2294
  12  48.7903
  13  0.000480358
  14  0.00695834
  15  0.0290449
  16  101.719
  17  0.179567
  18  0.0523634
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  3.889e+01  3.690e+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:  9.673e-01  5.236e-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.561e+00  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 246.942 2.858
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 9.85e-06 +/- 9.34e-06

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

Saving results to:
/lscratch/kocevski/59978224/likelihoodResults_754876801_755481601_4FGL_J1627.7+0251_weekly_bin853.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) = 24093.2076067
delta logL = 0.158693368521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24093.2050486
delta logL = 0.161251451373

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.369       1.0000          .0000       .10000E+07
     2 'Index     '    1.5294       1.0000          .0000       10.000    
     3 'Normalizat'    1.5737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96640       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   24093.21     FROM MIGRAD    STATUS=FAILED        84 CALLS      317 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.341        43.471        .32721E-04    .25588E-01
   2  Index         1.5293        1.0146        .11330E-01    .21413E-02
   3  Normalizat    1.5737        .19513        .44450E-03   -.19183E-02
   4  Prefactor     .96640        .59530E-01    .16628E-03   -.46630E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   24093.21     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      385 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.341        43.471        .32109E-04   -1.5586    
   2  Index         1.5293        1.0146        .13806E-02   -.76722    
   3  Normalizat    1.5737        .19513        .19434E-03   -.75727    
   4  Prefactor     .96640        .59530E-01    .57958E-04   -.93858    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24093.21     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      413 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.321        44.155        .65441E-05    .34620E-02
   2  Index         1.5286        1.0303        .45321E-03    .56892E-04
   3  Normalizat    1.5737        .19524        .88901E-04    .95246E-04
   4  Prefactor     .96641        .59567E-01    .33255E-04    .17394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3207
  Index      = 1.52859
  Normalizat = 1.57373
  Prefactor  = 0.966405
 **********
 **   18 **HESSE 
 **********

 FCN=   24093.21     FROM HESSE     STATUS=OK            23 CALLS      436 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.321        44.180        .13088E-05   -1.5586    
   2  Index         1.5286        1.0304        .18129E-04   -.76742    
   3  Normalizat    1.5737        .19527        .17780E-04   -.75727    
   4  Prefactor     .96641        .59575E-01    .66510E-05   -.93858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29235e-09
Minuit parameter uncertainties:
  1  44.1807
  2  1.04506
  3  0.195361
  4  0.0595794
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) = 24093.2050479
delta logL = 0.161252122962

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  3.732e+01  4.418e+01  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  1.529e+00  1.045e+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:  9.664e-01  5.958e-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.574e+00  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.61
Ra Dec: 246.942 2.858
Photon Index (Free Index): 1.53 +/- 1.05
Photon Flux (Free Index): 6.38e-09 +/- 1.37e-08
Energy Flux (Free Index): 1.83e-05 +/- 3.55e-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/59978224/cmap_HighResolution_754876801_755481601_4FGL_J1627.7+0251_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='1.83e-05', photon_flux_error='2.03e-08', dlogl='1.61e-01', energy_flux='9.85e-06', photon_flux2='6.38e-09', job_status='DONE', time_completed='2024-12-10 01:05:59.831579', photon_index_error2='1.05', photon_index2='1.53', ts='3.29', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.52e-08', energy_flux_error2='3.55e-05', EG='1.56', time_epoch_completed='1733821559.83', return_code='0', job_id='59978224', GAL2='0.97', EG2='1.57', return_code2='0', energy_flux_error='9.34e-06', photon_flux_error2='1.37e-08', ts2='3.61', photon_index='2.19' WHERE bin_id='853' AND source_name='4FGL J1627.7+0251' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:05:59 PST 2024

