/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_J1734.3+3858_weekly_bin855
RA = 263.598, Dec = 38.9763
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='60730180', job_status='RUN', time_executed='2024-12-24 03:56:02.776651', time_epoch_executed='1735041362.78' WHERE source_name='4FGL J1734.3+3858' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60730180

Creating custom pfile directory:
/lscratch/kocevski/60730180/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/60730180/ft1_4FGL_J1734.3+3858_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/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60730180/ft1_4FGL_J1734.3+3858_weekly_bin855.fits outfile=/lscratch/kocevski/60730180/ft1_filteredMKT_4FGL_J1734.3+3858_weekly_bin855.fits ra=263.598 dec=38.9763 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.81
user 2.44
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60730180/ft2_4FGL_J1734.3+3858_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/60730180/ft1_filteredMKT_4FGL_J1734.3+3858_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60730180/ft1_filtered_4FGL_J1734.3+3858_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.78
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 974

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60730180/ft1_filtered_4FGL_J1734.3+3858_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60730180/ltcube_756086401_756691201_4FGL_J1734.3+3858_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/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits
.....................!
real 13.62
user 12.94
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60730180/ft1_filtered_4FGL_J1734.3+3858_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60730180/ltcube_756086401_756691201_4FGL_J1734.3+3858_weekly_bin855.fits outfile=/lscratch/kocevski/60730180/expmap_756086401_756691201_4FGL_J1734.3+3858_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/60730180/ltcube_756086401_756691201_4FGL_J1734.3+3858_weekly_bin855.fits
.....................!
real 69.34
user 64.56
sys 4.17

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/60730180/ft1_filtered_4FGL_J1734.3+3858_weekly_bin855.fits scfile=/lscratch/kocevski/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits outfile=/lscratch/kocevski/60730180/cmap_756086401_756691201_4FGL_J1734.3+3858_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=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.40
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60730180/ft1_filtered_4FGL_J1734.3+3858_weekly_bin855.fits scfile=/lscratch/kocevski/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits outfile=/lscratch/kocevski/60730180/cmap_HighResolution_756086401_756691201_4FGL_J1734.3+3858_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=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.45
user 0.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60730180/ft1_filtered_4FGL_J1734.3+3858_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60730180/Model_4FGL_J1734.3+3858_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/60730180/ft1_filtered_4FGL_J1734.3+3858_weekly_bin855.fits.....................!
real 32.74
user 31.59
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60730180/ft1_filtered_4FGL_J1734.3+3858_weekly_bin855.fits', '/lscratch/kocevski/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits', expMap='/lscratch/kocevski/60730180/expmap_756086401_756691201_4FGL_J1734.3+3858_weekly_bin855.fits', expCube='/lscratch/kocevski/60730180/ltcube_756086401_756691201_4FGL_J1734.3+3858_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60730180/Model_4FGL_J1734.3+3858_weekly_bin855.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/60730180/ft1_filtered_4FGL_J1734.3+3858_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60730180/ft2_4FGL_J1734.3+3858_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60730180/expmap_756086401_756691201_4FGL_J1734.3+3858_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60730180/ltcube_756086401_756691201_4FGL_J1734.3+3858_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60730180/Model_4FGL_J1734.3+3858_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) = 10350.8990983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49082E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .14408E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .38965E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .23086E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .55740       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.3294       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.0384       1.0000          .0000       .10000E+07
     8 'norm      '    .74638       1.0000          .0000       .10000E+07
     9 'norm      '    .13492       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.4499       1.0000          .0000       .10000E+07
    11 'norm      '    .19725E-04   1.0000          .0000       .10000E+07
    12 'norm      '    16.374       1.0000          .0000       .10000E+07
    13 'norm      '    2.0906       1.0000          .0000       .10000E+07
    14 'Prefactor '    .30531E-08   1.0000          .0000       .10000E+07
    15 'norm      '    2.1174       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10363E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.0666       1.0000          .0000       .10000E+07
    18 'norm      '    2.9940       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.5454       1.0000          .0000       .10000E+07
    20 'Prefactor '    .16745E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .44298E-07   1.0000          .0000       .10000E+07
    22 'Prefactor '    .78836E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .56691E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .54567E-07   1.0000          .0000       .10000E+07
    25 'norm      '    .19455E-01   1.0000          .0000       .10000E+07
    26 'norm      '    .35174E-05   1.0000          .0000       .10000E+07
    27 'Prefactor '    .14625       1.0000          .0000       .10000E+07
    28 'Prefactor '    3.0026       1.0000          .0000       .10000E+07
    29 'Normalizat'    .81550       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1070       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=   10348.54     FROM MIGRAD    STATUS=CONVERGED    218 CALLS     1767 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49074E-01    .69932E-01   -.10940E-06** at limit **
   2  norm          .28477E-07    3.3597       -.20558E-05** at limit **
   3  Prefactor     .54678E-07    3.0460        .15102E-05** at limit **
   4  norm          .11102E-09    18.159       -.32236E-05** at limit **
   5  Prefactor     .55523        1.9440        .15781E-06    .42706E-02
   6  Prefactor     4.3306        2.2277        .22166E-06    .11490E-01
   7  Prefactor     2.0382        2.2431        .36354E-06   -.42012E-02
   8  norm          .74657        1.1648       -.10308E-06    .17348E-02
   9  norm          .13557        .86138        .22547E-06** at limit **
  10  Prefactor     5.4417        4.9866       -.13577E-05   -.32297E-02
  11  norm           .0000        2.0574       -.84818E-06** at limit **
  12  norm          16.481        5.9675        .13954E-05    .73707E-01
  13  norm          2.0942        1.2824       -.11816E-06    .14963E-02
  14  Prefactor      .0000        .96458        .11456E-06** at limit **
  15  norm          2.1139        2.6900       -.34661E-06   -.17935E-03
  16  Prefactor     .17764E-08    39.388        .75701E-05** at limit **
  17  Prefactor     .78271E-08    84.606        .66888E-05** at limit **
  18  norm          3.0131        3.7389        .20224E-06   -.80678E-03
  19  Prefactor     .89594        219.10       -.17266E-04    .33996E-04
  20  Prefactor     .40523E-08    4.1924       -.19411E-05** at limit **
  21  Prefactor      .0000        1.6652        .22728E-06** at limit **
  22  Prefactor     .58287E-08    5.6327       -.22972E-05** at limit **
  23  Prefactor     .13212E-07    6.3759       -.27895E-05** at limit **
  24  norm          .55511E-10    1.6015       -.97321E-07** at limit **
  25  norm          .55511E-10    17.473       -.46417E-05** at limit **
  26  norm           .0000        1.7810        .18828E-06** at limit **
  27  Prefactor     .24329        5.6821        .28913E-05** at limit **
  28  Prefactor     2.9955        2.9528        .80218E-06    .32596E-02
  29  Normalizat    .81573        .20329       -.33638E-04    .29435E-04
  30  Prefactor     1.1071        .12695        .18891E-04    .22368E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0490739
  norm       = 2.84772e-08
  Prefactor  = 5.46785e-08
  norm       = 1.11022e-10
  Prefactor  = 0.555233
  Prefactor  = 4.33058
  Prefactor  = 2.03815
  norm       = 0.74657
  norm       = 0.135567
  Prefactor  = 5.44173
  norm       = 0
  norm       = 16.4809
  norm       = 2.09415
  Prefactor  = 0
  norm       = 2.11388
  Prefactor  = 1.77636e-09
  Prefactor  = 7.82707e-09
  norm       = 3.01309
  Prefactor  = 0.895936
  Prefactor  = 4.05231e-09
  Prefactor  = 0
  Prefactor  = 5.82867e-09
  Prefactor  = 1.32117e-08
  norm       = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 0.243294
  Prefactor  = 2.99548
  Normalizat = 0.815731
  Prefactor  = 1.10708
 **********
 **   18 **HESSE 
 **********

 FCN=   10348.54     FROM HESSE     STATUS=OK           662 CALLS     2429 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49074E-01    .91642E-01    .70283E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .28477E-07    3.9888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .54678E-07    4.0755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .11102E-09    18.153        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55523        2.8212        .73134E-03   -1.5693    
   6  Prefactor     4.3306        2.7707        .48388E-03   -1.5666    
   7  Prefactor     2.0382        2.2796        .72408E-03   -1.5679    
   8  norm          .74657        1.1811        .57020E-03   -1.5691    
   9  norm          .13557        .48833        .23724E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4417        5.0840        .43019E-03   -1.5661    
  11  norm           .0000        .24477        .26762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.481        9.1200        .24724E-03   -1.5627    
  13  norm          2.0942        1.2885        .71370E-03   -1.5679    
  14  Prefactor      .0000        .96733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1139        2.7138        .70854E-03   -1.5679    
  16  Prefactor     .17764E-08    39.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .78271E-08    87.204        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0131        3.7564        .58641E-03   -1.5673    
  19  Prefactor     .89594        242.80        .63978E-03   -1.5689    
  20  Prefactor     .40523E-08    4.2696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        1.6681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .58287E-08    11.882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .13212E-07    11.848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .55511E-10    1.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .55511E-10    17.450        .17073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm           .0000        1.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .24329        2.0426        .45688E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.9955        2.9646        .58552E-03   -1.5673    
  29  Normalizat    .81573        .17483        .73822E-01   -.99488    
  30  Prefactor     1.1071        .10734        .37325E-01   -.89241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22826e-08
