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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1001
RA = 185.988, Dec = 50.0089
tmin = 498787201, tmax = 499046401
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='573843', job_status='RUN', time_executed='2021-09-05 12:08:23.844640', time_epoch_executed='1630868903.84' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573843/ft1_4FGL_J1223.9+5000_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573843/ft2_4FGL_J1223.9+5000_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573843/ft1_4FGL_J1223.9+5000_daily_bin1001.fits outfile=/scratch/kocevski/573843/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1001.fits ra=185.988 dec=50.0089 rad=12.0 tmin=498787201.0 tmax=499046401.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 5.02
user 4.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573843/ft1_filtered_4FGL_J1223.9+5000_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/573843/ft2_4FGL_J1223.9+5000_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/573843/ltcube_498787201_499046401_4FGL_J1223.9+5000_daily_bin1001.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/573843/ft2_4FGL_J1223.9+5000_daily_bin1001.fits
.....................!
real 11.75
user 11.42
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573843/ft1_filtered_4FGL_J1223.9+5000_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/573843/ft2_4FGL_J1223.9+5000_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/573843/ltcube_498787201_499046401_4FGL_J1223.9+5000_daily_bin1001.fits outfile=/scratch/kocevski/573843/expmap_498787201_499046401_4FGL_J1223.9+5000_daily_bin1001.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/573843/ltcube_498787201_499046401_4FGL_J1223.9+5000_daily_bin1001.fits
.....................!
real 190.15
user 185.49
sys 4.33

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/573843/ft1_filtered_4FGL_J1223.9+5000_daily_bin1001.fits scfile=/scratch/kocevski/573843/ft2_4FGL_J1223.9+5000_daily_bin1001.fits outfile=/scratch/kocevski/573843/cmap_498787201_499046401_4FGL_J1223.9+5000_daily_bin1001.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573843/ft1_filtered_4FGL_J1223.9+5000_daily_bin1001.fits scfile=/scratch/kocevski/573843/ft2_4FGL_J1223.9+5000_daily_bin1001.fits outfile=/scratch/kocevski/573843/cmap_HighResolution_498787201_499046401_4FGL_J1223.9+5000_daily_bin1001.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15647E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .58420       1.0000         .10000E-03   10000.    
     5 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2365       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.210       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.686       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83183       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9718       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.845       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6092       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .98908E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.064       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.9675       1.0000         .10000E-03   10000.    
    27 'norm      '    .10742E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0733       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0272       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=   5722.759     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3798 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.20        .39749E-05** at limit **
   2  norm          .10000E-03    17.179       -.30842E-05** at limit **
   3  Prefactor     .10001E-03    16.543       -.44662E-05** at limit **
   4  norm          .58432        1.8961       -.15037E-05    .15095E-03
   5  norm          .10000E-03    16.063        .13877E-05** at limit **
   6  Prefactor     .10000E-03    1.4421       -.11363E-06** at limit **
   7  Prefactor     .10000E-03    106.41        .23560E-05** at limit **
   8  norm          3.2360        4.2418       -.44824E-06    .78068E-05
   9  Prefactor     19.207        16.544       -.64054E-08    .13347E-04
  10  Prefactor     .10000E-03    3.5182        .10698E-06** at limit **
  11  Prefactor     .10000E-03    6.4102        .61647E-08** at limit **
  12  norm          1.6118        1.9180       -.30275E-06   -.34048E-04
  13  Prefactor     .10000E-03    25.633        .24589E-05** at limit **
  14  norm          24.663        11.932       -.22150E-06   -.14177E-03
  15  Prefactor     .83837        38.843        .38405E-05   -.19323E-03
  16  Prefactor     .10000E-03    4.7173       -.12715E-06** at limit **
  17  norm          3.9725        2.1501        .10120E-06   -.15186E-03
  18  Prefactor     35.813        27.965        .12627E-05    .12113E-03
  19  norm          2.6093        1.7462       -.76387E-08   -.54138E-04
  20  Prefactor     .10000E-03    48.175       -.20705E-05** at limit **
  21  Prefactor     .10057E-03    14.755        .32640E-05** at limit **
  22  norm          .10000E-03    8.2775        .62194E-06** at limit **
  23  norm          .10000E-03    1.1187        .29677E-08** at limit **
  24  Prefactor     .10000E-03    8.7640       -.66413E-06** at limit **
  25  Prefactor     33.063        18.425       -.18413E-07    .67934E-04
  26  Prefactor     9.9662        20.245       -.30741E-06    .56372E-05
  27  norm          .10000E-03    2.9832        .47437E-07** at limit **
  28  Normalizat    1.0733        .18099        .24906E-06    .29685E-04
  29  Prefactor     1.0274        .21794        .13181E-05   -.10790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100014
  norm       = 0.584321
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.236
  Prefactor  = 19.2069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.61182
  Prefactor  = 0.000100001
  norm       = 24.6634
  Prefactor  = 0.838367
  Prefactor  = 0.0001
  norm       = 3.97253
  Prefactor  = 35.8132
  norm       = 2.60926
  Prefactor  = 0.000100001
  Prefactor  = 0.000100571
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.0632
  Prefactor  = 9.96625
  norm       = 0.0001
  Normalizat = 1.07331
  Prefactor  = 1.02736
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.759     FROM HESSE     STATUS=OK           555 CALLS     4353 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    17.859        .32724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .58432        1.9368        .17923E-03   -1.5555    
   5  norm          .10000E-03    16.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4580        .88664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    107.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2360        4.2296        .17200E-03   -1.5348    
   9  Prefactor     19.207        16.531        .91383E-04   -1.4831    
  10  Prefactor     .10000E-03    3.5281        .13830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6118        1.9039        .10925E-03   -1.5454    
  13  Prefactor     .10000E-03    25.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.663        12.392        .80623E-04   -1.4714    
  15  Prefactor     .83837        285.05        .64145E-02   -1.5525    
  16  Prefactor     .10000E-03    4.7863        .16021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9725        2.1204        .77990E-04   -1.5309    
  18  Prefactor     35.813        28.273        .66938E-04   -1.4510    
  19  norm          2.6093        1.7458        .79508E-04   -1.5385    
  20  Prefactor     .10000E-03    48.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10057E-03    90.357        .41619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.3154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1230        .78130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.7803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     33.063        17.761        .69687E-04   -1.4557    
  26  Prefactor     9.9662        20.234        .12692E-03   -1.5076    
  27  norm          .10000E-03    8.9091        .24413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0733        .21125        .22860E-03   -.90613    
  29  Prefactor     1.0274        .25529        .29389E-03   -.91823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00421e-08
