/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_J1706.9+4543_weekly_bin855
RA = 256.743, Dec = 45.7248
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='60730153', job_status='RUN', time_executed='2024-12-24 03:55:59.258449', time_epoch_executed='1735041359.26' WHERE source_name='4FGL J1706.9+4543' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60730153

Creating custom pfile directory:
/lscratch/kocevski/60730153/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/60730153/ft1_4FGL_J1706.9+4543_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/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60730153/ft1_4FGL_J1706.9+4543_weekly_bin855.fits outfile=/lscratch/kocevski/60730153/ft1_filteredMKT_4FGL_J1706.9+4543_weekly_bin855.fits ra=256.743 dec=45.7248 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 2.53
user 2.23
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_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/60730153/ft1_filteredMKT_4FGL_J1706.9+4543_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_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.47
user 0.18
sys 0.15

Number of photons that the gtmktime cut: 855

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60730153/ltcube_756086401_756691201_4FGL_J1706.9+4543_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/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits
.....................!
real 16.12
user 15.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60730153/ltcube_756086401_756691201_4FGL_J1706.9+4543_weekly_bin855.fits outfile=/lscratch/kocevski/60730153/expmap_756086401_756691201_4FGL_J1706.9+4543_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/60730153/ltcube_756086401_756691201_4FGL_J1706.9+4543_weekly_bin855.fits
.....................!
real 59.14
user 55.50
sys 3.32

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

