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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin569
RA = 185.883, Dec = 8.3017
tmin = 386812801, tmax = 387072001
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='546491', job_status='RUN', time_executed='2021-09-05 10:47:59.601256', time_epoch_executed='1630864079.6' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546491/ft1_4FGL_J1223.5+0818_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546491/ft2_4FGL_J1223.5+0818_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546491/ft1_4FGL_J1223.5+0818_daily_bin569.fits outfile=/scratch/kocevski/546491/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin569.fits ra=185.883 dec=8.3017 rad=12.0 tmin=386812801.0 tmax=387072001.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.52
user 3.19
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546491/ft1_filtered_4FGL_J1223.5+0818_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/546491/ft2_4FGL_J1223.5+0818_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/546491/ltcube_386812801_387072001_4FGL_J1223.5+0818_daily_bin569.fits outfile=/scratch/kocevski/546491/expmap_386812801_387072001_4FGL_J1223.5+0818_daily_bin569.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/546491/ltcube_386812801_387072001_4FGL_J1223.5+0818_daily_bin569.fits
.....................!
real 192.09
user 185.75
sys 4.60

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/546491/ft1_filtered_4FGL_J1223.5+0818_daily_bin569.fits scfile=/scratch/kocevski/546491/ft2_4FGL_J1223.5+0818_daily_bin569.fits outfile=/scratch/kocevski/546491/cmap_386812801_387072001_4FGL_J1223.5+0818_daily_bin569.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546491/ft1_filtered_4FGL_J1223.5+0818_daily_bin569.fits scfile=/scratch/kocevski/546491/ft2_4FGL_J1223.5+0818_daily_bin569.fits outfile=/scratch/kocevski/546491/cmap_HighResolution_386812801_387072001_4FGL_J1223.5+0818_daily_bin569.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    98.775       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .83239E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9896       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.889       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3763       1.0000         .10000E-03   10000.    
    14 'norm      '    .12450E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.843       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8444       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.868       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.618       1.0000         .10000E-03   10000.    
    22 'norm      '    8.0385       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1188       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1281       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78361       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=   5476.656     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3714 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.604        .44102E-05** at limit **
   2  Prefactor     .10000E-03    77.913        .52000E-04** at limit **
   3  Prefactor     .10000E-03    6.7593       -.22589E-06** at limit **
   4  Prefactor     9.6259        8.6749        .43699E-06   -.48281E-04
   5  Prefactor     .10000E-03    12.182        .14683E-06** at limit **
   6  Prefactor     98.797        91.723        .18952E-04   -.58942E-05
   7  Prefactor     .10000E-03    24.036        .14819E-04** at limit **
   8  Prefactor     18.360        33.207       -.77817E-05   -.35067E-05
   9  Prefactor     .10062E-03    1.2402        .14562E-06** at limit **
  10  Prefactor     .10000E-03    1.7505       -.24205E-06** at limit **
  11  Prefactor     2.9941        65.773        .88737E-05    .40592E-04
  12  Prefactor     11.889        15.189        .10013E-05    .51795E-04
  13  norm          2.3767        4.2057       -.49136E-07   -.44640E-03
  14  norm          .10047E-03    1.9709       -.10588E-05** at limit **
  15  Prefactor     33.839        37.287       -.31250E-05    .65288E-04
  16  norm          .10000E-03    16.621       -.35951E-05** at limit **
  17  Prefactor     .10000E-03    107.41       -.62496E-04** at limit **
  18  norm          1.8444        .68966        .51460E-07    .21988E-02
  19  Prefactor     .10000E-03    11.946        .10065E-06** at limit **
  20  Prefactor     31.871        24.869        .29012E-06    .10995E-04
  21  Prefactor     17.617        10.446        .76129E-07    .42460E-04
  22  norm          8.0384        2.3441        .61110E-07    .62504E-03
  23  Prefactor     .10000E-03    4.3686        .58604E-07** at limit **
  24  Prefactor     .10000E-03    10.410       -.38015E-05** at limit **
  25  Prefactor     .10000E-03    28.724       -.68174E-05** at limit **
  26  Prefactor     .10000E-03    3.6637        .11739E-06** at limit **
  27  Prefactor     2.1183        6.1714       -.11299E-05   -.46153E-03
  28  Normalizat    1.1280        .21197       -.13409E-05    .23839E-03
  29  Prefactor     .78374        .17754        .83683E-06    .91535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.62587
  Prefactor  = 0.000100001
  Prefactor  = 98.7966
  Prefactor  = 0.0001
  Prefactor  = 18.3595
  Prefactor  = 0.000100618
  Prefactor  = 0.0001
  Prefactor  = 2.99411
  Prefactor  = 11.8885
  norm       = 2.37673
  norm       = 0.000100471
  Prefactor  = 33.8394
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84435
  Prefactor  = 0.0001
  Prefactor  = 31.8709
  Prefactor  = 17.6174
  norm       = 8.03836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.11832
  Normalizat = 1.128
  Prefactor  = 0.783744
 **********
 **   18 **HESSE 
 **********

 FCN=   5476.656     FROM HESSE     STATUS=OK           561 CALLS     4275 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    77.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6259        8.6738        .12917E-03   -1.5087    
   5  Prefactor     .10000E-03    12.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     98.797        91.913        .20224E-03   -1.3717    
   7  Prefactor     .10000E-03    24.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.360        33.194        .93447E-04   -1.4851    
   9  Prefactor     .10062E-03    3.8036        .27708E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8024        .18486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9941        61.798        .23478E-03   -1.5362    
  12  Prefactor     11.889        15.007        .11618E-03   -1.5018    
  13  norm          2.3767        4.1325        .15098E-03   -1.5400    
  14  norm          .10047E-03    32.717        .18509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.839        37.262        .68882E-04   -1.4544    
  16  norm          .10000E-03    16.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    107.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8444        .66761        .34287E-04   -1.5436    
  19  Prefactor     .10000E-03    12.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.871        24.899        .70979E-04   -1.4578    
  21  Prefactor     17.617        10.442        .95419E-04   -1.4868    
  22  norm          8.0384        2.3423        .57999E-04   -1.5141    
  23  Prefactor     .10000E-03    4.3754        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.6770        .13833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.1183        6.1590        .28335E-03   -1.5417    
  28  Normalizat    1.1280        .25028        .25891E-03   -.88858    
  29  Prefactor     .78374        .20876        .26412E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48831e-08
