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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1084
RA = 185.988, Dec = 50.0089
tmin = 520300801, tmax = 520560001
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='573967', job_status='RUN', time_executed='2021-09-05 12:08:08.418632', time_epoch_executed='1630868888.42' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573967/ft1_4FGL_J1223.9+5000_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573967/ft2_4FGL_J1223.9+5000_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573967/ft1_4FGL_J1223.9+5000_daily_bin1084.fits outfile=/scratch/kocevski/573967/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1084.fits ra=185.988 dec=50.0089 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.07
user 5.76
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573967/ft1_filtered_4FGL_J1223.9+5000_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/573967/ft2_4FGL_J1223.9+5000_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/573967/ltcube_520300801_520560001_4FGL_J1223.9+5000_daily_bin1084.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/573967/ft2_4FGL_J1223.9+5000_daily_bin1084.fits
.....................!
real 11.90
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573967/ft1_filtered_4FGL_J1223.9+5000_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/573967/ft2_4FGL_J1223.9+5000_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/573967/ltcube_520300801_520560001_4FGL_J1223.9+5000_daily_bin1084.fits outfile=/scratch/kocevski/573967/expmap_520300801_520560001_4FGL_J1223.9+5000_daily_bin1084.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/573967/ltcube_520300801_520560001_4FGL_J1223.9+5000_daily_bin1084.fits
.....................!
real 193.42
user 188.12
sys 4.95

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/573967/ft1_filtered_4FGL_J1223.9+5000_daily_bin1084.fits scfile=/scratch/kocevski/573967/ft2_4FGL_J1223.9+5000_daily_bin1084.fits outfile=/scratch/kocevski/573967/cmap_520300801_520560001_4FGL_J1223.9+5000_daily_bin1084.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573967/ft1_filtered_4FGL_J1223.9+5000_daily_bin1084.fits scfile=/scratch/kocevski/573967/ft2_4FGL_J1223.9+5000_daily_bin1084.fits outfile=/scratch/kocevski/573967/cmap_HighResolution_520300801_520560001_4FGL_J1223.9+5000_daily_bin1084.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/573967/ft1_filtered_4FGL_J1223.9+5000_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/573967/ft2_4FGL_J1223.9+5000_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573967/Model_4FGL_J1223.9+5000_daily_bin1084.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/573967/ft1_filtered_4FGL_J1223.9+5000_daily_bin1084.fits.....................!
real 36.27
user 34.99
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10655E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0756       1.0000         .10000E-03   10000.    
     5 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1242       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.104       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20245E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    10.228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.721       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9034       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.763       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.167       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2069       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    29.378       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    81.185       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8975       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0893       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69142       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=   3461.074     FROM MIGRAD    STATUS=CONVERGED   1328 CALLS     4297 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.672        .18142E-02** at limit **
   2  norm          .10000E-03    23.082        .18142E-02** at limit **
   3  Prefactor     .10000E-03    3.3029        .10367E-02** at limit **
   4  norm          3.0767        1.8573        .59630E-04    .27645E-05
   5  norm          .10000E-03    5.5809        .13566E-02** at limit **
   6  Prefactor     1.1238        3.2428        .17177E-03    .23363E-04
   7  Prefactor     56.948        44.988        .53087E-04   -.66387E-06
   8  norm          .10000E-03    1.5276        .70939E-03** at limit **
   9  Prefactor     .10000E-03    8.1832        .16430E-02** at limit **
  10  Prefactor     .10000E-03    5.6440        .13595E-02** at limit **
  11  Prefactor     .10000E-03    31.875        .84852E-01** at limit **
  12  norm          10.229        3.6103        .62912E-04    .73367E-04
  13  Prefactor     58.759        84.041        .52355E-04    .16004E-04
  14  norm          1.9017        5.2714        .21168E-03    .50377E-04
  15  Prefactor     14.770        27.560        .10424E-03   -.18104E-04
  16  Prefactor     .10000E-03    1.9767        .80764E-03** at limit **
  17  norm          .10000E-03    .86045        .53261E-03** at limit **
  18  Prefactor     48.183        35.848        .57778E-04   -.36048E-04
  19  norm          4.5247        3.0216        .81320E-04   -.25584E-04
  20  Prefactor     5.0876        242.83        .17616E-03   -.66794E-05
  21  Prefactor     .10000E-03    8.1568        .16390E-02** at limit **
  22  norm          29.389        25.051        .73918E-04   -.90728E-04
  23  norm          .10000E-03    2.5359        .91235E-03** at limit **
  24  Prefactor     .10000E-03    28.978        .18142E-02** at limit **
  25  Prefactor     81.055        71.407        .22288E-03    .31140E-04
  26  Prefactor     .10001E-03    209.07        .18142E-02** at limit **
  27  norm          1.8972        30.961        .15099E-02    .38770E-04
  28  Normalizat    1.0890        .24553        .20968E-03   -.67573E-04
  29  Prefactor     .69193        .28518        .31288E-03    .47600E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07668
  norm       = 0.0001
  Prefactor  = 1.12377
  Prefactor  = 56.9478
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.229
  Prefactor  = 58.7591
  norm       = 1.90165
  Prefactor  = 14.7696
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.1833
  norm       = 4.52467
  Prefactor  = 5.08756
  Prefactor  = 0.0001
  norm       = 29.3894
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.055
  Prefactor  = 0.000100009
  norm       = 1.89716
  Normalizat = 1.08904
  Prefactor  = 0.691932
 **********
 **   18 **HESSE 
 **********

 FCN=   3461.074     FROM HESSE     STATUS=OK           535 CALLS     4832 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.672        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    23.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3035        .20734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0767        1.8573        .23852E-05   -1.5357    
   5  norm          .10000E-03    5.5811        .27133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1238        3.2423        .68708E-05   -1.5496    
   7  Prefactor     56.948        44.987        .10617E-04   -1.4197    
   8  norm          .10000E-03    1.5276        .14188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1834        .32861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.6445        .27191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.664        .91781E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.229        3.6104        .25165E-05   -1.5068    
  13  Prefactor     58.759        83.916        .10471E-04   -1.4173    
  14  norm          1.9017        5.2706        .84673E-05   -1.5432    
  15  Prefactor     14.770        27.556        .41696E-05   -1.4939    
  16  Prefactor     .10000E-03    1.9767        .16153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .86045        .10652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.183        35.847        .11556E-04   -1.4319    
  19  norm          4.5247        3.0216        .32528E-05   -1.5283    
  20  Prefactor     5.0876        242.75        .70465E-05   -1.5257    
  21  Prefactor     .10000E-03    8.1575        .32781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          29.389        25.050        .14784E-04   -1.4623    
  23  norm          .10000E-03    2.5360        .18247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     81.055        69.872        .89152E-05   -1.3905    
  26  Prefactor     .10001E-03    209.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8972        29.629        .60395E-04   -1.5432    
  28  Normalizat    1.0890        .24571        .41936E-04   -.90105    
  29  Prefactor     .69193        .28539        .12515E-04   -1.0384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41044e-10
