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


Performing analysis on: 4FGL_J0308.4+0407_weekly_bin853
RA = 47.1105, Dec = 4.1177
tmin = 754876801, tmax = 755481601
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='59976480', job_status='RUN', time_executed='2024-12-10 00:02:21.509738', time_epoch_executed='1733817741.51' WHERE source_name='4FGL J0308.4+0407' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59976480

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59976480/ft1_4FGL_J0308.4+0407_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59976480/ft1_4FGL_J0308.4+0407_weekly_bin853.fits outfile=/lscratch/kocevski/59976480/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin853.fits ra=47.1105 dec=4.1177 rad=12.0 tmin=754876801.0 tmax=755481601.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.30
user 2.87
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.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/59976480/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59976480/ft1_filtered_4FGL_J0308.4+0407_weekly_bin853.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.54
user 0.23
sys 0.14

Number of photons that the gtmktime cut: 402

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59976480/ft1_filtered_4FGL_J0308.4+0407_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59976480/ltcube_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.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/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.fits
.....................!
real 37.35
user 36.48
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59976480/ft1_filtered_4FGL_J0308.4+0407_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59976480/ltcube_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.fits outfile=/lscratch/kocevski/59976480/expmap_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.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/59976480/ltcube_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.fits
.....................!
real 67.47
user 63.06
sys 3.87

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/59976480/ft1_filtered_4FGL_J0308.4+0407_weekly_bin853.fits scfile=/lscratch/kocevski/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.fits outfile=/lscratch/kocevski/59976480/cmap_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.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 0.46
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59976480/ft1_filtered_4FGL_J0308.4+0407_weekly_bin853.fits scfile=/lscratch/kocevski/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.fits outfile=/lscratch/kocevski/59976480/cmap_HighResolution_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.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.45
user 0.25
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59976480/ft1_filtered_4FGL_J0308.4+0407_weekly_bin853.fits', '/lscratch/kocevski/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.fits', expMap='/lscratch/kocevski/59976480/expmap_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.fits', expCube='/lscratch/kocevski/59976480/ltcube_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59976480/Model_4FGL_J0308.4+0407_weekly_bin853.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/59976480/ft1_filtered_4FGL_J0308.4+0407_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59976480/ft2_4FGL_J0308.4+0407_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59976480/expmap_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59976480/ltcube_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59976480/Model_4FGL_J0308.4+0407_weekly_bin853.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) = 4642.84183464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76749       1.0000          .0000       .10000E+07
     2 'Prefactor '    54.359       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.6263       1.0000          .0000       .10000E+07
     4 'Prefactor '    .39473E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .32534       1.0000          .0000       .10000E+07
     6 'norm      '    20.250       1.0000          .0000       .10000E+07
     7 'Prefactor '    .87635E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19562E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14239E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .22715E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .19800E-03   1.0000          .0000       .10000E+07
    12 'norm      '    11.800       1.0000          .0000       .10000E+07
    13 'Prefactor '    .61309E-03   1.0000          .0000       .10000E+07
    14 'norm      '    19.258       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.0436       1.0000          .0000       .10000E+07
    16 'Prefactor '    .16750E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    10.793       1.0000          .0000       .10000E+07
    18 'norm      '    .62099E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .90206E-07   1.0000          .0000       .10000E+07
    20 'Normalizat'    .81471       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92509       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=   4642.841     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     2415 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83244        1.4176       -.50272E-08   -.10386E-01
   2  Prefactor     54.351        4.9799        .13443E-08    .94993E-01
   3  Prefactor     5.9428        3.1003       -.22695E-08   -.12389E-01
   4  Prefactor     .11862E-04    29.683       -.63253E-06** at limit **
   5  Prefactor     .19779E-04    133.79       -.18737E-05** at limit **
   6  norm          20.235        15.016       -.77445E-07   -.12789    
   7  Prefactor     .17042E-07    3.6245        .24506E-06** at limit **
   8  Prefactor     .55511E-10    31.122       -.72592E-07** at limit **
   9  Prefactor     .90829E-05    37.284       -.30120E-06** at limit **
  10  Prefactor      .0000        3.9835        .21025E-07** at limit **
  11  norm          .55511E-10    4.8595        .34594E-08** at limit **
  12  norm          11.811        7.1266        .10155E-06    .20090E-02
  13  Prefactor     .22871E-07    8.1460        .21970E-06** at limit **
  14  norm          19.231        3.0322        .13294E-07    .48838E-01
  15  Prefactor     3.0349        1.9925       -.45504E-07   -.22548E-02
  16  Prefactor     .69944E-07    3.7630        .21570E-06** at limit **
  17  Prefactor     10.846        2.0060        .13277E-07    .62091E-02
  18  norm          .14433E-08    6.2392        .30535E-07** at limit **
  19  norm           .0000        1.4568        .18263E-07** at limit **
  20  Normalizat    .81547        .23402       -.38946E-06   -.27887E-04
  21  Prefactor     .92476        .11430       -.32705E-06   -.60390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.832435
  Prefactor  = 54.3514
  Prefactor  = 5.94284
  Prefactor  = 1.18624e-05
  Prefactor  = 1.97786e-05
  norm       = 20.2346
  Prefactor  = 1.70419e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 9.0829e-06
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 11.8114
  Prefactor  = 2.28706e-08
  norm       = 19.2308
  Prefactor  = 3.03486
  Prefactor  = 6.99441e-08
  Prefactor  = 10.8463
  norm       = 1.44329e-09
  norm       = 0
  Normalizat = 0.815467
  Prefactor  = 0.924758
 **********
 **   18 **HESSE 
 **********

 FCN=   4642.841     FROM HESSE     STATUS=OK           361 CALLS     2776 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83244        302.07        .55390E-03   -1.5690    
   2  Prefactor     54.351        142.28        .13564E-03   -1.5561    
   3  Prefactor     5.9428        68.967        .42328E-03   -1.5659    
   4  Prefactor     .11862E-04    44.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19779E-04    31.238        .11250E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.235        18.265        .22229E-03   -1.5618    
   7  Prefactor     .17042E-07    7.2534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    31.100        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .90829E-05    50.506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.9793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    4.8598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.811        7.1805        .29138E-03   -1.5639    
  13  Prefactor     .22871E-07    8.2496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          19.231        14.968        .22795E-03   -1.5620    
  15  Prefactor     3.0349        13.056        .58132E-03   -1.5673    
  16  Prefactor     .69944E-07    7.2305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.846        21.857        .30472E-03   -1.5642    
  18  norm          .14433E-08    6.3244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.4375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81547        .22675        .79609E-01   -.99497    
  21  Prefactor     .92476        .10603        .45324E-01   -.95281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86943e-06
