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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin1751
RA = 185.883, Dec = 8.3017
tmin = 693187201, tmax = 693446401
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='77667', job_status='RUN', time_executed='2022-12-23 00:41:42.952443', time_epoch_executed='1671784902.95' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77667

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77667/ft1_4FGL_J1223.5+0818_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77667/ft1_4FGL_J1223.5+0818_daily_bin1751.fits outfile=/scratch/kocevski/77667/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1751.fits ra=185.883 dec=8.3017 rad=12.0 tmin=693187201.0 tmax=693446401.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.61
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.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/77667/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 544

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/77667/ltcube_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.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/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits
.....................!
real 12.02
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/77667/ltcube_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.fits outfile=/scratch/kocevski/77667/expmap_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.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/77667/ltcube_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.fits
.....................!
real 191.64
user 186.63
sys 4.71

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

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.fits scfile=/scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits outfile=/scratch/kocevski/77667/cmap_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.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.883 yref=8.3017 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.fits scfile=/scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits outfile=/scratch/kocevski/77667/cmap_HighResolution_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.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.883 yref=8.3017 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77667/Model_4FGL_J1223.5+0818_daily_bin1751.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/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.fits.....................!
real 51.68
user 50.37
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.fits', '/scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits', expMap='/scratch/kocevski/77667/expmap_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.fits', expCube='/scratch/kocevski/77667/ltcube_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77667/Model_4FGL_J1223.5+0818_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77667/ft1_filtered_4FGL_J1223.5+0818_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/77667/ft2_4FGL_J1223.5+0818_daily_bin1751.fits
Exposure map: /scratch/kocevski/77667/expmap_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.fits
Exposure cube: /scratch/kocevski/77667/ltcube_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77667/Model_4FGL_J1223.5+0818_daily_bin1751.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) = 6057.332882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.618       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21446E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .32865E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.7195       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20576E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .93189E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17462E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .34805E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27256E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.998       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9704       1.0000          .0000       .10000E+07
    12 'norm      '    .12218       1.0000          .0000       .10000E+07
    13 'norm      '    .90483E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    26.641       1.0000          .0000       .10000E+07
    15 'norm      '    .12491E-01   1.0000          .0000       .10000E+07
    16 'norm      '    2.9093       1.0000          .0000       .10000E+07
    17 'Prefactor '    12.272       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10970E-04   1.0000          .0000       .10000E+07
    19 'norm      '    1.2075       1.0000          .0000       .10000E+07
    20 'Prefactor '    .22839E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.6975       1.0000          .0000       .10000E+07
    22 'Prefactor '    5.4236       1.0000          .0000       .10000E+07
    23 'Normalizat'    .66185       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6057.326     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     2064 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.564        145.32       -.50411E-05   -.34082E-03
   2  Prefactor      .0000        4.4980        .11731E-06** at limit **
   3  Prefactor     .55511E-10    7.4734        .18322E-06** at limit **
   4  Prefactor     4.7368        1.2509        .27546E-08   -.29210E-01
   5  Prefactor     .38858E-09    24.424       -.14013E-05** at limit **
   6  Prefactor     .80874E-06    350.16       -.47977E-05** at limit **
   7  Prefactor     .77716E-09    6.4460        .12273E-05** at limit **
   8  Prefactor      .0000        .72129        .13568E-06** at limit **
   9  Prefactor      .0000        .75524       -.97755E-07** at limit **
  10  Prefactor     11.054        5.9412        .28348E-06   -.25521E-01
  11  Prefactor     4.0340        6.0020        .14298E-06   -.69212E-03
  12  norm          .12447        5.5638       -.13983E-05** at limit **
  13  norm           .0000        .97856        .20173E-06** at limit **
  14  Prefactor     26.762        2.3003        .34652E-07   -.13176E-01
  15  norm           .0000        17.985        .71621E-06** at limit **
  16  norm          2.9115        .63981        .11537E-07   -.57213E-02
  17  Prefactor     12.349        2.3268        .62822E-08    .20074E-01
  18  Prefactor      .0000        3.1465        .23571E-06** at limit **
  19  norm          1.2107        1.0749       -.66430E-07   -.69124E-03
  20  Prefactor     .77716E-09    5.8557       -.24846E-06** at limit **
  21  Prefactor     7.7108        8.7227       -.24858E-06   -.19041E-02
  22  Prefactor     5.4514        9.9320        .14436E-05   -.10521E-02
  23  Normalizat    .65763        .21005        .12094E-04   -.30560E-03
  24  Prefactor     1.1894        .18677        .63648E-07   -.33432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.564
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 4.7368
  Prefactor  = 3.88578e-10
  Prefactor  = 8.08742e-07
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 11.0545
  Prefactor  = 4.03398
  norm       = 0.124469
  norm       = 0
  Prefactor  = 26.7624
  norm       = 0
  norm       = 2.91149
  Prefactor  = 12.3495
  Prefactor  = 0
  norm       = 1.21067
  Prefactor  = 7.77156e-10
  Prefactor  = 7.71077
  Prefactor  = 5.4514
  Normalizat = 0.65763
  Prefactor  = 1.18944
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.326     FROM HESSE     STATUS=OK           453 CALLS     2517 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.564        144.80        .29365E-03   -1.5620    
   2  Prefactor      .0000        4.4578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    7.4580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7368        11.267        .46295E-03   -1.5664    
   5  Prefactor     .38858E-09    24.412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .80874E-06    25.509        .14116E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .77716E-09    6.5128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .72245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .75528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.054        26.678        .30185E-03   -1.5641    
  11  Prefactor     4.0340        6.1442        .50596E-03   -1.5668    
  12  norm          .12447        1.7687        .30715E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .97856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.762        28.027        .19378E-03   -1.5604    
  15  norm           .0000        17.978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9115        .64141        .59542E-03   -1.5674    
  17  Prefactor     12.349        11.945        .28570E-03   -1.5638    
  18  Prefactor      .0000        3.1555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2107        1.0862        .10302E-02   -1.5686    
  20  Prefactor     .77716E-09    5.8945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.7108        8.7630        .36120E-03   -1.5652    
  22  Prefactor     5.4514        9.9834        .43125E-03   -1.5661    
  23  Normalizat    .65763        .18778        .68649E-01   -1.0559    
  24  Prefactor     1.1894        .16435        .34921E-01   -.86657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.3509e-08
