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


Performing analysis on: 4FGL_J1439.7+4958_weekly_bin802
RA = 219.941, Dec = 49.9775
tmin = 724032001, tmax = 724636801
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='36606780', job_status='RUN', time_executed='2023-12-19 00:55:55.923000', time_epoch_executed='1702976155.92' WHERE source_name='4FGL J1439.7+4958' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36606780

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36606780/ft1_4FGL_J1439.7+4958_weekly_bin802.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36606780/ft1_4FGL_J1439.7+4958_weekly_bin802.fits outfile=/lscratch/kocevski/36606780/ft1_filteredMKT_4FGL_J1439.7+4958_weekly_bin802.fits ra=219.941 dec=49.9775 rad=12.0 tmin=724032001.0 tmax=724636801.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 4.65
user 4.31
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.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/36606780/ft1_filteredMKT_4FGL_J1439.7+4958_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.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.39
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 1399

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36606780/ltcube_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.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/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits
.....................!
real 19.81
user 18.92
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36606780/ltcube_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.fits outfile=/lscratch/kocevski/36606780/expmap_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.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/36606780/ltcube_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.fits
.....................!
real 70.59
user 66.37
sys 3.91

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

Setting source of interest to:
4FGL J1439.7+4958 @ 219.941 49.9775

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.fits scfile=/lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits outfile=/lscratch/kocevski/36606780/cmap_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.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=219.941 yref=49.9775 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.40
user 0.24
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.fits scfile=/lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits outfile=/lscratch/kocevski/36606780/cmap_HighResolution_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.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=219.941 yref=49.9775 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.40
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36606780/Model_4FGL_J1439.7+4958_weekly_bin802.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/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.fits.....................!
real 42.77
user 41.71
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.fits', '/lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits', expMap='/lscratch/kocevski/36606780/expmap_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.fits', expCube='/lscratch/kocevski/36606780/ltcube_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36606780/Model_4FGL_J1439.7+4958_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1439.7+4958'

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  6.204e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36606780/ft1_filtered_4FGL_J1439.7+4958_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36606780/ft2_4FGL_J1439.7+4958_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36606780/expmap_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36606780/ltcube_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36606780/Model_4FGL_J1439.7+4958_weekly_bin802.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) = 15238.6088846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.010       1.0000          .0000       .10000E+07
     2 'norm      '    2.6018       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.435       1.0000          .0000       .10000E+07
     4 'norm      '    .61217       1.0000          .0000       .10000E+07
     5 'norm      '    1.7498       1.0000          .0000       .10000E+07
     6 'Prefactor '    .20137E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34956       1.0000          .0000       .10000E+07
     8 'Prefactor '    .96034E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    13.486       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.0945       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.5896       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.901       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.236       1.0000          .0000       .10000E+07
    14 'Prefactor '    .29236E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.155       1.0000          .0000       .10000E+07
    16 'norm      '    3.2181       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10528E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .22665E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.6601       1.0000          .0000       .10000E+07
    20 'norm      '    .39039       1.0000          .0000       .10000E+07
    21 'Prefactor '    .20445E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    12.173       1.0000          .0000       .10000E+07
    23 'Prefactor '    .49200       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1134       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66358       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15238.53     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1666 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.584        18.291       -.23777E-06    .41961E-01
   2  norm          2.6037        1.8375       -.59471E-08    .23523E-03
   3  Prefactor     11.416        3.4274       -.10388E-06    .80499E-02
   4  norm          .61256        .47699        .60864E-07    .86975E-03
   5  norm          1.7478        1.9289       -.14732E-06   -.13606E-02
   6  Prefactor     .44298E-07    7.1882        .89876E-06** at limit **
   7  Prefactor     .17081E-05    48.347        .22358E-05** at limit **
   8  Prefactor      .0000        .99329        .80177E-07** at limit **
   9  Prefactor     13.590        1.1276       -.82617E-08    .54301E-02
  10  Prefactor     3.1063        1.4686        .53250E-08   -.89633E-03
  11  Prefactor     2.5866        6.9926       -.14765E-06   -.16138E-02
  12  Prefactor     14.588        2.7253        .14235E-06    .86253E-02
  13  Prefactor     19.198        1.2051        .13811E-07    .69231E-02
  14  Prefactor     .31863E-07    5.5612        .28335E-06** at limit **
  15  Prefactor     13.174        7.3116        .12634E-06    .36256E-01
  16  norm          3.2180        1.0436        .70894E-07    .13810E-02
  17  Prefactor     .55511E-10    1.2307       -.41302E-06** at limit **
  18  Prefactor     .38719E-06    4.4605       -.45522E-06** at limit **
  19  Prefactor     5.6549        4.0715       -.21930E-06    .40523E-03
  20  norm          .39036        1.7142        .21239E-06    .56676E-03
  21  Prefactor     .17208E-08    3.2388       -.48133E-06** at limit **
  22  Prefactor     12.204        3.7113        .21178E-07   -.32547E-01
  23  Prefactor     .45827        1.6968        .41218E-07   -.96512E-02
  24  Normalizat    1.1139        .11371       -.13055E-05   -.11817E-03
  25  Prefactor     .66350        .12460        .18633E-05   -.71355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.5836
  norm       = 2.60369
  Prefactor  = 11.4159
  norm       = 0.612561
  norm       = 1.74775
  Prefactor  = 4.42979e-08
  Prefactor  = 1.70808e-06
  Prefactor  = 0
  Prefactor  = 13.5901
  Prefactor  = 3.10627
  Prefactor  = 2.58662
  Prefactor  = 14.5881
  Prefactor  = 19.1981
  Prefactor  = 3.18634e-08
  Prefactor  = 13.1739
  norm       = 3.21801
  Prefactor  = 5.55112e-11
  Prefactor  = 3.8719e-07
  Prefactor  = 5.6549
  norm       = 0.390358
  Prefactor  = 1.72085e-09
  Prefactor  = 12.2043
  Prefactor  = 0.458271
  Normalizat = 1.11395
  Prefactor  = 0.663499
 **********
 **   18 **HESSE 
 **********

 FCN=   15238.53     FROM HESSE     STATUS=OK           489 CALLS     2155 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.584        20.286        .15617E-03   -1.5581    
   2  norm          2.6037        1.8414        .63222E-03   -1.5676    
   3  Prefactor     11.416        21.017        .29601E-03   -1.5640    
   4  norm          .61256        .47494        .68145E-03   -1.5692    
   5  norm          1.7478        1.9527        .79236E-03   -1.5682    
   6  Prefactor     .44298E-07    7.6522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17081E-05    62.901        .95579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .99250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.590        11.521        .27249E-03   -1.5634    
  10  Prefactor     3.1063        1.5883        .57625E-03   -1.5673    
  11  Prefactor     2.5866        7.0182        .63383E-03   -1.5676    
  12  Prefactor     14.588        15.160        .25921E-03   -1.5632    
  13  Prefactor     19.198        20.324        .22808E-03   -1.5620    
  14  Prefactor     .31863E-07    6.0035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.174        8.6001        .27592E-03   -1.5635    
  16  norm          3.2180        1.0466        .56447E-04   -1.5672    
  17  Prefactor     .55511E-10    1.2307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .38719E-06    8.5070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.6549        4.0943        .42199E-03   -1.5660    
  20  norm          .39036        1.9070        .90609E-03   -1.5695    
  21  Prefactor     .17208E-08    3.2626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.204        10.661        .28686E-03   -1.5638    
  23  Prefactor     .45827        3.8354        .79519E-02   -1.5694    
  24  Normalizat    1.1139        .10125        .37479E-01   -.89305    
  25  Prefactor     .66350        .10786        .65006E-01   -1.0498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15079e-07
