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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1770
RA = 224.753, Dec = 71.6733
tmin = 698112001, tmax = 698371201
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='489021', job_status='RUN', time_executed='2023-02-18 01:00:38.400701', time_epoch_executed='1676710838.4' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489021/ft1_4FGL_J1459.0+7140_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489021/ft2_4FGL_J1459.0+7140_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489021/ft1_4FGL_J1459.0+7140_daily_bin1770.fits outfile=/scratch/kocevski/489021/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1770.fits ra=224.753 dec=71.6733 rad=12.0 tmin=698112001.0 tmax=698371201.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.29
user 3.08
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489021/ft2_4FGL_J1459.0+7140_daily_bin1770.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/489021/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/489021/ft1_filtered_4FGL_J1459.0+7140_daily_bin1770.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.41
user 0.26
sys 0.14

Number of photons that the gtmktime cut: 651

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489021/ft1_filtered_4FGL_J1459.0+7140_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/489021/ft2_4FGL_J1459.0+7140_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/489021/ltcube_698112001_698371201_4FGL_J1459.0+7140_daily_bin1770.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/489021/ft2_4FGL_J1459.0+7140_daily_bin1770.fits
.....................!
real 8.88
user 8.61
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489021/ft1_filtered_4FGL_J1459.0+7140_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/489021/ft2_4FGL_J1459.0+7140_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/489021/ltcube_698112001_698371201_4FGL_J1459.0+7140_daily_bin1770.fits outfile=/scratch/kocevski/489021/expmap_698112001_698371201_4FGL_J1459.0+7140_daily_bin1770.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/489021/ltcube_698112001_698371201_4FGL_J1459.0+7140_daily_bin1770.fits
.....................!
real 140.09
user 136.50
sys 3.37

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/489021/ft1_filtered_4FGL_J1459.0+7140_daily_bin1770.fits scfile=/scratch/kocevski/489021/ft2_4FGL_J1459.0+7140_daily_bin1770.fits outfile=/scratch/kocevski/489021/cmap_698112001_698371201_4FGL_J1459.0+7140_daily_bin1770.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.44
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489021/ft1_filtered_4FGL_J1459.0+7140_daily_bin1770.fits scfile=/scratch/kocevski/489021/ft2_4FGL_J1459.0+7140_daily_bin1770.fits outfile=/scratch/kocevski/489021/cmap_HighResolution_698112001_698371201_4FGL_J1459.0+7140_daily_bin1770.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.44
user 0.31
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87908E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    54.474       1.0000          .0000       .10000E+07
     3 'Prefactor '    .78953E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.6156       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14809E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.6423       1.0000          .0000       .10000E+07
     7 'Prefactor '    .42012E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    36.213       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19005E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21717E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    10.135       1.0000          .0000       .10000E+07
    12 'Prefactor '    .85767E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .45629E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.2534       1.0000          .0000       .10000E+07
    15 'Prefactor '    28.196       1.0000          .0000       .10000E+07
    16 'norm      '    .34778E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30501       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21755E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .33623E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .21649E-08   1.0000          .0000       .10000E+07
    21 'Prefactor '    .20972E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .17884E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0838       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78622       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=   7119.585     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1962 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18946E-05    138.79       -.38419E-06** at limit **
   2  Prefactor     54.644        24.338        .84649E-07   -.19872    
   3  Prefactor     .40229E-06    6.5747        .35784E-07** at limit **
   4  Prefactor     3.6200        5.3222        .15029E-07   -.86571E-03
   5  Prefactor     .94369E-09    6.1592        .14823E-06** at limit **
   6  Prefactor     8.5651        5.4914       -.10399E-07   -.10703E-01
   7  Prefactor     .12823E-06    9.5254        .53111E-07** at limit **
   8  Prefactor     36.288        6.8259        .52258E-07   -.42789E-01
   9  Prefactor     .10547E-08    6.1509        .15514E-06** at limit **
  10  Prefactor     .27756E-09    20.205       -.10301E-06** at limit **
  11  Prefactor     10.018        26.433        .24495E-06   -.60536E-01
  12  Prefactor     .36976E-06    8.6774        .45442E-07** at limit **
  13  Prefactor     .97533E-07    13.095        .81578E-07** at limit **
  14  norm          1.2581        2.0729        .79067E-08    .24630E-02
  15  Prefactor     27.036        77.401        .76266E-06    .34897E-01
  16  norm          .49077E-06    12.927       -.35256E-07** at limit **
  17  Prefactor      .0000        47.651       -.19764E-07** at limit **
  18  Prefactor     .78537E-06    11.063        .80324E-07** at limit **
  19  norm           .0000        .20115        .20690E-07** at limit **
  20  Prefactor      .0000        .69424       -.18274E-07** at limit **
  21  Prefactor     .72164E-09    21.883       -.16791E-06** at limit **
  22  Prefactor     .29476E-07    7.6612       -.15894E-07** at limit **
  23  Normalizat    1.0843        .17300       -.24774E-05   -.69610E-05
  24  Prefactor     .78610        .15018        .23159E-05    .22514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8946e-06
  Prefactor  = 54.6436
  Prefactor  = 4.02289e-07
  Prefactor  = 3.62003
  Prefactor  = 9.4369e-10
  Prefactor  = 8.56507
  Prefactor  = 1.28231e-07
  Prefactor  = 36.288
  Prefactor  = 1.05471e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 10.0185
  Prefactor  = 3.6976e-07
  Prefactor  = 9.75331e-08
  norm       = 1.25814
  Prefactor  = 27.0358
  norm       = 4.90774e-07
  Prefactor  = 0
  Prefactor  = 7.85372e-07
  norm       = 0
  Prefactor  = 0
  Prefactor  = 7.21645e-10
  Prefactor  = 2.94764e-08
  Normalizat = 1.08434
  Prefactor  = 0.786102
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.585     FROM HESSE     STATUS=OK           439 CALLS     2401 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18946E-05    139.62        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.644        40.090        .13550E-03   -1.5560    
   3  Prefactor     .40229E-06    12.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6200        5.2996        .53112E-03   -1.5670    
   5  Prefactor     .94369E-09    6.1582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5651        16.828        .34074E-03   -1.5649    
   7  Prefactor     .12823E-06    13.030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.288        45.894        .16619E-03   -1.5587    
   9  Prefactor     .10547E-08    6.1509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27756E-09    19.892        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.018        28.845        .31450E-03   -1.5645    
  12  Prefactor     .36976E-06    11.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .97533E-07    17.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2581        2.1451        .99776E-03   -1.5686    
  15  Prefactor     27.036        83.637        .18836E-03   -1.5604    
  16  norm          .49077E-06    15.742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        47.697        .10144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .78537E-06    13.604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .19829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        .69151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .72164E-09    9.3989        .81368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .29476E-07    16.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0843        .14935        .38702E-01   -.90256    
  24  Prefactor     .78610        .13007        .43538E-01   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14135e-06
