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


Performing analysis on: 4FGL_J0308.4+0407_weekly_bin912
RA = 47.1105, Dec = 4.1177
tmin = 790560001, tmax = 791164801
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='19713579', job_status='RUN', time_executed='2026-01-27 00:56:22.489713', time_epoch_executed='1769504182.49' WHERE source_name='4FGL J0308.4+0407' and cadence='weekly' and bin_id='912'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19713579

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19713579/ft1_4FGL_J0308.4+0407_weekly_bin912.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19713579/ft1_4FGL_J0308.4+0407_weekly_bin912.fits outfile=/lscratch/kocevski/19713579/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin912.fits ra=47.1105 dec=4.1177 rad=12.0 tmin=790560001.0 tmax=791164801.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.97
user 4.02
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.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/19713579/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin912.fits evtable="EVENTS" outfile="/lscratch/kocevski/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.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.90
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1716

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19713579/ltcube_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.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/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits
.....................!
real 16.42
user 15.50
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.fits evtable="EVENTS" scfile=/lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19713579/ltcube_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.fits outfile=/lscratch/kocevski/19713579/expmap_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.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/19713579/ltcube_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.fits
.....................!
real 62.25
user 57.80
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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0308.4+0407 @ 47.1105 4.1177

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.fits scfile=/lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits outfile=/lscratch/kocevski/19713579/cmap_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.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=47.1105 yref=4.1177 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.16
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.fits scfile=/lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits outfile=/lscratch/kocevski/19713579/cmap_HighResolution_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.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=47.1105 yref=4.1177 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.96
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.fits evtable="EVENTS" scfile=/lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19713579/Model_4FGL_J0308.4+0407_weekly_bin912.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/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.fits.....................!
real 71.99
user 69.93
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.fits', '/lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits', expMap='/lscratch/kocevski/19713579/expmap_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.fits', expCube='/lscratch/kocevski/19713579/ltcube_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19713579/Model_4FGL_J0308.4+0407_weekly_bin912.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0308.4+0407'

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.323e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19713579/ft1_filtered_4FGL_J0308.4+0407_weekly_bin912.fits
Spacecraft file(s): /lscratch/kocevski/19713579/ft2_4FGL_J0308.4+0407_weekly_bin912.fits
Exposure map: /lscratch/kocevski/19713579/expmap_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.fits
Exposure cube: /lscratch/kocevski/19713579/ltcube_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19713579/Model_4FGL_J0308.4+0407_weekly_bin912.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) = 18438.3920557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.868       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.1128       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10751E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .53214E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    30.820       1.0000          .0000       .10000E+07
     6 'norm      '    .32072E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13518E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    16.465       1.0000          .0000       .10000E+07
     9 'Prefactor '    .87015E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11982       1.0000          .0000       .10000E+07
    11 'norm      '    .77255       1.0000          .0000       .10000E+07
    12 'norm      '    .49794E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .38847E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .20282E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.543       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.8036       1.0000          .0000       .10000E+07
    17 'Prefactor '    .68290E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .90822E-06   1.0000          .0000       .10000E+07
    19 'norm      '    1.5992       1.0000          .0000       .10000E+07
    20 'Normalizat'    .81591       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0753       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18438.29     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1377 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.840        4.4827        .35782E-07    .79819E-01
   2  Prefactor     2.7724        258.54       -.13423E-05    .21259E-02
   3  Prefactor     .16653E-09    6.7676       -.19711E-06** at limit **
   4  Prefactor     .66613E-09    10.049        .24433E-07** at limit **
   5  Prefactor     30.831        1.4433       -.14261E-08    .91797E-01
   6  norm           .0000        3.3718       -.10489E-07** at limit **
   7  Prefactor     .27756E-09    27.353        .98539E-07** at limit **
   8  Prefactor     16.573        1.2079       -.36349E-08    .12083E-01
   9  Prefactor      .0000        32.430        .28563E-06** at limit **
  10  Prefactor     .12403        5.6935        .26838E-06** at limit **
  11  norm          .78561        3.4644        .55183E-07    .20582E-03
  12  norm           .0000        1.6624       -.60503E-07** at limit **
  13  Prefactor      .0000        .92163        .67603E-08** at limit **
  14  norm           .0000        5.3595       -.14190E-06** at limit **
  15  Prefactor     11.522        8.7366       -.34886E-07   -.84688E-02
  16  Prefactor     4.8020        2.8513        .14435E-07    .55494E-03
  17  Prefactor     .47740E-08    11.867        .10649E-06** at limit **
  18  norm           .0000        2.6536       -.50090E-07** at limit **
  19  norm          1.5984        .78693        .68260E-08    .98365E-03
  20  Normalizat    .81651        .13384       -.62326E-07   -.58297E-04
  21  Prefactor     1.0753        .58687E-01   -.20024E-06   -.12311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8398
  Prefactor  = 2.77237
  Prefactor  = 1.66533e-10
  Prefactor  = 6.66134e-10
  Prefactor  = 30.8306
  norm       = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 16.5725
  Prefactor  = 0
  Prefactor  = 0.124029
  norm       = 0.785614
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 11.5222
  Prefactor  = 4.80196
  Prefactor  = 4.77396e-09
  norm       = 0
  norm       = 1.59844
  Normalizat = 0.816514
  Prefactor  = 1.07528
 **********
 **   18 **HESSE 
 **********

 FCN=   18438.29     FROM HESSE     STATUS=OK           361 CALLS     1738 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.840        17.051        .21897E-03   -1.5617    
   2  Prefactor     2.7724        263.81        .44440E-03   -1.5675    
   3  Prefactor     .16653E-09    6.8208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66613E-09    10.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.831        11.791        .18015E-03   -1.5597    
   6  norm           .0000        3.4129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    26.987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.573        15.254        .24656E-03   -1.5627    
   9  Prefactor      .0000        32.009        .14292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12403        1.2842        .48871E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .78561        3.5258        .55003E-03   -1.5690    
  12  norm           .0000        1.6759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .92228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        5.3133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.522        8.7466        .29461E-03   -1.5640    
  16  Prefactor     4.8020        2.8590        .45879E-03   -1.5664    
  17  Prefactor     .47740E-08    11.901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        2.6436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5984        .79231        .83813E-03   -1.5683    
  20  Normalizat    .81651        .12959        .89197E-01   -.99459    
  21  Prefactor     1.0753        .54517E-01    .38611E-01   -.90261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23725e-07
