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


Performing analysis on: 4FGL_J1018.4+0528_weekly_bin821
RA = 154.617, Dec = 5.4702
tmin = 735523201, tmax = 736128001
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='45349842', job_status='RUN', time_executed='2024-04-30 02:24:28.078961', time_epoch_executed='1714469068.08' WHERE source_name='4FGL J1018.4+0528' and cadence='weekly' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/45349842

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/45349842/ft1_4FGL_J1018.4+0528_weekly_bin821.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/45349842/ft1_4FGL_J1018.4+0528_weekly_bin821.fits outfile=/lscratch/kocevski/45349842/ft1_filteredMKT_4FGL_J1018.4+0528_weekly_bin821.fits ra=154.617 dec=5.4702 rad=12.0 tmin=735523201.0 tmax=736128001.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.59
user 4.31
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.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/45349842/ft1_filteredMKT_4FGL_J1018.4+0528_weekly_bin821.fits evtable="EVENTS" outfile="/lscratch/kocevski/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.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.38
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1103

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.fits" evtable="EVENTS" scfile=/lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits sctable="SC_DATA" outfile=/lscratch/kocevski/45349842/ltcube_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.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/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits
.....................!
real 16.22
user 15.87
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.fits evtable="EVENTS" scfile=/lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits sctable="SC_DATA" expcube=/lscratch/kocevski/45349842/ltcube_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.fits outfile=/lscratch/kocevski/45349842/expmap_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.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/45349842/ltcube_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.fits
.....................!
real 61.77
user 57.89
sys 3.50

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

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.fits scfile=/lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits outfile=/lscratch/kocevski/45349842/cmap_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.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.617 yref=5.4702 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.38
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.fits scfile=/lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits outfile=/lscratch/kocevski/45349842/cmap_HighResolution_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.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.617 yref=5.4702 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.39
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.fits evtable="EVENTS" scfile=/lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/45349842/Model_4FGL_J1018.4+0528_weekly_bin821.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/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.fits.....................!
real 40.34
user 37.79
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.fits', '/lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits', expMap='/lscratch/kocevski/45349842/expmap_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.fits', expCube='/lscratch/kocevski/45349842/ltcube_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/45349842/Model_4FGL_J1018.4+0528_weekly_bin821.xml', optimizer='MINUIT')

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

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/45349842/ft1_filtered_4FGL_J1018.4+0528_weekly_bin821.fits
Spacecraft file(s): /lscratch/kocevski/45349842/ft2_4FGL_J1018.4+0528_weekly_bin821.fits
Exposure map: /lscratch/kocevski/45349842/expmap_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.fits
Exposure cube: /lscratch/kocevski/45349842/ltcube_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/45349842/Model_4FGL_J1018.4+0528_weekly_bin821.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) = 12425.5033861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29465E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .23751       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10220E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .29032E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .54319E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    15.370       1.0000          .0000       .10000E+07
     7 'Prefactor '    .46013E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .54021E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.1695       1.0000          .0000       .10000E+07
    10 'norm      '    3.3801       1.0000          .0000       .10000E+07
    11 'Prefactor '    .82943E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .41767E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.7145       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.4401       1.0000          .0000       .10000E+07
    15 'norm      '    .66634       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.8763       1.0000          .0000       .10000E+07
    17 'Normalizat'    .82307       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12425.47     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1425 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .63690        .30305E-08** at limit **
   2  norm          .23757        .29101       -.10881E-07** at limit **
   3  Prefactor      .0000        1.4975        .95048E-07** at limit **
   4  Prefactor     .16653E-09    9.3304       -.22706E-06** at limit **
   5  Prefactor      .0000        35.723        .63436E-06** at limit **
   6  Prefactor     15.318        6.4278       -.15626E-07   -.96037E-02
   7  Prefactor      .0000        19.355        .80096E-07** at limit **
   8  Prefactor     .55511E-10    75.940        .71541E-06** at limit **
   9  Prefactor     4.3781        3.0671       -.10961E-07    .11688E-01
  10  norm          3.3805        1.0631        .28735E-07   -.73711E-03
  11  Prefactor      .0000        1.5460        .99177E-08** at limit **
  12  Prefactor      .0000        1.0971        .60993E-07** at limit **
  13  Prefactor     9.7558        5.1698        .19497E-07   -.11875E-03
  14  Prefactor     4.4433        5.5988        .14423E-07   -.25410E-04
  15  norm          .66659        .32078        .88278E-08   -.70171E-03
  16  Prefactor     3.8365        7.4563        .46486E-07   -.18928E-03
  17  Normalizat    .82293        .13551       -.11735E-06    .82505E-06
  18  Prefactor     1.0134        .11641       -.75262E-06   -.40520E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0.237572
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 15.3182
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 4.37811
  norm       = 3.38049
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.75582
  Prefactor  = 4.44333
  norm       = 0.666589
  Prefactor  = 3.83647
  Normalizat = 0.822926
  Prefactor  = 1.01341
 **********
 **   18 **HESSE 
 **********

 FCN=   12425.47     FROM HESSE     STATUS=OK           282 CALLS     1707 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .60770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .23757        .31833        .11143E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.4977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16653E-09    9.3684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        35.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.318        8.7393        .25521E-03   -1.5630    
   7  Prefactor      .0000        19.411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    75.811        .15384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3781        13.782        .49335E-03   -1.5666    
  10  norm          3.3805        1.0654        .55011E-03   -1.5671    
  11  Prefactor      .0000        1.5447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.0909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7558        5.1678        .32127E-03   -1.5645    
  14  Prefactor     4.4433        5.6247        .47765E-03   -1.5666    
  15  norm          .66659        .32336        .63484E-03   -1.5692    
  16  Prefactor     3.8365        7.5016        .51227E-03   -1.5669    
  17  Normalizat    .82293        .11748        .43911E-01   -.99224    
  18  Prefactor     1.0134        .10027        .42867E-01   -.92284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55528e-07
