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


Performing analysis on: 4FGL_J1734.3+3858_weekly_bin906
RA = 263.598, Dec = 38.9763
tmin = 786931201, tmax = 787536001
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='17380084', job_status='RUN', time_executed='2025-12-16 02:55:10.230428', time_epoch_executed='1765882510.23' WHERE source_name='4FGL J1734.3+3858' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380084

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17380084/ft1_4FGL_J1734.3+3858_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17380084/ft2_4FGL_J1734.3+3858_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17380084/ft1_4FGL_J1734.3+3858_weekly_bin906.fits outfile=/lscratch/kocevski/17380084/ft1_filteredMKT_4FGL_J1734.3+3858_weekly_bin906.fits ra=263.598 dec=38.9763 rad=12.0 tmin=786931201.0 tmax=787536001.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 5.52
user 4.61
sys 0.23

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

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

Number of photons that the gtmktime cut: 1828

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17380084/ft1_filtered_4FGL_J1734.3+3858_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17380084/ft2_4FGL_J1734.3+3858_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17380084/ltcube_786931201_787536001_4FGL_J1734.3+3858_weekly_bin906.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/17380084/ft2_4FGL_J1734.3+3858_weekly_bin906.fits
.....................!
real 16.90
user 16.02
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380084/ft1_filtered_4FGL_J1734.3+3858_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380084/ft2_4FGL_J1734.3+3858_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380084/ltcube_786931201_787536001_4FGL_J1734.3+3858_weekly_bin906.fits outfile=/lscratch/kocevski/17380084/expmap_786931201_787536001_4FGL_J1734.3+3858_weekly_bin906.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/17380084/ltcube_786931201_787536001_4FGL_J1734.3+3858_weekly_bin906.fits
.....................!
real 65.21
user 60.92
sys 3.49

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/17380084/ft1_filtered_4FGL_J1734.3+3858_weekly_bin906.fits scfile=/lscratch/kocevski/17380084/ft2_4FGL_J1734.3+3858_weekly_bin906.fits outfile=/lscratch/kocevski/17380084/cmap_786931201_787536001_4FGL_J1734.3+3858_weekly_bin906.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.90
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17380084/ft1_filtered_4FGL_J1734.3+3858_weekly_bin906.fits scfile=/lscratch/kocevski/17380084/ft2_4FGL_J1734.3+3858_weekly_bin906.fits outfile=/lscratch/kocevski/17380084/cmap_HighResolution_786931201_787536001_4FGL_J1734.3+3858_weekly_bin906.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.97
user 0.25
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74385E-08   1.0000          .0000       .10000E+07
     2 'norm      '    .20005E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .19870E-04   1.0000          .0000       .10000E+07
     4 'norm      '    4.5802       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.3977       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1725       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15710E-07   1.0000          .0000       .10000E+07
     8 'norm      '    3.0799       1.0000          .0000       .10000E+07
     9 'norm      '    .50737E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .62839E-07   1.0000          .0000       .10000E+07
    11 'norm      '    .39668       1.0000          .0000       .10000E+07
    12 'norm      '    .96449E-05   1.0000          .0000       .10000E+07
    13 'norm      '    3.0592       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.3463       1.0000          .0000       .10000E+07
    15 'norm      '    5.3879       1.0000          .0000       .10000E+07
    16 'Prefactor '    37.034       1.0000          .0000       .10000E+07
    17 'Prefactor '    60.545       1.0000          .0000       .10000E+07
    18 'norm      '    8.9991       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.6194       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.3017       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.1411       1.0000          .0000       .10000E+07
    22 'Prefactor '    14.936       1.0000          .0000       .10000E+07
    23 'Prefactor '    .25470E-05   1.0000          .0000       .10000E+07
    24 'norm      '    1.1499       1.0000          .0000       .10000E+07
    25 'norm      '    25.298       1.0000          .0000       .10000E+07
    26 'norm      '    .75009       1.0000          .0000       .10000E+07
    27 'Prefactor '    5.0757       1.0000          .0000       .10000E+07
    28 'Prefactor '    6.2098       1.0000          .0000       .10000E+07
    29 'Normalizat'    1.2438       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77811       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=   19189.98     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     2854 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .22759        .53772E-06** at limit **
   2  norm          .55511E-10    2.6217       -.10775E-05** at limit **
   3  Prefactor     .11102E-09    4.4436        .31860E-05** at limit **
   4  norm          4.6307        15.408       -.59098E-05   -.95576E-02
   5  Prefactor     1.3964        1.2132       -.10444E-06   -.58590E-02
   6  Prefactor     3.1725        1.2619        .11861E-06   -.16273E-01
   7  Prefactor     .11102E-09    1.2193       -.28977E-06** at limit **
   8  norm          3.0802        .93823        .31938E-06    .12547E-01
   9  norm           .0000        .13375       -.29178E-06** at limit **
  10  Prefactor      .0000        1.1756        .83396E-06** at limit **
  11  norm          .39642        .34733        .40565E-06   -.10066E-03
  12  norm          .11102E-09    2.9406        .12679E-05** at limit **
  13  norm          3.0585        1.0950       -.15767E-06   -.14163E-01
  14  Prefactor     5.3530        2.5651       -.17969E-06    .11087E-02
  15  norm          5.3802        2.9202       -.21570E-06   -.26661E-02
  16  Prefactor     37.353        12.574        .49661E-05    .57939E-01
  17  Prefactor     60.164        32.540       -.10484E-04    .24692    
  18  norm          9.0022        4.2553       -.12477E-06   -.39503E-02
  19  Prefactor     9.4788        5.0868        .35801E-05    .72499E-01
  20  Prefactor     3.3672        7.3666        .28798E-05    .27140E-02
  21  Prefactor     7.1344        5.6661        .53240E-07   -.47994E-03
  22  Prefactor     14.558        21.494       -.30924E-05   -.17819E-01
  23  Prefactor     .59469E-06    41.669        .67031E-05** at limit **
  24  norm          1.1521        .85737        .12575E-06   -.26247E-02
  25  norm          24.362        25.613       -.11934E-04   -.15505    
  26  norm          .74194        8.4533       -.32978E-05   -.21152E-02
  27  Prefactor     5.0724        2.6841       -.45112E-06    .52184E-02
  28  Prefactor     6.2104        2.8433       -.44580E-06    .16951E-02
  29  Normalizat    1.2437        .15038       -.24618E-04   -.48066E-03
  30  Prefactor     .77859        .92909E-01    .21757E-04   -.61004E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 4.63073
  Prefactor  = 1.39636
  Prefactor  = 3.17254
  Prefactor  = 1.11022e-10
  norm       = 3.08023
  norm       = 0
  Prefactor  = 0
  norm       = 0.396423
  norm       = 1.11022e-10
  norm       = 3.05848
  Prefactor  = 5.35304
  norm       = 5.38021
  Prefactor  = 37.3534
  Prefactor  = 60.1641
  norm       = 9.0022
  Prefactor  = 9.47875
  Prefactor  = 3.36716
  Prefactor  = 7.13436
  Prefactor  = 14.5584
  Prefactor  = 5.94691e-07
  norm       = 1.15213
  norm       = 24.3617
  norm       = 0.741943
  Prefactor  = 5.07238
  Prefactor  = 6.21036
  Normalizat = 1.24374
  Prefactor  = 0.778586
 **********
 **   18 **HESSE 
 **********

 FCN=   19189.98     FROM HESSE     STATUS=OK           668 CALLS     3522 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .30591E-01    .77485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    2.6234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    4.4376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.6307        15.477        .47011E-03   -1.5665    
   5  Prefactor     1.3964        1.1881        .91782E-03   -1.5684    
   6  Prefactor     3.1725        1.2054        .56873E-03   -1.5672    
   7  Prefactor     .11102E-09    .36341        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0802        .93776        .57770E-03   -1.5673    
   9  norm           .0000        .13292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.1753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .39642        .39682        .17285E-02   -1.5695    
  12  norm          .11102E-09    2.9294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0585        1.1002        .57975E-03   -1.5673    
  14  Prefactor     5.3530        2.5668        .43441E-03   -1.5662    
  15  norm          5.3802        3.0582        .43270E-03   -1.5662    
  16  Prefactor     37.353        38.768        .16434E-03   -1.5586    
  17  Prefactor     60.164        57.651        .12852E-03   -1.5553    
  18  norm          9.0022        4.3110        .33387E-03   -1.5648    
  19  Prefactor     9.4788        25.362        .32286E-03   -1.5646    
  20  Prefactor     3.3672        7.4935        .55692E-03   -1.5671    
  21  Prefactor     7.1344        5.6952        .37514E-03   -1.5655    
  22  Prefactor     14.558        21.573        .25890E-03   -1.5632    
  23  Prefactor     .59469E-06    42.103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1521        .85069        .10791E-02   -1.5686    
  25  norm          24.362        34.950        .19886E-03   -1.5609    
  26  norm          .74194        8.4841        .56732E-03   -1.5691    
  27  Prefactor     5.0724        2.6899        .44606E-03   -1.5663    
  28  Prefactor     6.2104        2.8443        .40261E-03   -1.5658    
  29  Normalizat    1.2437        .12748        .62334E-01   -.85262    
  30  Prefactor     .77859        .77267E-01    .43432E-01   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63121e-06
