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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1712
RA = 224.753, Dec = 71.6733
tmin = 683078401, tmax = 683337601
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='155248', job_status='RUN', time_executed='2022-09-16 18:46:39.273981', time_epoch_executed='1663379199.27' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155248/ft1_4FGL_J1459.0+7140_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155248/ft2_4FGL_J1459.0+7140_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155248/ft1_4FGL_J1459.0+7140_daily_bin1712.fits outfile=/scratch/kocevski/155248/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1712.fits ra=224.753 dec=71.6733 rad=12.0 tmin=683078401.0 tmax=683337601.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.80
user 4.52
sys 0.24

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

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

Number of photons that the gtmktime cut: 698

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155248/ft1_filtered_4FGL_J1459.0+7140_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/155248/ft2_4FGL_J1459.0+7140_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/155248/ltcube_683078401_683337601_4FGL_J1459.0+7140_daily_bin1712.fits outfile=/scratch/kocevski/155248/expmap_683078401_683337601_4FGL_J1459.0+7140_daily_bin1712.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/155248/ltcube_683078401_683337601_4FGL_J1459.0+7140_daily_bin1712.fits
.....................!
real 192.43
user 186.65
sys 4.97

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/155248/ft1_filtered_4FGL_J1459.0+7140_daily_bin1712.fits scfile=/scratch/kocevski/155248/ft2_4FGL_J1459.0+7140_daily_bin1712.fits outfile=/scratch/kocevski/155248/cmap_683078401_683337601_4FGL_J1459.0+7140_daily_bin1712.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155248/ft1_filtered_4FGL_J1459.0+7140_daily_bin1712.fits scfile=/scratch/kocevski/155248/ft2_4FGL_J1459.0+7140_daily_bin1712.fits outfile=/scratch/kocevski/155248/cmap_HighResolution_683078401_683337601_4FGL_J1459.0+7140_daily_bin1712.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/155248/ft1_filtered_4FGL_J1459.0+7140_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/155248/ft2_4FGL_J1459.0+7140_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/155248/Model_4FGL_J1459.0+7140_daily_bin1712.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/155248/ft1_filtered_4FGL_J1459.0+7140_daily_bin1712.fits.....................!
real 72.56
user 70.05
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13304E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    26.134       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12185E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2606       1.0000          .0000       .10000E+07
     5 'Prefactor '    .75835E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20965E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.0811       1.0000          .0000       .10000E+07
     8 'Prefactor '    97.703       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43559E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.3617       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13641E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16149E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .24081E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .41966E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    21.624       1.0000          .0000       .10000E+07
    16 'norm      '    13.429       1.0000          .0000       .10000E+07
    17 'Prefactor '    .65924E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    46.097       1.0000          .0000       .10000E+07
    19 'norm      '    .11269E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .97145E-08   1.0000          .0000       .10000E+07
    21 'Prefactor '    18.797       1.0000          .0000       .10000E+07
    22 'Prefactor '    .15734E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2430       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61234       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=   7478.017     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     2007 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23342E-06    7.4672        .51452E-07** at limit **
   2  Prefactor     27.834        43.570       -.10305E-06    .76483E-02
   3  Prefactor     .55511E-10    7.7497       -.10941E-07** at limit **
   4  Prefactor     1.2608        3.2446       -.40882E-07   -.86106E-03
   5  Prefactor     .13878E-08    9.5462        .29485E-07** at limit **
   6  Prefactor     .40579E-07    11.064        .38164E-07** at limit **
   7  Prefactor     4.5749        12.068       -.23258E-08   -.15259E-01
   8  Prefactor     95.647        46.731        .24644E-06   -.75800E-01
   9  Prefactor     .55511E-10    5.5266       -.84876E-07** at limit **
  10  Prefactor     6.5456        5.6998       -.71704E-07   -.34985E-01
  11  Prefactor     .11102E-09    14.868        .14319E-06** at limit **
  12  Prefactor     .12212E-08    17.813        .12518E-07** at limit **
  13  Prefactor     .55511E-10    6.9995       -.22809E-07** at limit **
  14  norm           .0000        1.0310        .93231E-08** at limit **
  15  Prefactor     23.621        53.541       -.53425E-06   -.32385E-01
  16  norm          13.414        1.3192       -.15346E-08   -.30154E-02
  17  Prefactor      .0000        33.566       -.36798E-07** at limit **
  18  Prefactor     46.437        29.479        .75221E-07   -.41016E-02
  19  norm           .0000        .48695       -.95756E-08** at limit **
  20  Prefactor      .0000        .85602        .22240E-07** at limit **
  21  Prefactor     18.788        2.3896       -.11399E-07   -.26949E-02
  22  Prefactor     .42250E-06    4.4703        .34848E-07** at limit **
  23  Normalizat    1.2416        .16276       -.10332E-06   -.13888E-03
  24  Prefactor     .61261        .14618       -.32982E-06   -.95506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33424e-07
  Prefactor  = 27.834
  Prefactor  = 5.55112e-11
  Prefactor  = 1.26078
  Prefactor  = 1.38778e-09
  Prefactor  = 4.05787e-08
  Prefactor  = 4.57492
  Prefactor  = 95.6468
  Prefactor  = 5.55112e-11
  Prefactor  = 6.54562
  Prefactor  = 1.11022e-10
  Prefactor  = 1.22125e-09
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 23.6213
  norm       = 13.4144
  Prefactor  = 0
  Prefactor  = 46.4369
  norm       = 0
  Prefactor  = 0
  Prefactor  = 18.7881
  Prefactor  = 4.22495e-07
  Normalizat = 1.24155
  Prefactor  = 0.612611
 **********
 **   18 **HESSE 
 **********

 FCN=   7478.017     FROM HESSE     STATUS=OK           443 CALLS     2450 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23342E-06    10.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.834        45.372        .19565E-03   -1.5602    
   3  Prefactor     .55511E-10    7.7467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2608        3.3502        .99307E-03   -1.5686    
   5  Prefactor     .13878E-08    9.5117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .40579E-07    12.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5749        93.083        .49882E-03   -1.5665    
   8  Prefactor     95.647        68.376        .10117E-03   -1.5512    
   9  Prefactor     .55511E-10    5.5241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5456        24.050        .39771E-03   -1.5657    
  11  Prefactor     .11102E-09    15.001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12212E-08    17.848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    6.9954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.0265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.621        74.608        .21510E-03   -1.5611    
  16  norm          13.414        16.064        .27308E-03   -1.5635    
  17  Prefactor      .0000        33.567        .14955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     46.437        30.735        .14730E-03   -1.5572    
  19  norm           .0000        .29979        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        .85338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.788        16.166        .23073E-03   -1.5621    
  22  Prefactor     .42250E-06    11.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2416        .14855        .33912E-01   -.85328    
  24  Prefactor     .61261        .13018        .41222E-01   -1.0706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17588e-07
