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 79 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1692
RA = 224.753, Dec = 71.6733
tmin = 677894401, tmax = 678153601
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='405779', job_status='RUN', time_executed='2022-06-29 04:36:29.359606', time_epoch_executed='1656502589.36' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405779

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405779/ft1_4FGL_J1459.0+7140_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405779/ft1_4FGL_J1459.0+7140_daily_bin1692.fits outfile=/scratch/kocevski/405779/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1692.fits ra=224.753 dec=71.6733 rad=12.0 tmin=677894401.0 tmax=678153601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.46
user 4.20
sys 0.21

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

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

Number of photons that the gtmktime cut: 784

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405779/ft1_filtered_4FGL_J1459.0+7140_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405779/ltcube_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.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/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits
.....................!
real 14.43
user 14.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405779/ft1_filtered_4FGL_J1459.0+7140_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405779/ltcube_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.fits outfile=/scratch/kocevski/405779/expmap_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.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/405779/ltcube_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.fits
.....................!
real 191.53
user 185.60
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/405779/ft1_filtered_4FGL_J1459.0+7140_daily_bin1692.fits scfile=/scratch/kocevski/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits outfile=/scratch/kocevski/405779/cmap_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405779/ft1_filtered_4FGL_J1459.0+7140_daily_bin1692.fits scfile=/scratch/kocevski/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits outfile=/scratch/kocevski/405779/cmap_HighResolution_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.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/405779/ft1_filtered_4FGL_J1459.0+7140_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405779/Model_4FGL_J1459.0+7140_daily_bin1692.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/405779/ft1_filtered_4FGL_J1459.0+7140_daily_bin1692.fits.....................!
real 77.02
user 75.62
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405779/ft1_filtered_4FGL_J1459.0+7140_daily_bin1692.fits', '/scratch/kocevski/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits', expMap='/scratch/kocevski/405779/expmap_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.fits', expCube='/scratch/kocevski/405779/ltcube_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405779/Model_4FGL_J1459.0+7140_daily_bin1692.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  1.000e-04  1.000e+04 ( 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/405779/ft1_filtered_4FGL_J1459.0+7140_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/405779/ft2_4FGL_J1459.0+7140_daily_bin1692.fits
Exposure map: /scratch/kocevski/405779/expmap_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.fits
Exposure cube: /scratch/kocevski/405779/ltcube_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405779/Model_4FGL_J1459.0+7140_daily_bin1692.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) = 8447.27011755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22939E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8043       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2832       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.382       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.806       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.562       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8640       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.507       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5804       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11240E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6236       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.219       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .88984       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1027       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.

 FCN=   8447.248     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3590 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.722       -.11246E-06** at limit **
   2  Prefactor     .10000E-03    11.827        .45785E-07** at limit **
   3  Prefactor     .10061E-03    25.520       -.35527E-05** at limit **
   4  Prefactor     4.8047        3.7936        .65858E-08    .69007E-04
   5  Prefactor     1.7095        10.196        .20288E-05    .19172E-03
   6  Prefactor     .10000E-03    5.9676        .24540E-08** at limit **
   7  Prefactor     .10000E-03    3.0775       -.48968E-07** at limit **
   8  Prefactor     7.2835        9.9772        .59724E-07    .14201E-04
   9  Prefactor     33.384        32.122       -.14986E-06    .95765E-05
  10  Prefactor     .10001E-03    750.08        .30293E-04** at limit **
  11  Prefactor     .10000E-03    26.670       -.10428E-06** at limit **
  12  Prefactor     .10000E-03    6.1445       -.21751E-07** at limit **
  13  Prefactor     43.808        31.198       -.17793E-06    .32331E-04
  14  Prefactor     49.356        49.650       -.30224E-06    .36741E-04
  15  Prefactor     56.565        51.004       -.12389E-06    .21882E-04
  16  Prefactor     6.6548        14.694        .13201E-05    .47288E-05
  17  Prefactor     .10000E-03    22.439        .52993E-07** at limit **
  18  norm          1.8629        2.3468        .49967E-06    .26362E-03
  19  Prefactor     11.653        118.49       -.16620E-04    .90018E-05
  20  norm          1.5816        21.749        .12794E-04    .61092E-04
  21  Prefactor     .10001E-03    394.42       -.20043E-04** at limit **
  22  Prefactor     .10000E-03    8.7836        .15776E-07** at limit **
  23  norm          .10000E-03    .30599       -.15107E-07** at limit **
  24  Prefactor     .10001E-03    1.2872       -.17485E-05** at limit **
  25  Prefactor     4.6236        9.7584        .10643E-05   -.12438E-04
  26  Prefactor     18.212        24.039        .28580E-05    .56495E-03
  27  Normalizat    .88980        .15136        .51067E-06    .41113E-03
  28  Prefactor     1.1027        .13646       -.64860E-06    .61451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100608
  Prefactor  = 4.80473
  Prefactor  = 1.70954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.28346
  Prefactor  = 33.3841
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.8077
  Prefactor  = 49.3556
  Prefactor  = 56.5648
  Prefactor  = 6.65481
  Prefactor  = 0.0001
  norm       = 1.86293
  Prefactor  = 11.6531
  norm       = 1.58157
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 4.62361
  Prefactor  = 18.2119
  Normalizat = 0.889803
  Prefactor  = 1.10268
 **********
 **   18 **HESSE 
 **********

 FCN=   8447.248     FROM HESSE     STATUS=OK           527 CALLS     4117 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10061E-03    25.226        .13119       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8047        3.7890        .15072E-03   -1.5270    
   5  Prefactor     1.7095        10.035        .32282E-03   -1.5446    
   6  Prefactor     .10000E-03    6.0090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1032        .15742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2835        9.9711        .14862E-03   -1.5168    
   9  Prefactor     33.384        32.118        .69355E-04   -1.4552    
  10  Prefactor     .10001E-03    745.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.808        31.277        .60572E-04   -1.4383    
  14  Prefactor     49.356        49.650        .57088E-04   -1.4302    
  15  Prefactor     56.565        51.001        .53339E-04   -1.4202    
  16  Prefactor     6.6548        14.711        .15552E-03   -1.5192    
  17  Prefactor     .10000E-03    22.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8629        2.3264        .14958E-03   -1.5435    
  19  Prefactor     11.653        117.71        .11810E-03   -1.5025    
  20  norm          1.5816        21.561        .16892E-02   -1.5456    
  21  Prefactor     .10001E-03    393.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.0663        .97085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    5.0321        .17180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6236        9.6133        .93590E-03   -1.5278    
  26  Prefactor     18.212        22.124        .93832E-04   -1.4854    
  27  Normalizat    .88980        .17288        .12709E-02   -.96819    
  28  Prefactor     1.1027        .15548        .21810E-03   -.89381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71618e-09
