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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1754
RA = 185.988, Dec = 50.0089
tmin = 693964801, tmax = 694224001
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='642010', job_status='RUN', time_executed='2023-01-01 01:09:54.539788', time_epoch_executed='1672564194.54' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642010/ft1_4FGL_J1223.9+5000_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642010/ft1_4FGL_J1223.9+5000_daily_bin1754.fits outfile=/scratch/kocevski/642010/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1754.fits ra=185.988 dec=50.0089 rad=12.0 tmin=693964801.0 tmax=694224001.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.92
user 3.69
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.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/642010/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/642010/ft1_filtered_4FGL_J1223.9+5000_daily_bin1754.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.53
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 452

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642010/ft1_filtered_4FGL_J1223.9+5000_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/642010/ltcube_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.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/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.fits
.....................!
real 17.57
user 13.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642010/ft1_filtered_4FGL_J1223.9+5000_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/642010/ltcube_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.fits outfile=/scratch/kocevski/642010/expmap_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.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/642010/ltcube_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.fits
.....................!
real 193.38
user 186.02
sys 5.05

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/642010/ft1_filtered_4FGL_J1223.9+5000_daily_bin1754.fits scfile=/scratch/kocevski/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.fits outfile=/scratch/kocevski/642010/cmap_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642010/ft1_filtered_4FGL_J1223.9+5000_daily_bin1754.fits scfile=/scratch/kocevski/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.fits outfile=/scratch/kocevski/642010/cmap_HighResolution_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.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.64
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642010/ft1_filtered_4FGL_J1223.9+5000_daily_bin1754.fits', '/scratch/kocevski/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.fits', expMap='/scratch/kocevski/642010/expmap_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.fits', expCube='/scratch/kocevski/642010/ltcube_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642010/Model_4FGL_J1223.9+5000_daily_bin1754.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/642010/ft1_filtered_4FGL_J1223.9+5000_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/642010/ft2_4FGL_J1223.9+5000_daily_bin1754.fits
Exposure map: /scratch/kocevski/642010/expmap_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.fits
Exposure cube: /scratch/kocevski/642010/ltcube_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642010/Model_4FGL_J1223.9+5000_daily_bin1754.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) = 4929.95040694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29297       1.0000          .0000       .10000E+07
     2 'norm      '    80.128       1.0000          .0000       .10000E+07
     3 'Prefactor '    24.884       1.0000          .0000       .10000E+07
     4 'norm      '    .43516       1.0000          .0000       .10000E+07
     5 'norm      '    3.1332       1.0000          .0000       .10000E+07
     6 'Prefactor '    .38275E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.535       1.0000          .0000       .10000E+07
     8 'norm      '    .39752       1.0000          .0000       .10000E+07
     9 'Prefactor '    .85171E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .46348E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .36513E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .50804       1.0000          .0000       .10000E+07
    13 'norm      '    7.6975       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15676E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .41704E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .10787E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10645E-03   1.0000          .0000       .10000E+07
    18 'norm      '    3.6722       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.1344       1.0000          .0000       .10000E+07
    20 'norm      '    22.594       1.0000          .0000       .10000E+07
    21 'norm      '    4.6000       1.0000          .0000       .10000E+07
    22 'Prefactor '    .37228E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .74528E-04   1.0000          .0000       .10000E+07
    24 'norm      '    .28053E-05   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2631       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62210       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=   4929.932     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     2267 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96589E-08    42.578        .74205E-06** at limit **
   2  norm          80.192        1.6508        .79798E-09   -.47697E-01
   3  Prefactor     24.880        2.4534        .19497E-07   -.12118E-01
   4  norm          .43410        .94840       -.82139E-07   -.29627E-03
   5  norm          3.1649        10.140       -.79978E-07   -.27837E-03
   6  Prefactor      .0000        1.3188       -.19344E-06** at limit **
   7  Prefactor     18.654        1.7403       -.36073E-07    .20306E-01
   8  norm          .38491        9.3148       -.28423E-06   -.48180E-03
   9  Prefactor      .0000        5.6611       -.43574E-06** at limit **
  10  Prefactor     .11102E-09    5.5027       -.24619E-06** at limit **
  11  Prefactor     .44409E-09    9.0031       -.28843E-06** at limit **
  12  norm          .49606        2.7328        .93604E-07   -.15374E-03
  13  norm          7.6842        6.3339        .16866E-06    .10443E-03
  14  Prefactor     .17764E-08    10.166       -.11733E-06** at limit **
  15  Prefactor     .28866E-07    22.707       -.47648E-06** at limit **
  16  norm           .0000        1.7093       -.20695E-06** at limit **
  17  Prefactor     .31752E-06    14.803        .49773E-06** at limit **
  18  norm          3.6710        2.0980       -.59212E-07    .48026E-03
  19  Prefactor     2.1671        7.6506        .67095E-06    .61224E-04
  20  norm          22.585        1.0302       -.21833E-08   -.53299E-03
  21  norm          4.5993        3.7830        .94446E-07   -.89823E-03
  22  Prefactor     .22204E-09    94.616        .20325E-05** at limit **
  23  Prefactor     .36954E-06    13.014        .32100E-06** at limit **
  24  norm           .0000        1.4386       -.47851E-07** at limit **
  25  Normalizat    1.2631        .20065       -.15362E-05   -.43581E-04
  26  Prefactor     .62204        .24027        .34891E-05   -.79483E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.65894e-09
  norm       = 80.1917
  Prefactor  = 24.8796
  norm       = 0.434104
  norm       = 3.16486
  Prefactor  = 0
  Prefactor  = 18.6536
  norm       = 0.384913
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 4.44089e-10
  norm       = 0.496057
  norm       = 7.68422
  Prefactor  = 1.77636e-09
  Prefactor  = 2.88658e-08
  norm       = 0
  Prefactor  = 3.17524e-07
  norm       = 3.67103
  Prefactor  = 2.16707
  norm       = 22.5849
  norm       = 4.59928
  Prefactor  = 2.22045e-10
  Prefactor  = 3.69538e-07
  norm       = 0
  Normalizat = 1.26313
  Prefactor  = 0.622036
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.932     FROM HESSE     STATUS=OK           514 CALLS     2781 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96589E-08    42.761        .10311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          80.192        66.671        .11172E-03   -1.5529    
   3  Prefactor     24.880        15.536        .20051E-03   -1.5608    
   4  norm          .43410        1.1732        .23132E-02   -1.5695    
   5  norm          3.1649        10.421        .57248E-03   -1.5672    
   6  Prefactor      .0000        1.3172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.654        33.866        .23236E-03   -1.5622    
   8  norm          .38491        8.7693        .89775E-03   -1.5696    
   9  Prefactor      .0000        5.6764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    5.5007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44409E-09    9.0937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .49606        2.7110        .77905E-03   -1.5694    
  13  norm          7.6842        6.3379        .36120E-03   -1.5653    
  14  Prefactor     .17764E-08    10.281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .28866E-07    3.0344        .66417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.6853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31752E-06    27.384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6710        2.1055        .52684E-03   -1.5670    
  19  Prefactor     2.1671        7.7538        .70535E-03   -1.5679    
  20  norm          22.585        13.217        .21043E-03   -1.5613    
  21  norm          4.5993        3.8259        .46906E-03   -1.5665    
  22  Prefactor     .22204E-09    94.087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .36954E-06    26.612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.4436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2631        .17927        .33501E-01   -.84674    
  26  Prefactor     .62204        .21374        .74095E-01   -1.0667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79899e-06
