/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_J1749.0+4321_weekly_bin906
RA = 267.255, Dec = 43.3616
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='17380105', job_status='RUN', time_executed='2025-12-16 02:55:29.939996', time_epoch_executed='1765882529.94' WHERE source_name='4FGL J1749.0+4321' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380105

Creating custom pfile directory:
/lscratch/kocevski/17380105/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/17380105/ft1_4FGL_J1749.0+4321_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/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17380105/ft1_4FGL_J1749.0+4321_weekly_bin906.fits outfile=/lscratch/kocevski/17380105/ft1_filteredMKT_4FGL_J1749.0+4321_weekly_bin906.fits ra=267.255 dec=43.3616 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.82
user 5.00
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_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/17380105/ft1_filteredMKT_4FGL_J1749.0+4321_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17380105/ft1_filtered_4FGL_J1749.0+4321_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.74
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1901

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17380105/ft1_filtered_4FGL_J1749.0+4321_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17380105/ltcube_786931201_787536001_4FGL_J1749.0+4321_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/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits
.....................!
real 18.88
user 17.95
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380105/ft1_filtered_4FGL_J1749.0+4321_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380105/ltcube_786931201_787536001_4FGL_J1749.0+4321_weekly_bin906.fits outfile=/lscratch/kocevski/17380105/expmap_786931201_787536001_4FGL_J1749.0+4321_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/17380105/ltcube_786931201_787536001_4FGL_J1749.0+4321_weekly_bin906.fits
.....................!
real 71.64
user 66.62
sys 4.09

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

