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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1768
RA = 185.988, Dec = 50.0089
tmin = 697593601, tmax = 697852801
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='270298', job_status='RUN', time_executed='2023-02-12 00:53:03.657165', time_epoch_executed='1676191983.66' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270298/ft1_4FGL_J1223.9+5000_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270298/ft2_4FGL_J1223.9+5000_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270298/ft1_4FGL_J1223.9+5000_daily_bin1768.fits outfile=/scratch/kocevski/270298/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1768.fits ra=185.988 dec=50.0089 rad=12.0 tmin=697593601.0 tmax=697852801.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.67
user 3.45
sys 0.21

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

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

Number of photons that the gtmktime cut: 584

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270298/ft1_filtered_4FGL_J1223.9+5000_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/270298/ft2_4FGL_J1223.9+5000_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/270298/ltcube_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.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/270298/ft2_4FGL_J1223.9+5000_daily_bin1768.fits
.....................!
real 15.69
user 15.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270298/ft1_filtered_4FGL_J1223.9+5000_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/270298/ft2_4FGL_J1223.9+5000_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/270298/ltcube_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.fits outfile=/scratch/kocevski/270298/expmap_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.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/270298/ltcube_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.fits
.....................!
real 192.57
user 186.50
sys 5.52

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/270298/ft1_filtered_4FGL_J1223.9+5000_daily_bin1768.fits scfile=/scratch/kocevski/270298/ft2_4FGL_J1223.9+5000_daily_bin1768.fits outfile=/scratch/kocevski/270298/cmap_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270298/ft1_filtered_4FGL_J1223.9+5000_daily_bin1768.fits scfile=/scratch/kocevski/270298/ft2_4FGL_J1223.9+5000_daily_bin1768.fits outfile=/scratch/kocevski/270298/cmap_HighResolution_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.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.57
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/270298/ft1_filtered_4FGL_J1223.9+5000_daily_bin1768.fits', '/scratch/kocevski/270298/ft2_4FGL_J1223.9+5000_daily_bin1768.fits', expMap='/scratch/kocevski/270298/expmap_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.fits', expCube='/scratch/kocevski/270298/ltcube_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/270298/Model_4FGL_J1223.9+5000_daily_bin1768.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/270298/ft1_filtered_4FGL_J1223.9+5000_daily_bin1768.fits
Spacecraft file(s): /scratch/kocevski/270298/ft2_4FGL_J1223.9+5000_daily_bin1768.fits
Exposure map: /scratch/kocevski/270298/expmap_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.fits
Exposure cube: /scratch/kocevski/270298/ltcube_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/270298/Model_4FGL_J1223.9+5000_daily_bin1768.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6371.75590704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37366E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .93283E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5623       1.0000          .0000       .10000E+07
     4 'norm      '    2.3042       1.0000          .0000       .10000E+07
     5 'norm      '    5.4470       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.2477       1.0000          .0000       .10000E+07
     7 'Prefactor '    .46971E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .10627E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13956E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.3924       1.0000          .0000       .10000E+07
    11 'Prefactor '    .91475E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .46851E-07   1.0000          .0000       .10000E+07
    13 'norm      '    23.945       1.0000          .0000       .10000E+07
    14 'Prefactor '    .71855E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13571E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .58244       1.0000          .0000       .10000E+07
    17 'Prefactor '    .54287E-05   1.0000          .0000       .10000E+07
    18 'norm      '    1.4255       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10859E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .15421E-06   1.0000          .0000       .10000E+07
    21 'norm      '    1.0476       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24830       1.0000          .0000       .10000E+07
    23 'Prefactor '    .38190E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .33495E-05   1.0000          .0000       .10000E+07
    25 'Normalizat'    .84032       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1640       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=   6371.648     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     1835 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36449E-06    26.326       -.41566E-06** at limit **
   2  norm          .95035E-07    44.693       -.54640E-06** at limit **
   3  Prefactor     2.5494        5.5271       -.62069E-08    .89322E-04
   4  norm          2.3047        1.3918       -.15921E-07    .47529E-03
   5  norm          5.4386        9.9380        .23798E-07    .72316E-02
   6  Prefactor     3.2492        2.7380       -.45256E-07    .19489E-03
   7  Prefactor     .75506E-06    13.670        .34489E-07** at limit **
   8  norm           .0000        2.9310        .67217E-07** at limit **
   9  Prefactor     .66613E-09    6.2938        .12678E-06** at limit **
  10  Prefactor     2.3941        4.1370       -.81441E-07    .12332E-03
  11  Prefactor     .38858E-09    6.3959        .12491E-07** at limit **
  12  norm           .0000        1.3222        .74992E-07** at limit **
  13  norm          23.937        8.3046        .20421E-07    .40261E-03
  14  Prefactor     .19879E-06    11.309        .24058E-06** at limit **
  15  Prefactor     .14100E-06    134.23       -.23518E-06** at limit **
  16  norm          .57758        1.9069       -.15818E-06    .28163E-03
  17  Prefactor     .20595E-05    9.9622       -.29941E-07** at limit **
  18  norm          1.4255        1.4221        .16572E-07   -.13205E-03
  19  Prefactor      .0000        4.6100       -.88830E-07** at limit **
  20  norm           .0000        4.0156        .48857E-07** at limit **
  21  norm          1.0528        2.9899       -.38878E-07    .11507E-03
  22  Prefactor     .24120E-05    19.305        .70725E-07** at limit **
  23  Prefactor     .27250E-06    11.133        .23007E-06** at limit **
  24  norm           .0000        1.6923       -.45029E-08** at limit **
  25  Normalizat    .84055        .17698       -.55467E-06    .20909E-04
  26  Prefactor     1.1640        .22536        .32818E-06    .14719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64486e-07
  norm       = 9.50351e-08
  Prefactor  = 2.54938
  norm       = 2.30467
  norm       = 5.43858
  Prefactor  = 3.24924
  Prefactor  = 7.55063e-07
  norm       = 0
  Prefactor  = 6.66134e-10
  Prefactor  = 2.39406
  Prefactor  = 3.88578e-10
  norm       = 0
  norm       = 23.9368
  Prefactor  = 1.98785e-07
  Prefactor  = 1.40998e-07
  norm       = 0.577584
  Prefactor  = 2.05946e-06
  norm       = 1.42545
  Prefactor  = 0
  norm       = 0
  norm       = 1.05277
  Prefactor  = 2.41196e-06
  Prefactor  = 2.72504e-07
  norm       = 0
  Normalizat = 0.840552
  Prefactor  = 1.16403
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.648     FROM HESSE     STATUS=OK           514 CALLS     2349 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36449E-06    28.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .95035E-07    45.208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5494        5.5399        .63749E-03   -1.5676    
   4  norm          2.3047        1.3935        .67572E-03   -1.5678    
   5  norm          5.4386        9.9685        .43030E-03   -1.5661    
   6  Prefactor     3.2492        2.7479        .56176E-03   -1.5672    
   7  Prefactor     .75506E-06    19.677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.9175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .66613E-09    6.3152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3941        4.1620        .66185E-03   -1.5677    
  11  Prefactor     .38858E-09    6.4093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.2941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.937        8.3054        .20441E-03   -1.5610    
  14  Prefactor     .19879E-06    12.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14100E-06    10.187        .53673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .57758        2.3463        .70816E-03   -1.5693    
  17  Prefactor     .20595E-05    22.050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4255        1.4377        .90509E-03   -1.5684    
  19  Prefactor      .0000        4.6111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        4.0265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0528        3.0696        .12129E-02   -1.5687    
  22  Prefactor     .24120E-05    20.246        .10972E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .27250E-06    12.932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.6913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .84055        .15042        .44134E-01   -.98582    
  26  Prefactor     1.1640        .18871        .57671E-01   -.87446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92077e-07
