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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1715
RA = 185.988, Dec = 50.0089
tmin = 683856001, tmax = 684115201
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='117771', job_status='RUN', time_executed='2022-09-16 16:46:13.403237', time_epoch_executed='1663371973.4' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117771/ft1_4FGL_J1223.9+5000_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117771/ft1_4FGL_J1223.9+5000_daily_bin1715.fits outfile=/scratch/kocevski/117771/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1715.fits ra=185.988 dec=50.0089 rad=12.0 tmin=683856001.0 tmax=684115201.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 3.54
user 3.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.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/117771/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 546

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/117771/ltcube_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.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/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits
.....................!
real 16.59
user 15.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/117771/ltcube_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.fits outfile=/scratch/kocevski/117771/expmap_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.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/117771/ltcube_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.fits
.....................!
real 195.27
user 187.02
sys 5.20

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

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits scfile=/scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits outfile=/scratch/kocevski/117771/cmap_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.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.988 yref=50.0089 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits scfile=/scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits outfile=/scratch/kocevski/117771/cmap_HighResolution_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.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.988 yref=50.0089 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.36
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117771/Model_4FGL_J1223.9+5000_daily_bin1715.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/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits.....................!
real 52.32
user 50.43
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits', '/scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits', expMap='/scratch/kocevski/117771/expmap_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.fits', expCube='/scratch/kocevski/117771/ltcube_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117771/Model_4FGL_J1223.9+5000_daily_bin1715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117771/ft1_filtered_4FGL_J1223.9+5000_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/117771/ft2_4FGL_J1223.9+5000_daily_bin1715.fits
Exposure map: /scratch/kocevski/117771/expmap_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.fits
Exposure cube: /scratch/kocevski/117771/ltcube_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117771/Model_4FGL_J1223.9+5000_daily_bin1715.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) = 5915.53860192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69019E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .35941E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .36180E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.0063       1.0000          .0000       .10000E+07
     5 'norm      '    .14115E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23309E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .31127E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .28046E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .28321E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.2425       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14367E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .22135E-03   1.0000          .0000       .10000E+07
    13 'norm      '    14.080       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14310E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .40841E-04   1.0000          .0000       .10000E+07
    16 'norm      '    3.1130       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29537E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .79214E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19678E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .15576E-03   1.0000          .0000       .10000E+07
    21 'norm      '    2.0042       1.0000          .0000       .10000E+07
    22 'Prefactor '    .70038E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    48.373       1.0000          .0000       .10000E+07
    24 'norm      '    .26166E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0245       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92562       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5915.521     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2209 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14488E-07    38.537       -.19109E-05** at limit **
   2  norm          .60507E-08    24.070       -.10538E-05** at limit **
   3  Prefactor     .42649E-06    5.1540       -.16597E-05** at limit **
   4  norm          2.0054        1.4421       -.30799E-07   -.38798E-02
   5  norm           .0000        1.7400        .39386E-06** at limit **
   6  Prefactor     .55511E-10    1.3994        .14767E-06** at limit **
   7  Prefactor     .92759E-07    14.210        .18364E-05** at limit **
   8  norm          .59008E-07    2.7218       -.11220E-05** at limit **
   9  Prefactor     .49405E-08    4.5166        .10164E-05** at limit **
  10  Prefactor     6.1967        6.1402       -.16416E-06   -.48339E-02
  11  Prefactor     .12323E-07    3.2744       -.82300E-06** at limit **
  12  norm          .32363E-07    1.3430        .71404E-06** at limit **
  13  norm          14.214        7.1320       -.97584E-07   -.33885E-02
  14  Prefactor     .51109E-06    9.7537       -.14304E-05** at limit **
  15  Prefactor      .0000        1.6488        .60466E-07** at limit **
  16  norm          3.1120        1.9962        .14808E-07    .17949E-03
  17  Prefactor     .13189E-06    6.7864        .22544E-05** at limit **
  18  norm          .11102E-09    1.2703        .28683E-06** at limit **
  19  Prefactor     .99920E-09    1.9798        .57066E-06** at limit **
  20  norm          .19651E-07    3.7124       -.14708E-05** at limit **
  21  norm          1.9996        3.0756        .11263E-06    .29159E-02
  22  Prefactor     .23759E-07    1.5170        .52533E-06** at limit **
  23  Prefactor     48.471        8.4574        .76663E-06   -.15406    
  24  norm          .34611E-06    4.3777       -.84177E-06** at limit **
  25  Normalizat    1.0244        .17726        .76965E-06   -.32857E-03
  26  Prefactor     .92562        .22289       -.33170E-05   -.27881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44884e-08
  norm       = 6.05072e-09
  Prefactor  = 4.26492e-07
  norm       = 2.00542
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 9.27591e-08
  norm       = 5.90084e-08
  Prefactor  = 4.94049e-09
  Prefactor  = 6.19668
  Prefactor  = 1.23235e-08
  norm       = 3.2363e-08
  norm       = 14.214
  Prefactor  = 5.11091e-07
  Prefactor  = 0
  norm       = 3.11197
  Prefactor  = 1.31894e-07
  norm       = 1.11022e-10
  Prefactor  = 9.99201e-10
  norm       = 1.96509e-08
  norm       = 1.99961
  Prefactor  = 2.37588e-08
  Prefactor  = 48.4707
  norm       = 3.46112e-07
  Normalizat = 1.02436
  Prefactor  = 0.925616
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.521     FROM HESSE     STATUS=OK           504 CALLS     2713 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14488E-07    38.582        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .60507E-08    25.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .42649E-06    15.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0054        1.4501        .73072E-03   -1.5680    
   5  norm           .0000        3.7539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    1.4025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .92759E-07    19.597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .59008E-07    6.4049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .49405E-08    4.8777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1967        6.1577        .40154E-03   -1.5658    
  11  Prefactor     .12323E-07    6.5525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .32363E-07    .98828        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.214        7.1325        .26667E-03   -1.5633    
  14  Prefactor     .51109E-06    11.882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.6552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1120        1.9985        .57444E-03   -1.5673    
  17  Prefactor     .13189E-06    7.3651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11102E-09    1.2605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .99920E-09    3.7429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .19651E-07    3.9345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9996        3.1491        .73117E-03   -1.5680    
  22  Prefactor     .23759E-07    42.505        .14817E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.471        48.619        .14379E-03   -1.5569    
  24  norm          .34611E-06    16.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0244        .15426        .42761E-01   -.92219    
  26  Prefactor     .92562        .19045        .45331E-01   -.95252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28361e-06
