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


Performing analysis on: 4FGL_J2034.6+1154_weekly_bin907
RA = 308.65, Dec = 11.9035
tmin = 787536001, tmax = 788140801
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='17776284', job_status='RUN', time_executed='2025-12-23 02:24:25.389263', time_epoch_executed='1766485465.39' WHERE source_name='4FGL J2034.6+1154' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17776284

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17776284/ft1_4FGL_J2034.6+1154_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17776284/ft1_4FGL_J2034.6+1154_weekly_bin907.fits outfile=/lscratch/kocevski/17776284/ft1_filteredMKT_4FGL_J2034.6+1154_weekly_bin907.fits ra=308.65 dec=11.9035 rad=12.0 tmin=787536001.0 tmax=788140801.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.01
sys 0.33

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.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/17776284/ft1_filteredMKT_4FGL_J2034.6+1154_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.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.72
user 0.19
sys 0.15

Number of photons that the gtmktime cut: 2636

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17776284/ltcube_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.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/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits
.....................!
real 17.47
user 16.61
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17776284/ltcube_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.fits outfile=/lscratch/kocevski/17776284/expmap_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.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/17776284/ltcube_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.fits
.....................!
real 65.45
user 60.93
sys 3.82

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
Extended source W 51C in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 225 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2034.6+1154 @ 308.65 11.9035

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.fits scfile=/lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits outfile=/lscratch/kocevski/17776284/cmap_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.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=308.65 yref=11.9035 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.73
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.fits scfile=/lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits outfile=/lscratch/kocevski/17776284/cmap_HighResolution_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.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=308.65 yref=11.9035 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.78
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17776284/Model_4FGL_J2034.6+1154_weekly_bin907.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 Cygnus Loop
adding source EG_v02
adding source G42.8+0.6
adding source GAL_V02
adding source W 51C
Working on...
/lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.fits.....................!
real 208.81
user 206.32
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.fits', '/lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits', expMap='/lscratch/kocevski/17776284/expmap_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.fits', expCube='/lscratch/kocevski/17776284/ltcube_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17776284/Model_4FGL_J2034.6+1154_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2034.6+1154'

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  5.807e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.540e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17776284/ft1_filtered_4FGL_J2034.6+1154_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17776284/ft2_4FGL_J2034.6+1154_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17776284/expmap_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17776284/ltcube_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17776284/Model_4FGL_J2034.6+1154_weekly_bin907.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) = 26764.0953766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37226E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5128       1.0000          .0000       .10000E+07
     3 'norm      '    3.6636       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20517E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .64861E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    13.812       1.0000          .0000       .10000E+07
     7 'norm      '    .52150E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .49314E-04   1.0000          .0000       .10000E+07
     9 'norm      '    1.3675       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64860E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.1057       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21712E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .45075E-07   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1743       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .97557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26763.78     FROM MIGRAD    STATUS=CONVERGED    188 CALLS      901 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96589E-08    4.5158       -.15508E-06** at limit **
   2  Prefactor     1.3544        88.563       -.31880E-06    .90095E-03
   3  norm          3.6766        2.4837        .31325E-07    .76046E-02
   4  Prefactor     .17208E-08    2.4093       -.28311E-08** at limit **
   5  Prefactor     .98477E-07    2.6886        .10530E-06** at limit **
   6  Prefactor     13.951        6.2200       -.42678E-07    .52600E-01
   7  norm          .18874E-08    34.839       -.10474E-06** at limit **
   8  Prefactor     .17447E-06    5.2418        .49140E-07** at limit **
   9  norm          1.3943        4.6788        .17876E-07   -.56833E-03
  10  Prefactor     .37192E-08    7.3313        .67229E-07** at limit **
  11  Prefactor     5.0411        5.3051        .34898E-07    .86067E-01
  12  Prefactor     .55511E-10    23.119        .12444E-06** at limit **
  13  Prefactor     .18652E-07    2.2429       -.46496E-07** at limit **
  14  Normalizat    1.1736        .18011       -.48209E-05   -.37231E-03
  15  Prefactor     .97592        .49940E-01    .12855E-05    .35111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.65894e-09
  Prefactor  = 1.35439
  norm       = 3.67656
  Prefactor  = 1.72085e-09
  Prefactor  = 9.84768e-08
  Prefactor  = 13.9506
  norm       = 1.88738e-09
  Prefactor  = 1.74472e-07
  norm       = 1.39435
  Prefactor  = 3.71925e-09
  Prefactor  = 5.04113
  Prefactor  = 5.55112e-11
  Prefactor  = 1.86517e-08
  Normalizat = 1.17356
  Prefactor  = 0.975921
 **********
 **   18 **HESSE 
 **********

 FCN=   26763.78     FROM HESSE     STATUS=OK           224 CALLS     1125 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96589E-08    4.8951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3544        87.668        .64428E-03   -1.5685    
   3  norm          3.6766        2.4747        .52748E-03   -1.5670    
   4  Prefactor     .17208E-08    2.4826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .98477E-07    3.4407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.951        9.6004        .26926E-03   -1.5633    
   7  norm          .18874E-08    .13830        .32094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17447E-06    6.6028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3943        4.6848        .93244E-03   -1.5684    
  10  Prefactor     .37192E-08    7.6818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0411        7.7496        .44472E-03   -1.5663    
  12  Prefactor     .55511E-10    3.7860        .12284E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18652E-07    3.5132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1736        .16785        .10722       -.87424    
  15  Prefactor     .97592        .44725E-01    .31852E-01   -.93537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03075e-06
