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


Performing analysis on: 4FGL_J1459.0+7140_weekly_bin715
RA = 224.753, Dec = 71.6733
tmin = 671414401, tmax = 672019201
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='935004', job_status='RUN', time_executed='2022-04-19 02:31:43.906012', time_epoch_executed='1650360703.91' WHERE source_name='4FGL J1459.0+7140' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935004

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935004/ft1_4FGL_J1459.0+7140_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935004/ft2_4FGL_J1459.0+7140_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935004/ft1_4FGL_J1459.0+7140_weekly_bin715.fits outfile=/scratch/kocevski/935004/ft1_filteredMKT_4FGL_J1459.0+7140_weekly_bin715.fits ra=224.753 dec=71.6733 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.56
user 7.25
sys 0.29

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

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

Number of photons that the gtmktime cut: 1604

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935004/ft1_filtered_4FGL_J1459.0+7140_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/935004/ft2_4FGL_J1459.0+7140_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/935004/ltcube_671414401_672019201_4FGL_J1459.0+7140_weekly_bin715.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/935004/ft2_4FGL_J1459.0+7140_weekly_bin715.fits
.....................!
real 26.33
user 25.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935004/ft1_filtered_4FGL_J1459.0+7140_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935004/ft2_4FGL_J1459.0+7140_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/935004/ltcube_671414401_672019201_4FGL_J1459.0+7140_weekly_bin715.fits outfile=/scratch/kocevski/935004/expmap_671414401_672019201_4FGL_J1459.0+7140_weekly_bin715.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/935004/ltcube_671414401_672019201_4FGL_J1459.0+7140_weekly_bin715.fits
.....................!
real 190.61
user 185.38
sys 4.87

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/935004/ft1_filtered_4FGL_J1459.0+7140_weekly_bin715.fits scfile=/scratch/kocevski/935004/ft2_4FGL_J1459.0+7140_weekly_bin715.fits outfile=/scratch/kocevski/935004/cmap_671414401_672019201_4FGL_J1459.0+7140_weekly_bin715.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935004/ft1_filtered_4FGL_J1459.0+7140_weekly_bin715.fits scfile=/scratch/kocevski/935004/ft2_4FGL_J1459.0+7140_weekly_bin715.fits outfile=/scratch/kocevski/935004/cmap_HighResolution_671414401_672019201_4FGL_J1459.0+7140_weekly_bin715.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.59
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.368       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2573       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3323       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6539       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .51839       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4339       1.0000         .10000E-03   10000.    
    10 'Prefactor '    76.764       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.680       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0559       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0126       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1987       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6682       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7157       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11819E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    40.280       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .13457E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11021E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.575       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2162       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76118       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=   17205.84     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     4156 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5122       -.65647E-10** at limit **
   2  Prefactor     23.367        20.858        .21374E-06   -.29031E-04
   3  Prefactor     7.2587        14.350        .19917E-06   -.28805E-04
   4  Prefactor     .10000E-03    1.2103        .35554E-07** at limit **
   5  Prefactor     6.3329        10.108        .26177E-06   -.10375E-03
   6  Prefactor     1.6558        2.9961        .75827E-06   -.26062E-04
   7  Prefactor     .51772        2.2784        .78849E-06   -.52059E-03
   8  Prefactor     1.6415        6.2897        .17642E-05   -.53693E-04
   9  Prefactor     9.4394        21.215        .46788E-06   -.18880E-04
  10  Prefactor     77.368        237.03        .58258E-05    .93907E-04
  11  Prefactor     23.683        22.994       -.11093E-06   -.23628E-04
  12  Prefactor     6.0536        9.9276        .11157E-06   -.39557E-04
  13  Prefactor     1.9913        14.930        .99803E-06   -.50214E-04
  14  Prefactor     4.2025        16.220        .97909E-05   -.56656E-04
  15  Prefactor     .10000E-03    15.755       -.58050E-07** at limit **
  16  Prefactor     4.6673        9.4714        .95261E-05   -.15338E-03
  17  Prefactor     9.7141        12.453       -.25900E-05   -.88144E-04
  18  norm          2.0186        1.3404        .83275E-07   -.75115E-04
  19  Prefactor     .10000E-03    100.73       -.39772E-06** at limit **
  20  norm          40.279        12.602        .11307E-06   -.31473E-04
  21  Prefactor     .10000E-03    54.837       -.34190E-07** at limit **
  22  Prefactor     .10000E-03    12.146       -.47774E-07** at limit **
  23  norm          .12953E-01    .11648        .11260E-06   -.98837E-03
  24  Prefactor     .10000E-03    .63201       -.34488E-08** at limit **
  25  Prefactor     .10000E-03    14.499       -.25223E-06** at limit **
  26  Prefactor     16.575        14.640        .49739E-06   -.15688E-04
  27  Normalizat    1.2163        .10430       -.10304E-05   -.50896E-03
  28  Prefactor     .76117        .92119E-01   -.78468E-06   -.45163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.3669
  Prefactor  = 7.25868
  Prefactor  = 0.0001
  Prefactor  = 6.33286
  Prefactor  = 1.65583
  Prefactor  = 0.517717
  Prefactor  = 1.64147
  Prefactor  = 9.43937
  Prefactor  = 77.3679
  Prefactor  = 23.6834
  Prefactor  = 6.05362
  Prefactor  = 1.99133
  Prefactor  = 4.20249
  Prefactor  = 0.0001
  Prefactor  = 4.66728
  Prefactor  = 9.71406
  norm       = 2.01856
  Prefactor  = 0.0001
  norm       = 40.2792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0129534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5748
  Normalizat = 1.21626
  Prefactor  = 0.761166
 **********
 **   18 **HESSE 
 **********

 FCN=   17205.84     FROM HESSE     STATUS=OK           529 CALLS     4685 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.367        20.848        .82862E-04   -1.4741    
   3  Prefactor     7.2587        14.284        .14889E-03   -1.5169    
   4  Prefactor     .10000E-03    1.2333        .14054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3329        10.053        .15951E-03   -1.5205    
   6  Prefactor     1.6558        2.9545        .29426E-03   -1.5451    
   7  Prefactor     .51772        6.8398        .36937E-02   -1.5564    
   8  Prefactor     1.6415        6.2693        .32959E-03   -1.5452    
   9  Prefactor     9.4394        21.201        .13048E-03   -1.5093    
  10  Prefactor     77.368        235.82        .22916E-03   -1.3947    
  11  Prefactor     23.683        22.989        .41158E-03   -1.4734    
  12  Prefactor     6.0536        9.9212        .16315E-03   -1.5216    
  13  Prefactor     1.9913        14.936        .29180E-03   -1.5426    
  14  Prefactor     4.2025        16.208        .98336E-03   -1.5298    
  15  Prefactor     .10000E-03    15.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6673        9.4935        .93131E-03   -1.5276    
  17  Prefactor     9.7141        12.445        .12856E-03   -1.5085    
  18  norm          2.0186        1.3363        .12019E-03   -1.5424    
  19  Prefactor     .10000E-03    101.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          40.279        12.602        .63158E-04   -1.4438    
  21  Prefactor     .10000E-03    54.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .12953E-01    1.4452        .85883E-03   -1.5685    
  24  Prefactor     .10000E-03    .64600        .20242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.575        14.566        .98377E-04   -1.4893    
  27  Normalizat    1.2163        .11873        .21689E-03   -.86102    
  28  Prefactor     .76117        .10570        .24454E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07827e-09