Minuit parameter uncertainties:
  1  31.7161
  2  142.288
  3  40.4906
  4  0.0461184
  5  0.0497134
  6  18.2652
  7  0.000703528
  8  6.31604e-05
  9  0.0428369
  10  2.81582e-06
  11  3.67053e-05
  12  7.18049
  13  0.000868905
  14  14.9677
  15  12.5895
  16  0.00142213
  17  21.8576
  18  0.000189546
  19  1.62428e-06
  20  0.227015
  21  0.106051
Done.

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

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  2.287e-08  8.689e-04  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:  9.248e-01  1.061e-01  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.155e-01  2.270e-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: 9.91377867151e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0074187106216 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59976480/likelihoodResults_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.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) = 4642.90523545
delta logL = -0.0642177590844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 4642.567156
delta logL = 0.273861689978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83267E-09   1.0000          .0000       .10000E+07
     2 'Index     '    9.9973       1.0000          .0000       10.000    
     3 'Normalizat'    .76992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93632       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=   4642.841     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      770 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.1312        .42118E-03** at limit **
   2  Index         1.3117        1.0658        .24062E-05     .0000    
   3  Normalizat    .81547        1.1392        .20668E-04   -.72533E-04
   4  Prefactor     .92476        1.2722        .10282E-04   -.31581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.31174
  Normalizat = 0.815466
  Prefactor  = 0.924759
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4642.841     FROM HESSE     STATUS=FAILED         9 CALLS      779 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.1312        .42118E-03   -.55341E+06
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4291        1.9287        .24062E-05   -.15730E+09
   3  Normalizat    .81547        1.1392        .20668E-04   -95.243    
   4  Prefactor     .92476        1.2722        .10282E-04   -215.82    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.26141e-11
Minuit parameter uncertainties:
  1  1.96238e-05
  2  1.08439
  3  1.17544
  4  1.31714
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) = 4642.84101769
delta logL = 1.35332811624e-09

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  0.000e+00  1.962e-05  0.000e+00  1.000e+06 ( 1.000e-13)
291        Index:  1.312e+00  1.084e+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:  9.248e-01  1.317e+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.155e-01  1.175e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/59976480/cmap_HighResolution_754876801_755481601_4FGL_J0308.4+0407_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.91e-08', time_completed='2024-12-10 00:08:11.304276', job_id='59976480', GAL2='0.92', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1733818091.3', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.35e-09', ts2='0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='853' AND source_name='4FGL J0308.4+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:08:11 PST 2024

