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


Performing analysis on: 4FGL_J0318.7+2135_weekly_bin906
RA = 49.6946, Dec = 21.5968
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='17373166', job_status='RUN', time_executed='2025-12-16 01:13:13.450779', time_epoch_executed='1765876393.45' WHERE source_name='4FGL J0318.7+2135' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17373166

Creating custom pfile directory:
/lscratch/kocevski/17373166/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/17373166/ft1_4FGL_J0318.7+2135_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/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17373166/ft1_4FGL_J0318.7+2135_weekly_bin906.fits outfile=/lscratch/kocevski/17373166/ft1_filteredMKT_4FGL_J0318.7+2135_weekly_bin906.fits ra=49.6946 dec=21.5968 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 6.51
user 5.42
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_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/17373166/ft1_filteredMKT_4FGL_J0318.7+2135_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17373166/ft1_filtered_4FGL_J0318.7+2135_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.91
user 0.24
sys 0.13

Number of photons that the gtmktime cut: 2478

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17373166/ft1_filtered_4FGL_J0318.7+2135_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17373166/ltcube_786931201_787536001_4FGL_J0318.7+2135_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/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits
.....................!
real 20.42
user 19.24
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17373166/ft1_filtered_4FGL_J0318.7+2135_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17373166/ltcube_786931201_787536001_4FGL_J0318.7+2135_weekly_bin906.fits outfile=/lscratch/kocevski/17373166/expmap_786931201_787536001_4FGL_J0318.7+2135_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/17373166/ltcube_786931201_787536001_4FGL_J0318.7+2135_weekly_bin906.fits
.....................!
real 75.64
user 70.14
sys 4.48

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

Setting source of interest to:
4FGL J0318.7+2135 @ 49.6946 21.5968

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17373166/ft1_filtered_4FGL_J0318.7+2135_weekly_bin906.fits scfile=/lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits outfile=/lscratch/kocevski/17373166/cmap_786931201_787536001_4FGL_J0318.7+2135_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=49.6946 yref=21.5968 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.11
user 0.26
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17373166/ft1_filtered_4FGL_J0318.7+2135_weekly_bin906.fits scfile=/lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits outfile=/lscratch/kocevski/17373166/cmap_HighResolution_786931201_787536001_4FGL_J0318.7+2135_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=49.6946 yref=21.5968 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.19
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17373166/ft1_filtered_4FGL_J0318.7+2135_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17373166/Model_4FGL_J0318.7+2135_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/17373166/ft1_filtered_4FGL_J0318.7+2135_weekly_bin906.fits.....................!
real 159.68
user 156.47
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17373166/ft1_filtered_4FGL_J0318.7+2135_weekly_bin906.fits', '/lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits', expMap='/lscratch/kocevski/17373166/expmap_786931201_787536001_4FGL_J0318.7+2135_weekly_bin906.fits', expCube='/lscratch/kocevski/17373166/ltcube_786931201_787536001_4FGL_J0318.7+2135_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17373166/Model_4FGL_J0318.7+2135_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0318.7+2135'

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  1.601e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
313        Index:  2.063e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17373166/ft1_filtered_4FGL_J0318.7+2135_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17373166/ft2_4FGL_J0318.7+2135_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17373166/expmap_786931201_787536001_4FGL_J0318.7+2135_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17373166/ltcube_786931201_787536001_4FGL_J0318.7+2135_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17373166/Model_4FGL_J0318.7+2135_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) = 26108.8911855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29974E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.3813       1.0000          .0000       .10000E+07
     3 'Prefactor '    .87158E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .13399       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7219       1.0000          .0000       .10000E+07
     6 'Prefactor '    37.755       1.0000          .0000       .10000E+07
     7 'Prefactor '    .29454E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12661E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .79713E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .59614E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.9570       1.0000          .0000       .10000E+07
    12 'Prefactor '    .19391E-04   1.0000          .0000       .10000E+07
    13 'norm      '    1.3770       1.0000          .0000       .10000E+07
    14 'norm      '    2.5312       1.0000          .0000       .10000E+07
    15 'norm      '    .87758E-06   1.0000          .0000       .10000E+07
    16 'norm      '    41.092       1.0000          .0000       .10000E+07
    17 'Prefactor '    28.883       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97170       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26108.88     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1473 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    11.903        .38044E-07** at limit **
   2  norm          1.3813        1.2470        .11109E-07    .75620E-03
   3  Prefactor     .13900E-06    5.8323        .13921E-07** at limit **
   4  norm          .13342        .31844       -.84451E-08** at limit **
   5  Prefactor     1.7694        21.567        .11540E-07   -.10322E-01
   6  Prefactor     37.931        23.836        .69122E-08    .47891E-01
   7  Prefactor     .18818E-07    10.663        .56358E-07** at limit **
   8  Prefactor     .18435E-06    4.7570        .36386E-07** at limit **
   9  norm           .0000        4.1087        .33164E-07** at limit **
  10  norm          .65840E-01    37.861       -.70212E-06** at limit **
  11  Prefactor     4.9578        3.1190        .35926E-09   -.25079E-03
  12  Prefactor      .0000        2.3135        .42738E-07** at limit **
  13  norm          1.3773        1.1489       -.11282E-08   -.42193E-03
  14  norm          2.5313        1.5449       -.24071E-08   -.74516E-03
  15  norm           .0000        1.1298        .18783E-07** at limit **
  16  norm          40.934        23.298       -.78387E-08    .58039E-01
  17  Prefactor     28.845        5.7056       -.11510E-08   -.19397E-01
  18  Normalizat    1.0755        .16327       -.42997E-06   -.56568E-04
  19  Prefactor     .97173        .49074E-01    .66258E-08   -.16867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  norm       = 1.38133
  Prefactor  = 1.39e-07
  norm       = 0.133417
  Prefactor  = 1.76937
  Prefactor  = 37.9309
  Prefactor  = 1.88183e-08
  Prefactor  = 1.84353e-07
  norm       = 0
  norm       = 0.0658396
  Prefactor  = 4.95782
  Prefactor  = 0
  norm       = 1.37725
  norm       = 2.53132
  norm       = 0
  norm       = 40.9342
  Prefactor  = 28.8451
  Normalizat = 1.07552
  Prefactor  = 0.971732
 **********
 **   18 **HESSE 
 **********

 FCN=   26108.88     FROM HESSE     STATUS=OK           316 CALLS     1789 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    12.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3813        1.2638        .92567E-03   -1.5684    
   3  Prefactor     .13900E-06    7.9925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .13342        .22099        .26285E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7694        21.612        .80017E-03   -1.5681    
   6  Prefactor     37.931        31.734        .16277E-03   -1.5585    
   7  Prefactor     .18818E-07    12.941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18435E-06    8.1465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        4.1003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .65840E-01    1.9011        .69415E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9578        3.1370        .45148E-03   -1.5663    
  12  Prefactor      .0000        2.3140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3773        1.1737        .92774E-03   -1.5684    
  14  norm          2.5313        1.5498        .64173E-03   -1.5676    
  15  norm           .0000        1.1288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          40.934        36.316        .15601E-03   -1.5580    
  17  Prefactor     28.845        17.955        .18610E-03   -1.5601    
  18  Normalizat    1.0755        .15149        .10166       -.90542    
  19  Prefactor     .97173        .44172E-01    .32526E-01   -.93678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49913e-07
