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


Performing analysis on: 4FGL_J0348.5-2749_weekly_bin875
RA = 57.1417, Dec = -27.8303
tmin = 768182401, tmax = 768787201
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='4941552', job_status='RUN', time_executed='2025-05-13 00:08:13.877368', time_epoch_executed='1747120093.88' WHERE source_name='4FGL J0348.5-2749' and cadence='weekly' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/4941552

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/4941552/ft1_4FGL_J0348.5-2749_weekly_bin875.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/4941552/ft1_4FGL_J0348.5-2749_weekly_bin875.fits outfile=/lscratch/kocevski/4941552/ft1_filteredMKT_4FGL_J0348.5-2749_weekly_bin875.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=768182401.0 tmax=768787201.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 3.66
user 3.07
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.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/4941552/ft1_filteredMKT_4FGL_J0348.5-2749_weekly_bin875.fits evtable="EVENTS" outfile="/lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.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.22
sys 0.13

Number of photons that the gtmktime cut: 1175

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.fits" evtable="EVENTS" scfile=/lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits sctable="SC_DATA" outfile=/lscratch/kocevski/4941552/ltcube_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.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/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits
.....................!
real 20.15
user 19.48
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.fits evtable="EVENTS" scfile=/lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits sctable="SC_DATA" expcube=/lscratch/kocevski/4941552/ltcube_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.fits outfile=/lscratch/kocevski/4941552/expmap_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.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/4941552/ltcube_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.fits
.....................!
real 68.61
user 64.32
sys 3.62

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 Fornax A in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 160 point sources and 1 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 J0348.5-2749 @ 57.1417 -27.8303

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.fits scfile=/lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits outfile=/lscratch/kocevski/4941552/cmap_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.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=57.1417 yref=-27.8303 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.94
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.fits scfile=/lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits outfile=/lscratch/kocevski/4941552/cmap_HighResolution_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.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=57.1417 yref=-27.8303 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 1.20
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.fits evtable="EVENTS" scfile=/lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/4941552/Model_4FGL_J0348.5-2749_weekly_bin875.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 Fornax A
adding source GAL_V02
Working on...
/lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.fits.....................!
real 102.33
user 100.09
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.fits', '/lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits', expMap='/lscratch/kocevski/4941552/expmap_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.fits', expCube='/lscratch/kocevski/4941552/ltcube_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/4941552/Model_4FGL_J0348.5-2749_weekly_bin875.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.5-2749'

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.231e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/4941552/ft1_filtered_4FGL_J0348.5-2749_weekly_bin875.fits
Spacecraft file(s): /lscratch/kocevski/4941552/ft2_4FGL_J0348.5-2749_weekly_bin875.fits
Exposure map: /lscratch/kocevski/4941552/expmap_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.fits
Exposure cube: /lscratch/kocevski/4941552/ltcube_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/4941552/Model_4FGL_J0348.5-2749_weekly_bin875.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) = 13336.0758758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10521E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .98313E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.9625       1.0000          .0000       .10000E+07
     4 'Prefactor '    21.589       1.0000          .0000       .10000E+07
     5 'norm      '    2.9275       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2404       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14339E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.8843       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0500       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.007       1.0000          .0000       .10000E+07
    11 'norm      '    .62258       1.0000          .0000       .10000E+07
    12 'Prefactor '    .20698E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .50810E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11601       1.0000          .0000       .10000E+07
    15 'Prefactor '    .93930E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .89461       1.0000          .0000       .10000E+07
    17 'norm      '    2.6741       1.0000          .0000       .10000E+07
    18 'Prefactor '    .36895E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .26645E-08   1.0000          .0000       .10000E+07
    20 'norm      '    13.414       1.0000          .0000       .10000E+07
    21 'Prefactor '    .51337E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .34212E-05   1.0000          .0000       .10000E+07
    23 'Normalizat'    .92981       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13336.00     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1646 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20539E-08    2.0065       -.76839E-07** at limit **
   2  Prefactor     .99309E-07    31.297        .39859E-06** at limit **
   3  Prefactor     3.9675        11.147       -.59529E-07    .30669E-02
   4  Prefactor     22.007        14.499       -.15270E-06   -.44906E-01
   5  norm          2.9284        1.4621        .68561E-08   -.12914E-03
   6  Prefactor     2.3904        8.2265       -.23791E-06   -.10809E-01
   7  Prefactor     .11102E-09    .35200        .22486E-07** at limit **
   8  Prefactor     1.8796        2.6483       -.12826E-06   -.24166E-03
   9  Prefactor     3.0543        2.4237        .94795E-07    .61296E-03
  10  Prefactor     16.015        8.8024       -.81683E-08   -.77329E-03
  11  norm          .62218        .35548        .23803E-08   -.22928E-02
  12  Prefactor     .91593E-08    10.853       -.94992E-06** at limit **
  13  norm          .35695E-04    4.4676       -.39129E-06** at limit **
  14  Prefactor     .55511E-10    33.612        .29742E-06** at limit **
  15  Prefactor     .31891E-06    277.14        .20065E-05** at limit **
  16  Prefactor     .89495        .99168       -.15191E-08    .36963E-03
  17  norm          2.6652        4.2478        .28539E-06    .76305E-03
  18  Prefactor     .86042E-08    15.547       -.10699E-06** at limit **
  19  norm           .0000        .57947E-01    .58672E-08** at limit **
  20  norm          13.416        4.4877       -.19974E-07   -.61481E-03
  21  Prefactor     .10547E-08    1.6063       -.38844E-07** at limit **
  22  Prefactor     .20539E-08    4.0783       -.15212E-06** at limit **
  23  Normalizat    .92950        .12461       -.11959E-05   -.13825E-04
  24  Prefactor     .96275        .12665       -.84215E-06   -.52689E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05391e-09
  Prefactor  = 9.93094e-08
  Prefactor  = 3.96753
  Prefactor  = 22.0068
  norm       = 2.92838
  Prefactor  = 2.39037
  Prefactor  = 1.11022e-10
  Prefactor  = 1.87955
  Prefactor  = 3.05433
  Prefactor  = 16.0147
  norm       = 0.622175
  Prefactor  = 9.15934e-09
  norm       = 3.56946e-05
  Prefactor  = 5.55112e-11
  Prefactor  = 3.18912e-07
  Prefactor  = 0.894955
  norm       = 2.6652
  Prefactor  = 8.60423e-09
  norm       = 0
  norm       = 13.4164
  Prefactor  = 1.05471e-09
  Prefactor  = 2.05391e-09
  Normalizat = 0.929499
  Prefactor  = 0.96275
 **********
 **   18 **HESSE 
 **********

 FCN=   13336.00     FROM HESSE     STATUS=OK           463 CALLS     2109 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20539E-08    1.9384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .99309E-07    31.484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9675        11.175        .50648E-03   -1.5668    
   4  Prefactor     22.007        17.443        .21528E-03   -1.5614    
   5  norm          2.9284        1.4625        .59344E-03   -1.5674    
   6  Prefactor     2.3904        36.353        .68638E-03   -1.5677    
   7  Prefactor     .11102E-09    .35174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8796        2.7218        .75796E-03   -1.5681    
   9  Prefactor     3.0543        2.4870        .58068E-03   -1.5673    
  10  Prefactor     16.015        8.8113        .25007E-03   -1.5628    
  11  norm          .62218        .35652        .67229E-03   -1.5692    
  12  Prefactor     .91593E-08    10.915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .35695E-04    .48764        .25115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    33.626        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .31891E-06    12.339        .10047E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .89495        .99767        .46133E-03   -1.5689    
  17  norm          2.6652        4.2714        .62292E-03   -1.5675    
  18  Prefactor     .86042E-08    15.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .41430E-01    .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.416        4.5194        .27323E-03   -1.5635    
  21  Prefactor     .10547E-08    1.6020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .20539E-08    4.0638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92950        .10788        .45281E-01   -.95431    
  24  Prefactor     .96275        .10983        .45799E-01   -.93982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33011e-08