Minuit parameter uncertainties:
  1  0.00314827
  2  45.373
  3  4.9725e-05
  4  3.35016
  5  0.000228443
  6  0.00140171
  7  41.2728
  8  68.3763
  9  4.12347e-05
  10  24.0504
  11  9.06062e-05
  12  0.000294524
  13  2.85731e-05
  14  8.22001e-07
  15  74.6106
  16  16.0637
  17  3.33083e-05
  18  30.7352
  19  7.52446e-07
  20  2.725e-06
  21  16.1664
  22  0.00431955
  23  0.148603
  24  0.130243
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  6.546e+00  2.405e+01  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:  6.126e-01  1.302e-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.242e+00  1.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/155248/likelihoodResults_683078401_683337601_4FGL_J1459.0+7140_daily_bin1712.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) = 7477.43411816
delta logL = 0.582433345667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7477.19375191
delta logL = 0.822799599898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42252E-03   1.0000          .0000       .10000E+07
     2 'Index     '    8.9229       1.0000          .0000       10.000    
     3 'Normalizat'    1.1942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64391       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.

 FCN=   7477.194     FROM MIGRAD    STATUS=CONVERGED    297 CALLS      602 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40426E-03    .39051E-03    .42118E-04** at limit **
   2  Index         8.9470        .44041        .27405       -.87801E-04
   3  Normalizat    1.1941        .20591        .35036E-01    .63331E-04
   4  Prefactor     .64396        .18568        .41650E-01    .13375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000404259
  Index      = 8.94696
  Normalizat = 1.19407
  Prefactor  = 0.643957
 **********
 **   18 **HESSE 
 **********

 FCN=   7477.194     FROM HESSE     STATUS=OK            33 CALLS      635 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40426E-03    .68759E-03    .15740E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9470        .86137        .11712E-01   -305.64    
   3  Normalizat    1.1941        .16475        .20543E-03   -2.2737    
   4  Prefactor     .64396        .14855        .24783E-03   -2.0839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67735e-09
Minuit parameter uncertainties:
  1  0.000687594
  2  0.873099
  3  0.164822
  4  0.148642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155248': 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): 0
logL (Free Index) = 7477.19374127
delta logL = 0.822810233373

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  4.043e-04  6.876e-04  0.000e+00  1.000e+06 ( 1.000e-13)
375        Index:  8.947e+00  8.731e-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:  6.440e-01  1.486e-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.194e+00  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 224.753 71.673
Photon Index (Free Index): 8.95 +/- 0.87
Photon Flux (Free Index): 3.82e-08 +/- 3.39e-08
Energy Flux (Free Index): 4.35e-06 +/- 3.86e-06

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/155248/cmap_HighResolution_683078401_683337601_4FGL_J1459.0+7140_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', comment='SUCCESS', energy_flux2='4.35e-06', dlogl='8.23e-01', photon_flux2='3.82e-08', job_status='DONE', time_completed='2022-09-16 19:00:41.542234', photon_index_error2='0.87', photon_index2='8.95', ts='0.09', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='6.83e-08', energy_flux_error2='3.86e-06', EG='1.24', time_epoch_completed='1663380041.54', return_code='0', job_id='155248', GAL2='0.64', EG2='1.19', return_code2='0', photon_flux_error2='3.39e-08', ts2='1.82', photon_index='2.50' WHERE bin_id='1712' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:00:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 155248: <4FGL_J1459.0+7140_daily_bin1712> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1712 224.753 71.6733 683078401 683337601 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 :                                   842.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            926 sec.

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