Minuit parameter uncertainties:
  1  1.34686e-05
  2  0.000111556
  3  8.74031e-05
  4  8.67494
  5  0.000212154
  6  92.0458
  7  1.09074e-05
  8  33.2272
  9  0.00306584
  10  1.32e-05
  11  27.237
  12  15.0118
  13  4.133
  14  0.00785143
  15  37.2879
  16  6.91896e-06
  17  7.14816e-05
  18  0.667612
  19  9.17693e-06
  20  24.9073
  21  10.4434
  22  2.34233
  23  1.0789e-06
  24  1.10966e-06
  25  1.88681e-05
  26  3.21694e-06
  27  6.16083
  28  0.250544
  29  0.208967
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  3.384e+01  3.729e+01  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:  7.837e-01  2.090e-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.128e+00  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.64e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 2.45e-05

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

Saving results to:
/scratch/kocevski/546491/likelihoodResults_386812801_387072001_4FGL_J1223.5+0818_daily_bin569.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) = 5476.49171789
delta logL = 0.164202696489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5476.46048253
delta logL = 0.195438060254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.719       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6181       1.0000          .0000       10.000    
     3 'Normalizat'    1.0740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81193       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5476.460     FROM MIGRAD    STATUS=FAILED        92 CALLS      297 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.719        416.09        .54070E-03   -.28490E-04
   2  Index         2.6181        6.3090        .44631E-02    .78025E-03
   3  Normalizat    1.0740        .30995        .26434E-03    .43008E-07
   4  Prefactor     .81191        .23585        .25995E-03    .13120E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5476.460     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      388 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.719        416.09        .52692E-03   -.28490E-04
   2  Index         2.6181        6.3090        .13568E-02    .78025E-03
   3  Normalizat    1.0740        .30995        .15040E-03    .43008E-07
   4  Prefactor     .81191        .23585        .99980E-04    .13120E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5476.460     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      417 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.719        53.159        .21628E-04   -.13351E-04
   2  Index         2.6181        1.6352        .89261E-03   -.40374E-05
   3  Normalizat    1.0740        .26568        .10573E-04     .0000    
   4  Prefactor     .81191        .22167        .10398E-04    .34987E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.719
  Index      = 2.61813
  Normalizat = 1.07401
  Prefactor  = 0.811912
 **********
 **   18 **HESSE 
 **********

 FCN=   5476.460     FROM HESSE     STATUS=OK            23 CALLS      440 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.719        42.151        .43256E-05   -1.4967    
   2  Index         2.6181        1.3060        .35704E-04   -.49653    
   3  Normalizat    1.0740        .25776        .10573E-04   -.90591    
   4  Prefactor     .81191        .21678        .20796E-05   -.99291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24813e-13
Minuit parameter uncertainties:
  1  42.2431
  2  1.32603
  3  0.25806
  4  0.217009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546491': 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) = 5476.46048251
delta logL = 0.195438071019

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.372e+01  4.224e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.618e+00  1.326e+00  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:  8.119e-01  2.170e-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.074e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 185.883 8.302
Photon Index (Free Index): 2.62 +/- 1.33
Photon Flux (Free Index): 6.61e-08 +/- 7.41e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.60e-05

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/546491/cmap_HighResolution_386812801_387072001_4FGL_J1223.5+0818_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', comment='SUCCESS', photon_flux='2.64e-08', energy_flux2='1.70e-05', photon_flux_error='2.90e-08', dlogl='1.95e-01', energy_flux='2.23e-05', photon_flux2='6.61e-08', job_status='DONE', time_completed='2021-09-05 11:00:59.989890', photon_index_error2='1.33', photon_index2='2.62', ts='1.51', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.88e-08', energy_flux_error2='1.60e-05', EG='1.13', time_epoch_completed='1630864859.99', return_code='0', job_id='546491', GAL2='0.81', EG2='1.07', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='7.41e-08', ts2='1.93', photon_index='1.92' WHERE bin_id='569' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 546491: <4FGL_J1223.5+0818_daily_bin569> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin569 185.883 8.3017 386812801 387072001 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 :                                   774.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