Minuit parameter uncertainties:
  1  0.000434463
  2  21.7936
  3  2.47475
  4  0.000131108
  5  0.00116417
  6  9.6004
  7  3.24167e-05
  8  0.00214652
  9  4.68482
  10  0.000339124
  11  7.74962
  12  2.81567e-05
  13  0.0005122
  14  0.167931
  15  0.0447265
Done.

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

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  1.395e+01  9.600e+00  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.540e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
796    Prefactor:  9.759e-01  4.473e-02  0.000e+00  1.000e+01 ( 1.000e+00)
797        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
798        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
792   Normalization:  1.174e+00  1.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 308.650 11.903
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.01e-05

TS (Fixed Index): 3.42
Ra Dec: 308.650 11.903
Photon Flux Upper Limit: 1.14913867619e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00896017739933 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17776284/likelihoodResults_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.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) = 26763.7835276
delta logL = 4.21285221819e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26763.7835274
delta logL = 6.28919224255e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26763.78     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.970        18.187        .10716E-04    .76383E-04
   2  Index         2.5387        .81720        .96185E-02    .74463E-04
   3  Normalizat    1.1736        .18360        .47527E-03    .24877E-05
   4  Prefactor     .97591        .49354E-01    .14074E-03    .74313E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9702
  Index      = 2.53868
  Normalizat = 1.17362
  Prefactor  = 0.975909
 **********
 **   18 **HESSE 
 **********

 FCN=   26763.78     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .37E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.970        13.994        .42865E-06   -1.5633    
   2  Index         2.5387        .62940        .38474E-03   -.51469    
   3  Normalizat    1.1736        .18243        .19011E-04   -.87422    
   4  Prefactor     .97591        .49180E-01    .56298E-05   -.93537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69946e-14
Minuit parameter uncertainties:
  1  13.9941
  2  0.631617
  3  0.182533
  4  0.0491821
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) = 26763.7835262
delta logL = 1.84157397598e-06

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  1.397e+01  1.399e+01  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.539e+00  6.316e-01  0.000e+00  1.000e+01 (-1.000e+00)
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
796    Prefactor:  9.759e-01  4.918e-02  0.000e+00  1.000e+01 ( 1.000e+00)
797        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
798        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
792   Normalization:  1.174e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 308.650 11.903
Photon Index (Free Index): 2.54 +/- 0.63
Photon Flux (Free Index): 5.28e-08 +/- 3.88e-08
Energy Flux (Free Index): 1.47e-05 +/- 9.96e-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/17776284/cmap_HighResolution_787536001_788140801_4FGL_J2034.6+1154_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='1.47e-05', photon_flux_error='3.63e-08', dlogl='1.84e-06', energy_flux='1.47e-05', photon_flux2='5.28e-08', job_status='DONE', time_completed='2025-12-23 02:40:57.310907', photon_index_error2='0.63', photon_index2='2.54', ts='3.42', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='9.96e-06', EG='1.17', time_epoch_completed='1766486457.31', return_code='0', job_id='17776284', GAL2='0.98', EG2='1.17', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='3.88e-08', ts2='3.42', photon_index='2.54' WHERE bin_id='907' AND source_name='4FGL J2034.6+1154' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:40:57 PST 2025

