/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 125 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin199
RA = 185.883, Dec = 8.3017
tmin = 290908801, tmax = 291168001
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='544697', job_status='RUN', time_executed='2021-09-05 10:42:45.797659', time_epoch_executed='1630863765.8' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544697/ft1_4FGL_J1223.5+0818_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544697/ft1_4FGL_J1223.5+0818_daily_bin199.fits outfile=/scratch/kocevski/544697/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin199.fits ra=185.883 dec=8.3017 rad=12.0 tmin=290908801.0 tmax=291168001.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.45
user 3.22
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.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/544697/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/544697/ltcube_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.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/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits
.....................!
real 11.81
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/544697/ltcube_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.fits outfile=/scratch/kocevski/544697/expmap_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.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/544697/ltcube_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.fits
.....................!
real 192.89
user 187.73
sys 4.76

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.fits scfile=/scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits outfile=/scratch/kocevski/544697/cmap_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.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.883 yref=8.3017 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.fits scfile=/scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits outfile=/scratch/kocevski/544697/cmap_HighResolution_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.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.883 yref=8.3017 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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544697/Model_4FGL_J1223.5+0818_daily_bin199.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/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.fits.....................!
real 55.20
user 53.16
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.fits', '/scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits', expMap='/scratch/kocevski/544697/expmap_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.fits', expCube='/scratch/kocevski/544697/ltcube_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/544697/Model_4FGL_J1223.5+0818_daily_bin199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/544697/ft1_filtered_4FGL_J1223.5+0818_daily_bin199.fits
Spacecraft file(s): /scratch/kocevski/544697/ft2_4FGL_J1223.5+0818_daily_bin199.fits
Exposure map: /scratch/kocevski/544697/expmap_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.fits
Exposure cube: /scratch/kocevski/544697/ltcube_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/544697/Model_4FGL_J1223.5+0818_daily_bin199.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) = 5819.212041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9890       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .40862E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.0340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34427       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.056       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1846       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.541       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.558       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.772       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4595       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5819.102     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3136 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.658       -.16158E-06** at limit **
   2  Prefactor     .10000E-03    83.353       -.44751E-07** at limit **
   3  Prefactor     .10000E-03    10.978        .45192E-05** at limit **
   4  Prefactor     11.709        8.7615        .64439E-07   -.50588E-04
   5  Prefactor     .10000E-03    7.0078        .17123E-05** at limit **
   6  Prefactor     23.753        83.881        .19539E-05    .14705E-04
   7  Prefactor     .10000E-03    34.973       -.43717E-06** at limit **
   8  Prefactor     .10000E-03    6.7701       -.71219E-07** at limit **
   9  Prefactor     .10000E-03    .95007       -.52580E-07** at limit **
  10  Prefactor     1.9011        1.9835        .10307E-06    .16789E-04
  11  Prefactor     .10000E-03    23.090       -.80347E-07** at limit **
  12  Prefactor     6.9897        8.2349        .61850E-06    .15650E-03
  13  norm          .10000E-03    1.3525       -.16866E-06** at limit **
  14  norm          .10069E-03    2.3031        .70819E-06** at limit **
  15  Prefactor     .10000E-03    14.825       -.93665E-07** at limit **
  16  norm          .10000E-03    22.048       -.15992E-07** at limit **
  17  Prefactor     .10000E-03    66.064        .17501E-06** at limit **
  18  norm          9.0343        1.1354        .63417E-07   -.12239E-02
  19  Prefactor     .38761        8.8995        .21640E-05   -.44766E-03
  20  Prefactor     .10000E-03    16.400       -.27850E-06** at limit **
  21  Prefactor     10.056        9.3866       -.69172E-07   -.12442E-04
  22  norm          1.1846        1.1919        .44877E-09   -.11435E-03
  23  Prefactor     14.541        12.808        .25494E-07   -.55093E-06
  24  Prefactor     .10000E-03    9.9722       -.70759E-07** at limit **
  25  Prefactor     15.554        33.478        .43433E-06    .67129E-05
  26  Prefactor     .10000E-03    16.420       -.84685E-06** at limit **
  27  Prefactor     13.774        13.938        .47448E-06    .23076E-04
  28  Normalizat    1.4592        .22412       -.34128E-05   -.17208E-03
  29  Prefactor     .53073        .18126        .41958E-05   -.13094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 11.7091
  Prefactor  = 0.0001
  Prefactor  = 23.7529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90111
  Prefactor  = 0.0001
  Prefactor  = 6.98972
  norm       = 0.0001
  norm       = 0.000100695
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.03434
  Prefactor  = 0.387607
  Prefactor  = 0.0001
  Prefactor  = 10.0561
  norm       = 1.18464
  Prefactor  = 14.5409
  Prefactor  = 0.0001
  Prefactor  = 15.5535
  Prefactor  = 0.0001
  Prefactor  = 13.7737
  Normalizat = 1.45923
  Prefactor  = 0.530734
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.102     FROM HESSE     STATUS=OK           551 CALLS     3687 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    83.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.709        8.7659        .11708E-03   -1.5023    
   5  Prefactor     .10000E-03    7.1056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.753        83.730        .82367E-04   -1.4733    
   7  Prefactor     .10000E-03    35.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .96024        .72566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9011        1.9798        .10614E-03   -1.5432    
  11  Prefactor     .10000E-03    23.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9897        8.2560        .75875E-03   -1.5179    
  13  norm          .10000E-03    1.3716        .86612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10069E-03    54.601        .19870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    66.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.0343        1.0916        .25944E-04   -1.5107    
  19  Prefactor     .38761        37.631        .38787E-02   -1.5583    
  20  Prefactor     .10000E-03    16.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.056        9.3842        .12636E-03   -1.5074    
  22  norm          1.1846        1.1851        .80450E-04   -1.5490    
  23  Prefactor     14.541        12.799        .10504E-03   -1.4945    
  24  Prefactor     .10000E-03    9.9748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.554        33.464        .10154E-03   -1.4919    
  26  Prefactor     .10000E-03    16.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.774        13.945        .10793E-03   -1.4966    
  28  Normalizat    1.4592        .24166        .24476E-03   -.78931    
  29  Prefactor     .53073        .19754        .32354E-03   -1.1059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45904e-08
