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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin1757
RA = 185.883, Dec = 8.3017
tmin = 694742401, tmax = 695001601
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='199433', job_status='RUN', time_executed='2023-01-10 01:07:28.308888', time_epoch_executed='1673341648.31' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199433

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199433/ft1_4FGL_J1223.5+0818_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199433/ft1_4FGL_J1223.5+0818_daily_bin1757.fits outfile=/scratch/kocevski/199433/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1757.fits ra=185.883 dec=8.3017 rad=12.0 tmin=694742401.0 tmax=695001601.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 2.97
user 2.72
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.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/199433/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1757.fits evtable="EVENTS" outfile="/scratch/kocevski/199433/ft1_filtered_4FGL_J1223.5+0818_daily_bin1757.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 674

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199433/ft1_filtered_4FGL_J1223.5+0818_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/199433/ltcube_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.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/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.fits
.....................!
real 16.40
user 15.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199433/ft1_filtered_4FGL_J1223.5+0818_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/199433/ltcube_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.fits outfile=/scratch/kocevski/199433/expmap_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.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/199433/ltcube_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.fits
.....................!
real 194.00
user 187.98
sys 5.59

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/199433/ft1_filtered_4FGL_J1223.5+0818_daily_bin1757.fits scfile=/scratch/kocevski/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.fits outfile=/scratch/kocevski/199433/cmap_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199433/ft1_filtered_4FGL_J1223.5+0818_daily_bin1757.fits scfile=/scratch/kocevski/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.fits outfile=/scratch/kocevski/199433/cmap_HighResolution_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/199433/ft1_filtered_4FGL_J1223.5+0818_daily_bin1757.fits', '/scratch/kocevski/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.fits', expMap='/scratch/kocevski/199433/expmap_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.fits', expCube='/scratch/kocevski/199433/ltcube_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/199433/Model_4FGL_J1223.5+0818_daily_bin1757.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/199433/ft1_filtered_4FGL_J1223.5+0818_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/199433/ft2_4FGL_J1223.5+0818_daily_bin1757.fits
Exposure map: /scratch/kocevski/199433/expmap_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.fits
Exposure cube: /scratch/kocevski/199433/ltcube_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/199433/Model_4FGL_J1223.5+0818_daily_bin1757.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) = 7363.99043482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78457E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19856E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.0633       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18122E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .90249E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16788E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11711E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.6694       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.0457       1.0000          .0000       .10000E+07
    10 'Prefactor '    .31624E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .23434E-03   1.0000          .0000       .10000E+07
    12 'norm      '    1.5036       1.0000          .0000       .10000E+07
    13 'norm      '    4.3478       1.0000          .0000       .10000E+07
    14 'Prefactor '    25.175       1.0000          .0000       .10000E+07
    15 'norm      '    .37286E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.5899       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.9260       1.0000          .0000       .10000E+07
    18 'Prefactor '    .37281E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .27933E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .22288E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .96377E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    12.567       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0026       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0583       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=   7363.939     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1570 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31586E-07    16.032        .32624E-05** at limit **
   2  Prefactor     .38858E-09    6.2420       -.14357E-05** at limit **
   3  Prefactor     2.0723        7.2290       -.13727E-05    .65925E-03
   4  Prefactor     .11102E-09    2.9420       -.77169E-06** at limit **
   5  Prefactor     .44409E-09    44.079       -.14059E-05** at limit **
   6  Prefactor     .22204E-09    13.462        .93873E-06** at limit **
   7  Prefactor     .11102E-09    6.7218        .31998E-05** at limit **
   8  Prefactor     1.6703        2.2424       -.52869E-07   -.34706E-02
   9  Prefactor     1.0458        1.8360        .63858E-07    .97851E-03
  10  Prefactor     .16875E-06    1.6224       -.11793E-05** at limit **
  11  Prefactor      .0000        2.2725        .21204E-06** at limit **
  12  norm          1.5034        1.3017        .65674E-07    .19290E-02
  13  norm          4.3455        2.8796        .19084E-06    .32552E-02
  14  Prefactor     25.119        1.5467        .17124E-06   -.31253E-01
  15  norm          .55511E-09    17.270       -.26429E-06** at limit **
  16  norm          1.5901        .47383        .11129E-07   -.80979E-02
  17  Prefactor     2.9554        4.5552       -.25595E-06   -.22102E-02
  18  Prefactor      .0000        2.4435        .40479E-06** at limit **
  19  norm           .0000        .41453       -.75170E-07** at limit **
  20  Prefactor     .61062E-09    2.7388        .12084E-05** at limit **
  21  Prefactor     .44409E-09    8.0328       -.10181E-05** at limit **
  22  Prefactor     12.502        2.5850       -.39223E-06   -.99483E-02
  23  Normalizat    1.0026        .20194       -.10276E-04   -.86303E-04
  24  Prefactor     1.0584        .17905        .67983E-05    .20223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15858e-08
  Prefactor  = 3.88578e-10
  Prefactor  = 2.07231
  Prefactor  = 1.11022e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 1.67029
  Prefactor  = 1.04575
  Prefactor  = 1.68754e-07
  Prefactor  = 0
  norm       = 1.5034
  norm       = 4.34552
  Prefactor  = 25.1193
  norm       = 5.55112e-10
  norm       = 1.59011
  Prefactor  = 2.95535
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.10623e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 12.502
  Normalizat = 1.00264
  Prefactor  = 1.05838
 **********
 **   18 **HESSE 
 **********

 FCN=   7363.939     FROM HESSE     STATUS=OK           447 CALLS     2017 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31586E-07    43.136        .14548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38858E-09    6.3669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0723        7.2875        .71906E-03   -1.5679    
   4  Prefactor     .11102E-09    3.4626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .44409E-09    44.132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22204E-09    13.398        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    6.9079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6703        2.3236        .81568E-03   -1.5682    
   9  Prefactor     1.0458        2.2122        .34365E-02   -1.5688    
  10  Prefactor     .16875E-06    13.488        .11885E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.2727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5034        1.2897        .87263E-03   -1.5683    
  13  norm          4.3455        2.9249        .48284E-03   -1.5666    
  14  Prefactor     25.119        23.153        .19934E-03   -1.5608    
  15  norm          .55511E-09    17.273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5901        .47600        .68228E-03   -1.5683    
  17  Prefactor     2.9554        4.5593        .59362E-03   -1.5674    
  18  Prefactor      .0000        2.4493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .41119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .61062E-09    3.5202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .44409E-09    8.0423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.502        11.549        .28231E-03   -1.5637    
  23  Normalizat    1.0026        .17776        .46200E-01   -.92942    
  24  Prefactor     1.0584        .15539        .39446E-01   -.90808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18424e-08