Minuit parameter uncertainties:
  1  0.000125354
  2  0.00353645
  3  11.1755
  4  17.4433
  5  1.46248
  6  18.644
  7  1.24694e-05
  8  2.72183
  9  2.48699
  10  8.81128
  11  0.356518
  12  0.000632229
  13  0.00834414
  14  9.97185e-05
  15  0.00396755
  16  0.997668
  17  4.27138
  18  0.000731349
  19  3.37304e-07
  20  4.51943
  21  8.30023e-05
  22  0.000183072
  23  0.107909
  24  0.109857
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  6.222e-01  3.565e-01  0.000e+00  1.000e+06 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.628e-01  1.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.295e-01  1.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.87
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 1.27e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 6.00e-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) = 13333.4224768
delta logL = 2.58034464421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13333.4162641
delta logL = 2.58655725325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22120       1.0000          .0000       .10000E+07
     2 'alpha     '    1.0384       1.0000          .0000       5.0000    
     3 'Normalizat'    .94530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95661       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13333.42     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22115        .13950        .69412E-03** at limit **
   2  alpha         1.0383        .25936        .30062       -.93328E-04
   3  Normalizat    .94526        .10385        .45478E-01    .23817E-04
   4  Prefactor     .95669        .10884        .45723E-01    .20769E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.221154
  alpha      = 1.0383
  Normalizat = 0.945264
  Prefactor  = 0.956694
 **********
 **   18 **HESSE 
 **********

 FCN=   13333.42     FROM HESSE     STATUS=OK            35 CALLS      250 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22115        .22073        .28966E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.0383        .40993        .12527E-01   -.62449    
   3  Normalizat    .94526        .12026        .23271E-03   -.94887    
   4  Prefactor     .95669        .12605        .24133E-03   -.94187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61373e-11
Minuit parameter uncertainties:
  1  0.220728
  2  0.412775
  3  0.120293
  4  0.126091
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) = 13333.4162638
delta logL = 2.58655763614

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.212e-01  2.207e-01  0.000e+00  1.000e+06 ( 1.000e-11)
248        alpha:  1.038e+00  4.128e-01  0.000e+00  5.000e+00 ( 1.000e+00)
249         beta:  6.312e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.567e-01  1.261e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.453e-01  1.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.04
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.04 +/- 0.41
Photon Flux (Free Index): 6.41e-09 +/- 4.70e-09
Energy Flux (Free Index): 4.13e-05 +/- 3.65e-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/4941552/cmap_HighResolution_768182401_768787201_4FGL_J0348.5-2749_weekly_bin875.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='4.13e-05', photon_flux_error='1.27e-08', dlogl='2.59e+00', energy_flux='1.05e-05', photon_flux2='6.41e-09', job_status='DONE', time_completed='2025-05-13 00:21:30.064877', photon_index_error2='0.41', photon_index2='1.04', ts='10.87', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.65e-05', EG='0.93', time_epoch_completed='1747120890.06', return_code='0', job_id='4941552', GAL2='0.96', EG2='0.95', return_code2='0', energy_flux_error='6.00e-06', photon_flux_error2='4.70e-09', ts2='16.04', photon_index='2.09' WHERE bin_id='875' AND source_name='4FGL J0348.5-2749' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 13 00:21:30 PDT 2025

