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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1717
RA = 224.753, Dec = 71.6733
tmin = 684374401, tmax = 684633601
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='155257', job_status='RUN', time_executed='2022-09-16 18:45:44.726898', time_epoch_executed='1663379144.73' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155257/ft1_4FGL_J1459.0+7140_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155257/ft2_4FGL_J1459.0+7140_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155257/ft1_4FGL_J1459.0+7140_daily_bin1717.fits outfile=/scratch/kocevski/155257/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1717.fits ra=224.753 dec=71.6733 rad=12.0 tmin=684374401.0 tmax=684633601.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 5.09
user 4.75
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155257/ft2_4FGL_J1459.0+7140_daily_bin1717.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/155257/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/155257/ft1_filtered_4FGL_J1459.0+7140_daily_bin1717.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.53
user 0.32
sys 0.18

Number of photons that the gtmktime cut: 728

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155257/ft1_filtered_4FGL_J1459.0+7140_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/155257/ft2_4FGL_J1459.0+7140_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/155257/ltcube_684374401_684633601_4FGL_J1459.0+7140_daily_bin1717.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/155257/ft2_4FGL_J1459.0+7140_daily_bin1717.fits
.....................!
real 12.46
user 11.94
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155257/ft1_filtered_4FGL_J1459.0+7140_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/155257/ft2_4FGL_J1459.0+7140_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/155257/ltcube_684374401_684633601_4FGL_J1459.0+7140_daily_bin1717.fits outfile=/scratch/kocevski/155257/expmap_684374401_684633601_4FGL_J1459.0+7140_daily_bin1717.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/155257/ltcube_684374401_684633601_4FGL_J1459.0+7140_daily_bin1717.fits
.....................!
real 192.90
user 186.40
sys 5.18

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/155257/ft1_filtered_4FGL_J1459.0+7140_daily_bin1717.fits scfile=/scratch/kocevski/155257/ft2_4FGL_J1459.0+7140_daily_bin1717.fits outfile=/scratch/kocevski/155257/cmap_684374401_684633601_4FGL_J1459.0+7140_daily_bin1717.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155257/ft1_filtered_4FGL_J1459.0+7140_daily_bin1717.fits scfile=/scratch/kocevski/155257/ft2_4FGL_J1459.0+7140_daily_bin1717.fits outfile=/scratch/kocevski/155257/cmap_HighResolution_684374401_684633601_4FGL_J1459.0+7140_daily_bin1717.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/155257/ft1_filtered_4FGL_J1459.0+7140_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/155257/ft2_4FGL_J1459.0+7140_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/155257/Model_4FGL_J1459.0+7140_daily_bin1717.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/155257/ft1_filtered_4FGL_J1459.0+7140_daily_bin1717.fits.....................!
real 71.50
user 69.80
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17343E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15406E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .44711       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.0174       1.0000          .0000       .10000E+07
     5 'Prefactor '    .98480E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .59866E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.5564       1.0000          .0000       .10000E+07
     8 'Prefactor '    .81462E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10907E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .66431E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15476E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .19496E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    21.351       1.0000          .0000       .10000E+07
    14 'norm      '    2.8445       1.0000          .0000       .10000E+07
    15 'Prefactor '    71.135       1.0000          .0000       .10000E+07
    16 'norm      '    2.2878       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20940E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .16186E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .38579       1.0000          .0000       .10000E+07
    20 'Prefactor '    .70410E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    13.513       1.0000          .0000       .10000E+07
    22 'Prefactor '    20.195       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70546       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=   7729.490     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1961 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25258E-07    20.015       -.27315E-06** at limit **
   2  Prefactor     .66613E-09    3.9632        .12009E-05** at limit **
   3  Prefactor     .16208E-03    319.30        .14071E-04** at limit **
   4  Prefactor     6.0212        5.7308        .69365E-07   -.42583E-03
   5  Prefactor     .17458E-06    8.0572        .32707E-05** at limit **
   6  Prefactor     .22204E-09    7.8399       -.13253E-06** at limit **
   7  Prefactor     7.5327        8.9021       -.16803E-05    .20853E-01
   8  Prefactor     .44409E-09    36.263       -.48146E-06** at limit **
   9  Prefactor     .66613E-09    4.9748       -.42881E-06** at limit **
  10  Prefactor     .12024E-06    10.544       -.46655E-05** at limit **
  11  Prefactor     .44409E-09    3.8331        .73015E-06** at limit **
  12  Prefactor     .34417E-08    10.380        .11053E-05** at limit **
  13  Prefactor     21.168        23.606       -.33501E-05   -.75081E-02
  14  norm          2.8390        2.4190       -.18034E-06   -.17075E-02
  15  Prefactor     71.817        47.321        .34204E-05   -.10157    
  16  norm          2.2677        16.013       -.17378E-06   -.11170E-02
  17  Prefactor     .66301E-05    119.90       -.76703E-08** at limit **
  18  Prefactor     .64393E-07    9.3153       -.34200E-05** at limit **
  19  norm          .38562        .39640        .49332E-08    .50657E-02
  20  Prefactor      .0000        1.7878        .20963E-07** at limit **
  21  Prefactor     13.535        1.1218       -.93539E-07   -.22682E-02
  22  Prefactor     20.240        10.855        .19990E-06    .64700E-01
  23  Normalizat    1.2966        .17021       -.20391E-05   -.40220E-03
  24  Prefactor     .70575        .15141       -.10602E-05   -.28928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52576e-08
  Prefactor  = 6.66134e-10
  Prefactor  = 0.000162077
  Prefactor  = 6.0212
  Prefactor  = 1.74583e-07
  Prefactor  = 2.22045e-10
  Prefactor  = 7.53265
  Prefactor  = 4.44089e-10
  Prefactor  = 6.66134e-10
  Prefactor  = 1.20237e-07
  Prefactor  = 4.44089e-10
  Prefactor  = 3.44169e-09
  Prefactor  = 21.1679
  norm       = 2.83898
  Prefactor  = 71.8171
  norm       = 2.26769
  Prefactor  = 6.63014e-06
  Prefactor  = 6.43929e-08
  norm       = 0.385619
  Prefactor  = 0
  Prefactor  = 13.535
  Prefactor  = 20.2396
  Normalizat = 1.2966
  Prefactor  = 0.70575
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.490     FROM HESSE     STATUS=OK           447 CALLS     2408 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25258E-07    20.337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .66613E-09    12.624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16208E-03    15.958        .13016E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0212        5.7885        .40908E-03   -1.5659    
   5  Prefactor     .17458E-06    12.238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22204E-09    7.8458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5327        34.205        .36459E-03   -1.5653    
   8  Prefactor     .44409E-09    36.181        .14457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .66613E-09    4.9793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12024E-06    11.117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44409E-09    12.685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .34417E-08    10.407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.168        26.630        .21648E-03   -1.5616    
  14  norm          2.8390        2.4649        .60261E-03   -1.5674    
  15  Prefactor     71.817        75.044        .11857E-03   -1.5538    
  16  norm          2.2677        16.054        .67843E-03   -1.5678    
  17  Prefactor     .66301E-05    125.67        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .64393E-07    13.064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .38562        .41643        .91152E-03   -1.5696    
  20  Prefactor      .0000        1.7625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.535        13.895        .27222E-03   -1.5634    
  22  Prefactor     20.240        22.300        .22260E-03   -1.5618    
  23  Normalizat    1.2966        .14697        .48091E-01   -.83668    
  24  Prefactor     .70575        .13145        .42474E-01   -1.0330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16471e-06