Minuit parameter uncertainties:
  1  0.0064088
  2  0.00414513
  3  5.53989
  4  1.39346
  5  9.96857
  6  2.74793
  7  0.00770906
  8  2.6556e-06
  9  0.000127605
  10  4.162
  11  9.88603e-05
  12  1.39839e-06
  13  8.3054
  14  0.00315721
  15  0.00239713
  16  2.32824
  17  0.0134776
  18  1.43765
  19  2.82835e-06
  20  2.83724e-06
  21  3.06957
  22  0.0139762
  23  0.00375468
  24  1.37775e-06
  25  0.150497
  26  0.18882
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.394e+01  8.305e+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:  1.164e+00  1.888e-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:  8.406e-01  1.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.81
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 9.60e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 1.04e-05

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) = 6371.64202118
delta logL = 0.00647581757312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6371.63960531
delta logL = 0.00889169517268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.372       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4773       1.0000          .0000       5.0000    
     3 'Normalizat'    .83586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1678       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6371.640     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.373        9.3686        .82760E-05   -.16223E-02
   2  alpha         2.4773        .44525        .10493E-01    .18322E-03
   3  Normalizat    .83587        .17693        .22962E-03   -.11665E-03
   4  Prefactor     1.1678        .22501        .25466E-03   -.12482E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.3727
  alpha      = 2.47726
  Normalizat = 0.835867
  Prefactor  = 1.16784
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.640     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.373        9.2276        .33104E-06   -1.5611    
   2  alpha         2.4773        .43838        .20986E-02   -.90960E-02
   3  Normalizat    .83587        .17703        .91850E-05   -.98752    
   4  Prefactor     1.1678        .22517        .10186E-04   -.87327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21804e-11
Minuit parameter uncertainties:
  1  9.2276
  2  0.440655
  3  0.177148
  4  0.225351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270298': 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) = 6371.6396053
delta logL = 0.00889170521805

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.337e+01  9.228e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.477e+00  4.407e-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:  1.168e+00  2.254e-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:  8.359e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.79
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.48 +/- 0.44
Photon Flux (Free Index): 9.96e-08 +/- 4.28e-08
Energy Flux (Free Index): 2.98e-05 +/- 1.04e-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/270298/cmap_HighResolution_697593601_697852801_4FGL_J1223.9+5000_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.60e-08', energy_flux2='2.98e-05', photon_flux_error='3.33e-08', dlogl='8.89e-03', energy_flux='3.00e-05', photon_flux2='9.96e-08', job_status='DONE', time_completed='2023-02-12 01:03:42.453106', photon_index_error2='0.44', photon_index2='2.48', ts='21.81', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.84', time_epoch_completed='1676192622.45', return_code='0', job_id='270298', GAL2='1.17', EG2='0.84', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='4.28e-08', ts2='21.79', photon_index='2.42' WHERE bin_id='1768' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 01:03:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 270298: <4FGL_J1223.9+5000_daily_bin1768> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1768> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Feb 12 00:50:17 2023
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 00:52:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 00:52:15 2023
Terminated at Sun Feb 12 01:03:43 2023
Results reported at Sun Feb 12 01:03:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1768 185.988 50.0089 697593601 697852801 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 :                                   640.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            806 sec.

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