Minuit parameter uncertainties:
  1  0.0014953
  2  0.000788371
  3  0.00515534
  4  1.45011
  5  1.6197e-05
  6  1.99722e-05
  7  0.00269646
  8  0.00122928
  9  0.000310383
  10  6.15772
  11  0.000567964
  12  0.000357581
  13  7.13249
  14  0.00492848
  15  4.17635e-06
  16  1.99848
  17  0.00197124
  18  2.41167e-05
  19  0.000120633
  20  0.000556271
  21  3.1491
  22  0.00200871
  23  48.6196
  24  0.00484607
  25  0.154331
  26  0.190583
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.421e+01  7.132e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.256e-01  1.906e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.024e+00  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.76
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.70e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 8.95e-06

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) = 5915.13722913
delta logL = 0.383408212057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5915.13130776
delta logL = 0.389329573934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.807       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9116       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5915.131     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.807        10.263        .26002E-03   -.11584E-01
   2  alpha         1.9116        .64647        .39338        .17788E-05
   3  Normalizat    1.0454        .15289        .40877E-01    .42875E-04
   4  Prefactor     .91219        .19119        .45161E-01   -.18673E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8073
  alpha      = 1.91159
  Normalizat = 1.04538
  Prefactor  = 0.912195
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.131     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.807        8.2478        .10401E-04   -1.5631    
   2  alpha         1.9116        .57826        .15503E-01   -.23759    
   3  Normalizat    1.0454        .17703        .20609E-03   -.91525    
   4  Prefactor     .91219        .22203        .27512E-03   -.95716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34474e-10
Minuit parameter uncertainties:
  1  8.24784
  2  0.583859
  3  0.177127
  4  0.222246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117771': 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) = 5915.13130774
delta logL = 0.38932959762

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.481e+01  8.248e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  1.912e+00  5.839e-01  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.122e-01  2.222e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.045e+00  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.54
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.91 +/- 0.58
Photon Flux (Free Index): 3.83e-08 +/- 2.92e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/117771/cmap_HighResolution_683856001_684115201_4FGL_J1223.9+5000_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.70e-08', energy_flux2='1.94e-05', photon_flux_error='2.86e-08', dlogl='3.89e-01', energy_flux='1.78e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2022-09-16 16:57:05.601385', photon_index_error2='0.58', photon_index2='1.91', ts='10.76', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.02', time_epoch_completed='1663372625.6', return_code='0', job_id='117771', GAL2='0.91', EG2='1.05', return_code2='0', energy_flux_error='8.95e-06', photon_flux_error2='2.92e-08', ts2='11.54', photon_index='2.42' WHERE bin_id='1715' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:57:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 117771: <4FGL_J1223.9+5000_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1715> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:43 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:42:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:42:26 2022
Terminated at Fri Sep 16 16:57:06 2022
Results reported at Fri Sep 16 16:57:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1715 185.988 50.0089 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            983 sec.

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

