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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1774
RA = 185.988, Dec = 50.0089
tmin = 699148801, tmax = 699408001
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='681430', job_status='RUN', time_executed='2023-03-02 00:43:01.934678', time_epoch_executed='1677746581.93' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681430/ft1_4FGL_J1223.9+5000_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681430/ft2_4FGL_J1223.9+5000_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681430/ft1_4FGL_J1223.9+5000_daily_bin1774.fits outfile=/scratch/kocevski/681430/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1774.fits ra=185.988 dec=50.0089 rad=12.0 tmin=699148801.0 tmax=699408001.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.81
user 2.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681430/ft2_4FGL_J1223.9+5000_daily_bin1774.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/681430/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/681430/ft1_filtered_4FGL_J1223.9+5000_daily_bin1774.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: 274

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681430/ft1_filtered_4FGL_J1223.9+5000_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681430/ft2_4FGL_J1223.9+5000_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681430/ltcube_699148801_699408001_4FGL_J1223.9+5000_daily_bin1774.fits outfile=/scratch/kocevski/681430/expmap_699148801_699408001_4FGL_J1223.9+5000_daily_bin1774.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/681430/ltcube_699148801_699408001_4FGL_J1223.9+5000_daily_bin1774.fits
.....................!
real 190.41
user 185.13
sys 4.94

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/681430/ft1_filtered_4FGL_J1223.9+5000_daily_bin1774.fits scfile=/scratch/kocevski/681430/ft2_4FGL_J1223.9+5000_daily_bin1774.fits outfile=/scratch/kocevski/681430/cmap_699148801_699408001_4FGL_J1223.9+5000_daily_bin1774.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681430/ft1_filtered_4FGL_J1223.9+5000_daily_bin1774.fits scfile=/scratch/kocevski/681430/ft2_4FGL_J1223.9+5000_daily_bin1774.fits outfile=/scratch/kocevski/681430/cmap_HighResolution_699148801_699408001_4FGL_J1223.9+5000_daily_bin1774.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90081       1.0000          .0000       .10000E+07
     2 'norm      '    .22760E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.822       1.0000          .0000       .10000E+07
     4 'norm      '    .31186E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .43468E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .34811E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7143       1.0000          .0000       .10000E+07
     8 'norm      '    .33663E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .30598E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .44964E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.7901       1.0000          .0000       .10000E+07
    12 'norm      '    11.009       1.0000          .0000       .10000E+07
    13 'norm      '    .17531E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10902E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.6221       1.0000          .0000       .10000E+07
    16 'norm      '    1.4880       1.0000          .0000       .10000E+07
    17 'Prefactor '    26.552       1.0000          .0000       .10000E+07
    18 'norm      '    1.7788       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18275E-03   1.0000          .0000       .10000E+07
    20 'norm      '    38.367       1.0000          .0000       .10000E+07
    21 'norm      '    4.6245       1.0000          .0000       .10000E+07
    22 'Prefactor '    .11185E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .92696       1.0000          .0000       .10000E+07
    24 'norm      '    6.7099       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0299       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91449       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=   3121.386     FROM MIGRAD    STATUS=CONVERGED    217 CALLS     2288 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38335E-03    384.32        .18653E-05** at limit **
   2  norm          .22204E-09    75.749        .74539E-07** at limit **
   3  Prefactor     25.068        7.5246       -.30005E-07    .91492E-02
   4  norm           .0000        11.859       -.30954E-06** at limit **
   5  norm           .0000        12.953        .21362E-06** at limit **
   6  Prefactor     .55511E-10    18.108       -.44622E-07** at limit **
   7  Prefactor     .36539E-03    1768.5        .50179E-05** at limit **
   8  norm           .0000        3.1302       -.14970E-07** at limit **
   9  Prefactor     .11102E-08    54.411        .14207E-06** at limit **
  10  Prefactor      .0000        4.9363        .12678E-07** at limit **
  11  Prefactor     8.9276        19.156       -.15737E-06   -.61512E-02
  12  norm          11.044        5.4275        .60938E-07   -.17438E-03
  13  norm          .55511E-10    15.612        .19357E-06** at limit **
  14  Prefactor      .0000        22.810        .32394E-06** at limit **
  15  Prefactor     4.6290        6.2361       -.93013E-07    .14288E-03
  16  norm          1.4888        1.8319       -.33849E-07    .23663E-03
  17  Prefactor     27.772        30.099        .65559E-07    .10126E-02
  18  norm          1.7783        2.0412       -.20603E-07    .11911E-03
  19  Prefactor      .0000        4.4690        .19265E-07** at limit **
  20  norm          38.441        5.3565       -.89771E-09    .36657E-01
  21  norm          4.5946        4.9505       -.69301E-07    .21912E-03
  22  Prefactor     .33307E-09    34.810       -.23465E-06** at limit **
  23  Prefactor     1.5891        143.42       -.22582E-06   -.30278E-01
  24  norm          6.7020        6.0742        .17543E-06    .11470E-03
  25  Normalizat    1.0267        .31311       -.86622E-07   -.94440E-06
  26  Prefactor     .91611        .35568       -.14564E-05   -.25248E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000383346
  norm       = 2.22045e-10
  Prefactor  = 25.0676
  norm       = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0.000365394
  norm       = 0
  Prefactor  = 1.11022e-09
  Prefactor  = 0
  Prefactor  = 8.92759
  norm       = 11.0441
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 4.62904
  norm       = 1.48878
  Prefactor  = 27.7718
  norm       = 1.77826
  Prefactor  = 0
  norm       = 38.4411
  norm       = 4.59462
  Prefactor  = 3.33067e-10
  Prefactor  = 1.58906
  norm       = 6.70197
  Normalizat = 1.02669
  Prefactor  = 0.916108
 **********
 **   18 **HESSE 
 **********

 FCN=   3121.386     FROM HESSE     STATUS=OK           506 CALLS     2794 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38335E-03    556.35        .45704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .22204E-09    75.898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.068        21.008        .20076E-03   -1.5608    
   4  norm           .0000        11.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        12.982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    17.994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .36539E-03    1922.9        .61794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        3.1329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-08    54.506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.9405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9276        20.467        .33784E-03   -1.5648    
  12  norm          11.044        5.4202        .30171E-03   -1.5641    
  13  norm          .55511E-10    15.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        22.856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6290        6.2656        .46792E-03   -1.5665    
  16  norm          1.4888        1.8508        .87876E-03   -1.5684    
  17  Prefactor     27.772        30.553        .19410E-03   -1.5603    
  18  norm          1.7783        2.0544        .78449E-03   -1.5681    
  19  Prefactor      .0000        4.4702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          38.441        26.421        .16146E-03   -1.5584    
  21  norm          4.5946        4.9783        .46779E-03   -1.5665    
  22  Prefactor     .33307E-09    34.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.5891        381.57        .43914E-03   -1.5683    
  24  norm          6.7020        6.1103        .38713E-03   -1.5656    
  25  Normalizat    1.0267        .26541        .42169E-01   -.92141    
  26  Prefactor     .91611        .29997        .68909E-01   -.95581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.292e-06