Minuit parameter uncertainties:
  1  9.62706e-07
  2  2.46752e-05
  3  4.0195e-05
  4  15.4771
  5  1.18812
  6  1.20538
  7  1.26701e-05
  8  0.937761
  9  1.4188e-07
  10  9.40737e-06
  11  0.396815
  12  3.88682e-05
  13  1.10017
  14  2.56681
  15  3.05825
  16  38.768
  17  57.6514
  18  4.311
  19  25.362
  20  7.49355
  21  5.69524
  22  21.573
  23  0.0100079
  24  0.850694
  25  34.9506
  26  5.01787
  27  2.68989
  28  2.84428
  29  0.127514
  30  0.0772776
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  5.380e+00  3.058e+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:  7.786e-01  7.728e-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:  1.244e+00  1.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 263.598 38.976
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 6.94e-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) = 19189.9802914
delta logL = 0.000940269459534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19189.9802281
delta logL = 0.0010035659725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3637       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2521       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77886       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=   19189.98     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      229 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3566        62.181        .43369E-03    .51477E-02
   2  alpha         2.2504        3.4853        .41410        .36493E-04
   3  Normalizat    1.2429        .74294E-01    .62351E-01    .38571E-04
   4  Prefactor     .77887        .34262E-01    .43442E-01    .38735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.35657
  alpha      = 2.25042
  Normalizat = 1.24292
  Prefactor  = 0.778873
 **********
 **   18 **HESSE 
 **********

 FCN=   19189.98     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3566        2.9664        .16633E-04   -1.5662    
   2  alpha         2.2504        .49101        .20432E-01   -.99999E-01
   3  Normalizat    1.2429        .14386        .27579E-03   -.85287    
   4  Prefactor     .77887        .90795E-01    .21489E-03   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89262e-10