Minuit parameter uncertainties:
  1  0.0325297
  2  40.0905
  3  0.00441999
  4  5.29963
  5  0.000153113
  6  16.8282
  7  0.00258506
  8  45.8941
  9  0.000163192
  10  0.000144487
  11  28.8454
  12  0.00421235
  13  0.00258813
  14  2.14515
  15  83.6405
  16  0.00555911
  17  1.31117e-05
  18  0.00653743
  19  2.8755e-06
  20  4.74406e-06
  21  0.000162877
  22  0.00140886
  23  0.149413
  24  0.130118
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.776e-10  1.445e-04  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:  7.861e-01  1.301e-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:  1.084e+00  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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489021/likelihoodResults_698112001_698371201_4FGL_J1459.0+7140_daily_bin1770.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) = 7119.60894611
delta logL = -0.0241045887233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7119.58484156
delta logL = -3.76667230739e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37487E-06   1.0000          .0000       .10000E+07
     2 'Index     '    3.4546       1.0000          .0000       10.000    
     3 'Normalizat'    1.0844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78607       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=   7119.585     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .25E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.459        .42118E-03** at limit **
   2  Index         1.5037        .75353       -.13350E-04     .0000    
   3  Normalizat    1.0843        1.1673        .26748E-05    .10801E-04
   4  Prefactor     .78610        1.1350        .21367E-06   -.57759E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.50373
  Normalizat = 1.08434
  Prefactor  = 0.7861
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7119.585     FROM HESSE     STATUS=FAILED         9 CALLS      225 TOTAL
                     EDM=   .25E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .20373        1.3786       -.13350E-04   -.77435    
   3  Normalizat    1.0843        1.1673        .26748E-05   -.90256    
   4  Prefactor     .78610        1.1350        .21367E-06   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.54356e-13
Minuit parameter uncertainties:
  1  5.20302e-06
  2  0.759231
  3  1.19695
  4  1.17167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489021': 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) = 7119.58484152
delta logL = 8.8220986072e-11

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  5.203e-06  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.504e+00  7.592e-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:  7.861e-01  1.172e+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:  1.084e+00  1.197e+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/489021/cmap_HighResolution_698112001_698371201_4FGL_J1459.0+7140_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2023-02-18 01:10:02.963516', job_id='489021', GAL2='0.79', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1676711402.96', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='8.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1770' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 01:10:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0168>
Subject: Job 489021: <4FGL_J1459.0+7140_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin1770> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Feb 18 01:00:21 2023
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 01:00:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 01:00:22 2023
Terminated at Sat Feb 18 01:10:03 2023
Results reported at Sat Feb 18 01:10:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1770 224.753 71.6733 698112001 698371201 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 :                                   565.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             361.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            582 sec.

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