Setting source of interest to:
4FGL J1706.9+4543 @ 256.743 45.7248

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_weekly_bin855.fits scfile=/lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits outfile=/lscratch/kocevski/60730153/cmap_756086401_756691201_4FGL_J1706.9+4543_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=256.743 yref=45.7248 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.39
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_weekly_bin855.fits scfile=/lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits outfile=/lscratch/kocevski/60730153/cmap_HighResolution_756086401_756691201_4FGL_J1706.9+4543_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=256.743 yref=45.7248 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.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60730153/Model_4FGL_J1706.9+4543_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 GAL_V02
Working on...
/lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_weekly_bin855.fits.....................!
real 24.43
user 23.17
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_weekly_bin855.fits', '/lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits', expMap='/lscratch/kocevski/60730153/expmap_756086401_756691201_4FGL_J1706.9+4543_weekly_bin855.fits', expCube='/lscratch/kocevski/60730153/ltcube_756086401_756691201_4FGL_J1706.9+4543_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60730153/Model_4FGL_J1706.9+4543_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1706.9+4543'

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  1.137e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
351        Index:  2.819e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60730153/ft1_filtered_4FGL_J1706.9+4543_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60730153/ft2_4FGL_J1706.9+4543_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60730153/expmap_756086401_756691201_4FGL_J1706.9+4543_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60730153/ltcube_756086401_756691201_4FGL_J1706.9+4543_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60730153/Model_4FGL_J1706.9+4543_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) = 9095.51356345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47895E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.0561       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18502E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .34917E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .29166E-06   1.0000          .0000       .10000E+07
     6 'norm      '    9.0471       1.0000          .0000       .10000E+07
     7 'norm      '    .27560E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .42887E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17979E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .28323E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .59257E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .23045       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.3795       1.0000          .0000       .10000E+07
    14 'Prefactor '    .74965E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0587       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.0445       1.0000          .0000       .10000E+07
    17 'norm      '    .83258       1.0000          .0000       .10000E+07
    18 'norm      '    .49592       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.9835       1.0000          .0000       .10000E+07
    20 'norm      '    .97705E-06   1.0000          .0000       .10000E+07
    21 'norm      '    17.327       1.0000          .0000       .10000E+07
    22 'norm      '    2.1833       1.0000          .0000       .10000E+07
    23 'Prefactor '    .12501E-06   1.0000          .0000       .10000E+07
    24 'norm      '    2.2402       1.0000          .0000       .10000E+07
    25 'Prefactor '    .24200E-04   1.0000          .0000       .10000E+07
    26 'norm      '    2.3991       1.0000          .0000       .10000E+07
    27 'Prefactor '    4.2412       1.0000          .0000       .10000E+07
    28 'Prefactor '    9.4122       1.0000          .0000       .10000E+07
    29 'Prefactor '    28.884       1.0000          .0000       .10000E+07
    30 'Prefactor '    .17909E-04   1.0000          .0000       .10000E+07
    31 'norm      '    .23400E-04   1.0000          .0000       .10000E+07
    32 'Normalizat'    .88550       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9095.488     FROM MIGRAD    STATUS=CONVERGED    244 CALLS     2682 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20983E-05    63.820        .59409E-05** at limit **
   2  Prefactor     8.0261        4.8748       -.20458E-06    .62764E-03
   3  Prefactor     .55511E-10    11.579        .21865E-06** at limit **
   4  Prefactor     .17764E-08    5.5804        .65027E-06** at limit **
   5  Prefactor      .0000        .57446       -.91826E-07** at limit **
   6  norm          9.0348        1.3874       -.51411E-07   -.39732E-01
   7  norm          .27568E-01    .50572E-01    .35406E-07** at limit **
   8  norm          .44409E-09    2.6762       -.81192E-06** at limit **
   9  Prefactor     .55511E-10    4.3770        .87231E-06** at limit **
  10  Prefactor      .0000        2.5529        .16923E-06** at limit **
  11  norm          .11102E-09    14.442        .29585E-06** at limit **
  12  Prefactor     .22978        3.4052       -.44878E-06** at limit **
  13  Prefactor     4.3788        2.1241        .15397E-06   -.16895E-02
  14  Prefactor      .0000        7.2234       -.46585E-06** at limit **
  15  Prefactor     2.0609        2.2100       -.32324E-06    .28461E-02
  16  Prefactor     1.0751        21.562       -.23420E-05    .13773E-02
  17  norm          .83352        1.1883       -.60640E-06    .14622E-01
  18  norm          .49408        .75404        .44569E-06   -.16656E-01
  19  Prefactor     5.9831        5.1487       -.62406E-07   -.19573E-02
  20  norm          .27756E-09    3.9876       -.70489E-06** at limit **
  21  norm          17.336        1.6114        .72047E-07   -.18826E-01
  22  norm          2.1838        1.2895        .64338E-07   -.71169E-02
  23  Prefactor      .0000        .92729       -.98619E-07** at limit **
  24  norm          2.2375        2.7157       -.21672E-06    .33054E-02
  25  Prefactor     .64393E-08    43.303        .34426E-05** at limit **
  26  norm          2.4237        3.3756        .50022E-06   -.58340E-02
  27  Prefactor     3.8078        3.5622        .38976E-06   -.10201E-04
  28  Prefactor     9.3558        4.3344       -.87916E-09   -.28985E-02
  29  Prefactor     30.938        15.091       -.10970E-05    .63824E-01
  30  Prefactor      .0000        1.7135        .14588E-06** at limit **
  31  norm          .55511E-10    1.8145        .39601E-06** at limit **
  32  Normalizat    .88588        .19158        .19713E-05   -.38236E-03
  33  Prefactor     1.0040        .14992        .46464E-05   -.53187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09832e-06
  Prefactor  = 8.02611
  Prefactor  = 5.55112e-11
  Prefactor  = 1.77636e-09
  Prefactor  = 0
  norm       = 9.03481
  norm       = 0.0275683
  norm       = 4.44089e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 1.11022e-10
  Prefactor  = 0.229781
  Prefactor  = 4.37876
  Prefactor  = 0
  Prefactor  = 2.0609
  Prefactor  = 1.07509
  norm       = 0.833522
  norm       = 0.494084
  Prefactor  = 5.98306
  norm       = 2.77556e-10
  norm       = 17.3363
  norm       = 2.18382
  Prefactor  = 0
  norm       = 2.23747
  Prefactor  = 6.43929e-09
  norm       = 2.42374
  Prefactor  = 3.80783
  Prefactor  = 9.35582
  Prefactor  = 30.938
  Prefactor  = 0
  norm       = 5.55112e-11
  Normalizat = 0.885882
  Prefactor  = 1.00404
 **********
 **   18 **HESSE 
 **********

 FCN=   9095.488     FROM HESSE     STATUS=OK           779 CALLS     3461 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20983E-05    73.981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0261        4.8721        .35300E-03   -1.5651    
   3  Prefactor     .55511E-10    11.591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17764E-08    5.5718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .57893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.0348        10.385        .33298E-03   -1.5648    
   7  norm          .27568E-01    .68722E-01    .64740E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44409E-09    2.6733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    4.3793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.5349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .11102E-09    14.452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22978        7.3810        .23900E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3788        4.0015        .48104E-03   -1.5666    
  14  Prefactor      .0000        7.0128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0609        2.2467        .71999E-03   -1.5679    
  16  Prefactor     1.0751        6.9131        .85706E-02   -1.5687    
  17  norm          .83352        1.2034        .50537E-03   -1.5690    
  18  norm          .49408        .77703        .79121E-03   -1.5694    
  19  Prefactor     5.9831        5.2325        .41026E-03   -1.5659    
  20  norm          .27756E-09    .25374        .26777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          17.336        9.2078        .24034E-03   -1.5625    
  22  norm          2.1838        1.3013        .69639E-03   -1.5678    
  23  Prefactor      .0000        .92762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2375        2.7499        .68642E-03   -1.5678    
  25  Prefactor     .64393E-08    43.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4237        3.4078        .66083E-03   -1.5677    
  27  Prefactor     3.8078        59.523        .48903E-03   -1.5669    
  28  Prefactor     9.3558        4.4309        .32642E-03   -1.5647    
  29  Prefactor     30.938        40.512        .18610E-03   -1.5597    
  30  Prefactor      .0000        1.7191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .55511E-10    1.8124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .88588        .16871        .44716E-01   -.96958    
  33  Prefactor     1.0040        .12840        .44327E-01   -.92595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18384e-07