Setting source of interest to:
4FGL J1749.0+4321 @ 267.255 43.3616

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17380105/ft1_filtered_4FGL_J1749.0+4321_weekly_bin906.fits scfile=/lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits outfile=/lscratch/kocevski/17380105/cmap_786931201_787536001_4FGL_J1749.0+4321_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=267.255 yref=43.3616 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.88
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17380105/ft1_filtered_4FGL_J1749.0+4321_weekly_bin906.fits scfile=/lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits outfile=/lscratch/kocevski/17380105/cmap_HighResolution_786931201_787536001_4FGL_J1749.0+4321_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=267.255 yref=43.3616 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.77
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17380105/ft1_filtered_4FGL_J1749.0+4321_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17380105/Model_4FGL_J1749.0+4321_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/17380105/ft1_filtered_4FGL_J1749.0+4321_weekly_bin906.fits.....................!
real 61.36
user 59.48
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17380105/ft1_filtered_4FGL_J1749.0+4321_weekly_bin906.fits', '/lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits', expMap='/lscratch/kocevski/17380105/expmap_786931201_787536001_4FGL_J1749.0+4321_weekly_bin906.fits', expCube='/lscratch/kocevski/17380105/ltcube_786931201_787536001_4FGL_J1749.0+4321_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17380105/Model_4FGL_J1749.0+4321_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1749.0+4321'

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  4.281e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17380105/ft1_filtered_4FGL_J1749.0+4321_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17380105/ft2_4FGL_J1749.0+4321_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17380105/expmap_786931201_787536001_4FGL_J1749.0+4321_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17380105/ltcube_786931201_787536001_4FGL_J1749.0+4321_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17380105/Model_4FGL_J1749.0+4321_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) = 19899.7802855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43188E-05   1.0000          .0000       .10000E+07
     2 'norm      '    3.1112       1.0000          .0000       .10000E+07
     3 'norm      '    .18319E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .27112E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .40259       1.0000          .0000       .10000E+07
     6 'norm      '    .27955E-03   1.0000          .0000       .10000E+07
     7 'norm      '    2.9989       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.2432       1.0000          .0000       .10000E+07
     9 'norm      '    5.4248       1.0000          .0000       .10000E+07
    10 'Prefactor '    38.742       1.0000          .0000       .10000E+07
    11 'Prefactor '    36.246       1.0000          .0000       .10000E+07
    12 'norm      '    6.2095       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.0656       1.0000          .0000       .10000E+07
    14 'Prefactor '    28.832       1.0000          .0000       .10000E+07
    15 'Prefactor '    27.222       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.3490       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.1864       1.0000          .0000       .10000E+07
    18 'norm      '    1.1642       1.0000          .0000       .10000E+07
    19 'norm      '    25.511       1.0000          .0000       .10000E+07
    20 'norm      '    .78583       1.0000          .0000       .10000E+07
    21 'Prefactor '    .34748E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    5.2213       1.0000          .0000       .10000E+07
    23 'norm      '    3.6869       1.0000          .0000       .10000E+07
    24 'norm      '    6.7153       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1839       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19899.76     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     2229 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    1.9705        .33434E-07** at limit **
   2  norm          3.1103        .94091       -.11246E-07   -.90380E-03
   3  norm           .0000        .13083        .62644E-09** at limit **
   4  Prefactor     .16653E-09    1.1410        .35914E-07** at limit **
   5  norm          .40296        .34905        .10198E-08    .11825E-01
   6  norm          .27756E-09    3.0117        .34994E-07** at limit **
   7  norm          3.0026        1.0818       -.21827E-07    .80873E-02
   8  Prefactor     5.2508        2.4993       -.26388E-07    .14095E-01
   9  norm          5.4078        2.9420       -.72790E-07   -.71077E-02
  10  Prefactor     38.842        18.394        .10158E-05   -.26249E-01
  11  Prefactor     36.214        13.037       -.78585E-06    .55991E-01
  12  norm          6.2071        4.0119       -.56280E-07    .39748E-02
  13  Prefactor     7.5093        18.450        .76317E-06    .31675E-01
  14  Prefactor     28.846        4.8136        .43214E-07    .53350E-03
  15  Prefactor     26.570        18.681       -.31012E-06   -.51673E-01
  16  Prefactor     3.3382        7.1997       -.23390E-05   -.42907E-02
  17  Prefactor     7.1790        5.6717        .81423E-06    .44957E-02
  18  norm          1.1634        .86665        .78515E-08    .62663E-02
  19  norm          25.683        26.532        .16927E-05    .99294E-02
  20  norm          .80831        7.7167       -.91296E-06    .24771E-03
  21  Prefactor      .0000        3.3941        .43829E-07** at limit **
  22  Prefactor     5.1979        2.7200       -.21473E-08   -.37721E-03
  23  norm          3.6590        3.3695        .37401E-07    .10438E-02
  24  norm          6.7121        5.1432       -.54467E-06   -.20897E-02
  25  Normalizat    1.1842        .14949       -.20547E-05    .93340E-04
  26  Prefactor     .80373        .89561E-01    .18413E-05   -.23938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 3.11031
  norm       = 0
  Prefactor  = 1.66533e-10
  norm       = 0.402963
  norm       = 2.77556e-10
  norm       = 3.00264
  Prefactor  = 5.25078
  norm       = 5.40783
  Prefactor  = 38.8422
  Prefactor  = 36.2136
  norm       = 6.2071
  Prefactor  = 7.50926
  Prefactor  = 28.8459
  Prefactor  = 26.5696
  Prefactor  = 3.33822
  Prefactor  = 7.17901
  norm       = 1.16338
  norm       = 25.6826
  norm       = 0.808308
  Prefactor  = 0
  Prefactor  = 5.19794
  norm       = 3.65897
  norm       = 6.71213
  Normalizat = 1.1842
  Prefactor  = 0.803734
 **********
 **   18 **HESSE 
 **********

 FCN=   19899.76     FROM HESSE     STATUS=OK           528 CALLS     2757 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .41021        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1103        .94004        .57461E-03   -1.5673    
   3  norm           .0000        .12942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16653E-09    1.1396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .40296        .39844        .17506E-02   -1.5695    
   6  norm          .27756E-09    3.0006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0026        1.0863        .58590E-03   -1.5673    
   8  Prefactor     5.2508        2.5035        .43874E-03   -1.5662    
   9  norm          5.4078        3.0720        .43120E-03   -1.5661    
  10  Prefactor     38.842        39.208        .16068E-03   -1.5583    
  11  Prefactor     36.214        52.250        .16612E-03   -1.5588    
  12  norm          6.2071        4.0491        .40262E-03   -1.5658    
  13  Prefactor     7.5093        24.083        .35279E-03   -1.5653    
  14  Prefactor     28.846        4.8539        .18626E-03   -1.5601    
  15  Prefactor     26.570        24.809        .19170E-03   -1.5605    
  16  Prefactor     3.3382        7.4916        .55278E-03   -1.5671    
  17  Prefactor     7.1790        5.7078        .37394E-03   -1.5654    
  18  norm          1.1634        .86055        .10659E-02   -1.5686    
  19  norm          25.683        35.287        .19803E-03   -1.5607    
  20  norm          .80831        7.7822        .53997E-03   -1.5690    
  21  Prefactor      .0000        3.3908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1979        2.7253        .43967E-03   -1.5662    
  23  norm          3.6590        3.3766        .52575E-03   -1.5670    
  24  norm          6.7121        5.1449        .38697E-03   -1.5656    
  25  Normalizat    1.1842        .12597        .64317E-01   -.87092    
  26  Prefactor     .80373        .74588E-01    .43764E-01   -.99591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21533e-07
