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 56 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_J1223.8+8039_weekly_bin715
RA = 185.971, Dec = 80.6598
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='934699', job_status='RUN', time_executed='2022-04-19 02:29:40.787526', time_epoch_executed='1650360580.79' WHERE source_name='4FGL J1223.8+8039' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934699

Creating custom pfile directory:
/scratch/kocevski/934699/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/934699/ft1_4FGL_J1223.8+8039_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/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934699/ft1_4FGL_J1223.8+8039_weekly_bin715.fits outfile=/scratch/kocevski/934699/ft1_filteredMKT_4FGL_J1223.8+8039_weekly_bin715.fits ra=185.971 dec=80.6598 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.93
user 7.29
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_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/934699/ft1_filteredMKT_4FGL_J1223.8+8039_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934699/ft1_filtered_4FGL_J1223.8+8039_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.55
user 0.36
sys 0.18

Number of photons that the gtmktime cut: 1968

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934699/ft1_filtered_4FGL_J1223.8+8039_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934699/ltcube_671414401_672019201_4FGL_J1223.8+8039_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/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits
.....................!
real 29.96
user 29.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934699/ft1_filtered_4FGL_J1223.8+8039_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934699/ltcube_671414401_672019201_4FGL_J1223.8+8039_weekly_bin715.fits outfile=/scratch/kocevski/934699/expmap_671414401_672019201_4FGL_J1223.8+8039_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/934699/ltcube_671414401_672019201_4FGL_J1223.8+8039_weekly_bin715.fits
.....................!
real 191.64
user 185.37
sys 5.94

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 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.8+8039 @ 185.971 80.6598

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934699/ft1_filtered_4FGL_J1223.8+8039_weekly_bin715.fits scfile=/scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits outfile=/scratch/kocevski/934699/cmap_671414401_672019201_4FGL_J1223.8+8039_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=185.971 yref=80.6598 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934699/ft1_filtered_4FGL_J1223.8+8039_weekly_bin715.fits scfile=/scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits outfile=/scratch/kocevski/934699/cmap_HighResolution_671414401_672019201_4FGL_J1223.8+8039_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=185.971 yref=80.6598 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.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934699/ft1_filtered_4FGL_J1223.8+8039_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934699/Model_4FGL_J1223.8+8039_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/934699/ft1_filtered_4FGL_J1223.8+8039_weekly_bin715.fits.....................!
real 237.68
user 235.96
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934699/ft1_filtered_4FGL_J1223.8+8039_weekly_bin715.fits', '/scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits', expMap='/scratch/kocevski/934699/expmap_671414401_672019201_4FGL_J1223.8+8039_weekly_bin715.fits', expCube='/scratch/kocevski/934699/ltcube_671414401_672019201_4FGL_J1223.8+8039_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934699/Model_4FGL_J1223.8+8039_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.8+8039'

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.610e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934699/ft1_filtered_4FGL_J1223.8+8039_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934699/ft2_4FGL_J1223.8+8039_weekly_bin715.fits
Exposure map: /scratch/kocevski/934699/expmap_671414401_672019201_4FGL_J1223.8+8039_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934699/ltcube_671414401_672019201_4FGL_J1223.8+8039_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934699/Model_4FGL_J1223.8+8039_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) = 20917.1631758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.221       1.0000         .10000E-03   10000.    
     2 'norm      '    11.906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19973E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .15753       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46392       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4111       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8098       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.372       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46011       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.327       1.0000         .10000E-03   10000.    
    18 'norm      '    .20655E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .62717       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.433       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.937       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0810       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .97021       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2149       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.655       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1050       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    41.982       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93484       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0128       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20917.07     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3630 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.221        14.970        .15121E-06   -.21087E-04
   2  norm          11.912        13.223        .47631E-06    .16520E-03
   3  Prefactor     .10000E-03    51.974        .10915E-05** at limit **
   4  Prefactor     22.106        6.2656        .67228E-07   -.71773E-04
   5  Prefactor     .10000E-03    3.2332        .63428E-07** at limit **
   6  Prefactor     .10000E-03    2.6712        .16336E-06** at limit **
   7  Prefactor     .10000E-03    5.0855        .22798E-07** at limit **
   8  Prefactor     .10000E-03    21.430        .13114E-06** at limit **
   9  norm          .15674        .80531       -.90014E-06    .14908E-03
  10  Prefactor     .46318        2.0103        .64410E-06   -.31963E-03
  11  norm          1.4111        .49274       -.53901E-07   -.19039E-02
  12  norm          1.8095        2.6246        .11586E-06   -.24811E-03
  13  Prefactor     .10000E-03    6.0988        .20168E-06** at limit **
  14  Prefactor     10.373        6.6230       -.11506E-06   -.21269E-03
  15  Prefactor     .46020        2.4076        .12301E-05    .11779E-04
  16  Prefactor     8.6293        6.1531        .39603E-07   -.87747E-04
  17  Prefactor     23.278        30.807        .17431E-05   -.49388E-04
  18  norm          .10000E-03    1.3006       -.35612E-07** at limit **
  19  norm          .62832        1.5162       -.13451E-07   -.76440E-03
  20  Prefactor     21.432        20.791       -.89566E-06   -.46638E-04
  21  Prefactor     26.936        9.4457        .45035E-07   -.41343E-04
  22  Prefactor     8.0822        14.358       -.48379E-07   -.30867E-04
  23  Prefactor     .97070        4.0579        .83213E-06    .75877E-05
  24  Prefactor     1.2143        8.4478        .15312E-04   -.21801E-04
  25  Prefactor     22.656        22.312       -.33293E-06   -.28056E-04
  26  Prefactor     2.1008        30.719        .29749E-06    .21561E-04
  27  Prefactor     .10000E-03    13.611        .15111E-06** at limit **
  28  norm          41.982        13.967        .20686E-07   -.26565E-04
  29  Prefactor     .10000E-03    7.2862        .16522E-06** at limit **
  30  Normalizat    .93479        .10087       -.33636E-06    .37633E-03
  31  Prefactor     1.0128        .68329E-01   -.33574E-06    .63587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2205
  norm       = 11.912
  Prefactor  = 0.000100003
  Prefactor  = 22.1064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.156744
  Prefactor  = 0.463184
  norm       = 1.4111
  norm       = 1.80947
  Prefactor  = 0.0001
  Prefactor  = 10.373
  Prefactor  = 0.460202
  Prefactor  = 8.62929
  Prefactor  = 23.2777
  norm       = 0.0001
  norm       = 0.628324
  Prefactor  = 21.4322
  Prefactor  = 26.9359
  Prefactor  = 8.08222
  Prefactor  = 0.970705
  Prefactor  = 1.21428
  Prefactor  = 22.6563
  Prefactor  = 2.10082
  Prefactor  = 0.0001
  norm       = 41.9818
  Prefactor  = 0.0001
  Normalizat = 0.934791
  Prefactor  = 1.01279
 **********
 **   18 **HESSE 
 **********

 FCN=   20917.07     FROM HESSE     STATUS=OK           644 CALLS     4274 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.221        15.030        .99444E-04   -1.4902    
   2  norm          11.912        13.221        .11610E-03   -1.5018    
   3  Prefactor     .10000E-03    52.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.106        6.2717        .85190E-04   -1.4767    
   5  Prefactor     .10000E-03    3.2586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .15674        7.0547        .23441E-02   -1.5629    
  10  Prefactor     .46318        1.9078        .35829E-03   -1.5572    
  11  norm          1.4111        .48008        .50632E-04   -1.5470    
  12  norm          1.8095        2.5516        .18123E-03   -1.5439    
  13  Prefactor     .10000E-03    6.2404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.373        6.5134        .12441E-03   -1.5064    
  15  Prefactor     .46020        2.4928        .43096E-02   -1.5572    
  16  Prefactor     8.6293        6.0314        .13641E-03   -1.5120    
  17  Prefactor     23.278        30.819        .82935E-04   -1.4743    
  18  norm          .10000E-03    1.3910        .52338E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .62832        1.4553        .25538E-03   -1.5549    
  20  Prefactor     21.432        20.792        .86518E-04   -1.4782    
  21  Prefactor     26.936        9.4418        .77188E-04   -1.4670    
  22  Prefactor     8.0822        14.349        .14104E-03   -1.5139    
  23  Prefactor     .97070        4.1274        .52240E-03   -1.5511    
  24  Prefactor     1.2143        8.5109        .20496E-02   -1.5488    
  25  Prefactor     22.656        22.310        .84155E-04   -1.4756    
  26  Prefactor     2.1008        30.833        .28440E-03   -1.5418    
  27  Prefactor     .10000E-03    13.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          41.982        13.967        .61869E-04   -1.4411    
  29  Prefactor     .10000E-03    7.2927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93479        .11121        .28532E-03   -.95248    
  31  Prefactor     1.0128        .76041E-01    .19612E-03   -.92305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93458e-09