Minuit parameter uncertainties:
  1  0.0916419
  2  0.000674308
  3  0.000943892
  4  8.53664e-05
  5  2.50315
  6  2.77067
  7  2.27962
  8  1.18106
  9  0.488325
  10  5.08402
  11  1.18608e-06
  12  9.11998
  13  1.28855
  14  9.69957e-06
  15  2.71377
  16  0.000529974
  17  0.00164955
  18  3.75639
  19  29.499
  20  0.000262785
  21  8.27849e-06
  22  0.000525361
  23  0.000790511
  24  1.53919e-05
  25  6.92147e-05
  26  6.72657e-06
  27  1.40989
  28  2.96459
  29  0.174953
  30  0.107365
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  2.114e+00  2.714e+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.107e+00  1.074e-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:  8.157e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 263.598 38.976
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.22e-08 +/- 1.57e-08
Energy Flux (Fixed Index): 4.79e-06 +/- 6.15e-06

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

Saving results to:
/lscratch/kocevski/60730180/likelihoodResults_756086401_756691201_4FGL_J1734.3+3858_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) = 10348.313473
delta logL = 0.229316282399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10348.3109558
delta logL = 0.231833487636

Fit tolerance = 1e-08

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

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

 FCN=   10348.31     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      209 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9694        2.2590        .73860E-03    .14826E-01
   2  alpha         1.4850        .61208        .46568       -.84714E-04
   3  Normalizat    .82537        .16231        .73427E-01    .49075E-04
   4  Prefactor     1.1030        .10551        .37474E-01    .16285E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96944
  alpha      = 1.485
  Normalizat = 0.825366
  Prefactor  = 1.10299
 **********
 **   18 **HESSE 
 **********

 FCN=   10348.31     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9694        2.4630        .15940E-04   -1.5680    
   2  alpha         1.4850        .82925        .26842E-01   -.41807    
   3  Normalizat    .82537        .19007        .32495E-03   -.99135    
   4  Prefactor     1.1030        .12386        .18447E-03   -.89371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3542e-10
