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


Performing analysis on: 4FGL_J1628.6+7706_weekly_bin805
RA = 247.154, Dec = 77.1099
tmin = 725846401, tmax = 726451201
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='38429737', job_status='RUN', time_executed='2024-01-18 20:45:50.410679', time_epoch_executed='1705639550.41' WHERE source_name='4FGL J1628.6+7706' and cadence='weekly' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38429737

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

Retrieving the FT1 file...

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

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

Retrieving 103 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38429737/ft1_4FGL_J1628.6+7706_weekly_bin805.fits


Retrieving the FT1 file...

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

Retrieving 103 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38429737/ft1_4FGL_J1628.6+7706_weekly_bin805.fits outfile=/lscratch/kocevski/38429737/ft1_filteredMKT_4FGL_J1628.6+7706_weekly_bin805.fits ra=247.154 dec=77.1099 rad=12.0 tmin=725846401.0 tmax=726451201.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.52
user 3.25
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.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/38429737/ft1_filteredMKT_4FGL_J1628.6+7706_weekly_bin805.fits evtable="EVENTS" outfile="/lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.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.40
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 2712

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38429737/ltcube_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.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/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits
.....................!
real 18.31
user 17.95
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.fits evtable="EVENTS" scfile=/lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38429737/ltcube_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.fits outfile=/lscratch/kocevski/38429737/expmap_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.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/38429737/ltcube_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.fits
.....................!
real 68.72
user 64.58
sys 3.86

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
Added 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1628.6+7706 @ 247.154 77.1099

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.fits scfile=/lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits outfile=/lscratch/kocevski/38429737/cmap_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.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=247.154 yref=77.1099 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.40
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.fits scfile=/lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits outfile=/lscratch/kocevski/38429737/cmap_HighResolution_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.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=247.154 yref=77.1099 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.41
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.fits evtable="EVENTS" scfile=/lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38429737/Model_4FGL_J1628.6+7706_weekly_bin805.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 GAL_V02
Working on...
/lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.fits.....................!
real 110.46
user 109.39
sys 0.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.fits', '/lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits', expMap='/lscratch/kocevski/38429737/expmap_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.fits', expCube='/lscratch/kocevski/38429737/ltcube_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38429737/Model_4FGL_J1628.6+7706_weekly_bin805.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1628.6+7706'

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  7.623e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        alpha:  1.958e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  9.152e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38429737/ft1_filtered_4FGL_J1628.6+7706_weekly_bin805.fits
Spacecraft file(s): /lscratch/kocevski/38429737/ft2_4FGL_J1628.6+7706_weekly_bin805.fits
Exposure map: /lscratch/kocevski/38429737/expmap_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.fits
Exposure cube: /lscratch/kocevski/38429737/ltcube_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38429737/Model_4FGL_J1628.6+7706_weekly_bin805.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) = 28970.4806074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37692E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .23800E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.2227       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.4045       1.0000          .0000       .10000E+07
     5 'Prefactor '    .21382E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .93018E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.8221       1.0000          .0000       .10000E+07
     8 'Prefactor '    39.398       1.0000          .0000       .10000E+07
     9 'norm      '    7.1352       1.0000          .0000       .10000E+07
    10 'Prefactor '    19.646       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18768E-01   1.0000          .0000       .10000E+07
    12 'norm      '    1.0149       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.3495       1.0000          .0000       .10000E+07
    14 'Prefactor '    .84377E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.4735       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.8760       1.0000          .0000       .10000E+07
    17 'Prefactor '    .91655E-03   1.0000          .0000       .10000E+07
    18 'norm      '    3.4132       1.0000          .0000       .10000E+07
    19 'norm      '    1.5144       1.0000          .0000       .10000E+07
    20 'norm      '    2.1076       1.0000          .0000       .10000E+07
    21 'Prefactor '    9.3627       1.0000          .0000       .10000E+07
    22 'norm      '    1.8378       1.0000          .0000       .10000E+07
    23 'Normalizat'    .89717       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28970.48     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     2103 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    .79543       -.95022E-08** at limit **
   2  Prefactor     .19523E-06    13.569        .75183E-06** at limit **
   3  Prefactor     5.2117        2.3443       -.18872E-06   -.18234E-01
   4  Prefactor     7.3957        9.5786       -.10956E-05   -.18405E-01
   5  Prefactor     .17930E-07    9.1839       -.44025E-06** at limit **
   6  Prefactor     .91482E-07    16.294       -.33476E-06** at limit **
   7  Prefactor     7.8201        1.1356        .54655E-07   -.41845E-02
   8  Prefactor     39.370        8.8470       -.45608E-06    .12327    
   9  norm          7.1035        8.0830        .32125E-06    .31498E-02
  10  Prefactor     19.652        1.1338       -.36952E-07    .55670E-02
  11  Prefactor     .61062E-09    24.215       -.81487E-06** at limit **
  12  norm          1.0152        .43489       -.15236E-07   -.65117E-01
  13  Prefactor     6.3276        4.4702       -.84654E-08   -.40159E-02
  14  Prefactor      .0000        1.0302        .13074E-07** at limit **
  15  Prefactor     2.4923        5.7945       -.20325E-06   -.36612E-02
  16  Prefactor     3.8771        8.1454       -.53432E-06   -.63505E-02
  17  Prefactor     .61062E-09    7.5358        .12705E-06** at limit **
  18  norm          3.4128        1.2817        .95319E-08    .29692E-01
  19  norm          1.5144        .37463       -.11690E-07   -.90635E-01
  20  norm          2.0979        2.8274        .25387E-06    .36841E-02
  21  Prefactor     9.3978        5.5640       -.47204E-06   -.16881E-01
  22  norm          1.8379        1.4104       -.12724E-07   -.19000E-02
  23  Normalizat    .89727        .10292        .27452E-05   -.69760E-03
  24  Prefactor     1.0504        .68260E-01   -.36638E-06   -.60846E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  Prefactor  = 1.95233e-07
  Prefactor  = 5.2117
  Prefactor  = 7.39567
  Prefactor  = 1.79301e-08
  Prefactor  = 9.14824e-08
  Prefactor  = 7.8201
  Prefactor  = 39.3695
  norm       = 7.10352
  Prefactor  = 19.6522
  Prefactor  = 6.10623e-10
  norm       = 1.01517
  Prefactor  = 6.32759
  Prefactor  = 0
  Prefactor  = 2.49232
  Prefactor  = 3.87713
  Prefactor  = 6.10623e-10
  norm       = 3.41282
  norm       = 1.51444
  norm       = 2.09789
  Prefactor  = 9.39778
  norm       = 1.83789
  Normalizat = 0.897268
  Prefactor  = 1.05036
 **********
 **   18 **HESSE 
 **********

 FCN=   28970.48     FROM HESSE     STATUS=OK           461 CALLS     2564 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    .78910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .19523E-06    13.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2117        7.3200        .43961E-03   -1.5662    
   4  Prefactor     7.3957        9.8086        .36834E-03   -1.5654    
   5  Prefactor     .17930E-07    9.2195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .91482E-07    16.529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8201        17.083        .35829E-03   -1.5652    
   8  Prefactor     39.370        36.327        .15933E-03   -1.5582    
   9  norm          7.1035        8.1292        .37529E-03   -1.5655    
  10  Prefactor     19.652        32.495        .22569E-03   -1.5619    
  11  Prefactor     .61062E-09    6.0281        .17119E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0152        .46006        .44291E-03   -1.5688    
  13  Prefactor     6.3276        4.5017        .39810E-03   -1.5658    
  14  Prefactor      .0000        .32797        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4923        5.8955        .64985E-03   -1.5676    
  16  Prefactor     3.8771        8.4500        .51229E-03   -1.5669    
  17  Prefactor     .61062E-09    7.5481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4128        1.2973        .54731E-03   -1.5671    
  19  norm          1.5144        .37872        .86848E-03   -1.5683    
  20  norm          2.0979        2.9585        .71042E-03   -1.5679    
  21  Prefactor     9.3978        5.7982        .32728E-03   -1.5647    
  22  norm          1.8379        1.4111        .76927E-03   -1.5681    
  23  Normalizat    .89727        .91208E-01    .67132E-01   -.96556    
  24  Prefactor     1.0504        .59609E-01    .39887E-01   -.91069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60705e-07
