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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin443
RA = 185.883, Dec = 8.3017
tmin = 354153601, tmax = 354412801
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='546227', job_status='RUN', time_executed='2021-09-05 10:47:54.881912', time_epoch_executed='1630864074.88' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546227/ft1_4FGL_J1223.5+0818_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546227/ft2_4FGL_J1223.5+0818_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546227/ft1_4FGL_J1223.5+0818_daily_bin443.fits outfile=/scratch/kocevski/546227/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin443.fits ra=185.883 dec=8.3017 rad=12.0 tmin=354153601.0 tmax=354412801.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 4.05
user 3.69
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546227/ft2_4FGL_J1223.5+0818_daily_bin443.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/546227/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin443.fits evtable="EVENTS" outfile="/scratch/kocevski/546227/ft1_filtered_4FGL_J1223.5+0818_daily_bin443.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546227/ft1_filtered_4FGL_J1223.5+0818_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/546227/ft2_4FGL_J1223.5+0818_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/546227/ltcube_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.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/546227/ft2_4FGL_J1223.5+0818_daily_bin443.fits
.....................!
real 12.58
user 11.74
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546227/ft1_filtered_4FGL_J1223.5+0818_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/546227/ft2_4FGL_J1223.5+0818_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/546227/ltcube_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.fits outfile=/scratch/kocevski/546227/expmap_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.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/546227/ltcube_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.fits
.....................!
real 192.71
user 185.03
sys 6.48

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/546227/ft1_filtered_4FGL_J1223.5+0818_daily_bin443.fits scfile=/scratch/kocevski/546227/ft2_4FGL_J1223.5+0818_daily_bin443.fits outfile=/scratch/kocevski/546227/cmap_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546227/ft1_filtered_4FGL_J1223.5+0818_daily_bin443.fits scfile=/scratch/kocevski/546227/ft2_4FGL_J1223.5+0818_daily_bin443.fits outfile=/scratch/kocevski/546227/cmap_HighResolution_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546227/ft1_filtered_4FGL_J1223.5+0818_daily_bin443.fits', '/scratch/kocevski/546227/ft2_4FGL_J1223.5+0818_daily_bin443.fits', expMap='/scratch/kocevski/546227/expmap_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.fits', expCube='/scratch/kocevski/546227/ltcube_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546227/Model_4FGL_J1223.5+0818_daily_bin443.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/546227/ft1_filtered_4FGL_J1223.5+0818_daily_bin443.fits
Spacecraft file(s): /scratch/kocevski/546227/ft2_4FGL_J1223.5+0818_daily_bin443.fits
Exposure map: /scratch/kocevski/546227/expmap_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.fits
Exposure cube: /scratch/kocevski/546227/ltcube_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546227/Model_4FGL_J1223.5+0818_daily_bin443.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) = 6103.23497665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5734       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.046       1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.902       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.523       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1518       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    44.520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7547       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0406       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.276       1.0000         .10000E-03   10000.    
    22 'norm      '    7.9342       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0291       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8605       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.7132       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.4923       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0757       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96962       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=   6103.183     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3756 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.141        .51100E-07** at limit **
   2  Prefactor     .10000E-03    35.996       -.27335E-05** at limit **
   3  Prefactor     .43338        4.5779        .11650E-06   -.14530E-03
   4  Prefactor     3.0976        9.8658        .34415E-05   -.88063E-05
   5  Prefactor     1.5730        26.838        .13173E-04   -.99247E-05
   6  Prefactor     15.030        57.663        .39688E-06   -.88751E-05
   7  Prefactor     61.861        56.777        .32105E-05    .19824E-04
   8  Prefactor     .10000E-03    19.761       -.88142E-06** at limit **
   9  Prefactor     .10000E-03    2.3855       -.13067E-06** at limit **
  10  Prefactor     .10000E-03    1.9063       -.80758E-07** at limit **
  11  Prefactor     .10000E-03    14.921        .11901E-06** at limit **
  12  Prefactor     16.523        13.901        .24126E-06    .18649E-04
  13  norm          .10000E-03    1.3745       -.11999E-07** at limit **
  14  norm          5.1567        5.6227       -.16395E-05   -.42603E-04
  15  Prefactor     .10000E-03    25.251       -.58820E-06** at limit **
  16  norm          44.330        72.740        .18695E-04    .59947E-05
  17  Prefactor     .10000E-03    64.167        .20045E-05** at limit **
  18  norm          2.7541        .86728       -.11895E-06    .99300E-03
  19  Prefactor     8.0458        10.630        .77232E-06   -.31834E-04
  20  Prefactor     .10000E-03    41.173        .20359E-05** at limit **
  21  Prefactor     11.278        9.8175       -.10243E-06   -.34590E-05
  22  norm          7.9338        2.7073        .12980E-06    .82174E-04
  23  Prefactor     3.0184        13.390        .52801E-05    .17095E-04
  24  Prefactor     4.7337        36.868       -.67921E-05   -.93014E-05
  25  Prefactor     .10000E-03    22.696        .18738E-05** at limit **
  26  Prefactor     4.7153        14.219        .75053E-06   -.97786E-05
  27  Prefactor     8.4774        17.669        .65140E-06   -.76862E-05
  28  Normalizat    1.0758        .22684       -.30071E-05    .25413E-04
  29  Prefactor     .96969        .18712        .48990E-06   -.20621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.433382
  Prefactor  = 3.09764
  Prefactor  = 1.57301
  Prefactor  = 15.03
  Prefactor  = 61.8608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5228
  norm       = 0.0001
  norm       = 5.15674
  Prefactor  = 0.0001
  norm       = 44.33
  Prefactor  = 0.0001
  norm       = 2.75409
  Prefactor  = 8.04577
  Prefactor  = 0.0001
  Prefactor  = 11.278
  norm       = 7.93381
  Prefactor  = 3.01844
  Prefactor  = 4.73365
  Prefactor  = 0.0001
  Prefactor  = 4.71527
  Prefactor  = 8.47737
  Normalizat = 1.07577
  Prefactor  = 0.969687
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.183     FROM HESSE     STATUS=OK           561 CALLS     4317 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43338        11.049        .32342E-02   -1.5576    
   4  Prefactor     3.0976        9.8400        .11521E-02   -1.5356    
   5  Prefactor     1.5730        26.902        .16941E-02   -1.5457    
   6  Prefactor     15.030        57.481        .10326E-03   -1.4932    
   7  Prefactor     61.861        56.871        .51000E-04   -1.4133    
   8  Prefactor     .10000E-03    19.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4555        .23528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9607        .21041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.523        13.838        .49266E-03   -1.4895    
  13  norm          .10000E-03    1.3858        .89031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1567        5.6216        .72465E-03   -1.5254    
  15  Prefactor     .10000E-03    25.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          44.330        72.972        .30043E-03   -1.4375    
  17  Prefactor     .10000E-03    64.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7541        .86726        .35503E-04   -1.5376    
  19  Prefactor     8.0458        10.618        .70698E-03   -1.5141    
  20  Prefactor     .10000E-03    41.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.278        9.8097        .11931E-03   -1.5036    
  22  norm          7.9338        2.7052        .69449E-04   -1.5145    
  23  Prefactor     3.0184        13.377        .11658E-02   -1.5360    
  24  Prefactor     4.7337        36.799        .18246E-03   -1.5273    
  25  Prefactor     .10000E-03    22.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.7153        14.113        .18535E-03   -1.5274    
  27  Prefactor     8.4774        17.579        .13756E-03   -1.5126    
  28  Normalizat    1.0758        .26617        .29470E-03   -.90534    
  29  Prefactor     .96969        .22116        .26416E-03   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05798e-08
