/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_J1700.0+6830_weekly_bin853
RA = 255.021, Dec = 68.5042
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='59978261', job_status='RUN', time_executed='2024-12-10 00:56:27.050779', time_epoch_executed='1733820987.05' WHERE source_name='4FGL J1700.0+6830' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978261

Creating custom pfile directory:
/lscratch/kocevski/59978261/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/59978261/ft1_4FGL_J1700.0+6830_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/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978261/ft1_4FGL_J1700.0+6830_weekly_bin853.fits outfile=/lscratch/kocevski/59978261/ft1_filteredMKT_4FGL_J1700.0+6830_weekly_bin853.fits ra=255.021 dec=68.5042 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.83
user 3.43
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_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/59978261/ft1_filteredMKT_4FGL_J1700.0+6830_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_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.64
user 0.25
sys 0.15

Number of photons that the gtmktime cut: 3007

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978261/ltcube_754876801_755481601_4FGL_J1700.0+6830_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/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits
.....................!
real 20.92
user 20.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978261/ltcube_754876801_755481601_4FGL_J1700.0+6830_weekly_bin853.fits outfile=/lscratch/kocevski/59978261/expmap_754876801_755481601_4FGL_J1700.0+6830_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/59978261/ltcube_754876801_755481601_4FGL_J1700.0+6830_weekly_bin853.fits
.....................!
real 73.67
user 69.08
sys 4.23

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

Setting source of interest to:
4FGL J1700.0+6830 @ 255.021 68.5042

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_weekly_bin853.fits scfile=/lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits outfile=/lscratch/kocevski/59978261/cmap_754876801_755481601_4FGL_J1700.0+6830_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=255.021 yref=68.5042 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.42
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_weekly_bin853.fits scfile=/lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits outfile=/lscratch/kocevski/59978261/cmap_HighResolution_754876801_755481601_4FGL_J1700.0+6830_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=255.021 yref=68.5042 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.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978261/Model_4FGL_J1700.0+6830_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 GAL_V02
Working on...
/lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_weekly_bin853.fits.....................!
real 113.29
user 111.86
sys 0.71

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_weekly_bin853.fits', '/lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits', expMap='/lscratch/kocevski/59978261/expmap_754876801_755481601_4FGL_J1700.0+6830_weekly_bin853.fits', expCube='/lscratch/kocevski/59978261/ltcube_754876801_755481601_4FGL_J1700.0+6830_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978261/Model_4FGL_J1700.0+6830_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1700.0+6830'

4FGL J1700.0+6830
   Spectrum: LogParabola