Minuit parameter uncertainties:
  1  1.71596e-05
  2  0.00328982
  3  7.32006
  4  9.80862
  5  0.000813447
  6  0.0024592
  7  17.0836
  8  36.3272
  9  8.12925
  10  32.4954
  11  0.00011946
  12  0.460064
  13  4.50169
  14  4.13514e-08
  15  5.89548
  16  8.45001
  17  0.000135571
  18  1.29733
  19  0.378718
  20  2.95852
  21  5.79822
  22  1.41106
  23  0.0912236
  24  0.0596125
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  7.104e+00  8.129e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        alpha:  1.958e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  9.152e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.050e+00  5.961e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.973e-01  9.122e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 247.154 77.110
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 7.10e-09 +/- 8.13e-09
Energy Flux (Fixed Index): 4.87e-06 +/- 5.57e-06

TS (Fixed Index): 1.10
Ra Dec: 247.154 77.110
Photon Flux Upper Limit: 2.60188692458e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.78359623028e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38429737/likelihoodResults_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.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): 102
logL (Free Index) = 28970.4717409
delta logL = 0.00872751556017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28970.3661858
delta logL = 0.114282635637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17390       1.0000          .0000       .10000E+07
     2 'alpha     '    4.5773       1.0000          .0000       5.0000    
     3 'Normalizat'    .86571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   28970.37     FROM MIGRAD    STATUS=FAILED       105 CALLS      342 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17087        6.5219        .59776E-05** at limit **
   2  alpha         4.5863        3.5153        .64621E-01    .58292E-04
   3  Normalizat    .86563        .65241E-01    .30192E-03    .71844E-04
   4  Prefactor     1.0660        .44421E-01    .18881E-03    .20472E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   28970.37     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      420 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17087        6.5219        .82185E-05** at limit **
   2  alpha         4.5863        3.5153        .72526E-02    .58292E-04
   3  Normalizat    .86563        .65241E-01    .12313E-03    .71844E-04
   4  Prefactor     1.0660        .44421E-01    .54526E-04    .20472E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28970.37     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      450 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17084        6.9327        .23910E-06** at limit **
   2  alpha         4.5864        3.3784        .25849E-02    .82686E-05
   3  Normalizat    .86563        .99905E-01    .12077E-04   -.31630E-04
   4  Prefactor     1.0660        .67713E-01    .75523E-05   -.13969E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.170836
  alpha      = 4.58637
  Normalizat = 0.865632
  Prefactor  = 1.06605
 **********
 **   18 **HESSE 
 **********

 FCN=   28970.37     FROM HESSE     STATUS=OK            23 CALLS      473 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17084        9.0794        .37431E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5864        2.6937        .10339E-03    .98731    
   3  Normalizat    .86563        .10286        .24154E-05   -.97679    
   4  Prefactor     1.0660        .69867E-01    .15105E-05   -.90559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89478e-11