Minuit parameter uncertainties:
  1  0.00233484
  2  0.000102572
  3  7.28748
  4  3.67159e-05
  5  0.000280048
  6  0.000103161
  7  5.52561e-05
  8  2.32357
  9  2.21222
  10  0.00301754
  11  1.29593e-05
  12  1.2897
  13  2.92488
  14  23.1529
  15  0.00019095
  16  0.476005
  17  4.55929
  18  7.52198e-06
  19  1.32545e-06
  20  9.07852e-05
  21  0.000117132
  22  11.549
  23  0.177867
  24  0.155459
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.512e+01  2.315e+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.058e+00  1.555e-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:  1.003e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/199433/likelihoodResults_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.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) = 7362.79034995
delta logL = 1.14892078102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7362.7142439
delta logL = 1.2250268287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.887       1.0000          .0000       .10000E+07
     2 'Index     '    .68464       1.0000          .0000       10.000    
     3 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0625       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.

 FCN=   7362.714     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      207 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.887        13.892        .27877E-03   -.22394E-01
   2  Index         .68438        .54146        .34818       -.28435E-04
   3  Normalizat    1.0100        .17210        .46236E-01    .44387E-04
   4  Prefactor     1.0625        .15465        .39228E-01   -.28082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8871
  Index      = 0.684383
  Normalizat = 1.01003
  Prefactor  = 1.06249
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.714     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.887        22.599        .11151E-04   -1.5636    
   2  Index         .68438        .78183        .17158E-01   -1.0414    
   3  Normalizat    1.0100        .19843        .26743E-03   -.92695    
   4  Prefactor     1.0625        .17837        .23377E-03   -.90675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98204e-08
Minuit parameter uncertainties:
  1  22.599
  2  0.794898
  3  0.198571
  4  0.178473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199433': 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) = 7362.71424374
delta logL = 1.22502699005

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.289e+01  2.260e+01  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  6.844e-01  7.949e-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.062e+00  1.785e-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:  1.010e+00  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 185.883 8.302
Photon Index (Free Index): 0.68 +/- 0.79
Photon Flux (Free Index): 3.33e-09 +/- 3.75e-09
Energy Flux (Free Index): 9.02e-05 +/- 1.14e-04

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/199433/cmap_HighResolution_694742401_695001601_4FGL_J1223.5+0818_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='9.02e-05', photon_flux_error='1.80e-08', dlogl='1.23e+00', energy_flux='1.65e-05', photon_flux2='3.33e-09', job_status='DONE', time_completed='2023-01-10 01:18:17.738250', photon_index_error2='0.79', photon_index2='0.68', ts='3.11', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='6.78e-08', energy_flux_error2='1.14e-04', EG='1.00', time_epoch_completed='1673342297.74', return_code='0', job_id='199433', GAL2='1.06', EG2='1.01', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.75e-09', ts2='5.54', photon_index='1.92' WHERE bin_id='1757' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 01:18:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 199433: <4FGL_J1223.5+0818_daily_bin1757> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin1757> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan 10 01:05:14 2023
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 01:05:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 01:05:39 2023
Terminated at Tue Jan 10 01:18:18 2023
Results reported at Tue Jan 10 01:18:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin1757 185.883 8.3017 694742401 695001601 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 :                                   651.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            784 sec.

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