Minuit parameter uncertainties:
  1  8.22845e-06
  2  0.940035
  3  1.30999e-06
  4  2.54912e-05
  5  0.398443
  6  5.63084e-05
  7  1.08631
  8  2.50353
  9  3.07199
  10  39.2078
  11  52.251
  12  4.04914
  13  24.0831
  14  4.85389
  15  24.8088
  16  7.49163
  17  5.70778
  18  0.860545
  19  35.2868
  20  5.01615
  21  1.82213e-05
  22  2.72528
  23  3.37656
  24  5.14493
  25  0.125999
  26  0.0745978
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  7.179e+00  5.708e+00  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.037e-01  7.460e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.184e+00  1.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.05e-08 +/- 1.63e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 9.19e-06

TS (Fixed Index): 2.80
Ra Dec: 267.255 43.362
Photon Flux Upper Limit: 5.56966741852e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00420694763708 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17380105/likelihoodResults_786931201_787536001_4FGL_J1749.0+4321_weekly_bin906.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): 102
logL (Free Index) = 19897.5774291
delta logL = 2.18058099274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19897.1719068
delta logL = 2.58610330027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10138E-02   1.0000          .0000       .10000E+07
     2 'Index     '    6.4261       1.0000          .0000       10.000    
     3 'Normalizat'    1.0648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19897.17     FROM MIGRAD    STATUS=CONVERGED    287 CALLS      596 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-02    .84285E-02    .42118E-04** at limit **
   2  Index         6.4293        1.7959        .97378E-01    .56236E-03
   3  Normalizat    1.0653        .13629        .67300E-01    .13905E-04
   4  Prefactor     .85981        .66533E-01    .44495E-01   -.28179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00100556
  Index      = 6.42934
  Normalizat = 1.06531
  Prefactor  = 0.859813
 **********
 **   18 **HESSE 
 **********

 FCN=   19897.17     FROM HESSE     STATUS=OK            35 CALLS      631 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10056E-02    .65738        .17841E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.4293        5.7857        .36659E-02   -357.85    
   3  Normalizat    1.0653        .15296        .29774E-03    4.0503    
   4  Prefactor     .85981        .91062E-01    .20379E-03   -13.542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80097e-05
Minuit parameter uncertainties:
  1  0.0514211
  2  19.5256
  3  0.153019
  4  0.0910776
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) = 19897.1718986
delta logL = 2.58611147859

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.006e-03  5.142e-02  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  6.429e+00  1.953e+01  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.598e-01  9.108e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.065e+00  1.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.60
Ra Dec: 267.255 43.362
Photon Index (Free Index): 6.43 +/- 19.53
Photon Flux (Free Index): 8.88e-08 +/- 8.88e-06
Energy Flux (Free Index): 1.08e-05 +/- 1.08e-03

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/17380105/cmap_HighResolution_786931201_787536001_4FGL_J1749.0+4321_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', comment='SUCCESS', photon_flux='2.05e-08', energy_flux2='1.08e-05', photon_flux_error='1.63e-08', dlogl='2.59e+00', energy_flux='1.16e-05', photon_flux2='8.88e-08', job_status='DONE', time_completed='2025-12-16 03:13:04.621828', photon_index_error2='19.53', photon_index2='6.43', ts='2.80', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='5.57e-08', energy_flux_error2='1.08e-03', EG='1.18', time_epoch_completed='1765883584.62', return_code='0', job_id='17380105', GAL2='0.86', EG2='1.07', return_code2='0', energy_flux_error='9.19e-06', photon_flux_error2='8.88e-06', ts2='8.60', photon_index='2.09' WHERE bin_id='906' AND source_name='4FGL J1749.0+4321' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:13:04 PST 2025