Minuit parameter uncertainties:
  1  106.454
  2  8.55397e-06
  3  3.80546e-05
  4  11.2671
  5  0.00019987
  6  0.00908421
  7  0.000141113
  8  1.73079e-06
  9  1.88723e-07
  10  26.6785
  11  6.14423
  12  0.938408
  13  2.36528e-06
  14  28.0268
  15  1.6658e-06
  16  0.641407
  17  11.9449
  18  7.72589e-06
  19  1.0862
  20  0.000135468
  21  8.76303
  22  9.98346
  23  0.187962
  24  0.164423
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.676e+01  2.803e+01  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.189e+00  1.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  6.576e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.84e-05

TS (Fixed Index): 2.25
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77667/likelihoodResults_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.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) = 6057.16995723
delta logL = 0.155726317549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6057.1679736
delta logL = 0.157709944005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.200       1.0000          .0000       .10000E+07
     2 'Index     '    1.4058       1.0000          .0000       10.000    
     3 'Normalizat'    .66918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   6057.168     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      264 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.202        32.815        .75337E-05   -.89658E-02
   2  Index         1.4057        .83638        .11423E-01   -.32520E-03
   3  Normalizat    .66925        .19982        .30134E-03    .26274E-03
   4  Prefactor     1.1871        .18436        .21277E-03    .38499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2025
  Index      = 1.40566
  Normalizat = 0.66925
  Prefactor  = 1.18705
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.168     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.202        33.158        .15067E-05   -1.5602    
   2  Index         1.4057        .84483        .45693E-03   -.80217    
   3  Normalizat    .66925        .19995        .12053E-04   -1.0512    
   4  Prefactor     1.1871        .18450        .42554E-04   -.86731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27476e-08
Minuit parameter uncertainties:
  1  33.1581
  2  0.853377
  3  0.200171
  4  0.184605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77667': 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) = 6057.16797351
delta logL = 0.157710035491

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.820e+01  3.316e+01  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  1.406e+00  8.534e-01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.187e+00  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  6.693e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 185.883 8.302
Photon Index (Free Index): 1.41 +/- 0.85
Photon Flux (Free Index): 8.02e-09 +/- 1.55e-08
Energy Flux (Free Index): 3.48e-05 +/- 5.80e-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/77667/cmap_HighResolution_693187201_693446401_4FGL_J1223.5+0818_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='3.48e-05', photon_flux_error='2.18e-08', dlogl='1.58e-01', energy_flux='1.76e-05', photon_flux2='8.02e-09', job_status='DONE', time_completed='2022-12-23 00:51:48.446646', photon_index_error2='0.85', photon_index2='1.41', ts='2.25', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='8.04e-08', energy_flux_error2='5.80e-05', EG='0.66', time_epoch_completed='1671785508.45', return_code='0', job_id='77667', GAL2='1.19', EG2='0.67', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='1.55e-08', ts2='2.54', photon_index='1.92' WHERE bin_id='1751' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:51:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 77667: <4FGL_J1223.5+0818_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:40:14 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:40:15 2022
Terminated at Fri Dec 23 00:51:49 2022
Results reported at Fri Dec 23 00:51:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin1751 185.883 8.3017 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            695 sec.

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