358         norm:  1.232e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
359        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
360         beta:  1.037e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.263e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59978261/ft1_filtered_4FGL_J1700.0+6830_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978261/ft2_4FGL_J1700.0+6830_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978261/expmap_754876801_755481601_4FGL_J1700.0+6830_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978261/ltcube_754876801_755481601_4FGL_J1700.0+6830_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978261/Model_4FGL_J1700.0+6830_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) = 31811.5869122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5152       1.0000          .0000       .10000E+07
     2 'Prefactor '    .39917E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    18.843       1.0000          .0000       .10000E+07
     4 'norm      '    2.1207       1.0000          .0000       .10000E+07
     5 'Prefactor '    32.842       1.0000          .0000       .10000E+07
     6 'Prefactor '    38.539       1.0000          .0000       .10000E+07
     7 'norm      '    6.7714       1.0000          .0000       .10000E+07
     8 'Prefactor '    .77148E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.5252       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10297E-01   1.0000          .0000       .10000E+07
    11 'norm      '    12.409       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.5639       1.0000          .0000       .10000E+07
    13 'norm      '    .65650       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.7488       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21670E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    18.149       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.6565       1.0000          .0000       .10000E+07
    18 'Prefactor '    26.538       1.0000          .0000       .10000E+07
    19 'Prefactor '    .90983E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .41377E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .15940E-02   1.0000          .0000       .10000E+07
    22 'norm      '    14.567       1.0000          .0000       .10000E+07
    23 'norm      '    2.6415       1.0000          .0000       .10000E+07
    24 'norm      '    5.1107       1.0000          .0000       .10000E+07
    25 'Prefactor '    10.878       1.0000          .0000       .10000E+07
    26 'Prefactor '    .20231E-02   1.0000          .0000       .10000E+07
    27 'Prefactor '    .14427E-06   1.0000          .0000       .10000E+07
    28 'Prefactor '    .39579E-07   1.0000          .0000       .10000E+07
    29 'Prefactor '    7.1479       1.0000          .0000       .10000E+07
    30 'norm      '    1.3473       1.0000          .0000       .10000E+07
    31 'Normalizat'    1.0309       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   31811.55     FROM MIGRAD    STATUS=CONVERGED    249 CALLS     2555 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5243        11.409       -.52689E-07   -.18824E-04
   2  Prefactor      .0000        125.77        .23246E-06** at limit **
   3  Prefactor     18.832        11.118       -.16741E-07   -.65682E-04
   4  norm          2.1182        1.1889        .11250E-07    .12785E-03
   5  Prefactor     33.496        32.494       -.37454E-06   -.47115E-03
   6  Prefactor     38.536        11.549        .55258E-08   -.15937E-01
   7  norm          6.7262        7.0362       -.15659E-07    .16168E-04
   8  Prefactor     .55511E-10    8.1352        .17076E-06** at limit **
   9  Prefactor     9.5643        3.9651        .31620E-07   -.10682E-03
  10  Prefactor     .34972E-08    391.50       -.19437E-05** at limit **
  11  norm          12.408        3.6581       -.26875E-08    .19123E-03
  12  Prefactor     3.5700        6.9980        .55471E-07    .77045E-04
  13  norm          .65663        .37150       -.31840E-07    .18814E-02
  14  Prefactor     1.7493        2.8743       -.94096E-08   -.44800E-04
  15  Prefactor     .46594E-01    10.658        .32165E-06** at limit **
  16  Prefactor     18.144        7.6459        .81753E-08    .13585E-03
  17  Prefactor     1.6576        1.9946       -.41161E-08    .26846E-03
  18  Prefactor     26.394        13.849       -.15291E-07    .10700E-01
  19  Prefactor      .0000        .62836        .56039E-08** at limit **
  20  Prefactor      .0000        5.8569       -.12183E-06** at limit **
  21  Prefactor     .55511E-10    7.9969        .16677E-06** at limit **
  22  norm          14.567        1.9450       -.23506E-08    .60311E-05
  23  norm          2.6421        .46872        .11850E-08    .35189E-03
  24  norm          5.1118        2.1740       -.78886E-08    .32232E-03
  25  Prefactor     10.883        8.0764       -.21190E-07   -.45569E-04
  26  Prefactor      .0000        12.553       -.38264E-06** at limit **
  27  Prefactor      .0000        .99584       -.30539E-08** at limit **
  28  Prefactor      .0000        2.9043       -.14024E-06** at limit **
  29  Prefactor     6.2613        26.580       -.20538E-06   -.62007E-04
  30  norm          1.3511        1.1050        .93238E-09   -.63948E-03
  31  Normalizat    1.0302        .10644       -.91381E-07    .66310E-04
  32  Prefactor     .95409        .78239E-01   -.13745E-07    .70933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52434
  Prefactor  = 0
  Prefactor  = 18.8324
  norm       = 2.11818
  Prefactor  = 33.4955
  Prefactor  = 38.5364
  norm       = 6.72625
  Prefactor  = 5.55112e-11
  Prefactor  = 9.56429
  Prefactor  = 3.4972e-09
  norm       = 12.4078
  Prefactor  = 3.57004
  norm       = 0.656634
  Prefactor  = 1.7493
  Prefactor  = 0.0465941
  Prefactor  = 18.1443
  Prefactor  = 1.65764
  Prefactor  = 26.3942
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 14.5669
  norm       = 2.64215
  norm       = 5.11183
  Prefactor  = 10.883
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.26134
  norm       = 1.35114
  Normalizat = 1.03021
  Prefactor  = 0.954094
 **********
 **   18 **HESSE 
 **********

 FCN=   31811.55     FROM HESSE     STATUS=OK           745 CALLS     3300 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5243        11.392        .32464E-03   -1.5646    
   2  Prefactor      .0000        124.25        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.832        11.123        .23046E-03   -1.5621    
   4  norm          2.1182        1.2008        .70792E-03   -1.5679    
   5  Prefactor     33.496        32.441        .17452E-03   -1.5592    
   6  Prefactor     38.536        17.730        .16110E-03   -1.5584    
   7  norm          6.7262        7.0356        .38535E-03   -1.5656    
   8  Prefactor     .55511E-10    16.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5643        3.9606        .32446E-03   -1.5646    
  10  Prefactor     .34972E-08    7.3810        .11523E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.408        3.6631        .28411E-03   -1.5638    
  12  Prefactor     3.5700        7.0259        .53511E-03   -1.5670    
  13  norm          .65663        .38833        .64312E-03   -1.5692    
  14  Prefactor     1.7493        2.9048        .79262E-03   -1.5682    
  15  Prefactor     .46594E-01    .39076        .67500E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.144        7.7191        .23482E-03   -1.5623    
  17  Prefactor     1.6576        2.0177        .81962E-03   -1.5682    
  18  Prefactor     26.394        17.082        .19415E-03   -1.5605    
  19  Prefactor      .0000        .62570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        5.8681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    16.139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.567        1.9487        .26217E-03   -1.5632    
  23  norm          2.6421        .47459        .62707E-03   -1.5675    
  24  norm          5.1118        2.1758        .44450E-03   -1.5663    
  25  Prefactor     10.883        8.0770        .30351E-03   -1.5642    
  26  Prefactor      .0000        12.639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        .99025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        2.9013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.2613        26.486        .37496E-03   -1.5658    
  30  norm          1.3511        1.1002        .94275E-04   -1.5685    
  31  Normalizat    1.0302        .90774E-01    .63745E-01   -.92025    
  32  Prefactor     .95409        .66569E-01    .45685E-01   -.94276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00562e-06