Minuit parameter uncertainties:
  1  3.40731e-06
  2  4.14727e-05
  3  4.37683
  4  9.84515
  5  13.0167
  6  57.6939
  7  56.921
  8  1.28375e-05
  9  3.33698e-06
  10  1.90922e-06
  11  3.81919e-06
  12  13.8406
  13  1.97492e-06
  14  5.62215
  15  6.0849e-06
  16  73.1193
  17  2.47948e-05
  18  0.86726
  19  10.6208
  20  1.9034e-06
  21  9.81111
  22  2.70522
  23  12.7132
  24  26.4188
  25  1.12093e-05
  26  14.1234
  27  17.5897
  28  0.2665
  29  0.221368
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  6.085e-06  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:  9.697e-01  2.214e-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.076e+00  2.665e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546227/likelihoodResults_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.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) = 6103.18279317
delta logL = -0.000187948471648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6103.18260542
delta logL = -2.03413037525e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0824       1.0000          .0000       10.000    
     3 'Normalizat'    1.0758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96969       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=   6103.183     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9776        .90712E-02** at limit **
   2  Index         2.0606        8.6933        .50000        .70329E-05
   3  Normalizat    1.0758        .33032E-02    .66615E-01    .28680E-04
   4  Prefactor     .96969        .28410E-02    .45887E-01    .38984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.06064
  Normalizat = 1.07577
  Prefactor  = 0.969688
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.183     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0606        8.7956        .50000       -.62843    
   3  Normalizat    1.0758        .98964E-02    .29470E-03   -.90534    
   4  Prefactor     .96969        .85184E-02    .26415E-03   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.80194e-08
Minuit parameter uncertainties:
  1  0.000617357
  2  119.693
  3  0.00989643
  4  0.00851846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546227': 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) = 6103.18260538
delta logL = -1.58659531735e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  6.174e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.061e+00  1.197e+02  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:  9.697e-01  8.518e-03  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.076e+00  9.896e-03  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/546227/cmap_HighResolution_354153601_354412801_4FGL_J1223.5+0818_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-05 11:01:44.811404', job_id='546227', GAL2='0.97', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630864904.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='443' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 546227: <4FGL_J1223.5+0818_daily_bin443> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin443> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:45:29 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:45:30 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:45:30 2021
Terminated at Sun Sep  5 11:01:45 2021
Results reported at Sun Sep  5 11:01:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin443 185.883 8.3017 354153601 354412801 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 :                                   823.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