Minuit parameter uncertainties:
  1  5.53326e-07
  2  1.61966e-06
  3  0.0078347
  4  3.78921
  5  8.28564
  6  1.9618e-07
  7  1.34023e-06
  8  9.97334
  9  32.1347
  10  0.00549464
  11  5.09639e-06
  12  1.92488e-06
  13  31.289
  14  49.6916
  15  51.04
  16  14.7189
  17  1.94908e-05
  18  2.32646
  19  74.2635
  20  11.6838
  21  0.0034229
  22  8.53514e-07
  23  4.71558e-06
  24  0.000406779
  25  9.61649
  26  22.1339
  27  0.172992
  28  0.155546
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  4.381e+01  3.129e+01  1.000e-04  1.000e+04 ( 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.103e+00  1.555e-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:  8.898e-01  1.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 9.55e-06

TS (Fixed Index): 2.60
Ra Dec: 224.753 71.673
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405779/likelihoodResults_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.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) = 8447.04917087
delta logL = 0.199218274365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8446.79631145
delta logL = 0.452077685846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.8442       1.0000          .0000       10.000    
     3 'Normalizat'    .85447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1434       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.

 FCN=   8446.796     FROM MIGRAD    STATUS=CONVERGED    447 CALLS      883 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16144E-01    .15524E-03** at limit **
   2  Index         9.8502        9.6324        .37660E-01    .39091E-04
   3  Normalizat    .85448        .91793E-01    .25878E-03   -.31745E-03
   4  Prefactor     1.1435        .85900E-01    .21484E-03   -.61279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.85025
  Normalizat = 0.854485
  Prefactor  = 1.14346
 **********
 **   18 **HESSE 
 **********

 FCN=   8446.796     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      918 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .10022E-01    .19911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8502        9.7821        .15064E-02   -4.4670    
   3  Normalizat    .85448        .77245E-01    .10351E-04   -.98078    
   4  Prefactor     1.1435        .72985E-01    .42969E-04   -.88089    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14154e-09
Minuit parameter uncertainties:
  1  4.53513e-07
  2  4.5264
  3  0.077255
  4  0.0729912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405779': 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): 102
logL (Free Index) = 8446.79616447
delta logL = 0.452224668905

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  4.535e-07  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  9.850e+00  4.526e+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:  1.143e+00  7.299e-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:  8.545e-01  7.725e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.65
Ra Dec: 224.753 71.673
Photon Index (Free Index): 9.85 +/- 4.53
Photon Flux (Free Index): 5.32e-08 +/- 4.46e-07
Energy Flux (Free Index): 5.96e-06 +/- 5.00e-05

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/405779/cmap_HighResolution_677894401_678153601_4FGL_J1459.0+7140_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.56e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='5.96e-06', photon_flux_error='3.28e-08', dlogl='4.52e-01', energy_flux='1.34e-05', photon_flux2='5.32e-08', job_status='DONE', time_completed='2022-06-29 04:57:26.717200', photon_index_error2='4.53', photon_index2='9.85', ts='2.60', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='5.00e-05', EG='0.89', time_epoch_completed='1656503846.72', return_code='0', job_id='405779', GAL2='1.14', EG2='0.85', return_code2='102', energy_flux_error='9.55e-06', photon_flux_error2='4.46e-07', ts2='3.65', photon_index='2.50' WHERE bin_id='1692' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:57:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 405778: <4FGL_J1459.0+7140_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:09 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:35:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:35:00 2022
Terminated at Wed Jun 29 04:56:15 2022
Results reported at Wed Jun 29 04:56:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1692 224.753 71.6733 677894401 678153601 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 :                                   1246.38 sec.
    Max Memory :                                 618 MB
    Average Memory :                             312.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1274 sec.
    Turnaround time :                            17346 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 405779: <4FGL_J1459.0+7140_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:09 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:35:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:35:00 2022
Terminated at Wed Jun 29 04:57:27 2022
Results reported at Wed Jun 29 04:57:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1692 224.753 71.6733 677894401 678153601 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 :                                   1257.45 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1347 sec.
    Turnaround time :                            17418 sec.

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

