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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1596
RA = 185.988, Dec = 50.0089
tmin = 653011201, tmax = 653270401
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='302888', job_status='RUN', time_executed='2021-09-14 00:31:57.365175', time_epoch_executed='1631604717.37' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302888/ft1_4FGL_J1223.9+5000_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302888/ft2_4FGL_J1223.9+5000_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302888/ft1_4FGL_J1223.9+5000_daily_bin1596.fits outfile=/scratch/kocevski/302888/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1596.fits ra=185.988 dec=50.0089 rad=12.0 tmin=653011201.0 tmax=653270401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.16
user 2.92
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302888/ft1_filtered_4FGL_J1223.9+5000_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/302888/ft2_4FGL_J1223.9+5000_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/302888/ltcube_653011201_653270401_4FGL_J1223.9+5000_daily_bin1596.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/302888/ft2_4FGL_J1223.9+5000_daily_bin1596.fits
.....................!
real 16.18
user 15.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302888/ft1_filtered_4FGL_J1223.9+5000_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/302888/ft2_4FGL_J1223.9+5000_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/302888/ltcube_653011201_653270401_4FGL_J1223.9+5000_daily_bin1596.fits outfile=/scratch/kocevski/302888/expmap_653011201_653270401_4FGL_J1223.9+5000_daily_bin1596.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/302888/ltcube_653011201_653270401_4FGL_J1223.9+5000_daily_bin1596.fits
.....................!
real 192.58
user 187.67
sys 4.25

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/302888/ft1_filtered_4FGL_J1223.9+5000_daily_bin1596.fits scfile=/scratch/kocevski/302888/ft2_4FGL_J1223.9+5000_daily_bin1596.fits outfile=/scratch/kocevski/302888/cmap_653011201_653270401_4FGL_J1223.9+5000_daily_bin1596.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302888/ft1_filtered_4FGL_J1223.9+5000_daily_bin1596.fits scfile=/scratch/kocevski/302888/ft2_4FGL_J1223.9+5000_daily_bin1596.fits outfile=/scratch/kocevski/302888/cmap_HighResolution_653011201_653270401_4FGL_J1223.9+5000_daily_bin1596.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    147.91       1.0000         .10000E-03   10000.    
     4 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .73370       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.501       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.5145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.7987       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1236       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9903       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.3364       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86865       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73421       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=   2237.645     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3714 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    727.00        .18339E-03** at limit **
   2  norm          .10000E-03    1302.4       -.47783E-03** at limit **
   3  Prefactor     147.96        97.043        .16108E-04    .32545E-04
   4  norm          .10000E-03    63.173        .14462E-04** at limit **
   5  norm          .10000E-03    37.723        .69740E-05** at limit **
   6  Prefactor     .10000E-03    3.9284        .18070E-07** at limit **
   7  Prefactor     .10000E-03    188.25       -.36325E-05** at limit **
   8  norm          .10000E-03    8.4808        .87977E-07** at limit **
   9  Prefactor     .10000E-03    39.588       -.92714E-05** at limit **
  10  Prefactor     4.6846        9.8271       -.80431E-05   -.12077E-03
  11  Prefactor     .10000E-03    10.605        .16221E-06** at limit **
  12  norm          .73550        2.5869       -.96621E-06   -.66103E-03
  13  Prefactor     .10000E-03    23.348       -.24591E-05** at limit **
  14  norm          .10000E-03    13.791        .38605E-06** at limit **
  15  Prefactor     21.523        46.413       -.13181E-04    .42733E-04
  16  Prefactor     .10000E-03    2.6090       -.20338E-07** at limit **
  17  norm          9.5145        3.7213       -.52104E-07    .73676E-04
  18  Prefactor     .10000E-03    66.484       -.12678E-04** at limit **
  19  norm          6.7992        3.5689       -.35445E-07    .83828E-04
  20  Prefactor     .10000E-03    47.946        .91508E-06** at limit **
  21  Prefactor     8.1272        12.515       -.78446E-06   -.53892E-04
  22  norm          .10000E-03    11.431        .11593E-05** at limit **
  23  norm          2.9911        5.0365       -.42537E-06   -.14508E-03
  24  Prefactor     .10000E-03    23.140        .58557E-06** at limit **
  25  Prefactor     .10000E-03    24.731        .13592E-05** at limit **
  26  Prefactor     .10000E-03    11.378       -.11686E-05** at limit **
  27  norm          7.3370        4.8592       -.18716E-06   -.79637E-04
  28  Normalizat    .86809        .26411        .15648E-05    .45192E-04
  29  Prefactor     .73481        .30843        .14504E-05    .36121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 147.958
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68461
  Prefactor  = 0.0001
  norm       = 0.735498
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 21.5235
  Prefactor  = 0.0001
  norm       = 9.51455
  Prefactor  = 0.000100002
  norm       = 6.79916
  Prefactor  = 0.0001
  Prefactor  = 8.12724
  norm       = 0.0001
  norm       = 2.99114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.33696
  Normalizat = 0.868093
  Prefactor  = 0.73481
 **********
 **   18 **HESSE 
 **********

 FCN=   2237.645     FROM HESSE     STATUS=OK           543 CALLS     4257 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    726.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1300.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     147.96        97.181        .16568E-03   -1.3269    
   4  norm          .10000E-03    63.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    37.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9299        .91570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    188.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.5547        .13423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6846        9.8132        .18603E-03   -1.5275    
  11  Prefactor     .10000E-03    10.606        .15046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73550        2.4163        .13589E-02   -1.5536    
  13  Prefactor     .10000E-03    23.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.965        .17134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.523        46.844        .86380E-04   -1.4780    
  16  Prefactor     .10000E-03    2.6163        .74595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.5145        3.7194        .53059E-04   -1.5091    
  18  Prefactor     .10000E-03    66.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.7992        3.5698        .61718E-04   -1.5186    
  20  Prefactor     .10000E-03    47.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1272        12.562        .14067E-03   -1.5138    
  22  norm          .10000E-03    11.449        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9911        5.0213        .12878E-03   -1.5362    
  24  Prefactor     .10000E-03    23.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.380        .15586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.3370        4.8484        .80704E-04   -1.5166    
  28  Normalizat    .86809        .31584        .22151E-03   -.97591    
  29  Prefactor     .73481        .36490        .29729E-03   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67078e-10