Minuit parameter uncertainties:
  1  2.46304
  2  0.848629
  3  0.190225
  4  0.123895
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) = 10348.3109557
delta logL = 0.231833567193

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  1.969e+00  2.463e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        alpha:  1.485e+00  8.486e-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.103e+00  1.239e-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:  8.254e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 263.598 38.976
Photon Index (Free Index): 1.49 +/- 0.85
Photon Flux (Free Index): 6.29e-09 +/- 8.79e-09
Energy Flux (Free Index): 1.06e-05 +/- 1.90e-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/60730180/cmap_HighResolution_756086401_756691201_4FGL_J1734.3+3858_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', comment='SUCCESS', photon_flux='1.22e-08', energy_flux2='1.06e-05', photon_flux_error='1.57e-08', dlogl='2.32e-01', energy_flux='4.79e-06', photon_flux2='6.29e-09', job_status='DONE', time_completed='2024-12-24 04:03:35.539643', photon_index_error2='0.85', photon_index2='1.49', ts='1.15', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='1.90e-05', EG='0.82', time_epoch_completed='1735041815.54', return_code='0', job_id='60730180', GAL2='1.10', EG2='0.83', return_code2='0', energy_flux_error='6.15e-06', photon_flux_error2='8.79e-09', ts2='1.62', photon_index='2.23' WHERE bin_id='855' AND source_name='4FGL J1734.3+3858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 04:03:35 PST 2024

