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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1710
RA = 224.753, Dec = 71.6733
tmin = 682560001, tmax = 682819201
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='155244', job_status='RUN', time_executed='2022-09-16 18:46:28.161060', time_epoch_executed='1663379188.16' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155244/ft1_4FGL_J1459.0+7140_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155244/ft2_4FGL_J1459.0+7140_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155244/ft1_4FGL_J1459.0+7140_daily_bin1710.fits outfile=/scratch/kocevski/155244/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1710.fits ra=224.753 dec=71.6733 rad=12.0 tmin=682560001.0 tmax=682819201.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.69
user 3.48
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155244/ft2_4FGL_J1459.0+7140_daily_bin1710.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/155244/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/155244/ft1_filtered_4FGL_J1459.0+7140_daily_bin1710.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 762

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155244/ft1_filtered_4FGL_J1459.0+7140_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/155244/ft2_4FGL_J1459.0+7140_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/155244/ltcube_682560001_682819201_4FGL_J1459.0+7140_daily_bin1710.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/155244/ft2_4FGL_J1459.0+7140_daily_bin1710.fits
.....................!
real 13.14
user 12.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155244/ft1_filtered_4FGL_J1459.0+7140_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/155244/ft2_4FGL_J1459.0+7140_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/155244/ltcube_682560001_682819201_4FGL_J1459.0+7140_daily_bin1710.fits outfile=/scratch/kocevski/155244/expmap_682560001_682819201_4FGL_J1459.0+7140_daily_bin1710.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/155244/ltcube_682560001_682819201_4FGL_J1459.0+7140_daily_bin1710.fits
.....................!
real 191.46
user 185.90
sys 5.10

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/155244/ft1_filtered_4FGL_J1459.0+7140_daily_bin1710.fits scfile=/scratch/kocevski/155244/ft2_4FGL_J1459.0+7140_daily_bin1710.fits outfile=/scratch/kocevski/155244/cmap_682560001_682819201_4FGL_J1459.0+7140_daily_bin1710.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/155244/ft1_filtered_4FGL_J1459.0+7140_daily_bin1710.fits scfile=/scratch/kocevski/155244/ft2_4FGL_J1459.0+7140_daily_bin1710.fits outfile=/scratch/kocevski/155244/cmap_HighResolution_682560001_682819201_4FGL_J1459.0+7140_daily_bin1710.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57318E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.107       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.003       1.0000          .0000       .10000E+07
     4 'Prefactor '    .23254E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .21980E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17161E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    59.401       1.0000          .0000       .10000E+07
     8 'Prefactor '    19.794       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3479       1.0000          .0000       .10000E+07
    10 'Prefactor '    .29974E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .49186E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .73874E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    10.370       1.0000          .0000       .10000E+07
    14 'norm      '    .11741E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.047       1.0000          .0000       .10000E+07
    16 'norm      '    47.706       1.0000          .0000       .10000E+07
    17 'Prefactor '    .24502E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13826E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .55937       1.0000          .0000       .10000E+07
    20 'Prefactor '    .95763E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .83759E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    41.200       1.0000          .0000       .10000E+07
    23 'Normalizat'    .97935       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0324       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=   8127.304     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1991 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66780E-07    13.755       -.27886E-06** at limit **
   2  Prefactor     19.226        2.0355       -.27932E-07    .23831E-02
   3  Prefactor     18.178        3.2032        .35917E-06   -.27394E-01
   4  Prefactor     .11102E-09    2.8713        .14762E-06** at limit **
   5  Prefactor     .32252E-07    84.895       -.96117E-06** at limit **
   6  Prefactor     .69944E-08    8.1653       -.18379E-06** at limit **
   7  Prefactor     60.408        22.652       -.67480E-06   -.12356    
   8  Prefactor     18.124        14.880        .17784E-07   -.10220E-01
   9  Prefactor     4.4763        10.799        .74020E-06   -.21220E-03
  10  Prefactor     .38217E-05    13.710       -.18543E-05** at limit **
  11  Prefactor     .29082E-06    6.8482        .49559E-05** at limit **
  12  Prefactor     .35288E-05    14.110       -.97858E-06** at limit **
  13  Prefactor     10.361        1.0720       -.16140E-07    .30994E-03
  14  norm           .0000        .95836       -.30552E-07** at limit **
  15  Prefactor     15.564        49.854        .40582E-05   -.36722E-01
  16  norm          47.723        4.0154       -.32650E-06    .80881E-01
  17  Prefactor     .14059E-04    77.911        .45391E-05** at limit **
  18  Prefactor     .13267E-07    11.471        .38310E-06** at limit **
  19  norm          .55964        .53748       -.23158E-08   -.12236E-01
  20  Prefactor     .55511E-10    6.5625        .15312E-05** at limit **
  21  Prefactor     .25735E-06    6.8528       -.29561E-05** at limit **
  22  Prefactor     41.496        23.416        .12609E-05   -.49859E-01
  23  Normalizat    .97813        .16791        .16249E-05    .58322E-04
  24  Prefactor     1.0327        .16008       -.87241E-05    .89758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.67799e-08
  Prefactor  = 19.2256
  Prefactor  = 18.1782
  Prefactor  = 1.11022e-10
  Prefactor  = 3.2252e-08
  Prefactor  = 6.99441e-09
  Prefactor  = 60.4076
  Prefactor  = 18.1243
  Prefactor  = 4.47627
  Prefactor  = 3.82172e-06
  Prefactor  = 2.90823e-07
  Prefactor  = 3.52884e-06
  Prefactor  = 10.3605
  norm       = 0
  Prefactor  = 15.5639
  norm       = 47.7228
  Prefactor  = 1.40594e-05
  Prefactor  = 1.32672e-08
  norm       = 0.559635
  Prefactor  = 5.55112e-11
  Prefactor  = 2.5735e-07
  Prefactor  = 41.4955
  Normalizat = 0.978131
  Prefactor  = 1.0327
 **********
 **   18 **HESSE 
 **********

 FCN=   8127.304     FROM HESSE     STATUS=OK           449 CALLS     2440 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66780E-07    13.850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.226        39.307        .22885E-03   -1.5620    
   3  Prefactor     18.178        31.596        .23577E-03   -1.5623    
   4  Prefactor     .11102E-09    2.8549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .32252E-07    7.5127        .12366E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .69944E-08    8.1653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     60.408        40.283        .12976E-03   -1.5553    
   8  Prefactor     18.124        48.563        .22484E-03   -1.5623    
   9  Prefactor     4.4763        10.822        .48283E-03   -1.5666    
  10  Prefactor     .38217E-05    20.777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29082E-06    7.1537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .35288E-05    21.933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.361        14.936        .31090E-03   -1.5644    
  14  norm           .0000        .95210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.564        58.032        .27705E-03   -1.5629    
  16  norm          47.723        21.327        .14479E-03   -1.5570    
  17  Prefactor     .14059E-04    98.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .13267E-07    11.490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55964        .54906        .72949E-03   -1.5693    
  20  Prefactor     .55511E-10    6.3253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .25735E-06    7.1041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     41.496        26.410        .15581E-03   -1.5579    
  23  Normalizat    .97813        .14716        .45908E-01   -.93767    
  24  Prefactor     1.0327        .13903        .41074E-01   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48041e-06
