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


Performing analysis on: 4FGL_J1734.3+3858_weekly_bin854
RA = 263.598, Dec = 38.9763
tmin = 755481601, tmax = 756086401
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='60352530', job_status='RUN', time_executed='2024-12-17 00:57:02.157723', time_epoch_executed='1734425822.16' WHERE source_name='4FGL J1734.3+3858' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352530

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60352530/ft1_4FGL_J1734.3+3858_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352530/ft1_4FGL_J1734.3+3858_weekly_bin854.fits outfile=/lscratch/kocevski/60352530/ft1_filteredMKT_4FGL_J1734.3+3858_weekly_bin854.fits ra=263.598 dec=38.9763 rad=12.0 tmin=755481601.0 tmax=756086401.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 4.87
user 4.40
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.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/60352530/ft1_filteredMKT_4FGL_J1734.3+3858_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.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.41
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 1524

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352530/ltcube_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.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/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits
.....................!
real 18.45
user 17.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352530/ltcube_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.fits outfile=/lscratch/kocevski/60352530/expmap_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.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/60352530/ltcube_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.fits
.....................!
real 67.16
user 62.94
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 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J1734.3+3858 @ 263.598 38.9763

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.fits scfile=/lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits outfile=/lscratch/kocevski/60352530/cmap_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.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=263.598 yref=38.9763 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.54
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.fits scfile=/lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits outfile=/lscratch/kocevski/60352530/cmap_HighResolution_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.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=263.598 yref=38.9763 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.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352530/Model_4FGL_J1734.3+3858_weekly_bin854.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/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.fits.....................!
real 46.25
user 44.55
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.fits', '/lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits', expMap='/lscratch/kocevski/60352530/expmap_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.fits', expCube='/lscratch/kocevski/60352530/ltcube_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352530/Model_4FGL_J1734.3+3858_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1734.3+3858'

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  8.023e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  8.534e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352530/ft1_filtered_4FGL_J1734.3+3858_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352530/ft2_4FGL_J1734.3+3858_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352530/expmap_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352530/ltcube_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352530/Model_4FGL_J1734.3+3858_weekly_bin854.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) = 16216.7781328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93814E-08   1.0000          .0000       .10000E+07
     2 'norm      '    .86726E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.2029       1.0000          .0000       .10000E+07
     4 'norm      '    .18469E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .98885       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.0477       1.0000          .0000       .10000E+07
     7 'Prefactor '    .88261E-05   1.0000          .0000       .10000E+07
     8 'norm      '    1.3458       1.0000          .0000       .10000E+07
     9 'norm      '    .68279E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.1756       1.0000          .0000       .10000E+07
    11 'norm      '    .48185       1.0000          .0000       .10000E+07
    12 'norm      '    21.379       1.0000          .0000       .10000E+07
    13 'norm      '    3.5897       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.3890       1.0000          .0000       .10000E+07
    15 'norm      '    2.6410       1.0000          .0000       .10000E+07
    16 'Prefactor '    44.398       1.0000          .0000       .10000E+07
    17 'Prefactor '    64.038       1.0000          .0000       .10000E+07
    18 'norm      '    .11514E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19841E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .21713E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .17029E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    15.250       1.0000          .0000       .10000E+07
    23 'Prefactor '    .39107E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .75327       1.0000          .0000       .10000E+07
    25 'norm      '    26.370       1.0000          .0000       .10000E+07
    26 'norm      '    1.6348       1.0000          .0000       .10000E+07
    27 'Prefactor '    .25262E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    3.4363       1.0000          .0000       .10000E+07
    29 'Normalizat'    .49781       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2684       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=   16216.73     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     2832 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .28349E-01   -.89471E-08** at limit **
   2  norm           .0000        3.7705       -.96256E-07** at limit **
   3  Prefactor     4.0577        13.740        .11148E-06    .33613E-02
   4  norm           .0000        6.8572        .17416E-06** at limit **
   5  Prefactor     .98659        1.3320        .51944E-08    .94936E-03
   6  Prefactor     4.0507        1.5078        .16970E-08    .16597E-02
   7  Prefactor      .0000        1.1664        .10553E-07** at limit **
   8  norm          1.3456        .82983        .25206E-08    .21595E-03
   9  norm           .0000        .13933       -.20633E-07** at limit **
  10  Prefactor     6.1561        4.7715        .78999E-08   -.32252E-03
  11  norm          .48203        .40847       -.97252E-08   -.52674E-02
  12  norm          21.367        6.3674        .14052E-07   -.77925E-03
  13  norm          3.5899        1.2210        .31030E-07    .10882E-01
  14  Prefactor     1.3883        1.6441        .22110E-07    .13333E-02
  15  norm          2.6502        2.6745       -.52608E-08   -.15923E-03
  16  Prefactor     43.701        33.990        .76290E-07   -.65286E-01
  17  Prefactor     63.478        8.6214        .72672E-07    .75648E-01
  18  norm           .0000        2.7522       -.53546E-07** at limit **
  19  Prefactor     .10930E-06    19.738       -.25577E-07** at limit **
  20  Prefactor     .43854E-08    1.7239       -.85794E-07** at limit **
  21  Prefactor     .17208E-08    1.7715       -.88121E-07** at limit **
  22  Prefactor     15.203        6.8997       -.48623E-07   -.16387    
  23  Prefactor     .11977E-05    112.67        .19382E-05** at limit **
  24  norm          .75337        .63230        .24257E-08   -.75471E-04
  25  norm          26.285        6.0685       -.62313E-08    .93567E-01
  26  norm          1.6478        4.5786       -.10450E-06   -.20779E-02
  27  Prefactor      .0000        1.1054       -.13738E-07** at limit **
  28  Prefactor     3.4353        3.3714       -.44165E-07   -.35146E-02
  29  Normalizat    .49854        .16717        .46809E-06   -.21485E-03
  30  Prefactor     1.2683        .10545       -.11188E-05   -.69057E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 4.05765
  norm       = 0
  Prefactor  = 0.986589
  Prefactor  = 4.0507
  Prefactor  = 0
  norm       = 1.34563
  norm       = 0
  Prefactor  = 6.15615
  norm       = 0.482026
  norm       = 21.3672
  norm       = 3.58985
  Prefactor  = 1.38833
  norm       = 2.65017
  Prefactor  = 43.7009
  Prefactor  = 63.4782
  norm       = 0
  Prefactor  = 1.09301e-07
  Prefactor  = 4.38538e-09
  Prefactor  = 1.72085e-09
  Prefactor  = 15.203
  Prefactor  = 1.19765e-06
  norm       = 0.753371
  norm       = 26.2847
  norm       = 1.64781
  Prefactor  = 0
  Prefactor  = 3.43532
  Normalizat = 0.498539
  Prefactor  = 1.26831
 **********
 **   18 **HESSE 
 **********

 FCN=   16216.73     FROM HESSE     STATUS=OK           658 CALLS     3490 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .22898E-01    .90370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.7733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0577        14.100        .49132E-03   -1.5668    
   4  norm           .0000        6.8731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .98659        1.3237        .43370E-03   -1.5688    
   6  Prefactor     4.0507        1.4813        .50094E-03   -1.5668    
   7  Prefactor      .0000        1.1455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3456        .83578        .94356E-03   -1.5685    
   9  norm           .0000        .13862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1561        4.8608        .40374E-03   -1.5658    
  11  norm          .48203        .46902        .16535E-02   -1.5694    
  12  norm          21.367        6.3916        .21634E-03   -1.5616    
  13  norm          3.5899        1.2295        .53311E-03   -1.5670    
  14  Prefactor     1.3883        1.6620        .92193E-03   -1.5684    
  15  norm          2.6502        2.7026        .62713E-03   -1.5675    
  16  Prefactor     43.701        36.867        .15009E-03   -1.5576    
  17  Prefactor     63.478        53.492        .12497E-03   -1.5549    
  18  norm           .0000        2.7437        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10930E-06    19.886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .43854E-08    3.4335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .17208E-08    3.4559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.203        23.586        .25621E-03   -1.5630    
  23  Prefactor     .11977E-05    115.31        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .75337        .63388        .56485E-03   -1.5691    
  25  norm          26.285        27.741        .19477E-03   -1.5605    
  26  norm          1.6478        4.6218        .82647E-03   -1.5682    
  27  Prefactor      .0000        1.1043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.4353        3.3792        .54539E-03   -1.5671    
  29  Normalizat    .49854        .15908        .92692E-01   -1.1248    
  30  Prefactor     1.2683        .97885E-01    .33185E-01   -.84254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69629e-06