Minuit parameter uncertainties:
  1  1.32635e-07
  2  0.318332
  3  1.7246e-07
  4  7.70254e-05
  5  4.26463e-05
  6  8.73928
  7  1.48557e-05
  8  0.000129568
  9  13.7826
  10  1.06542
  11  7.89877e-08
  12  2.93375e-07
  13  5.16783
  14  5.62473
  15  0.323362
  16  7.50157
  17  0.117518
  18  0.100286
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  5.551e-11  1.296e-04  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.013e+00  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.229e-01  1.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 5.57730408907e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00427527865077 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/45349842/likelihoodResults_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.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): 102
logL (Free Index) = 12425.4758586
delta logL = -0.0065416114121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12425.0076674
delta logL = 0.461649548608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39100E-02   1.0000          .0000       .10000E+07
     2 'Index     '    5.9034       1.0000          .0000       10.000    
     3 'Normalizat'    .78207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   12425.47     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      329 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.528        .42118E-03** at limit **
   2  Index         1.2643        .67628        .27480E-04     .0000    
   3  Normalizat    .82293        1.1479       -.14272E-04   -.49747E-05
   4  Prefactor     1.0134        1.1962        .41351E-06    .20188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.26431
  Normalizat = 0.822926
  Prefactor  = 1.01341
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12425.47     FROM HESSE     STATUS=FAILED         9 CALLS      338 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3621        2.0196        .27480E-04   -33.714    
   3  Normalizat    .82293        1.1479       -.14272E-04   -2.1494    
   4  Prefactor     1.0134        1.1962        .41351E-06   -2.2188    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.64417e-12
Minuit parameter uncertainties:
  1  3.36091e-05
  2  0.681039
  3  1.18475
  4  1.22997
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) = 12425.469317
delta logL = 0.0

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  3.361e-05  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  1.264e+00  6.810e-01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.013e+00  1.230e+00  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.229e-01  1.185e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.617 5.470

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/45349842/cmap_HighResolution_735523201_736128001_4FGL_J1018.4+0528_weekly_bin821.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2024-04-30 02:35:07.760495', job_id='45349842', GAL2='1.01', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1714469707.76', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='821' AND source_name='4FGL J1018.4+0528' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 30 02:35:08 PDT 2024