Minuit parameter uncertainties:
  1  17.0508
  2  54.0901
  3  6.53472e-05
  4  0.000166925
  5  11.7911
  6  1.52966e-05
  7  0.00016778
  8  15.2538
  9  5.46505e-06
  10  0.798186
  11  3.32861
  12  3.94206e-06
  13  6.37281e-07
  14  1.65735e-05
  15  8.74663
  16  2.85904
  17  0.000476712
  18  9.06137e-06
  19  0.792307
  20  0.129635
  21  0.0545203
Done.

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

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  6.373e-07  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.075e+00  5.452e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.165e-01  1.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 47.111 4.118
Photon Flux Upper Limit: 2.68338547619e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00200803961776 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/19713579/likelihoodResults_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.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) = 18438.2998837
delta logL = -0.00813527753053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18438.2917484
delta logL = -4.03088051826e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46629E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.5046       1.0000          .0000       10.000    
     3 'Normalizat'    .81651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0753       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18438.29     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      234 TOTAL
                     EDM=   .58E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .88081        .42118E-03** at limit **
   2  Index         2.0437        1.1823       -.98087E-05     .0000    
   3  Normalizat    .81651        1.1549       -.41067E-05    .30538E-04
   4  Prefactor     1.0753        1.1666        .11830E-05    .79007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.04371
  Normalizat = 0.816514
  Prefactor  = 1.07528
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18438.29     FROM HESSE     STATUS=FAILED         9 CALLS      243 TOTAL
                     EDM=   .58E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .88081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .45138        1.7222       -.98087E-05   -.63262    
   3  Normalizat    .81651        1.1549       -.41067E-05   -.99459    
   4  Prefactor     1.0753        1.1666        .11830E-05   -.90261    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.80045e-13
Minuit parameter uncertainties:
  1  2.53542e-07
  2  1.1999
  3  1.19271
  4  1.19614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 18438.2917484
delta logL = 0.0

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  2.535e-07  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  2.044e+00  1.200e+00  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.075e+00  1.196e+00  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.165e-01  1.193e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 47.111 4.118

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/19713579/cmap_HighResolution_790560001_791164801_4FGL_J0308.4+0407_weekly_bin912.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-03', job_status='DONE', photon_flux_upper_limit='2.68e-08', time_completed='2026-01-27 01:08:48.274263', job_id='19713579', GAL2='1.08', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1769504928.27', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='912' AND source_name='4FGL J0308.4+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 27 01:08:48 PST 2026

