/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_J1018.4+3540_weekly_bin906
RA = 154.607, Dec = 35.6802
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='17377849', job_status='RUN', time_executed='2025-12-16 02:00:55.261274', time_epoch_executed='1765879255.26' WHERE source_name='4FGL J1018.4+3540' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17377849

Creating custom pfile directory:
/lscratch/kocevski/17377849/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/17377849/ft1_4FGL_J1018.4+3540_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/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17377849/ft1_4FGL_J1018.4+3540_weekly_bin906.fits outfile=/lscratch/kocevski/17377849/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin906.fits ra=154.607 dec=35.6802 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.83
user 5.14
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_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/17377849/ft1_filteredMKT_4FGL_J1018.4+3540_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17377849/ft1_filtered_4FGL_J1018.4+3540_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.76
user 0.24
sys 0.15

Number of photons that the gtmktime cut: 1251

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17377849/ft1_filtered_4FGL_J1018.4+3540_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17377849/ltcube_786931201_787536001_4FGL_J1018.4+3540_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/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits
.....................!
real 20.77
user 19.50
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17377849/ft1_filtered_4FGL_J1018.4+3540_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17377849/ltcube_786931201_787536001_4FGL_J1018.4+3540_weekly_bin906.fits outfile=/lscratch/kocevski/17377849/expmap_786931201_787536001_4FGL_J1018.4+3540_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/17377849/ltcube_786931201_787536001_4FGL_J1018.4+3540_weekly_bin906.fits
.....................!
real 70.36
user 65.15
sys 4.08

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17377849/ft1_filtered_4FGL_J1018.4+3540_weekly_bin906.fits scfile=/lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits outfile=/lscratch/kocevski/17377849/cmap_786931201_787536001_4FGL_J1018.4+3540_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=154.607 yref=35.6802 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.78
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17377849/ft1_filtered_4FGL_J1018.4+3540_weekly_bin906.fits scfile=/lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits outfile=/lscratch/kocevski/17377849/cmap_HighResolution_786931201_787536001_4FGL_J1018.4+3540_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=154.607 yref=35.6802 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.81
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17377849/ft1_filtered_4FGL_J1018.4+3540_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17377849/Model_4FGL_J1018.4+3540_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/17377849/ft1_filtered_4FGL_J1018.4+3540_weekly_bin906.fits.....................!
real 42.71
user 40.21
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17377849/ft1_filtered_4FGL_J1018.4+3540_weekly_bin906.fits', '/lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits', expMap='/lscratch/kocevski/17377849/expmap_786931201_787536001_4FGL_J1018.4+3540_weekly_bin906.fits', expCube='/lscratch/kocevski/17377849/ltcube_786931201_787536001_4FGL_J1018.4+3540_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17377849/Model_4FGL_J1018.4+3540_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17377849/ft1_filtered_4FGL_J1018.4+3540_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17377849/ft2_4FGL_J1018.4+3540_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17377849/expmap_786931201_787536001_4FGL_J1018.4+3540_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17377849/ltcube_786931201_787536001_4FGL_J1018.4+3540_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17377849/Model_4FGL_J1018.4+3540_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) = 14107.1010656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14428E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.3112       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55023E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6358       1.0000          .0000       .10000E+07
     5 'Prefactor '    45.372       1.0000          .0000       .10000E+07
     6 'Prefactor '    .89733E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.9928       1.0000          .0000       .10000E+07
     8 'Prefactor '    .69389E-08   1.0000          .0000       .10000E+07
     9 'norm      '    4.9969       1.0000          .0000       .10000E+07
    10 'Prefactor '    .91760E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0656       1.0000          .0000       .10000E+07
    12 'norm      '    1.5379       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25926E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    14.449       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5328       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.950       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18468E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.2659       1.0000          .0000       .10000E+07
    19 'norm      '    1.1445       1.0000          .0000       .10000E+07
    20 'Prefactor '    25.885       1.0000          .0000       .10000E+07
    21 'Prefactor '    .38604E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .87652E-07   1.0000          .0000       .10000E+07
    23 'Normalizat'    .97546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14107.07     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1994 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        6.0859       -.81095E-07** at limit **
   2  norm          4.2704        6.5308        .57285E-07   -.49613E-03
   3  Prefactor      .0000        3.6757        .13030E-06** at limit **
   4  Prefactor     2.3232        23.984       -.57014E-06    .14597E-02
   5  Prefactor     45.900        26.048        .22051E-06    .38001E-02
   6  Prefactor      .0000        10.008       -.51745E-07** at limit **
   7  Prefactor     2.9818        3.0156       -.69345E-07    .17868E-04
   8  Prefactor      .0000        .25956        .47914E-07** at limit **
   9  norm          4.9636        4.1539       -.50249E-07   -.84768E-05
  10  Prefactor      .0000        1.4189       -.14284E-06** at limit **
  11  Prefactor     2.0647        2.0018        .99391E-07   -.76632E-04
  12  norm          1.5830        4.3079       -.11938E-06   -.17963E-04
  13  Prefactor      .0000        10.757       -.80590E-06** at limit **
  14  Prefactor     14.459        1.1664       -.68340E-08    .24442E-02
  15  Prefactor     1.5280        2.3175       -.74004E-07    .12238E-04
  16  Prefactor     10.955        5.4436        .15851E-06   -.68076E-02
  17  Prefactor      .0000        17.929       -.15998E-07** at limit **
  18  Prefactor     3.2804        5.6991        .61272E-07    .60734E-04
  19  norm          1.1444        .19413        .20204E-08   -.86226E-04
  20  Prefactor     25.897        8.2088       -.14928E-06   -.68567E-02
  21  Prefactor      .0000        15.991       -.28139E-06** at limit **
  22  norm           .0000        2.6665        .95412E-07** at limit **
  23  Normalizat    .97529        .11746       -.47465E-05    .45493E-05
  24  Prefactor     .89828        .13872        .55271E-05    .12181E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 4.27039
  Prefactor  = 0
  Prefactor  = 2.32317
  Prefactor  = 45.8995
  Prefactor  = 0
  Prefactor  = 2.98184
  Prefactor  = 0
  norm       = 4.96361
  Prefactor  = 0
  Prefactor  = 2.06472
  norm       = 1.58302
  Prefactor  = 0
  Prefactor  = 14.4586
  Prefactor  = 1.52798
  Prefactor  = 10.9552
  Prefactor  = 0
  Prefactor  = 3.28036
  norm       = 1.14443
  Prefactor  = 25.8967
  Prefactor  = 0
  norm       = 0
  Normalizat = 0.975289
  Prefactor  = 0.898278
 **********
 **   18 **HESSE 
 **********

 FCN=   14107.07     FROM HESSE     STATUS=OK           451 CALLS     2445 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        6.0084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2704        7.6004        .48494E-03   -1.5667    
   3  Prefactor      .0000        3.6781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3232        54.417        .62780E-03   -1.5677    
   5  Prefactor     45.900        28.429        .14847E-03   -1.5572    
   6  Prefactor      .0000        9.6422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9818        3.0168        .58654E-03   -1.5673    
   8  Prefactor      .0000        .25946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9636        4.1579        .44963E-03   -1.5663    
  10  Prefactor      .0000        1.3763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0647        2.0152        .71860E-03   -1.5679    
  12  norm          1.5830        4.3706        .85968E-03   -1.5683    
  13  Prefactor      .0000        10.766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.459        16.390        .26323E-03   -1.5632    
  15  Prefactor     1.5280        2.3558        .86155E-03   -1.5683    
  16  Prefactor     10.955        9.8692        .30252E-03   -1.5642    
  17  Prefactor      .0000        17.866        .17140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2804        5.7179        .56012E-03   -1.5672    
  19  norm          1.1444        .19472        .46707E-03   -1.5687    
  20  Prefactor     25.897        9.6351        .19659E-03   -1.5606    
  21  Prefactor      .0000        15.698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.6626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97529        .10371        .45859E-01   -.93863    
  24  Prefactor     .89828        .11974        .44981E-01   -.96201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73707e-06