Minuit parameter uncertainties:
  1  2.23698e-06
  2  20.854
  3  14.291
  4  2.92049e-07
  5  10.0553
  6  2.95479
  7  3.76371
  8  6.27184
  9  21.2183
  10  238.761
  11  22.9979
  12  9.92394
  13  10.911
  14  16.2253
  15  2.20333e-05
  16  9.49659
  17  12.448
  18  1.3363
  19  1.41408e-05
  20  12.6024
  21  6.49373e-05
  22  2.25049e-05
  23  0.272594
  24  1.60887e-06
  25  1.92067e-05
  26  14.5686
  27  0.118757
  28  0.105731
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.991e+00  1.091e+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:  7.612e-01  1.057e-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.216e+00  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935004/likelihoodResults_671414401_672019201_4FGL_J1459.0+7140_weekly_bin715.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) = 17205.8309512
delta logL = 0.00625449625659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17205.8305075
delta logL = 0.0066982277167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2310       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1383       1.0000          .0000       10.000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76043       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=   17205.83     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      295 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2309        12.781        .13762E-02   -.28342E-03
   2  Index         2.1383        2.4001        .30398E-01   -.93733E-04
   3  Normalizat    1.2173        .11313        .21680E-03   -.57052E-04
   4  Prefactor     .76047        .10365        .24464E-03   -.52048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23087
  Index      = 2.13833
  Normalizat = 1.21735
  Prefactor  = 0.760465
 **********
 **   18 **HESSE 
 **********

 FCN=   17205.83     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2309        13.079        .55047E-04   -1.5409    
   2  Index         2.1383        2.4313        .12159E-02   -.60935    
   3  Normalizat    1.2173        .11322        .86722E-05   -.86068    
   4  Prefactor     .76047        .10373        .97855E-05   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8584e-09
Minuit parameter uncertainties:
  1  10.8064
  2  2.60254
  3  0.113246
  4  0.103753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935004': 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) = 17205.8305074
delta logL = 0.00669828951141

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.231e+00  1.081e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.138e+00  2.603e+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:  7.605e-01  1.038e-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.217e+00  1.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/935004/cmap_HighResolution_671414401_672019201_4FGL_J1459.0+7140_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2022-04-19 03:08:48.145840', job_id='935004', GAL2='0.76', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1650362928.15', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='6.70e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='715' AND source_name='4FGL J1459.0+7140' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:08:48 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 931242: <4FGL_J1459.0+7140_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1459.0+7140_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:10 2022
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:17:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:17:03 2022
Terminated at Tue Apr 19 02:57:10 2022
Results reported at Tue Apr 19 02:57:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_weekly_bin715 224.753 71.6733 671414401 672019201 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 :                                   2219.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             336.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2406 sec.
    Turnaround time :                            10200 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 935004: <4FGL_J1459.0+7140_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1459.0+7140_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:26 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:31:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:31:06 2022
Terminated at Tue Apr 19 03:08:49 2022
Results reported at Tue Apr 19 03:08:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_weekly_bin715 224.753 71.6733 671414401 672019201 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 :                                   2222.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             341.51 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2262 sec.
    Turnaround time :                            10223 sec.

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