Minuit parameter uncertainties:
  1  0.923719
  2  0.000262713
  3  21.0083
  4  2.06734e-05
  5  1.69085e-05
  6  6.71266e-05
  7  1.67696
  8  1.15979e-06
  9  0.000487849
  10  2.35131e-08
  11  20.4674
  12  5.42025
  13  5.55391e-05
  14  4.24463e-06
  15  6.26561
  16  1.85076
  17  30.5529
  18  2.05439
  19  5.66516e-10
  20  26.4208
  21  4.97828
  22  0.000215333
  23  49.2513
  24  6.11033
  25  0.265748
  26  0.300509
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  5.551e-11  5.554e-05  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.161e-01  3.005e-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.027e+00  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681430/likelihoodResults_699148801_699408001_4FGL_J1223.9+5000_daily_bin1774.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): 102
logL (Free Index) = 3121.41851126
delta logL = -0.0324919589566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3121.03854543
delta logL = 0.347473870013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6117       1.0000          .0000       .10000E+07
     2 'alpha     '    4.3216       1.0000          .0000       5.0000    
     3 'Normalizat'    .94151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97514       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=   3121.039     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      225 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6160        72.965        .83395E-03    .34558E-02
   2  alpha         4.3198        2.7827        .50000        .16979E-04
   3  Normalizat    .94130        .79439E-01    .45430E-01    .22181E-04
   4  Prefactor     .97542        .95524E-01    .67004E-01   -.74887E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61601
  alpha      = 4.31977
  Normalizat = 0.941295
  Prefactor  = 0.975421
 **********
 **   18 **HESSE 
 **********

 FCN=   3121.039     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6160        6.4514        .86149E-05   -1.5683    
   2  alpha         4.3198        4.1931        .29453E-01    .81527    
   3  Normalizat    .94130        .31119        .25181E-03   -.95024    
   4  Prefactor     .97542        .36099        .29636E-03   -.93553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20584e-08
Minuit parameter uncertainties:
  1  6.4514
  2  2.55823
  3  0.311787
  4  0.361883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681430': 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) = 3121.03854445
delta logL = 0.347474857613

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.616e+00  6.451e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  4.320e+00  2.558e+00  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.754e-01  3.619e-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:  9.413e-01  3.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.988 50.009

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/681430/cmap_HighResolution_699148801_699408001_4FGL_J1223.9+5000_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2023-03-02 00:51:36.943612', job_id='681430', GAL2='0.98', fit_tolerance='1e-08', EG2='0.94', EG='1.03', time_epoch_completed='1677747096.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.47e-01', ts2='0.75', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1774' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:51:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0183>
Subject: Job 681430: <4FGL_J1223.9+5000_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:21 2023
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:40:26 2023
Terminated at Thu Mar  2 00:51:37 2023
Results reported at Thu Mar  2 00:51:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1774 185.988 50.0089 699148801 699408001 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 :                                   517.42 sec.
    Max Memory :                                 636 MB
    Average Memory :                             240.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            676 sec.

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