Minuit parameter uncertainties:
  1  0.00128496
  2  66.6716
  3  15.5357
  4  1.17319
  5  10.4213
  6  8.18476e-08
  7  33.8666
  8  3.67446
  9  5.47717e-06
  10  4.56135e-05
  11  0.000128338
  12  2.31934
  13  6.33788
  14  0.000270602
  15  0.000592004
  16  1.03701e-06
  17  0.00589759
  18  2.10551
  19  7.75381
  20  13.2173
  21  3.82586
  22  0.000298193
  23  0.00627181
  24  1.33773e-06
  25  0.179361
  26  0.214022
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  7.684e+00  6.338e+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:  6.220e-01  2.140e-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.263e+00  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.91
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.08e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 9.64e-06 +/- 7.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) = 4929.62824478
delta logL = 0.303891677605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4929.60473917
delta logL = 0.327397283978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2981       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5130       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60724       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=   4929.605     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2895        5.5513        .39974E-03    .84080E-02
   2  alpha         1.5124        .75273        .46194       -.10951E-03
   3  Normalizat    1.2852        .17538        .33075E-01   -.50381E-04
   4  Prefactor     .60729        .21160        .74913E-01    .73216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.28946
  alpha      = 1.51244
  Normalizat = 1.2852
  Prefactor  = 0.607291
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.605     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2895        6.4124        .15031E-04   -1.5658    
   2  alpha         1.5124        .91325        .22614E-01   -.40609    
   3  Normalizat    1.2852        .19692        .19634E-03   -.84009    
   4  Prefactor     .60729        .23736        .33166E-03   -1.0728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0301e-09
Minuit parameter uncertainties:
  1  6.41236
  2  0.939212
  3  0.197035
  4  0.237749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642010': 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) = 4929.60473824
delta logL = 0.327398214664

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  6.289e+00  6.412e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  1.512e+00  9.392e-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:  6.073e-01  2.377e-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.285e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.57
Ra Dec: 185.988 50.009
Photon Index (Free Index): 1.51 +/- 0.94
Photon Flux (Free Index): 1.31e-08 +/- 1.60e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.18e-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/642010/cmap_HighResolution_693964801_694224001_4FGL_J1223.9+5000_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.08e-08', energy_flux2='1.13e-05', photon_flux_error='2.54e-08', dlogl='3.27e-01', energy_flux='9.64e-06', photon_flux2='1.31e-08', job_status='DONE', time_completed='2023-01-01 01:20:00.536852', photon_index_error2='0.94', photon_index2='1.51', ts='4.91', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.26', time_epoch_completed='1672564800.54', return_code='0', job_id='642010', GAL2='0.61', EG2='1.29', return_code2='0', energy_flux_error='7.95e-06', photon_flux_error2='1.60e-08', ts2='5.57', photon_index='2.42' WHERE bin_id='1754' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:20:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 642010: <4FGL_J1223.9+5000_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:19 2023
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:06:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:06:32 2023
Terminated at Sun Jan  1 01:20:01 2023
Results reported at Sun Jan  1 01:20:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1754 185.988 50.0089 693964801 694224001 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 :                                   599.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            882 sec.

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