Minuit parameter uncertainties:
  1  15.0332
  2  13.2239
  3  0.000846012
  4  6.27184
  5  8.3701e-06
  6  2.29288e-05
  7  2.68248e-06
  8  1.89837e-06
  9  2.10272
  10  1.87999
  11  0.480085
  12  2.55175
  13  6.18003e-05
  14  6.51389
  15  2.14204
  16  6.0318
  17  30.8396
  18  3.30217e-06
  19  1.45536
  20  20.7987
  21  9.44228
  22  14.3556
  23  4.00352
  24  6.43055
  25  22.318
  26  16.1061
  27  6.19589e-05
  28  13.9682
  29  2.95892e-05
  30  0.111235
  31  0.0760492
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  6.283e-01  1.455e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.013e+00  7.605e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.348e-01  1.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 185.971 80.660
Photon Flux Upper Limit: 3.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934699/likelihoodResults_671414401_672019201_4FGL_J1223.8+8039_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) = 20916.9264925
delta logL = 0.14681970884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20916.9234908
delta logL = 0.149821422783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70028       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6835       1.0000          .0000       5.0000    
     3 'Normalizat'    .93079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   20916.92     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      246 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70089        1.3447        .18032E-03    .12357E-04
   2  alpha         2.6842        1.0542        .36597E-01    .18862E-04
   3  Normalizat    .93080        .10270        .28581E-03   -.12410E-04
   4  Prefactor     1.0126        .73332E-01    .19610E-03   -.46380E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.70089
  alpha      = 2.68423
  Normalizat = 0.930796
  Prefactor  = 1.01259
 **********
 **   18 **HESSE 
 **********

 FCN=   20916.92     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70089        1.2058        .72128E-05   -1.5541    
   2  alpha         2.6842        .95194        .14639E-02    .73758E-01
   3  Normalizat    .93080        .10270        .11432E-04   -.95386    
   4  Prefactor     1.0126        .73330E-01    .78439E-05   -.92311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17245e-13