Minuit parameter uncertainties:
  1  7.40547e-06
  2  1.29567e-06
  3  2.73213e-06
  4  1.85734
  5  2.45106e-06
  6  3.24278
  7  45.0142
  8  9.60322e-07
  9  7.63121e-07
  10  2.76319e-06
  11  0.000127207
  12  3.61048
  13  84.0853
  14  5.27185
  15  27.5796
  16  1.4962e-06
  17  5.5421e-07
  18  35.863
  19  3.0217
  20  70.5906
  21  1.27691e-05
  22  25.0594
  23  2.12739e-05
  24  0.000183053
  25  69.9424
  26  0.00275738
  27  15.0032
  28  0.245969
  29  0.285995
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.902e+00  5.272e+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:  6.919e-01  2.860e-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.089e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/573967/likelihoodResults_520300801_520560001_4FGL_J1223.9+5000_daily_bin1084.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) = 3461.01962967
delta logL = 0.0548462477077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3461.01629209
delta logL = 0.0581838240455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5477       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1823       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69651       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=   3461.016     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5565        200.14        .85618E-02    .21272E-03
   2  alpha         3.1898        3.4148        .43279        .12147E-04
   3  Normalizat    1.0815        .69143E-01    .38797E-01   -.16659E-04
   4  Prefactor     .69670        .78632E-01    .70458E-01   -.40562E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55649
  alpha      = 3.18983
  Normalizat = 1.08145
  Prefactor  = 0.696704
 **********
 **   18 **HESSE 
 **********

 FCN=   3461.016     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5565        4.7332        .15217E-03   -1.5458    
   2  alpha         3.1898        3.7272        .37658E-01    .27956    
   3  Normalizat    1.0815        .23539        .21026E-03   -.90350    
   4  Prefactor     .69670        .28450        .31182E-03   -1.0366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61867e-11
Minuit parameter uncertainties:
  1  4.73432
  2  2.55464
  3  0.235614
  4  0.285094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573967': 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) = 3461.01627281
delta logL = 0.0582031072831

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.556e+00  4.734e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  3.190e+00  2.555e+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:  6.967e-01  2.851e-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.081e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/573967/cmap_HighResolution_520300801_520560001_4FGL_J1223.9+5000_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-05 12:20:24.028373', job_id='573967', GAL2='0.70', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1630869624.03', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='5.82e-02', ts2='0.30', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1084' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:20:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 573967: <4FGL_J1223.9+5000_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1084> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:42 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05:44 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:44 2021
Terminated at Sun Sep  5 12:20:24 2021
Results reported at Sun Sep  5 12:20:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1084 185.988 50.0089 520300801 520560001 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 :                                   709.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