Minuit parameter uncertainties:
  1  2.19686e-07
  2  8.28966e-06
  3  14.1001
  4  8.5468e-06
  5  1.32375
  6  1.4813
  7  8.85693e-07
  8  0.835781
  9  1.2646e-06
  10  4.86083
  11  0.469025
  12  6.39165
  13  1.22955
  14  1.66202
  15  2.70256
  16  36.8669
  17  53.4928
  18  1.6899e-05
  19  0.00294897
  20  0.000245706
  21  0.00015392
  22  23.5861
  23  0.0235038
  24  0.633885
  25  27.7408
  26  4.6218
  27  3.3644e-06
  28  3.37918
  29  0.159221
  30  0.0978991
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  2.650e+00  2.703e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  8.534e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.268e+00  9.790e-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:  4.985e-01  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 263.598 38.976
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.53e-08 +/- 1.56e-08
Energy Flux (Fixed Index): 6.01e-06 +/- 6.13e-06

TS (Fixed Index): 2.10
Ra Dec: 263.598 38.976
Photon Flux Upper Limit: 5.25400004618e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05766675352e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352530/likelihoodResults_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.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) = 16216.7261368
delta logL = 0.00512041683396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16216.7260122
delta logL = 0.0052450520634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6204       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1334       1.0000          .0000       5.0000    
     3 'Normalizat'    .50017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2678       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16216.73     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      247 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6200        2.6310        .19978E-04    .43249E-04
   2  alpha         2.1323        .90853        .35893E-01   -.25536E-05
   3  Normalizat    .50023        .15166        .41001E-03    .18300E-05
   4  Prefactor     1.2678        .10141        .17810E-03    .37022E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.62
  alpha      = 2.13233
  Normalizat = 0.500226
  Prefactor  = 1.26783
 **********
 **   18 **HESSE 
 **********

 FCN=   16216.73     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .60E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6200        2.6628        .79912E-06   -1.5676    
   2  alpha         2.1323        .91973        .14357E-02   -.14760    
   3  Normalizat    .50023        .15167        .16400E-04   -1.1240    
   4  Prefactor     1.2678        .10143        .71242E-05   -.84269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97975e-15