Minuit parameter uncertainties:
  1  0.00143323
  2  0.000184677
  3  0.101714
  4  5.78847
  5  0.00292361
  6  7.88806e-05
  7  32.1034
  8  0.000258723
  9  0.000115739
  10  0.00231203
  11  0.000147149
  12  0.000379971
  13  26.6299
  14  2.46489
  15  75.0449
  16  12.0674
  17  0.0577325
  18  0.00183416
  19  0.416427
  20  5.49601e-06
  21  13.8951
  22  22.3005
  23  0.147022
  24  0.131505
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.202e-07  2.312e-03  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.058e-01  1.315e-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.297e+00  1.470e-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: 4.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155257/likelihoodResults_684374401_684633601_4FGL_J1459.0+7140_daily_bin1717.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) = 7729.49212063
delta logL = -0.0022664696944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7729.48985505
delta logL = -8.96664460015e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13713E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.9357       1.0000          .0000       10.000    
     3 'Normalizat'    1.2966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70576       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=   7729.490     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      226 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.7688        .42118E-03** at limit **
   2  Index         1.0601        .67960       -.65380E-04     .0000    
   3  Normalizat    1.2966        1.0801        .86054E-07    .67889E-04
   4  Prefactor     .70575        1.0555       -.23090E-05    .49773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.06013
  Normalizat = 1.2966
  Prefactor  = 0.70575
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7729.490     FROM HESSE     STATUS=FAILED         9 CALLS      235 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.7688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .58627E-01    1.0987       -.65380E-04   -.90751    
   3  Normalizat    1.2966        1.0801        .86054E-07   -.83668    
   4  Prefactor     .70575        1.0555       -.23090E-05   -1.0330    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.67588e-12
Minuit parameter uncertainties:
  1  1.09904e-05
  2  0.685243
  3  1.09979
  4  1.08792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155257': 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) = 7729.48985415
delta logL = 5.45423972653e-09

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  0.000e+00  1.099e-05  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  1.060e+00  6.852e-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.058e-01  1.088e+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.297e+00  1.100e+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/155257/cmap_HighResolution_684374401_684633601_4FGL_J1459.0+7140_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.66e-08', time_completed='2022-09-16 18:58:59.664425', job_id='155257', GAL2='0.71', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1663379939.66', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='5.45e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1717' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:58:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 155257: <4FGL_J1459.0+7140_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin1717> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 18:45:17 2022
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:45:32 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:32 2022
Terminated at Fri Sep 16 18:59:00 2022
Results reported at Fri Sep 16 18:59:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1717 224.753 71.6733 684374401 684633601 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 :                                   794.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            823 sec.

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

