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


Performing analysis on: 4FGL_J1459.0+7140_weekly_bin853
RA = 224.753, Dec = 71.6733
tmin = 754876801, tmax = 755481601
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='59978108', job_status='RUN', time_executed='2024-12-10 00:51:15.043728', time_epoch_executed='1733820675.04' WHERE source_name='4FGL J1459.0+7140' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59978108

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59978108/ft1_4FGL_J1459.0+7140_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59978108/ft1_4FGL_J1459.0+7140_weekly_bin853.fits outfile=/lscratch/kocevski/59978108/ft1_filteredMKT_4FGL_J1459.0+7140_weekly_bin853.fits ra=224.753 dec=71.6733 rad=12.0 tmin=754876801.0 tmax=755481601.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 3.98
user 3.42
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.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/59978108/ft1_filteredMKT_4FGL_J1459.0+7140_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.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.63
user 0.27
sys 0.16

Number of photons that the gtmktime cut: 2313

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59978108/ltcube_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.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/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits
.....................!
real 42.30
user 41.28
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59978108/ltcube_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.fits outfile=/lscratch/kocevski/59978108/expmap_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.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/59978108/ltcube_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.fits
.....................!
real 73.24
user 68.38
sys 4.35

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

Setting source of interest to:
4FGL J1459.0+7140 @ 224.753 71.6733

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.fits scfile=/lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits outfile=/lscratch/kocevski/59978108/cmap_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.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=224.753 yref=71.6733 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.48
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.fits scfile=/lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits outfile=/lscratch/kocevski/59978108/cmap_HighResolution_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.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=224.753 yref=71.6733 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.46
user 0.27
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59978108/Model_4FGL_J1459.0+7140_weekly_bin853.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/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.fits.....................!
real 89.10
user 86.89
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.fits', '/lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits', expMap='/lscratch/kocevski/59978108/expmap_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.fits', expCube='/lscratch/kocevski/59978108/ltcube_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59978108/Model_4FGL_J1459.0+7140_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1459.0+7140'

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  8.846e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.499e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59978108/ft1_filtered_4FGL_J1459.0+7140_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59978108/ft2_4FGL_J1459.0+7140_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59978108/expmap_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59978108/ltcube_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59978108/Model_4FGL_J1459.0+7140_weekly_bin853.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) = 24894.5771853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18538E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    16.313       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.0862       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42978E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .76005E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .62115E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .78493E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .52266E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .31580E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    11.755       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10126E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .19273E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    18.790       1.0000          .0000       .10000E+07
    14 'norm      '    2.2252       1.0000          .0000       .10000E+07
    15 'Prefactor '    38.750       1.0000          .0000       .10000E+07
    16 'norm      '    6.3582       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44460E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .12507       1.0000          .0000       .10000E+07
    19 'norm      '    .60243       1.0000          .0000       .10000E+07
    20 'Prefactor '    .25708E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    30.813       1.0000          .0000       .10000E+07
    22 'Prefactor '    31.123       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0330       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24894.43     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1614 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13262E-06    9.7264        .39233E-07** at limit **
   2  Prefactor     16.239        9.1239        .70524E-07    .12621E-01
   3  Prefactor     7.0962        7.8215       -.57204E-07    .22951E-03
   4  Prefactor     .11102E-09    3.3866       -.22185E-06** at limit **
   5  Prefactor      .0000        2.1338       -.43605E-07** at limit **
   6  Prefactor     .49960E-09    7.7913        .18546E-06** at limit **
   7  Prefactor     .27756E-09    5.5852        .24657E-07** at limit **
   8  Prefactor     .73386E-07    13.678        .25884E-06** at limit **
   9  Prefactor      .0000        1.6395        .41128E-07** at limit **
  10  Prefactor     11.781        11.788        .54481E-08    .10334E-01
  11  Prefactor     .31530E-07    33.712        .52997E-06** at limit **
  12  Prefactor     .94369E-09    4.8826       -.22641E-06** at limit **
  13  Prefactor     18.788        4.7675       -.25834E-07   -.57709E-01
  14  norm          2.2138        1.2356       -.54271E-08   -.84651E-04
  15  Prefactor     40.528        34.716       -.65329E-08   -.73573E-02
  16  norm          6.3535        6.8555        .10072E-07   -.47913E-03
  17  Prefactor     .21211E-06    7.0022        .25040E-06** at limit **
  18  Prefactor     .13894E-06    3.4630       -.12166E-06** at limit **
  19  norm          .60268        .35663       -.13967E-07    .14575E-02
  20  Prefactor     .74940E-08    17.732        .48499E-06** at limit **
  21  Prefactor     30.884        2.9716        .22500E-07    .33266E-01
  22  Prefactor     31.455        11.302       -.12289E-07    .25990E-01
  23  Normalizat    1.0325        .96618E-01    .15854E-05   -.98974E-04
  24  Prefactor     .97697        .90510E-01   -.92483E-06   -.71615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32616e-07
  Prefactor  = 16.2394
  Prefactor  = 7.0962
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 4.996e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 7.33857e-08
  Prefactor  = 0
  Prefactor  = 11.7807
  Prefactor  = 3.15303e-08
  Prefactor  = 9.4369e-10
  Prefactor  = 18.7882
  norm       = 2.21384
  Prefactor  = 40.528
  norm       = 6.35354
  Prefactor  = 2.12108e-07
  Prefactor  = 1.38944e-07
  norm       = 0.602678
  Prefactor  = 7.49401e-09
  Prefactor  = 30.8836
  Prefactor  = 31.4551
  Normalizat = 1.03247
  Prefactor  = 0.976972
 **********
 **   18 **HESSE 
 **********

 FCN=   24894.43     FROM HESSE     STATUS=OK           449 CALLS     2063 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13262E-06    14.733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.239        14.490        .24771E-03   -1.5627    
   3  Prefactor     7.0962        7.8234        .37660E-03   -1.5655    
   4  Prefactor     .11102E-09    3.2716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.1471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .49960E-09    22.464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    5.6001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .73386E-07    21.594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.6402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.781        12.142        .29193E-03   -1.5639    
  11  Prefactor     .31530E-07    34.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94369E-09    4.9211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.788        11.134        .23078E-03   -1.5621    
  14  norm          2.2138        1.2428        .68901E-03   -1.5678    
  15  Prefactor     40.528        35.035        .16066E-03   -1.5581    
  16  norm          6.3535        6.9005        .39782E-03   -1.5658    
  17  Prefactor     .21211E-06    15.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .13894E-06    6.2074        .13300E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .60268        .40212        .69011E-03   -1.5692    
  20  Prefactor     .74940E-08    .71610        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.884        12.508        .18018E-03   -1.5597    
  22  Prefactor     31.455        17.488        .17928E-03   -1.5596    
  23  Normalizat    1.0325        .83108E-01    .41878E-01   -.91950    
  24  Prefactor     .97697        .77986E-01    .45978E-01   -.93501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32822e-08
