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


Performing analysis on: 4FGL_J1618.0+5139_weekly_bin854
RA = 244.516, Dec = 51.6653
tmin = 755481601, tmax = 756086401
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='60352427', job_status='RUN', time_executed='2024-12-17 00:51:55.429530', time_epoch_executed='1734425515.43' WHERE source_name='4FGL J1618.0+5139' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352427

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60352427/ft1_4FGL_J1618.0+5139_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352427/ft1_4FGL_J1618.0+5139_weekly_bin854.fits outfile=/lscratch/kocevski/60352427/ft1_filteredMKT_4FGL_J1618.0+5139_weekly_bin854.fits ra=244.516 dec=51.6653 rad=12.0 tmin=755481601.0 tmax=756086401.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.16
user 4.71
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.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/60352427/ft1_filteredMKT_4FGL_J1618.0+5139_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.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.44
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 1325

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352427/ltcube_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.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/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits
.....................!
real 19.65
user 19.01
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352427/ltcube_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.fits outfile=/lscratch/kocevski/60352427/expmap_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.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/60352427/ltcube_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.fits
.....................!
real 70.92
user 66.50
sys 4.03

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

Setting source of interest to:
4FGL J1618.0+5139 @ 244.516 51.6653

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.fits scfile=/lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits outfile=/lscratch/kocevski/60352427/cmap_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.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=244.516 yref=51.6653 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.42
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.fits scfile=/lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits outfile=/lscratch/kocevski/60352427/cmap_HighResolution_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.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=244.516 yref=51.6653 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.51
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352427/Model_4FGL_J1618.0+5139_weekly_bin854.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/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.fits.....................!
real 41.57
user 40.11
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.fits', '/lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits', expMap='/lscratch/kocevski/60352427/expmap_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.fits', expCube='/lscratch/kocevski/60352427/ltcube_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352427/Model_4FGL_J1618.0+5139_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1618.0+5139'

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.224e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  2.675e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352427/ft1_filtered_4FGL_J1618.0+5139_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352427/ft2_4FGL_J1618.0+5139_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352427/expmap_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352427/ltcube_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352427/Model_4FGL_J1618.0+5139_weekly_bin854.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) = 14249.9797974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2709       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.1093       1.0000          .0000       .10000E+07
     3 'norm      '    2.0560       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14191E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .66547E-06   1.0000          .0000       .10000E+07
     6 'norm      '    28.797       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15914E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.795       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.7515       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.7794       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.4223       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10207E-05   1.0000          .0000       .10000E+07
    13 'norm      '    6.4608       1.0000          .0000       .10000E+07
    14 'norm      '    .21477E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.9071       1.0000          .0000       .10000E+07
    16 'Prefactor '    .52084E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .62346E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .43042E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .60675E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.3472       1.0000          .0000       .10000E+07
    21 'Prefactor '    8.7677       1.0000          .0000       .10000E+07
    22 'norm      '    .77716E-08   1.0000          .0000       .10000E+07
    23 'Prefactor '    4.4272       1.0000          .0000       .10000E+07
    24 'Prefactor '    11.433       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.4416       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0552       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82728       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14249.97     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     2391 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2722        5.2798       -.43422E-07   -.17683E-01
   2  Prefactor     1.1273        4.9695       -.25577E-06    .31303E-02
   3  norm          2.0565        1.3958       -.85487E-08    .17828E-04
   4  Prefactor     .12768E-08    4.5484        .95849E-07** at limit **
   5  Prefactor     .13883E-06    7.0443        .23897E-06** at limit **
   6  norm          28.764        6.2731        .95031E-07   -.78470E-02
   7  Prefactor     .44409E-09    4.3991       -.89663E-07** at limit **
   8  Prefactor     12.705        42.400        .17566E-05   -.45316E-02
   9  Prefactor     4.7168        3.6324       -.11744E-06    .86376E-02
  10  Prefactor     4.9441        7.6179       -.23076E-07   -.55566E-01
  11  Prefactor     4.4025        3.7249       -.44507E-07   -.13462E-02
  12  Prefactor      .0000        .56370        .50846E-07** at limit **
  13  norm          6.4618        1.2276        .13631E-07    .18523E-01
  14  norm          .38858E-09    2.6116       -.35241E-07** at limit **
  15  Prefactor     3.9080        2.3673       -.31893E-07    .11945E-02
  16  Prefactor     .16265E-07    23.850       -.82305E-06** at limit **
  17  norm          .46074E-07    4.3258        .25482E-06** at limit **
  18  Prefactor      .0000        .94969       -.39006E-07** at limit **
  19  Prefactor      .0000        .72196       -.48189E-07** at limit **
  20  Prefactor     6.3545        5.1340       -.18226E-07   -.15125E-02
  21  Prefactor     8.7721        7.6048       -.15784E-06   -.28508E-01
  22  norm           .0000        .13705        .29186E-07** at limit **
  23  Prefactor     4.4260        4.4340       -.42786E-07   -.10657E-02
  24  Prefactor     11.442        5.2679       -.24993E-08   -.28645E-01
  25  Prefactor     1.4417        1.6147       -.39725E-09   -.20697E-03
  26  Normalizat    1.0549        .13762        .22610E-06   -.36649E-04
  27  Prefactor     .82735        .13005        .24806E-06   -.42346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27217
  Prefactor  = 1.12725
  norm       = 2.0565
  Prefactor  = 1.27676e-09
  Prefactor  = 1.38833e-07
  norm       = 28.764
  Prefactor  = 4.44089e-10
  Prefactor  = 12.7047
  Prefactor  = 4.7168
  Prefactor  = 4.94408
  Prefactor  = 4.4025
  Prefactor  = 0
  norm       = 6.46184
  norm       = 3.88578e-10
  Prefactor  = 3.90797
  Prefactor  = 1.62648e-08
  norm       = 4.60743e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.35446
  Prefactor  = 8.77207
  norm       = 0
  Prefactor  = 4.42599
  Prefactor  = 11.4415
  Prefactor  = 1.44169
  Normalizat = 1.05488
  Prefactor  = 0.827348
 **********
 **   18 **HESSE 
 **********

 FCN=   14249.97     FROM HESSE     STATUS=OK           552 CALLS     2943 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2722        7.6876        .55967E-03   -1.5672    
   2  Prefactor     1.1273        6.4630        .11218E-02   -1.5687    
   3  norm          2.0565        1.3965        .72053E-03   -1.5679    
   4  Prefactor     .12768E-08    4.5547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13883E-06    7.5206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          28.764        6.2930        .18638E-03   -1.5601    
   7  Prefactor     .44409E-09    5.8315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.705        42.560        .29144E-03   -1.5637    
   9  Prefactor     4.7168        4.3182        .46135E-03   -1.5665    
  10  Prefactor     4.9441        18.280        .45997E-03   -1.5663    
  11  Prefactor     4.4025        3.7606        .47864E-03   -1.5666    
  12  Prefactor      .0000        .56198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4618        8.4810        .39461E-03   -1.5657    
  14  norm          .38858E-09    2.6137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9080        2.3788        .51017E-03   -1.5668    
  16  Prefactor     .16265E-07    2.1429        .55582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .46074E-07    6.0850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .93752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        .71604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3545        5.1449        .39817E-03   -1.5658    
  21  Prefactor     8.7721        11.516        .33827E-03   -1.5649    
  22  norm           .0000        .13614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4260        4.4565        .47837E-03   -1.5666    
  24  Prefactor     11.442        7.5464        .29603E-03   -1.5640    
  25  Prefactor     1.4417        1.6224        .89802E-03   -1.5684    
  26  Normalizat    1.0549        .12090        .40219E-01   -.91214    
  27  Prefactor     .82735        .11189        .44071E-01   -.98728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05741e-07
