/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 45 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 = 7030
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1223.9+5000_daily_bin477
RA = 185.988, Dec = 50.0089
tmin = 362966401, tmax = 363225601
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='567953', job_status='RUN', time_executed='2021-09-05 11:53:23.826089', time_epoch_executed='1630868003.83' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567953

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567953/ft1_4FGL_J1223.9+5000_daily_bin477.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567953/ft2_4FGL_J1223.9+5000_daily_bin477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567953/ft1_4FGL_J1223.9+5000_daily_bin477.fits outfile=/scratch/kocevski/567953/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin477.fits ra=185.988 dec=50.0089 rad=12.0 tmin=362966401.0 tmax=363225601.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 7.34
user 5.74
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567953/ft2_4FGL_J1223.9+5000_daily_bin477.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/567953/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin477.fits evtable="EVENTS" outfile="/scratch/kocevski/567953/ft1_filtered_4FGL_J1223.9+5000_daily_bin477.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.50
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567953/ft1_filtered_4FGL_J1223.9+5000_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/567953/ft2_4FGL_J1223.9+5000_daily_bin477.fits sctable="SC_DATA" expcube=/scratch/kocevski/567953/ltcube_362966401_363225601_4FGL_J1223.9+5000_daily_bin477.fits outfile=/scratch/kocevski/567953/expmap_362966401_363225601_4FGL_J1223.9+5000_daily_bin477.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/567953/ltcube_362966401_363225601_4FGL_J1223.9+5000_daily_bin477.fits
.....................!
real 190.24
user 186.00
sys 3.90

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/567953/ft1_filtered_4FGL_J1223.9+5000_daily_bin477.fits scfile=/scratch/kocevski/567953/ft2_4FGL_J1223.9+5000_daily_bin477.fits outfile=/scratch/kocevski/567953/cmap_362966401_363225601_4FGL_J1223.9+5000_daily_bin477.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.64
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567953/ft1_filtered_4FGL_J1223.9+5000_daily_bin477.fits scfile=/scratch/kocevski/567953/ft2_4FGL_J1223.9+5000_daily_bin477.fits outfile=/scratch/kocevski/567953/cmap_HighResolution_362966401_363225601_4FGL_J1223.9+5000_daily_bin477.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.64
user 0.35
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.259       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3195       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6561       1.0000         .10000E-03   10000.    
     5 'norm      '    10.421       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12440E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.327       1.0000         .10000E-03   10000.    
     8 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.780       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9719       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5237       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12025E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4012       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6868       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .20275       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.477       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.092       1.0000         .10000E-03   10000.    
    27 'norm      '    2.6644       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76172       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3801       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=   5413.706     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3731 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.184        117.34       -.10860E-03    .65013E-05
   2  norm          .10000E-03    15.258       -.64356E-05** at limit **
   3  Prefactor     9.3194        7.0182       -.24005E-07   -.61476E-04
   4  norm          2.6555        2.0655        .20611E-06   -.33152E-03
   5  norm          10.423        12.500        .16954E-06   -.12105E-04
   6  Prefactor     .10000E-03    4.0444        .23876E-07** at limit **
   7  Prefactor     37.317        49.673       -.89197E-05    .34376E-05
   8  norm          .10000E-03    2.9408       -.10082E-06** at limit **
   9  Prefactor     16.779        22.830       -.13708E-05    .11962E-04
  10  Prefactor     3.9712        4.8046       -.80474E-07   -.11736E-03
  11  Prefactor     .10000E-03    17.165        .70702E-05** at limit **
  12  norm          2.8042        1.7474       -.13369E-06   -.15954E-04
  13  Prefactor     .10000E-03    38.550        .17657E-05** at limit **
  14  norm          .10000E-03    2.2673       -.38803E-07** at limit **
  15  Prefactor     .10000E-03    24.424       -.61023E-05** at limit **
  16  Prefactor     3.5236        4.0894       -.38531E-06   -.12726E-04
  17  norm          2.1000        1.8529       -.40756E-07    .84063E-04
  18  Prefactor     .10000E-03    143.44       -.90805E-06** at limit **
  19  norm          2.4008        2.0502       -.16845E-06   -.44103E-04
  20  Prefactor     .10000E-03    23.131        .25343E-05** at limit **
  21  Prefactor     6.6868        10.046       -.77034E-06   -.86305E-04
  22  norm          .10000E-03    6.9219        .54599E-08** at limit **
  23  norm          .18675        2.2927       -.13306E-05    .29248E-03
  24  Prefactor     .10000E-03    11.857        .14009E-05** at limit **
  25  Prefactor     13.477        16.547       -.45111E-06    .33614E-04
  26  Prefactor     16.093        18.550       -.58658E-06    .38555E-04
  27  norm          2.6644        3.7882       -.27306E-06   -.21018E-03
  28  Normalizat    .76171        .17739        .27535E-05    .16558E-03
  29  Prefactor     1.3801        .22376        .16780E-05    .12044E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1843
  norm       = 0.0001
  Prefactor  = 9.31935
  norm       = 2.65546
  norm       = 10.4225
  Prefactor  = 0.0001
  Prefactor  = 37.3171
  norm       = 0.0001
  Prefactor  = 16.7787
  Prefactor  = 3.97121
  Prefactor  = 0.0001
  norm       = 2.80423
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.5236
  norm       = 2.10005
  Prefactor  = 0.000100003
  norm       = 2.40083
  Prefactor  = 0.0001
  Prefactor  = 6.68681
  norm       = 0.0001
  norm       = 0.186752
  Prefactor  = 0.0001
  Prefactor  = 13.4765
  Prefactor  = 16.0931
  norm       = 2.66442
  Normalizat = 0.761713
  Prefactor  = 1.38008
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.706     FROM HESSE     STATUS=OK           555 CALLS     4286 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.184        117.50        .63970E-04   -1.4455    
   2  norm          .10000E-03    15.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3194        7.0165        .13128E-03   -1.5097    
   4  norm          2.6555        2.0609        .84964E-04   -1.5382    
   5  norm          10.423        12.514        .12412E-03   -1.5062    
   6  Prefactor     .10000E-03    4.1205        .28611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.317        49.722        .65600E-04   -1.4485    
   8  norm          .10000E-03    3.0243        .24608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.779        22.654        .97775E-04   -1.4888    
  10  Prefactor     3.9712        4.7940        .17247E-03   -1.5309    
  11  Prefactor     .10000E-03    17.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8042        1.7456        .74169E-04   -1.5373    
  13  Prefactor     .10000E-03    38.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2741        .10819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5236        4.0822        .15406E-03   -1.5333    
  17  norm          2.1000        1.8562        .89530E-04   -1.5418    
  18  Prefactor     .10000E-03    149.08        .36332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4008        2.0445        .94288E-04   -1.5398    
  20  Prefactor     .10000E-03    23.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6868        10.016        .15518E-03   -1.5191    
  22  norm          .10000E-03    6.9329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .18675        10.902        .21350E-02   -1.5622    
  24  Prefactor     .10000E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.477        16.491        .10911E-03   -1.4974    
  26  Prefactor     16.093        18.543        .99842E-04   -1.4905    
  27  norm          2.6644        3.7643        .15948E-03   -1.5381    
  28  Normalizat    .76171        .20911        .25878E-03   -1.0150    
  29  Prefactor     1.3801        .26606        .25526E-03   -.80956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63521e-10
