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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1716
RA = 185.988, Dec = 50.0089
tmin = 684115201, tmax = 684374401
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='117772', job_status='RUN', time_executed='2022-09-16 16:45:58.807678', time_epoch_executed='1663371958.81' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117772/ft1_4FGL_J1223.9+5000_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117772/ft2_4FGL_J1223.9+5000_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117772/ft1_4FGL_J1223.9+5000_daily_bin1716.fits outfile=/scratch/kocevski/117772/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1716.fits ra=185.988 dec=50.0089 rad=12.0 tmin=684115201.0 tmax=684374401.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 4.15
user 3.94
sys 0.20

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

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

Number of photons that the gtmktime cut: 551

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117772/ft1_filtered_4FGL_J1223.9+5000_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/117772/ft2_4FGL_J1223.9+5000_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/117772/ltcube_684115201_684374401_4FGL_J1223.9+5000_daily_bin1716.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/117772/ft2_4FGL_J1223.9+5000_daily_bin1716.fits
.....................!
real 14.47
user 14.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117772/ft1_filtered_4FGL_J1223.9+5000_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/117772/ft2_4FGL_J1223.9+5000_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/117772/ltcube_684115201_684374401_4FGL_J1223.9+5000_daily_bin1716.fits outfile=/scratch/kocevski/117772/expmap_684115201_684374401_4FGL_J1223.9+5000_daily_bin1716.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/117772/ltcube_684115201_684374401_4FGL_J1223.9+5000_daily_bin1716.fits
.....................!
real 191.86
user 186.75
sys 4.76

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/117772/ft1_filtered_4FGL_J1223.9+5000_daily_bin1716.fits scfile=/scratch/kocevski/117772/ft2_4FGL_J1223.9+5000_daily_bin1716.fits outfile=/scratch/kocevski/117772/cmap_684115201_684374401_4FGL_J1223.9+5000_daily_bin1716.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117772/ft1_filtered_4FGL_J1223.9+5000_daily_bin1716.fits scfile=/scratch/kocevski/117772/ft2_4FGL_J1223.9+5000_daily_bin1716.fits outfile=/scratch/kocevski/117772/cmap_HighResolution_684115201_684374401_4FGL_J1223.9+5000_daily_bin1716.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    128.16       1.0000          .0000       .10000E+07
     2 'norm      '    .35263E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15429E-02   1.0000          .0000       .10000E+07
     4 'norm      '    3.7792       1.0000          .0000       .10000E+07
     5 'norm      '    11.059       1.0000          .0000       .10000E+07
     6 'Prefactor '    .46074E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .56855E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .30829E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .44444E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .76034E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0153       1.0000          .0000       .10000E+07
    12 'norm      '    3.5030       1.0000          .0000       .10000E+07
    13 'norm      '    15.791       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20746E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19844E-02   1.0000          .0000       .10000E+07
    16 'norm      '    3.7766       1.0000          .0000       .10000E+07
    17 'Prefactor '    .68245E-04   1.0000          .0000       .10000E+07
    18 'norm      '    2.3353       1.0000          .0000       .10000E+07
    19 'Prefactor '    .25968E-02   1.0000          .0000       .10000E+07
    20 'norm      '    15.494       1.0000          .0000       .10000E+07
    21 'norm      '    .33333E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .29514       1.0000          .0000       .10000E+07
    23 'Prefactor '    .20753E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .37970E-07   1.0000          .0000       .10000E+07
    25 'Normalizat'    .91433       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0066       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=   5971.862     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     2212 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.16        2.0719       -.29712E-08    .93793E-01
   2  norm          .17597E-07    5.8759        .18213E-07** at limit **
   3  Prefactor     .62950E-07    5.9590       -.31481E-07** at limit **
   4  norm          3.7786        1.6374        .38314E-08   -.48877E-03
   5  norm          11.057        1.1020        .26735E-09    .51544E-02
   6  Prefactor      .0000        .79221       -.20321E-07** at limit **
   7  Prefactor     .13656E-06    10.110       -.96020E-08** at limit **
   8  norm          .36082E-08    3.8673       -.95812E-08** at limit **
   9  Prefactor     .84377E-08    3.8376       -.67024E-07** at limit **
  10  Prefactor     .32019E-06    6.4129       -.24566E-08** at limit **
  11  Prefactor     6.9760        1.6009       -.44192E-08   -.28110E-03
  12  norm          3.5017        2.2365        .60088E-08    .22422E-04
  13  norm          15.805        7.5176       -.22519E-07   -.77520E-01
  14  Prefactor     .16653E-09    25.487       -.24812E-06** at limit **
  15  Prefactor     .67557E-07    4.2856        .57278E-07** at limit **
  16  norm          3.7754        2.1149        .14619E-07    .14010E-02
  17  Prefactor     .22599E-06    5.2407        .37431E-07** at limit **
  18  norm          2.3348        1.9608        .37798E-07    .29748E-02
  19  Prefactor     .13323E-07    5.5715        .56585E-07** at limit **
  20  norm          15.498        1.0656        .15793E-08   -.75046E-04
  21  norm          .13878E-08    2.9555        .72205E-07** at limit **
  22  Prefactor     .79103E-07    2.2227        .28204E-07** at limit **
  23  Prefactor     .29921E-07    4.4881        .56379E-07** at limit **
  24  norm           .0000        1.2071        .20230E-08** at limit **
  25  Normalizat    .91442        .18327        .14822E-05   -.20415E-03
  26  Prefactor     1.0067        .22955       -.37645E-05   -.25253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.159
  norm       = 1.7597e-08
  Prefactor  = 6.29496e-08
  norm       = 3.77863
  norm       = 11.0572
  Prefactor  = 0
  Prefactor  = 1.36557e-07
  norm       = 3.60822e-09
  Prefactor  = 8.43769e-09
  Prefactor  = 3.20188e-07
  Prefactor  = 6.97604
  norm       = 3.50165
  norm       = 15.8053
  Prefactor  = 1.66533e-10
  Prefactor  = 6.75571e-08
  norm       = 3.77543
  Prefactor  = 2.25986e-07
  norm       = 2.33484
  Prefactor  = 1.33227e-08
  norm       = 15.4979
  norm       = 1.38778e-09
  Prefactor  = 7.91034e-08
  Prefactor  = 2.99205e-08
  norm       = 0
  Normalizat = 0.914424
  Prefactor  = 1.00673
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.862     FROM HESSE     STATUS=OK           502 CALLS     2714 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.16        99.069        .88341E-04   -1.5482    
   2  norm          .17597E-07    16.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62950E-07    6.4735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7786        1.6495        .51904E-03   -1.5669    
   5  norm          11.057        8.4047        .30101E-03   -1.5641    
   6  Prefactor      .0000        .79503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13656E-06    16.776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .36082E-08    3.8633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84377E-08    3.9056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32019E-06    9.8493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9760        15.867        .37852E-03   -1.5655    
  12  norm          3.5017        2.2317        .53994E-03   -1.5671    
  13  norm          15.805        8.5111        .25177E-03   -1.5628    
  14  Prefactor     .16653E-09    25.177        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .67557E-07    15.338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7754        2.1183        .51923E-03   -1.5669    
  17  Prefactor     .22599E-06    7.3379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3348        1.9651        .67073E-03   -1.5677    
  19  Prefactor     .13323E-07    14.199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.498        11.052        .25418E-03   -1.5629    
  21  norm          .13878E-08    2.9420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .79103E-07    75.637        .10281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .29921E-07    14.308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.2119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .91442        .15621        .45084E-01   -.95955    
  26  Prefactor     1.0067        .19619        .43880E-01   -.92506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93162e-07
