aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 0 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1223.9+5000_weekly_bin511
RA = 185.988, Dec = 50.0089
tmin = 548035201, tmax = 548640001
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='231438', job_status='RUN', time_executed='2021-07-19 01:07:43.030871', time_epoch_executed='1626682063.03' WHERE source_name='4FGL J1223.9+5000' and cadence='weekly' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231438

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231438/ft1_4FGL_J1223.9+5000_weekly_bin511.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231438/ft1_4FGL_J1223.9+5000_weekly_bin511.fits outfile=/scratch/kocevski/231438/ft1_filteredMKT_4FGL_J1223.9+5000_weekly_bin511.fits ra=185.988 dec=50.0089 rad=12.0 tmin=548035201.0 tmax=548640001.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 8.17
user 7.89
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.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/231438/ft1_filteredMKT_4FGL_J1223.9+5000_weekly_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/231438/ft1_filtered_4FGL_J1223.9+5000_weekly_bin511.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.57
user 0.39
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231438/ft1_filtered_4FGL_J1223.9+5000_weekly_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/231438/ltcube_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.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/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.fits
.....................!
real 40.06
user 39.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231438/ft1_filtered_4FGL_J1223.9+5000_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/231438/ltcube_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.fits outfile=/scratch/kocevski/231438/expmap_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.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/231438/ltcube_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.fits
.....................!
real 192.21
user 185.92
sys 5.74

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/231438/ft1_filtered_4FGL_J1223.9+5000_weekly_bin511.fits scfile=/scratch/kocevski/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.fits outfile=/scratch/kocevski/231438/cmap_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231438/ft1_filtered_4FGL_J1223.9+5000_weekly_bin511.fits scfile=/scratch/kocevski/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.fits outfile=/scratch/kocevski/231438/cmap_HighResolution_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.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.58
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231438/ft1_filtered_4FGL_J1223.9+5000_weekly_bin511.fits', '/scratch/kocevski/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.fits', expMap='/scratch/kocevski/231438/expmap_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.fits', expCube='/scratch/kocevski/231438/ltcube_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231438/Model_4FGL_J1223.9+5000_weekly_bin511.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  1.000e-04  1.000e+04 ( 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  0.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/231438/ft1_filtered_4FGL_J1223.9+5000_weekly_bin511.fits
Spacecraft file(s): /scratch/kocevski/231438/ft2_4FGL_J1223.9+5000_weekly_bin511.fits
Exposure map: /scratch/kocevski/231438/expmap_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.fits
Exposure cube: /scratch/kocevski/231438/ltcube_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231438/Model_4FGL_J1223.9+5000_weekly_bin511.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) = 3960.03385357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    106.37       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1322       1.0000         .10000E-03   10000.    
     4 'norm      '    .38153E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12971E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.574       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26507       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.332       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7396       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    41.531       1.0000         .10000E-03   10000.    
    23 'norm      '    4.4106       1.0000         .10000E-03   10000.    
    24 'Prefactor '    74.582       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .57193       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2992       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .55876       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.

 FCN=   3960.017     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3719 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.510        .51646E-05** at limit **
   2  norm          106.33        84.737       -.31905E-05   -.11262E-03
   3  Prefactor     3.1328        7.1437        .71160E-06    .55169E-04
   4  norm          .10002E-03    1.2653       -.19274E-06** at limit **
   5  norm          .10000E-03    4.4157        .14909E-06** at limit **
   6  Prefactor     .10001E-03    3.7965       -.26056E-05** at limit **
   7  Prefactor     66.620        69.212        .83515E-07    .11582E-03
   8  norm          6.9388        6.5497        .13701E-06    .73498E-05
   9  Prefactor     41.671        28.093        .16030E-05    .54401E-03
  10  Prefactor     .10000E-03    5.5671        .66031E-08** at limit **
  11  Prefactor     .10000E-03    22.017        .42897E-06** at limit **
  12  norm          .10000E-03    1.2928        .82557E-08** at limit **
  13  Prefactor     .10000E-03    51.650       -.33217E-05** at limit **
  14  norm          12.726        9.1707        .14689E-06    .10412E-03
  15  Prefactor     .10000E-03    9.1496       -.61776E-06** at limit **
  16  Prefactor     .28514        6.4677        .23759E-06   -.85783E-05
  17  norm          4.5147        3.1896       -.31101E-07   -.11909E-03
  18  Prefactor     11.340        26.421       -.31660E-07   -.37433E-05
  19  norm          3.7399        2.8311        .16341E-07   -.25819E-04
  20  Prefactor     .10000E-03    22.702        .27162E-06** at limit **
  21  Prefactor     .10000E-03    19.869        .20824E-07** at limit **
  22  norm          41.529        22.729       -.18887E-07   -.12967E-04
  23  norm          4.4109        4.3803        .89662E-06    .20719E-03
  24  Prefactor     74.598        45.248        .55563E-06    .56053E-04
  25  Prefactor     .10000E-03    9.3475        .60760E-06** at limit **
  26  Prefactor     .10000E-03    19.951       -.14283E-06** at limit **
  27  norm          .57207        3.5581        .15909E-05    .13805E-03
  28  Normalizat    1.2990        .21820       -.14056E-05    .26028E-03
  29  Prefactor     .55880        .25084        .11096E-05    .87736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 106.329
  Prefactor  = 3.1328
  norm       = 0.000100021
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 66.6197
  norm       = 6.93881
  Prefactor  = 41.6707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 12.7259
  Prefactor  = 0.0001
  Prefactor  = 0.285139
  norm       = 4.51471
  Prefactor  = 11.3402
  norm       = 3.73995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 41.5292
  norm       = 4.41087
  Prefactor  = 74.5978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.572066
  Normalizat = 1.29901
  Prefactor  = 0.558798
 **********
 **   18 **HESSE 
 **********

 FCN=   3960.017     FROM HESSE     STATUS=OK           551 CALLS     4270 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          106.33        85.586        .19496E-03   -1.3642    
   3  Prefactor     3.1328        7.1351        .22907E-03   -1.5354    
   4  norm          .10002E-03    15.343        .13002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.4162        .12915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    5.3443        .19983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     66.620        67.659        .24595E-03   -1.4074    
   8  norm          6.9388        6.5435        .15031E-03   -1.5181    
   9  Prefactor     41.671        28.457        .62033E-04   -1.4416    
  10  Prefactor     .10000E-03    5.5785        .14490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3230        .13961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.726        9.1715        .11229E-03   -1.4994    
  15  Prefactor     .10000E-03    9.1656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .28514        75.205        .28267E-02   -1.5601    
  17  norm          4.5147        3.3241        .85833E-04   -1.5283    
  18  Prefactor     11.340        26.456        .11901E-03   -1.5034    
  19  norm          3.7399        2.8299        .88757E-04   -1.5321    
  20  Prefactor     .10000E-03    22.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          41.529        22.726        .62203E-04   -1.4418    
  23  norm          4.4109        4.3807        .63078E-03   -1.5288    
  24  Prefactor     74.598        45.281        .46492E-04   -1.3978    
  25  Prefactor     .10000E-03    9.3563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .57207        3.4787        .23095E-03   -1.5557    
  28  Normalizat    1.2990        .23968        .20491E-03   -.83596    
  29  Prefactor     .55880        .27275        .36288E-03   -1.0935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55106e-08