Minuit parameter uncertainties:
  1  6.39159e-06
  2  3.14527e-05
  3  97.2863
  4  3.7297e-05
  5  6.78728e-07
  6  2.78687e-06
  7  1.07091e-05
  8  3.3949e-05
  9  3.71887e-05
  10  9.8166
  11  3.74759e-05
  12  2.41666
  13  9.21903e-06
  14  0.000167932
  15  46.9244
  16  1.96479e-06
  17  3.71954
  18  0.000702086
  19  3.5699
  20  2.69106e-05
  21  12.5659
  22  1.08806e-05
  23  5.02199
  24  3.3842e-06
  25  2.19283e-05
  26  1.19706e-06
  27  4.84871
  28  0.316517
  29  0.3661
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  1.679e-04  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:  7.348e-01  3.661e-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.681e-01  3.165e-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: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302888/likelihoodResults_653011201_653270401_4FGL_J1223.9+5000_daily_bin1596.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) = 2237.6454545
delta logL = -0.000341154982834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2237.64511661
delta logL = -3.26937015416e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15598E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4503       1.0000          .0000       5.0000    
     3 'Normalizat'    .86763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73543       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.

 FCN=   2237.645     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    16.437        .90712E-02** at limit **
   2  alpha         2.4808        3.5832        .41162       -.10908E-04
   3  Normalizat    .86809        .24257        .44487E-01    .62350E-04
   4  Prefactor     .73481        .30283        .67192E-01    .43280E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  alpha      = 2.48081
  Normalizat = 0.868093
  Prefactor  = 0.73481
 **********
 **   18 **HESSE 
 **********

 FCN=   2237.645     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    15.096        .17785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4808        3.5496        .50000       -.76761E-02
   3  Normalizat    .86809        .28442        .22151E-03   -.97591    
   4  Prefactor     .73481        .35460        .29729E-03   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07559e-09
Minuit parameter uncertainties:
  1  0.000957734
  2  2.50808
  3  0.284908
  4  0.355696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302888': 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) = 2237.64511308
delta logL = 2.66740698862e-07

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.000e-04  9.577e-04  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.481e+00  2.508e+00  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:  7.348e-01  3.557e-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.681e-01  2.849e-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/302888/cmap_HighResolution_653011201_653270401_4FGL_J1223.9+5000_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-05', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-14 00:41:07.841130', job_id='302888', GAL2='0.73', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631605267.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1596' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:41:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 302888: <4FGL_J1223.9+5000_daily_bin1596> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1596> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 00:25:34 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:28:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:28:40 2021
Terminated at Tue Sep 14 00:41:08 2021
Results reported at Tue Sep 14 00:41:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1596 185.988 50.0089 653011201 653270401 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 :                                   552.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            934 sec.

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