Minuit parameter uncertainties:
  1  0.000167068
  2  1.26381
  3  0.00210803
  4  0.220992
  5  12.3678
  6  31.7343
  7  0.00098681
  8  0.00245091
  9  9.02409e-06
  10  0.707572
  11  3.13696
  12  1.41917e-06
  13  1.17372
  14  1.54977
  15  2.49042e-06
  16  36.3161
  17  17.9546
  18  0.151547
  19  0.0441739
Done.

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

Extracting fit parameters...

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  4.958e+00  3.137e+00  0.000e+00  1.000e+06 ( 1.000e-13)
313        Index:  2.063e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  9.717e-01  4.417e-02  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.076e+00  1.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 49.695 21.597
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 2.79e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.05e-05

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) = 26108.8601472
delta logL = 0.0151381530741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26108.8543642
delta logL = 0.0209211731999

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26108.85     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      264 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3385        3.9250        .17389E-04    .38965E-03
   2  Index         1.9709        .46647        .11243E-01    .10921E-02
   3  Normalizat    1.0789        .15717        .44990E-03   -.37399E-05
   4  Prefactor     .97131        .48031E-01    .14376E-03    .47450E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33851
  Index      = 1.97089
  Normalizat = 1.07889
  Prefactor  = 0.97131
 **********
 **   18 **HESSE 
 **********

 FCN=   26108.85     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3385        3.7907        .69557E-06   -1.5662    
   2  Index         1.9709        .45065        .22486E-02   -.65080    
   3  Normalizat    1.0789        .15713        .17996E-04   -.90433    
   4  Prefactor     .97131        .48046E-01    .57502E-05   -.93692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84691e-13
Minuit parameter uncertainties:
  1  3.7907
  2  0.45162
  3  0.157197
  4  0.0480481
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) = 26108.854364
delta logL = 0.0209213438502

Extracting fit parameters...

4FGL J0318.7+2135
   Spectrum: PowerLaw
312    Prefactor:  5.339e+00  3.791e+00  0.000e+00  1.000e+06 ( 1.000e-13)
313        Index:  1.971e+00  4.516e-01  0.000e+00  1.000e+01 (-1.000e+00)
314        Scale:  2.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  9.713e-01  4.805e-02  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
565   Normalization:  1.079e+00  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.85
Ra Dec: 49.695 21.597
Photon Index (Free Index): 1.97 +/- 0.45
Photon Flux (Free Index): 2.47e-08 +/- 2.20e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.52e-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/17373166/cmap_HighResolution_786931201_787536001_4FGL_J0318.7+2135_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-08', energy_flux2='1.84e-05', photon_flux_error='1.76e-08', dlogl='2.09e-02', energy_flux='1.66e-05', photon_flux2='2.47e-08', job_status='DONE', time_completed='2025-12-16 01:30:09.047615', photon_index_error2='0.45', photon_index2='1.97', ts='5.81', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.08', time_epoch_completed='1765877409.05', return_code='0', job_id='17373166', GAL2='0.97', EG2='1.08', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='2.20e-08', ts2='5.85', photon_index='2.06' WHERE bin_id='906' AND source_name='4FGL J0318.7+2135' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:30:09 PST 2025