Minuit parameter uncertainties:
  1  2.59635e-08
  2  7.60045
  3  4.15618e-06
  4  22.4876
  5  28.4289
  6  2.50802e-06
  7  3.01681
  8  1.88123e-08
  9  4.15791
  10  2.46586e-07
  11  2.01516
  12  4.37058
  13  2.25516e-06
  14  16.3897
  15  2.35585
  16  9.86924
  17  1.23576e-07
  18  5.71789
  19  0.19472
  20  9.6351
  21  3.8609e-05
  22  5.39759e-07
  23  0.103732
  24  0.119777
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.065e+00  2.015e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.983e-01  1.198e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.753e-01  1.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.69e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 4.48e-06 +/- 4.37e-06

TS (Fixed Index): 1.87
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 5.48844524717e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00429272377738 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17377849/likelihoodResults_786931201_787536001_4FGL_J1018.4+3540_weekly_bin906.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14106.6277563
delta logL = 0.444053088979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14106.6182351
delta logL = 0.453574305102

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14106.62     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      230 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4965        3.9100        .64658E-03    .32235E-01
   2  Index         1.9482        .75430        .26095       -.73346E-04
   3  Normalizat    .98497        .99548E-01    .45977E-01    .16356E-04
   4  Prefactor     .89003        .11952        .44879E-01    .30034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49651
  Index      = 1.94817
  Normalizat = 0.984975
  Prefactor  = 0.890029
 **********
 **   18 **HESSE 
 **********

 FCN=   14106.62     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4965        2.4062        .16832E-04   -1.5676    
   2  Index         1.9482        .60541        .13031E-01   -.65652    
   3  Normalizat    .98497        .11523        .21998E-03   -.93536    
   4  Prefactor     .89003        .13798        .27505E-03   -.96490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9293e-09
Minuit parameter uncertainties:
  1  2.40619
  2  0.60779
  3  0.115263
  4  0.138036
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) = 14106.6182348
delta logL = 0.45357454672

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  2.497e+00  2.406e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  1.948e+00  6.078e-01  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.900e-01  1.380e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.850e-01  1.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 154.607 35.680
Photon Index (Free Index): 1.95 +/- 0.61
Photon Flux (Free Index): 1.02e-08 +/- 1.24e-08
Energy Flux (Free Index): 8.08e-06 +/- 9.90e-06

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/17377849/cmap_HighResolution_786931201_787536001_4FGL_J1018.4+3540_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', comment='SUCCESS', photon_flux='1.69e-08', energy_flux2='8.08e-06', photon_flux_error='1.65e-08', dlogl='4.54e-01', energy_flux='4.48e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2025-12-16 02:13:33.541256', photon_index_error2='0.61', photon_index2='1.95', ts='1.87', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='5.49e-08', energy_flux_error2='9.90e-06', EG='0.98', time_epoch_completed='1765880013.54', return_code='0', job_id='17377849', GAL2='0.89', EG2='0.98', return_code2='0', energy_flux_error='4.37e-06', photon_flux_error2='1.24e-08', ts2='2.78', photon_index='2.59' WHERE bin_id='906' AND source_name='4FGL J1018.4+3540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:13:33 PST 2025