Minuit parameter uncertainties:
  1  7.68765
  2  5.39834
  3  1.39651
  4  0.000153815
  5  0.0020436
  6  6.29303
  7  9.93151e-05
  8  42.5609
  9  4.31817
  10  18.2801
  11  3.76061
  12  2.20217e-06
  13  8.48106
  14  6.2574e-05
  15  2.37877
  16  0.000373513
  17  0.00105926
  18  4.60966e-06
  19  2.2617e-06
  20  5.14494
  21  11.5159
  22  3.84272e-07
  23  4.45649
  24  7.54641
  25  1.62244
  26  0.120928
  27  0.11192
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  4.403e+00  3.761e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  2.675e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  8.273e-01  1.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.055e+00  1.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.54
Ra Dec: 244.516 51.665
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 6.58e-06 +/- 5.62e-06

TS (Fixed Index): 2.54
Ra Dec: 244.516 51.665
Photon Flux Upper Limit: 7.40852181733e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00582364515281 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352427/likelihoodResults_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.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) = 14249.0399947
delta logL = 0.929355918015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14249.0091824
delta logL = 0.960168187496

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14249.01     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5662        3.1963        .53454E-03    .54856E-02
   2  Index         1.7747        .34421        .27268       -.12016E-03
   3  Normalizat    1.0770        .11204        .39018E-01    .12344E-04
   4  Prefactor     .81486        .11064        .43910E-01    .30885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56618
  Index      = 1.77472
  Normalizat = 1.07704
  Prefactor  = 0.814859
 **********
 **   18 **HESSE 
 **********

 FCN=   14249.01     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5662        4.3916        .98039E-04   -1.5670    
   2  Index         1.7747        .61566        .10480E-01   -.70110    
   3  Normalizat    1.0770        .12962        .22952E-03   -.90492    
   4  Prefactor     .81486        .12784        .25579E-03   -.99183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26598e-09
Minuit parameter uncertainties:
  1  4.3916
  2  0.61836
  3  0.129659
  4  0.127888
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) = 14249.009181
delta logL = 0.960169670254

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  3.566e+00  4.392e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  1.775e+00  6.184e-01  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  8.149e-01  1.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.077e+00  1.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 244.516 51.665
Photon Index (Free Index): 1.77 +/- 0.62
Photon Flux (Free Index): 9.84e-09 +/- 1.42e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.49e-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/60352427/cmap_HighResolution_755481601_756086401_4FGL_J1618.0+5139_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='1.27e-05', photon_flux_error='2.28e-08', dlogl='9.60e-01', energy_flux='6.58e-06', photon_flux2='9.84e-09', job_status='DONE', time_completed='2024-12-17 01:02:41.017328', photon_index_error2='0.62', photon_index2='1.77', ts='2.54', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='7.41e-08', energy_flux_error2='1.49e-05', EG='1.05', time_epoch_completed='1734426161.02', return_code='0', job_id='60352427', GAL2='0.81', EG2='1.08', return_code2='0', energy_flux_error='5.62e-06', photon_flux_error2='1.42e-08', ts2='4.46', photon_index='2.67' WHERE bin_id='854' AND source_name='4FGL J1618.0+5139' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:02:41 PST 2024