Minuit parameter uncertainties:
  1  0.000803153
  2  0.00025064
  3  0.000991272
  4  1.93698
  5  0.000130617
  6  3.17745e-06
  7  0.000856298
  8  4.23
  9  16.5351
  10  7.80696e-06
  11  6.5837e-07
  12  1.90397
  13  0.000236793
  14  12.3933
  15  31.066
  16  2.35236e-05
  17  2.12047
  18  28.2832
  19  1.74586
  20  0.000324243
  21  0.0143823
  22  3.04544e-05
  23  2.33709e-06
  24  4.18093e-05
  25  17.764
  26  20.2481
  27  2.24946e-05
  28  0.211421
  29  0.255592
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.466e+01  1.239e+01  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:  1.027e+00  2.556e-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.073e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.07
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 9.90e-08 +/- 4.97e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.55e-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) = 5722.75624292
delta logL = 0.00296211940986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5722.75546322
delta logL = 0.00374181815278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.023       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3758       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       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=   5722.755     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      268 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.024        11.231        .80080E-04   -.17604E-04
   2  alpha         2.3758        .49911        .11741E-01    .12925E-03
   3  Normalizat    1.0769        .20609        .22829E-03   -.22958E-04
   4  Prefactor     1.0244        .25628        .29426E-03   -.27160E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.0244
  alpha      = 2.37581
  Normalizat = 1.07693
  Prefactor  = 1.02444
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.755     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.024        11.118        .32032E-05   -1.4707    
   2  alpha         2.3758        .49383        .23481E-02   -.49696E-01
   3  Normalizat    1.0769        .20620        .91315E-05   -.90496    
   4  Prefactor     1.0244        .25645        .11770E-04   -.91919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52186e-12
Minuit parameter uncertainties:
  1  11.1192
  2  0.497104
  3  0.20635
  4  0.256752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573843': 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) = 5722.75546301
delta logL = 0.0037420342187

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.502e+01  1.112e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.376e+00  4.971e-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:  1.024e+00  2.568e-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.077e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.05
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.38 +/- 0.50
Photon Flux (Free Index): 9.62e-08 +/- 5.11e-08
Energy Flux (Free Index): 3.11e-05 +/- 1.31e-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/573843/cmap_HighResolution_498787201_499046401_4FGL_J1223.9+5000_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.90e-08', energy_flux2='3.11e-05', photon_flux_error='4.97e-08', dlogl='3.74e-03', energy_flux='3.09e-05', photon_flux2='9.62e-08', job_status='DONE', time_completed='2021-09-05 12:21:33.391759', photon_index_error2='0.50', photon_index2='2.38', ts='13.07', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.07', time_epoch_completed='1630869693.39', return_code='0', job_id='573843', GAL2='1.02', EG2='1.08', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='5.11e-08', ts2='13.05', photon_index='2.42' WHERE bin_id='1001' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:21:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 573843: <4FGL_J1223.9+5000_daily_bin1001> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1001> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:34 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:05:35 2021
Terminated at Sun Sep  5 12:21:34 2021
Results reported at Sun Sep  5 12:21:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1001 185.988 50.0089 498787201 499046401 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 :                                   786.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