Minuit parameter uncertainties:
  1  2.6032e-05
  2  0.000167038
  3  0.000378591
  4  8.76686
  5  0.000111053
  6  84.1484
  7  0.00012375
  8  5.32345e-06
  9  4.98072e-07
  10  1.97987
  11  3.14225e-05
  12  8.25736
  13  8.1442e-06
  14  0.0123293
  15  2.83678e-05
  16  8.54011e-06
  17  0.000170113
  18  1.09156
  19  7.64228
  20  4.46018e-05
  21  9.38557
  22  1.18509
  23  12.8015
  24  9.2149e-06
  25  33.5042
  26  8.34424e-05
  27  13.9478
  28  0.241849
  29  0.1978
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.837e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  5.307e-01  1.978e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.459e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 5.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544697/likelihoodResults_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.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): 102
logL (Free Index) = 5819.10273555
delta logL = -0.000319674108141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5819.10241609
delta logL = -2.185406629e-07

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 'Index     '    2.0227       1.0000          .0000       10.000    
     3 'Normalizat'    1.4592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5819.102     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    286.69        .90712E-02** at limit **
   2  Index         2.0065        8.7183        .50000        .91094E-05
   3  Normalizat    1.4592        .23990E-01    .55358E-01   -.13206E-03
   4  Prefactor     .53073        .20197E-01    .73068E-01   -.16644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.00651
  Normalizat = 1.45923
  Prefactor  = 0.530732
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.102     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      272 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1015.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0065        6.1963        .50000       -.64187    
   3  Normalizat    1.4592        .49041E-01    .24477E-03   -.78931    
   4  Prefactor     .53073        .41202E-01    .32353E-03   -1.1059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.65776e-09
Minuit parameter uncertainties:
  1  0.00468635
  2  34.692
  3  0.0490424
  4  0.0412045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544697': 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): 102
logL (Free Index) = 5819.10241606
delta logL = -1.79022208613e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.686e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.007e+00  3.469e+01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  5.307e-01  4.120e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.459e+00  4.904e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.883 8.302

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/544697/cmap_HighResolution_290908801_291168001_4FGL_J1223.5+0818_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-05 10:55:49.832056', job_id='544697', GAL2='0.53', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630864549.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='-1.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='199' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 544697: <4FGL_J1223.5+0818_daily_bin199> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin199> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:40:29 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:40:31 2021
Terminated at Sun Sep  5 10:55:50 2021
Results reported at Sun Sep  5 10:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin199 185.883 8.3017 290908801 291168001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