Minuit parameter uncertainties:
  1  118.209
  2  3.79615e-05
  3  7.01715
  4  2.06099
  5  12.5176
  6  5.58197e-06
  7  49.7778
  8  1.53312e-05
  9  22.6661
  10  4.79444
  11  5.20433e-05
  12  1.74564
  13  6.21702e-05
  14  4.65327e-06
  15  8.88728e-05
  16  4.08255
  17  1.85626
  18  0.00136762
  19  2.0446
  20  2.51038e-05
  21  10.0188
  22  8.73781e-06
  23  2.85353
  24  1.78786e-06
  25  16.497
  26  18.5494
  27  3.76467
  28  0.209335
  29  0.266329
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  4.653e-06  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.380e+00  2.663e-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:  7.617e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/567953/likelihoodResults_362966401_363225601_4FGL_J1223.9+5000_daily_bin477.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) = 5413.70805044
delta logL = -0.00205959002869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5413.70599086
delta logL = -1.42263161251e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4175       1.0000          .0000       5.0000    
     3 'Normalizat'    .76172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3801       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5413.706     FROM MIGRAD    STATUS=FAILED        83 CALLS      222 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    4.4892        .10820E-02** at limit **
   2  alpha         2.3752        2.5248        .16472        .13599E-05
   3  Normalizat    .76171        .20423        .25878E-03   -.57111E-05
   4  Prefactor     1.3801        .26369        .25526E-03   -.24495E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5413.706     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      337 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    4.4892        .23747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3752        2.5248        .24322E-03   -.49956E-01
   3  Normalizat    .76171        .20423        .37089E-04   -1.0151    
   4  Prefactor     1.3801        .26369        .47267E-04   -.80956    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5413.706     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      364 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2791        .21639E-03** at limit **
   2  alpha         2.3238        3.6034        .65888E-02   -.13217E-06
   3  Normalizat    .76171        .20447        .10351E-04    .11861E-04
   4  Prefactor     1.3801        .26399        .10211E-04    .77940E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.32384
  Normalizat = 0.761712
  Prefactor  = 1.38008
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.706     FROM HESSE     STATUS=OK            23 CALLS      387 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2791        .43278E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3238        3.8298        .13178E-02   -.70523E-01
   3  Normalizat    .76171        .20471        .20703E-05   -1.0151    
   4  Prefactor     1.3801        .26437        .20421E-05   -.80956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56804e-10
Minuit parameter uncertainties:
  1  9.32999e-05
  2  293.33
  3  0.204919
  4  0.26463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567953': 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) = 5413.7059908
delta logL = 4.70963641419e-08

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  9.330e-05  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.324e+00  2.933e+02  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.380e+00  2.646e-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:  7.617e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/567953/cmap_HighResolution_362966401_363225601_4FGL_J1223.9+5000_daily_bin477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-05', job_status='DONE', photon_flux_upper_limit='4.51e-08', time_completed='2021-09-05 12:07:55.462285', job_id='567953', GAL2='1.38', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630868875.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='4.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='477' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:07:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 567953: <4FGL_J1223.9+5000_daily_bin477> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin477> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:51:33 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:51: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 11:51:35 2021
Terminated at Sun Sep  5 12:07:56 2021
Results reported at Sun Sep  5 12:07:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin477 185.988 50.0089 362966401 363225601 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 :                                   860.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             300.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