Minuit parameter uncertainties:
  1  0.0027955
  2  14.4902
  3  7.82338
  4  4.09892e-05
  5  5.15636e-06
  6  0.000208793
  7  7.58245e-05
  8  0.00251756
  9  1.07072e-06
  10  12.1418
  11  0.00207276
  12  0.000134382
  13  11.1339
  14  1.24282
  15  35.0352
  16  6.90053
  17  0.0036683
  18  0.00185728
  19  0.402121
  20  0.000146409
  21  12.5079
  22  17.4876
  23  0.0831188
  24  0.0779949
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.178e+01  1.214e+01  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.499e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.770e-01  7.799e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.032e+00  8.312e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.24e-08 +/- 1.27e-08
Energy Flux (Fixed Index): 3.60e-06 +/- 3.71e-06

TS (Fixed Index): 1.30
Ra Dec: 224.753 71.673
Photon Flux Upper Limit: 4.02716825515e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00313205499712 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59978108/likelihoodResults_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.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) = 24894.3154973
delta logL = 0.119391920754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24894.3069207
delta logL = 0.12796855098

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   24894.31     FROM MIGRAD    STATUS=FAILED        80 CALLS      270 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5238        264.50        .14613E-04   -.37923E-01
   2  Index         3.1762        5.7794        .12173E-01   -.10349E-02
   3  Normalizat    1.0179        .15018        .23805E-03   -.31138E-02
   4  Prefactor     .98599        .11739        .22684E-03   -.28850E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   24894.31     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      359 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5238        264.50        .21715E-04   -.37923E-01
   2  Index         3.1762        5.7794        .15935E-02   -.10349E-02
   3  Normalizat    1.0179        .15018        .16159E-03   -.31138E-02
   4  Prefactor     .98599        .11739        .12732E-03   -.28850E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24894.31     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      390 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5217        16.209        .58451E-06   -.40016E-02
   2  Index         3.1764        1.6802        .48690E-03   -.61828E-04
   3  Normalizat    1.0179        .10182        .47609E-04   -.87875E-05
   4  Prefactor     .98600        .92680E-01    .45368E-04   -.13271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.52173
  Index      = 3.17645
  Normalizat = 1.01789
  Prefactor  = 0.985995
 **********
 **   18 **HESSE 
 **********

 FCN=   24894.31     FROM HESSE     STATUS=OK            23 CALLS      413 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5217        15.791        .37320E-06   -1.5653    
   2  Index         3.1764        1.6386        .19476E-04   -.37332    
   3  Normalizat    1.0179        .10166        .95219E-05   -.92434    
   4  Prefactor     .98600        .92584E-01    .90736E-05   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21094e-10
Minuit parameter uncertainties:
  1  15.7914
  2  1.67448
  3  0.101678
  4  0.0925994
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) = 24894.3069206
delta logL = 0.127968626963

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  7.522e+00  1.579e+01  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  3.176e+00  1.674e+00  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.860e-01  9.260e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.018e+00  1.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 224.753 71.673
Photon Index (Free Index): 3.18 +/- 1.67
Photon Flux (Free Index): 2.15e-08 +/- 2.45e-08
Energy Flux (Free Index): 3.97e-06 +/- 3.53e-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/59978108/cmap_HighResolution_754876801_755481601_4FGL_J1459.0+7140_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', comment='SUCCESS', photon_flux='1.24e-08', energy_flux2='3.97e-06', photon_flux_error='1.27e-08', dlogl='1.28e-01', energy_flux='3.60e-06', photon_flux2='2.15e-08', job_status='DONE', time_completed='2024-12-10 01:06:19.960187', photon_index_error2='1.67', photon_index2='3.18', ts='1.30', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.03e-08', energy_flux_error2='3.53e-06', EG='1.03', time_epoch_completed='1733821579.96', return_code='0', job_id='59978108', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='3.71e-06', photon_flux_error2='2.45e-08', ts2='1.59', photon_index='2.50' WHERE bin_id='853' AND source_name='4FGL J1459.0+7140' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 01:06:20 PST 2024