Minuit parameter uncertainties:
  1  2.49086
  2  6.71606
  3  0.102887
  4  0.069873
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) = 28970.3661815
delta logL = 0.114286960848

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.708e-01  2.491e+00  0.000e+00  1.000e+06 ( 1.000e-13)
378        alpha:  4.586e+00  6.716e+00  0.000e+00  5.000e+00 ( 1.000e+00)
379         beta:  9.152e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.066e+00  6.987e-02  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.656e-01  1.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 247.154 77.110
Photon Index (Free Index): 4.59 +/- 6.72
Photon Flux (Free Index): 2.51e-08 +/- 2.34e-08
Energy Flux (Free Index): 3.61e-06 +/- 4.73e-06

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/38429737/cmap_HighResolution_725846401_726451201_4FGL_J1628.6+7706_weekly_bin805.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-05', comment='SUCCESS', photon_flux='7.10e-09', energy_flux2='3.61e-06', photon_flux_error='8.13e-09', dlogl='1.14e-01', energy_flux='4.87e-06', photon_flux2='2.51e-08', job_status='DONE', time_completed='2024-01-18 21:01:35.458936', photon_index_error2='6.72', photon_index2='4.59', ts='1.10', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.60e-08', energy_flux_error2='4.73e-06', EG='0.90', time_epoch_completed='1705640495.46', return_code='0', job_id='38429737', GAL2='1.07', EG2='0.87', return_code2='0', energy_flux_error='5.57e-06', photon_flux_error2='2.34e-08', ts2='1.43', photon_index='1.96' WHERE bin_id='805' AND source_name='4FGL J1628.6+7706' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jan 18 21:01:35 PST 2024

