aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 174 seconds before starting...
Proceeding.

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).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7469
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1715
RA = 224.753, Dec = 71.6733
tmin = 683856001, tmax = 684115201
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='155253', job_status='RUN', time_executed='2022-09-16 18:48:34.906341', time_epoch_executed='1663379314.91' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155253

Creating custom pfile directory:
/scratch/kocevski/155253/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=683856001.0 && nMetStart<684115201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=683856001.0 && nMetStart<684115201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155253/ft1_4FGL_J1459.0+7140_daily_bin1715.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=683856001.0 && nMetStart<684115201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155253/ft1_4FGL_J1459.0+7140_daily_bin1715.fits outfile=/scratch/kocevski/155253/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1715.fits ra=224.753 dec=71.6733 rad=12.0 tmin=683856001.0 tmax=684115201.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.44
user 3.23
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/155253/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 621

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/155253/ltcube_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.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 /scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits
.....................!
real 14.38
user 13.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/155253/ltcube_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.fits outfile=/scratch/kocevski/155253/expmap_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.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 /scratch/kocevski/155253/ltcube_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.fits
.....................!
real 192.85
user 186.80
sys 5.49

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=/scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.fits scfile=/scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits outfile=/scratch/kocevski/155253/cmap_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.fits scfile=/scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits outfile=/scratch/kocevski/155253/cmap_HighResolution_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/155253/Model_4FGL_J1459.0+7140_daily_bin1715.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...
/scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.fits.....................!
real 67.20
user 65.18
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.fits', '/scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits', expMap='/scratch/kocevski/155253/expmap_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.fits', expCube='/scratch/kocevski/155253/ltcube_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/155253/Model_4FGL_J1459.0+7140_daily_bin1715.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): /scratch/kocevski/155253/ft1_filtered_4FGL_J1459.0+7140_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/155253/ft2_4FGL_J1459.0+7140_daily_bin1715.fits
Exposure map: /scratch/kocevski/155253/expmap_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.fits
Exposure cube: /scratch/kocevski/155253/ltcube_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/155253/Model_4FGL_J1459.0+7140_daily_bin1715.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) = 6791.39332616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7426       1.0000          .0000       .10000E+07
     2 'Prefactor '    34.281       1.0000          .0000       .10000E+07
     3 'Prefactor '    .36591E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .24980E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .27858E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .29197E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11525E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    26.889       1.0000          .0000       .10000E+07
     9 'Prefactor '    .34862E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21665E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.2926       1.0000          .0000       .10000E+07
    12 'Prefactor '    .51440E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .33409E-04   1.0000          .0000       .10000E+07
    14 'norm      '    2.4989       1.0000          .0000       .10000E+07
    15 'Prefactor '    95.202       1.0000          .0000       .10000E+07
    16 'norm      '    19.198       1.0000          .0000       .10000E+07
    17 'Prefactor '    .14988       1.0000          .0000       .10000E+07
    18 'Prefactor '    .14134       1.0000          .0000       .10000E+07
    19 'norm      '    .23315E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.7996       1.0000          .0000       .10000E+07
    21 'Prefactor '    .34514E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .19713E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .66880       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2503       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=   6791.387     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     1952 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7211        33.358        .91150E-06    .15600E-01
   2  Prefactor     34.249        1.7752       -.46823E-07    .60136E-03
   3  Prefactor     .45519E-08    9.1218        .62023E-06** at limit **
   4  Prefactor      .0000        2.3208        .13279E-06** at limit **
   5  Prefactor     .42633E-07    5.8454        .29566E-06** at limit **
   6  Prefactor     .13040E-06    7.4227        .58087E-06** at limit **
   7  Prefactor      .0000        8.7430       -.14406E-06** at limit **
   8  Prefactor     26.644        22.635       -.46473E-06   -.89519E-01
   9  Prefactor     .64948E-08    12.289        .10173E-05** at limit **
  10  Prefactor      .0000        25.562        .34534E-06** at limit **
  11  Prefactor     3.2805        4.5526        .47862E-07   -.47219E-02
  12  Prefactor     .36748E-07    82.116       -.72942E-06** at limit **
  13  Prefactor     .66613E-09    10.203       -.63144E-07** at limit **
  14  norm          2.5027        2.4941        .16972E-07   -.13043E-03
  15  Prefactor     94.593        92.113       -.16245E-05    .36839E-01
  16  norm          19.205        1.8144       -.65083E-08   -.25304E-02
  17  Prefactor      .0000        41.598        .53561E-06** at limit **
  18  Prefactor      .0000        42.094        .19233E-06** at limit **
  19  norm           .0000        .41135        .60095E-07** at limit **
  20  Prefactor     1.7979        2.6095       -.45685E-06   -.49738E-03
  21  Prefactor     .15543E-08    5.2311        .49664E-06** at limit **
  22  Prefactor     .27478E-07    10.776        .27931E-06** at limit **
  23  Normalizat    .66885        .16944       -.37714E-05   -.80254E-05
  24  Prefactor     1.2505        .16495        .29118E-05   -.58006E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.72109
  Prefactor  = 34.2491
  Prefactor  = 4.55191e-09
  Prefactor  = 0
  Prefactor  = 4.26326e-08
  Prefactor  = 1.30396e-07
  Prefactor  = 0
  Prefactor  = 26.6444
  Prefactor  = 6.4948e-09
  Prefactor  = 0
  Prefactor  = 3.28052
  Prefactor  = 3.67484e-08
  Prefactor  = 6.66134e-10
  norm       = 2.50273
  Prefactor  = 94.5926
  norm       = 19.205
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.79787
  Prefactor  = 1.55431e-09
  Prefactor  = 2.7478e-08
  Normalizat = 0.668855
  Prefactor  = 1.25047
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.387     FROM HESSE     STATUS=OK           439 CALLS     2391 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7211        34.604        .38618E-03   -1.5656    
   2  Prefactor     34.249        40.516        .17082E-03   -1.5591    
   3  Prefactor     .45519E-08    13.911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.3017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42633E-07    13.242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13040E-06    12.050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        8.7628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.644        53.479        .19288E-03   -1.5605    
   9  Prefactor     .64948E-08    14.297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        25.186        .16930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2805        29.436        .55772E-03   -1.5672    
  12  Prefactor     .36748E-07    82.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .66613E-09    10.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5027        2.5238        .64624E-03   -1.5676    
  15  Prefactor     94.593        98.728        .10249E-03   -1.5513    
  16  norm          19.205        17.059        .22831E-03   -1.5620    
  17  Prefactor      .0000        41.580        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        41.606        .12930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .40167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7979        2.6670        .77899E-03   -1.5681    
  21  Prefactor     .15543E-08    12.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .27478E-07    11.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .66885        .14933        .61621E-01   -1.0514    
  24  Prefactor     1.2505        .14572        .33537E-01   -.84792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04001e-06