Minuit parameter uncertainties:
  1  99.0703
  2  0.00106344
  3  0.00127653
  4  1.6495
  5  8.40467
  6  3.11976e-06
  7  0.00302703
  8  0.000235606
  9  0.000362871
  10  0.00355173
  11  15.8668
  12  2.23167
  13  8.51115
  14  0.000124019
  15  0.00203601
  16  2.11828
  17  0.00257557
  18  1.96507
  19  0.000869882
  20  11.0517
  21  0.000127176
  22  0.00489217
  23  0.00130888
  24  9.4821e-06
  25  0.156284
  26  0.196325
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.581e+01  8.511e+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.007e+00  1.963e-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.144e-01  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.34e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.07e-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) = 5971.45145493
delta logL = 0.410465558165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5971.43671659
delta logL = 0.425203896089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.879       1.0000          .0000       .10000E+07
     2 'alpha     '    3.0068       1.0000          .0000       5.0000    
     3 'Normalizat'    .88164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0369       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=   5971.437     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      266 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.878        9.5386        .11843E-04    .18166E-01
   2  alpha         3.0071        .73398        .11455E-01    .18571E-03
   3  Normalizat    .88159        .18490        .22488E-03   -.25837E-03
   4  Prefactor     1.0370        .23275        .26592E-03   -.40092E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8776
  alpha      = 3.00706
  Normalizat = 0.881589
  Prefactor  = 1.03698
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.437     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.878        8.7495        .47371E-06   -1.5642    
   2  alpha         3.0071        .67441        .45819E-03    .20424    
   3  Normalizat    .88159        .18470        .44976E-04   -.97110    
   4  Prefactor     1.0370        .23245        .53184E-04   -.91507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34761e-09
Minuit parameter uncertainties:
  1  8.74954
  2  0.683245
  3  0.184835
  4  0.232676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117772': 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) = 5971.43671645
delta logL = 0.425204041241

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.088e+01  8.750e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  3.007e+00  6.832e-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.037e+00  2.327e-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.816e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.40
Ra Dec: 185.988 50.009
Photon Index (Free Index): 3.01 +/- 0.68
Photon Flux (Free Index): 8.45e-08 +/- 4.48e-08
Energy Flux (Free Index): 1.86e-05 +/- 9.38e-06

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/117772/cmap_HighResolution_684115201_684374401_4FGL_J1223.9+5000_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.34e-08', energy_flux2='1.86e-05', photon_flux_error='3.41e-08', dlogl='4.25e-01', energy_flux='1.98e-05', photon_flux2='8.45e-08', job_status='DONE', time_completed='2022-09-16 16:56:53.838275', photon_index_error2='0.68', photon_index2='3.01', ts='5.53', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='9.38e-06', EG='0.91', time_epoch_completed='1663372613.84', return_code='0', job_id='117772', GAL2='1.04', EG2='0.88', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.48e-08', ts2='6.40', photon_index='2.42' WHERE bin_id='1716' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:56:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 117772: <4FGL_J1223.9+5000_daily_bin1716> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1716> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:43 2022
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:42:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:42:27 2022
Terminated at Fri Sep 16 16:56:54 2022
Results reported at Fri Sep 16 16:56:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1716 185.988 50.0089 684115201 684374401 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 :                                   656.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            971 sec.

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