Minuit parameter uncertainties:
  1  2.66277
  2  0.942376
  3  0.151795
  4  0.10145
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) = 16216.7260115
delta logL = 0.00524573135226

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  2.620e+00  2.663e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        alpha:  2.132e+00  9.424e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  8.534e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.268e+00  1.014e-01  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:  5.002e-01  1.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 263.598 38.976
Photon Index (Free Index): 2.13 +/- 0.94
Photon Flux (Free Index): 1.37e-08 +/- 2.13e-08
Energy Flux (Free Index): 6.10e-06 +/- 6.16e-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/60352530/cmap_HighResolution_755481601_756086401_4FGL_J1734.3+3858_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-05', comment='SUCCESS', photon_flux='1.53e-08', energy_flux2='6.10e-06', photon_flux_error='1.56e-08', dlogl='5.25e-03', energy_flux='6.01e-06', photon_flux2='1.37e-08', job_status='DONE', time_completed='2024-12-17 01:09:08.387848', photon_index_error2='0.94', photon_index2='2.13', ts='2.10', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='5.25e-08', energy_flux_error2='6.16e-06', EG='0.50', time_epoch_completed='1734426548.39', return_code='0', job_id='60352530', GAL2='1.27', EG2='0.50', return_code2='0', energy_flux_error='6.13e-06', photon_flux_error2='2.13e-08', ts2='2.11', photon_index='2.23' WHERE bin_id='854' AND source_name='4FGL J1734.3+3858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:09:08 PST 2024