Minuit parameter uncertainties:
  1  30.5013
  2  40.516
  3  0.000504698
  4  1.46486e-06
  5  0.00150274
  6  0.00250712
  7  5.94288e-06
  8  53.4802
  9  0.000608742
  10  6.52524e-06
  11  19.6536
  12  0.00347247
  13  0.000163968
  14  2.52381
  15  98.7292
  16  17.0589
  17  1.9628e-05
  18  9.05031e-06
  19  1.56298e-07
  20  2.66696
  21  0.000280234
  22  0.00111078
  23  0.149419
  24  0.145763
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  6.525e-06  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:  1.250e+00  1.458e-01  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:  6.689e-01  1.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 224.753 71.673
Photon Flux Upper Limit: 6.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155253/likelihoodResults_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.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) = 6791.40611383
delta logL = -0.0190281986188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6791.38708621
delta logL = -5.75360900257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13612E-04   1.0000          .0000       .10000E+07
     2 'Index     '    3.3718       1.0000          .0000       10.000    
     3 'Normalizat'    .66890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2505       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=   6791.387     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      215 TOTAL
                     EDM=   .40E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        28.427       -.10652E-05** at limit **
   2  Index         2.2929        5.6277        .44685E-04     .0000    
   3  Normalizat    .66885        .16711       -.97137E-06   -.61395E-05
   4  Prefactor     1.2505        .16415        .18851E-05   -.97195E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.29289
  Normalizat = 0.668855
  Prefactor  = 1.25047
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6791.387     FROM HESSE     STATUS=FAILED        11 CALLS      226 TOTAL
                     EDM=   .40E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        28.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .58521        1.7693        .44685E-04   -.57213    
   3  Normalizat    .66885        1.0082       -.97137E-06   -1.0514    
   4  Prefactor     1.2505        1.0885        .18851E-05   -.84792    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.00238e-14
Minuit parameter uncertainties:
  1  6.29743e-06
  2  0.898537
  3  1.03826
  4  1.10922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155253': No such file or directory
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) = 6791.38708563
delta logL = 0.0

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  6.297e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  2.293e+00  8.985e-01  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:  1.250e+00  1.109e+00  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:  6.689e-01  1.038e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 224.753 71.673

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/155253/cmap_HighResolution_683856001_684115201_4FGL_J1459.0+7140_daily_bin1715.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/155253

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2022-09-16 19:00:38.590441', job_id='155253', GAL2='1.25', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1663380038.59', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1715' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:00:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 155253: <4FGL_J1459.0+7140_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin1715> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 18:45:16 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:45:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:45:31 2022
Terminated at Fri Sep 16 19:00:39 2022
Results reported at Fri Sep 16 19:00:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1715 224.753 71.6733 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1459.0+7140 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            923 sec.

The output (if any) is above this job summary.