Minuit parameter uncertainties:
  1  0.00109236
  2  85.686
  3  7.13704
  4  0.00112905
  5  4.6872e-06
  6  0.000342241
  7  67.7372
  8  6.54415
  9  28.4663
  10  1.19181e-06
  11  5.34624e-05
  12  2.40721e-06
  13  0.000567021
  14  9.17247
  15  4.21158e-05
  16  9.27164
  17  3.32425
  18  26.4829
  19  2.83002
  20  3.20654e-05
  21  2.1834e-05
  22  22.7307
  23  4.38104
  24  45.302
  25  3.30444e-05
  26  3.47546e-05
  27  2.82139
  28  0.239887
  29  0.273397
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.273e+01  9.172e+00  1.000e-04  1.000e+04 ( 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  0.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:  5.588e-01  2.734e-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.299e+00  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.41
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.11e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/231438/likelihoodResults_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.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) = 3960.01613212
delta logL = 0.000831725422813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3960.0159471
delta logL = 0.00101673903328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.558       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4574       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56020       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=   3960.016     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      253 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.559        9.9760        .11304E-03   -.24326E-02
   2  alpha         2.4572        .85470        .15474E-01   -.24548E-03
   3  Normalizat    1.2972        .22800        .20502E-03    .31330E-03
   4  Prefactor     .56015        .27224        .36248E-03    .27748E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5594
  alpha      = 2.45716
  Normalizat = 1.29725
  Prefactor  = 0.560152
 **********
 **   18 **HESSE 
 **********

 FCN=   3960.016     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.559        9.7957        .22608E-04   -1.4999    
   2  alpha         2.4572        .83919        .61897E-03   -.17136E-01
   3  Normalizat    1.2972        .22794        .41003E-04   -.83649    
   4  Prefactor     .56015        .27222        .14499E-04   -1.0929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74545e-09
Minuit parameter uncertainties:
  1  9.79696
  2  0.855812
  3  0.22812
  4  0.272863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231438': 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) = 3960.01594704
delta logL = 0.00101680362604

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.256e+01  9.797e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.457e+00  8.558e-01  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00  0.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:  5.602e-01  2.729e-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.297e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.46 +/- 0.86
Photon Flux (Free Index): 5.24e-08 +/- 4.77e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.14e-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/231438/cmap_HighResolution_548035201_548640001_4FGL_J1223.9+5000_weekly_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-05', comment='SUCCESS', photon_flux='5.11e-08', energy_flux2='1.59e-05', photon_flux_error='3.68e-08', dlogl='1.02e-03', energy_flux='1.60e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-07-19 01:21:04.426307', photon_index_error2='0.86', photon_index2='2.46', ts='3.41', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.14e-05', EG='1.30', time_epoch_completed='1626682864.43', return_code='0', job_id='231438', GAL2='0.56', EG2='1.30', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.77e-08', ts2='3.39', photon_index='2.42' WHERE bin_id='511' AND source_name='4FGL J1223.9+5000' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 19 01:21:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 231438: <4FGL_J1223.9+5000_weekly_bin511> in cluster <slac> Done

Job <4FGL_J1223.9+5000_weekly_bin511> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 19 01:06:24 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 19 01:07:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 19 01:07:34 2021
Terminated at Mon Jul 19 01:21:05 2021
Results reported at Mon Jul 19 01:21:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_weekly_bin511 185.988 50.0089 548035201 548640001 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 :                                   785.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             300.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            881 sec.

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