Minuit parameter uncertainties:
  1  0.0249191
  2  4.87213
  3  5.70453e-05
  4  0.000199835
  5  3.53457e-06
  6  10.3853
  7  0.0687219
  8  6.75203e-05
  9  2.63885e-05
  10  1.52129e-05
  11  8.43535e-05
  12  2.60462
  13  4.00146
  14  2.49848e-05
  15  2.24672
  16  5.45244
  17  1.20335
  18  0.77703
  19  5.2325
  20  1.59306e-05
  21  9.2078
  22  1.3013
  23  6.87353e-06
  24  2.74988
  25  0.00106593
  26  3.40782
  27  30.1104
  28  4.43092
  29  40.5126
  30  9.2139e-06
  31  1.57233e-05
  32  0.168814
  33  0.12844
Done.

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

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  5.983e+00  5.232e+00  0.000e+00  1.000e+06 ( 1.000e-12)
351        Index:  2.819e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  1.004e+00  1.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
685   Normalization:  8.859e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.22
Ra Dec: 256.743 45.725
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 8.45e-06 +/- 7.39e-06

TS (Fixed Index): 2.22
Ra Dec: 256.743 45.725
Photon Flux Upper Limit: 1.08424672036e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00859261459283 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60730153/likelihoodResults_756086401_756691201_4FGL_J1706.9+4543_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) = 9095.2105807
delta logL = 0.277465414234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9095.17888712
delta logL = 0.309158990836

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9095.179     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5889        283.46        .36383E-03    .19454E-02
   2  Index         2.2543        5.3902        .24505       -.61550E-05
   3  Normalizat    .90218        .11689        .44929E-01    .11466E-04
   4  Prefactor     .99464        .95411E-01    .46200E-01    .86050E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.58889
  Index      = 2.25432
  Normalizat = 0.902177
  Prefactor  = 0.994639
 **********
 **   18 **HESSE 
 **********

 FCN=   9095.179     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5889        6.5696        .14553E-04   -1.5653    
   2  Index         2.2543        .67193        .11511E-01   -.58133    
   3  Normalizat    .90218        .18289        .27627E-03   -.96384    
   4  Prefactor     .99464        .14842        .21519E-03   -.92908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65067e-12
Minuit parameter uncertainties:
  1  6.56965
  2  0.674855
  3  0.183011
  4  0.148478
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) = 9095.17888708
delta logL = 0.309159034487

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  7.589e+00  6.570e+00  0.000e+00  1.000e+06 ( 1.000e-12)
351        Index:  2.254e+00  6.749e-01  0.000e+00  1.000e+01 (-1.000e+00)
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  9.946e-01  1.485e-01  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
685   Normalization:  9.022e-01  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 256.743 45.725
Photon Index (Free Index): 2.25 +/- 0.67
Photon Flux (Free Index): 2.71e-08 +/- 2.97e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.08e-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/60730153/cmap_HighResolution_756086401_756691201_4FGL_J1706.9+4543_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.11e-05', photon_flux_error='3.34e-08', dlogl='3.09e-01', energy_flux='8.45e-06', photon_flux2='2.71e-08', job_status='DONE', time_completed='2024-12-24 04:03:08.152521', photon_index_error2='0.67', photon_index2='2.25', ts='2.22', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.08e-05', EG='0.89', time_epoch_completed='1735041788.15', return_code='0', job_id='60730153', GAL2='0.99', EG2='0.90', return_code2='0', energy_flux_error='7.39e-06', photon_flux_error2='2.97e-08', ts2='2.83', photon_index='2.82' WHERE bin_id='855' AND source_name='4FGL J1706.9+4543' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 04:03:08 PST 2024