Minuit parameter uncertainties:
  1  2.96642
  2  0.494251
  3  0.143908
  4  0.0908127
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) = 19189.9802169
delta logL = 0.00101475146948

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  5.357e+00  2.966e+00  0.000e+00  1.000e+06 ( 1.000e-12)
326        alpha:  2.250e+00  4.943e-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:  7.789e-01  9.081e-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:  1.243e+00  1.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 263.598 38.976
Photon Index (Free Index): 2.25 +/- 0.49
Photon Flux (Free Index): 3.18e-08 +/- 2.18e-08
Energy Flux (Free Index): 1.21e-05 +/- 6.89e-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/17380084/cmap_HighResolution_786931201_787536001_4FGL_J1734.3+3858_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='1.21e-05', photon_flux_error='1.77e-08', dlogl='1.01e-03', energy_flux='1.22e-05', photon_flux2='3.18e-08', job_status='DONE', time_completed='2025-12-16 03:12:13.133863', photon_index_error2='0.49', photon_index2='2.25', ts='6.88', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='6.89e-06', EG='1.24', time_epoch_completed='1765883533.13', return_code='0', job_id='17380084', GAL2='0.78', EG2='1.24', return_code2='0', energy_flux_error='6.94e-06', photon_flux_error2='2.18e-08', ts2='6.87', photon_index='2.23' WHERE bin_id='906' AND source_name='4FGL J1734.3+3858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:12:13 PST 2025