Minuit parameter uncertainties:
  1  0.00192359
  2  39.3078
  3  31.5959
  4  3.89456e-05
  5  0.000984756
  6  0.000477196
  7  40.2833
  8  48.5636
  9  10.8219
  10  0.017822
  11  0.00288488
  12  0.0175953
  13  14.9362
  14  2.73277e-06
  15  58.0344
  16  21.3266
  17  0.0744255
  18  0.000781487
  19  0.549058
  20  4.31094e-05
  21  0.0027041
  22  26.4101
  23  0.147216
  24  0.139083
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  3.822e-06  1.782e-02  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.033e+00  1.391e-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:  9.781e-01  1.472e-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: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155244/likelihoodResults_682560001_682819201_4FGL_J1459.0+7140_daily_bin1710.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) = 8127.32767319
delta logL = -0.0232973482962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8127.30437701
delta logL = -1.15944931167e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11802E-05   1.0000          .0000       .10000E+07
     2 'Index     '    4.2870       1.0000          .0000       10.000    
     3 'Normalizat'    .97793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0329       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8127.304     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      222 TOTAL
                     EDM=   .69E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.5048        .42118E-03** at limit **
   2  Index         1.4156        .70470       -.73705E-04     .0000    
   3  Normalizat    .97813        1.3091        .70154E-05   -.10006E-03
   4  Prefactor     1.0327        1.2140       -.98798E-05   -.80408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.41557
  Normalizat = 0.978131
  Prefactor  = 1.0327
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8127.304     FROM HESSE     STATUS=FAILED         9 CALLS      231 TOTAL
                     EDM=   .69E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.5048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .16995        1.3196       -.73705E-04   -.79933    
   3  Normalizat    .97813        1.3091        .70154E-05   -.93767    
   4  Prefactor     1.0327        1.2140       -.98798E-05   -.91647    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.9266e-12
Minuit parameter uncertainties:
  1  2.14183e-05
  2  0.70959
  3  1.35622
  4  1.24872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155244': 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) = 8127.30437575
delta logL = 9.18989826459e-08

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  2.142e-05  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.416e+00  7.096e-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.033e+00  1.249e+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:  9.781e-01  1.356e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/155244/cmap_HighResolution_682560001_682819201_4FGL_J1459.0+7140_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2022-09-16 19:00:57.884793', job_id='155244', GAL2='1.03', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1663380057.88', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.19e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1710' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:00:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 155244: <4FGL_J1459.0+7140_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin1710> 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) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:45:22 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:22 2022
Terminated at Fri Sep 16 19:00:58 2022
Results reported at Fri Sep 16 19:00:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1710 224.753 71.6733 682560001 682819201 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 :                                   871.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            942 sec.

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