Minuit parameter uncertainties:
  1  11.3924
  2  1.40723e-05
  3  11.1227
  4  1.2008
  5  32.4414
  6  17.7304
  7  7.0356
  8  4.85184e-05
  9  3.9606
  10  0.000321042
  11  3.66306
  12  7.02587
  13  0.388329
  14  2.90476
  15  0.269867
  16  7.71913
  17  2.01769
  18  17.0819
  19  8.40013e-07
  20  4.77476e-06
  21  5.75684e-05
  22  1.94866
  23  0.474593
  24  2.17582
  25  8.07696
  26  3.11314e-05
  27  6.37285e-07
  28  1.71415e-06
  29  25.7556
  30  1.10023
  31  0.0907876
  32  0.0665742
Done.

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

Extracting fit parameters...

4FGL J1700.0+6830
   Spectrum: LogParabola
358         norm:  6.566e-01  3.883e-01  0.000e+00  1.000e+06 ( 1.000e-11)
359        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
360         beta:  1.037e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.263e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.541e-01  6.657e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.030e+00  9.079e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 255.021 68.504
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 5.93e-06

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) = 31811.5165612
delta logL = 0.0353682699788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31811.5143856
delta logL = 0.0375438265801

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   31811.51     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      204 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63694        4.9257        .66003E-03    .55589E-01
   2  alpha         2.4039        3.7017        .41190        .11332E-03
   3  Normalizat    1.0265        .30175E-01    .63845E-01    .69954E-04
   4  Prefactor     .95582        .22376E-01    .45713E-01    .42419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.636941
  alpha      = 2.40386
  Normalizat = 1.02645
  Prefactor  = 0.955818
 **********
 **   18 **HESSE 
 **********

 FCN=   31811.51     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63694        .35787        .71645E-05   -1.5692    
   2  alpha         2.4039        .47525        .24408E-01   -.38467E-01
   3  Normalizat    1.0265        .99473E-01    .28239E-03   -.92149    
   4  Prefactor     .95582        .76585E-01    .22500E-03   -.94217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8985e-11
Minuit parameter uncertainties:
  1  0.357871
  2  0.478165
  3  0.0994907
  4  0.0765939
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) = 31811.5143847
delta logL = 0.0375447728256

Extracting fit parameters...

4FGL J1700.0+6830
   Spectrum: LogParabola
358         norm:  6.369e-01  3.579e-01  0.000e+00  1.000e+06 ( 1.000e-11)
359        alpha:  2.404e+00  4.782e-01  0.000e+00  5.000e+00 ( 1.000e+00)
360         beta:  1.037e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.263e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.558e-01  7.659e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.026e+00  9.949e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 255.021 68.504
Photon Index (Free Index): 2.40 +/- 0.48
Photon Flux (Free Index): 3.13e-08 +/- 1.88e-08
Energy Flux (Free Index): 9.76e-06 +/- 5.28e-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/59978261/cmap_HighResolution_754876801_755481601_4FGL_J1700.0+6830_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='9.76e-06', photon_flux_error='1.67e-08', dlogl='3.75e-02', energy_flux='1.00e-05', photon_flux2='3.13e-08', job_status='DONE', time_completed='2024-12-10 01:16:03.648259', photon_index_error2='0.48', photon_index2='2.40', ts='5.16', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='5.28e-06', EG='1.03', time_epoch_completed='1733822163.65', return_code='0', job_id='59978261', GAL2='0.96', EG2='1.03', return_code2='0', energy_flux_error='5.93e-06', photon_flux_error2='1.88e-08', ts2='5.25', photon_index='2.28' WHERE bin_id='853' AND source_name='4FGL J1700.0+6830' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:16:03 PST 2024