Minuit parameter uncertainties:
  1  1.20588
  2  0.976735
  3  0.102725
  4  0.0733371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934699': 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) = 20916.9234899
delta logL = 0.149822293079

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  7.009e-01  1.206e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.684e+00  9.767e-01  0.000e+00  5.000e+00 ( 1.000e+00)
363         beta:  1.252e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.013e+00  7.334e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.308e-01  1.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 185.971 80.660

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/934699/cmap_HighResolution_671414401_672019201_4FGL_J1223.8+8039_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-05', job_status='DONE', photon_flux_upper_limit='3.28e-08', time_completed='2022-04-19 03:14:26.063897', job_id='934699', GAL2='1.01', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1650363266.06', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.50e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='715' AND source_name='4FGL J1223.8+8039' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:14:26 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 930967: <4FGL_J1223.8+8039_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1223.8+8039_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:48 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:15:07 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:15:07 2022
Terminated at Tue Apr 19 03:01:27 2022
Results reported at Tue Apr 19 03:01:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_weekly_bin715 185.971 80.6598 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.8+8039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2664.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             341.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2779 sec.
    Turnaround time :                            10479 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 934699: <4FGL_J1223.8+8039_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1223.8+8039_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:59 2022
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:28:35 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:28:35 2022
Terminated at Tue Apr 19 03:14:26 2022
Results reported at Tue Apr 19 03:14:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.8+8039_weekly_bin715 185.971 80.6598 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.8+8039 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2683.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             362.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2751 sec.
    Turnaround time :                            10587 sec.

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