Minuit parameter uncertainties:
  1  20.2856
  2  1.84141
  3  21.0173
  4  0.474944
  5  1.95271
  6  0.00116436
  7  0.0207308
  8  5.47243e-06
  9  11.5207
  10  1.58825
  11  7.01826
  12  15.1596
  13  20.3245
  14  0.000875
  15  8.60012
  16  1.04658
  17  2.02162e-05
  18  0.00362968
  19  4.0943
  20  1.72557
  21  0.000149626
  22  10.6613
  23  2.65152
  24  0.101263
  25  0.107898
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.317e+01  8.600e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  6.635e-01  1.079e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.114e+00  1.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 219.941 49.977
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.44e-08 +/- 1.59e-08
Energy Flux (Fixed Index): 9.20e-06 +/- 6.01e-06

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) = 15237.3957058
delta logL = 1.13806509457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15237.3877119
delta logL = 1.14605902179

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15237.39     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      266 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1931        31.188        .44102E-03    .73261E-02
   2  Index         3.3041        2.2699        .10715        .39399E-03
   3  Normalizat    1.0711        .36900E-01    .39321E-01   -.28863E-04
   4  Prefactor     .69365        .37208E-01    .63670E-01    .41556E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19306
  Index      = 3.30406
  Normalizat = 1.07108
  Prefactor  = 0.69365
 **********
 **   18 **HESSE 
 **********

 FCN=   15237.39     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1931        19.936        .11940E-04   -1.5662    
   2  Index         3.3041        2.1718        .53658E-02   -.34605    
   3  Normalizat    1.0711        .13000        .20381E-03   -.90686    
   4  Prefactor     .69365        .13947        .28167E-03   -1.0378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92388e-07
Minuit parameter uncertainties:
  1  19.9362
  2  2.2575
  3  0.130036
  4  0.139542
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) = 15237.3877113
delta logL = 1.14605957491

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  5.193e+00  1.994e+01  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  3.304e+00  2.258e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  6.937e-01  1.395e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.071e+00  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 219.941 49.977
Photon Index (Free Index): 3.30 +/- 2.26
Photon Flux (Free Index): 5.92e-08 +/- 4.37e-08
Energy Flux (Free Index): 1.04e-05 +/- 5.00e-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/36606780/cmap_HighResolution_724032001_724636801_4FGL_J1439.7+4958_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.44e-08', energy_flux2='1.04e-05', photon_flux_error='1.59e-08', dlogl='1.15e+00', energy_flux='9.20e-06', photon_flux2='5.92e-08', job_status='DONE', time_completed='2023-12-19 01:03:39.016796', photon_index_error2='2.26', photon_index2='3.30', ts='4.79', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='5.00e-06', EG='1.11', time_epoch_completed='1702976619.02', return_code='0', job_id='36606780', GAL2='0.69', EG2='1.07', return_code2='0', energy_flux_error='6.01e-06', photon_flux_error2='4.37e-08', ts2='7.18', photon_index='2.30' WHERE bin_id='802' AND source_name='4FGL J1439.7+4958' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:03:39 PST 2023

