/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 58 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin215
RA = 185.883, Dec = 8.3017
tmin = 295056001, tmax = 295315201
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='544724', job_status='RUN', time_executed='2021-09-05 10:41:48.705169', time_epoch_executed='1630863708.71' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544724/ft1_4FGL_J1223.5+0818_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544724/ft2_4FGL_J1223.5+0818_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544724/ft1_4FGL_J1223.5+0818_daily_bin215.fits outfile=/scratch/kocevski/544724/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin215.fits ra=185.883 dec=8.3017 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.54
user 2.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544724/ft1_filtered_4FGL_J1223.5+0818_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/544724/ft2_4FGL_J1223.5+0818_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/544724/ltcube_295056001_295315201_4FGL_J1223.5+0818_daily_bin215.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/544724/ft2_4FGL_J1223.5+0818_daily_bin215.fits
.....................!
real 12.02
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544724/ft1_filtered_4FGL_J1223.5+0818_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/544724/ft2_4FGL_J1223.5+0818_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/544724/ltcube_295056001_295315201_4FGL_J1223.5+0818_daily_bin215.fits outfile=/scratch/kocevski/544724/expmap_295056001_295315201_4FGL_J1223.5+0818_daily_bin215.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/544724/ltcube_295056001_295315201_4FGL_J1223.5+0818_daily_bin215.fits
.....................!
real 191.28
user 185.53
sys 5.16

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/544724/ft1_filtered_4FGL_J1223.5+0818_daily_bin215.fits scfile=/scratch/kocevski/544724/ft2_4FGL_J1223.5+0818_daily_bin215.fits outfile=/scratch/kocevski/544724/cmap_295056001_295315201_4FGL_J1223.5+0818_daily_bin215.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544724/ft1_filtered_4FGL_J1223.5+0818_daily_bin215.fits scfile=/scratch/kocevski/544724/ft2_4FGL_J1223.5+0818_daily_bin215.fits outfile=/scratch/kocevski/544724/cmap_HighResolution_295056001_295315201_4FGL_J1223.5+0818_daily_bin215.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.951       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.184       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6070       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.328       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2132       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6663       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.741       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.640       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6602       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2955       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84406       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=   5935.181     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3652 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8845        .33355E-06** at limit **
   2  Prefactor     .10000E-03    35.714       -.81012E-06** at limit **
   3  Prefactor     20.820        12.688       -.46013E-07    .19772E-05
   4  Prefactor     .10000E-03    11.075       -.16475E-06** at limit **
   5  Prefactor     11.034        17.324        .36193E-07    .10285E-05
   6  Prefactor     46.588        59.388        .21117E-05    .61829E-05
   7  Prefactor     .10000E-03    15.173        .18804E-06** at limit **
   8  Prefactor     .10000E-03    9.6393       -.32028E-06** at limit **
   9  Prefactor     .10000E-03    3.4909       -.50489E-07** at limit **
  10  Prefactor     14.951        5.6179        .33297E-07    .77532E-05
  11  Prefactor     1.7581        79.062       -.50436E-05   -.95014E-05
  12  Prefactor     .10000E-03    8.3324        .11773E-06** at limit **
  13  norm          .10000E-03    .84237       -.10032E-07** at limit **
  14  norm          .10000E-03    2.3219       -.95543E-07** at limit **
  15  Prefactor     .10000E-03    10.742       -.30221E-06** at limit **
  16  norm          20.175        36.668        .11198E-05    .40621E-05
  17  Prefactor     2.4571        605.00        .46267E-04   -.22321E-04
  18  norm          3.4024        .81432       -.38979E-08    .11462E-03
  19  Prefactor     .10000E-03    4.3902       -.10016E-06** at limit **
  20  Prefactor     30.316        29.629        .11229E-05    .22929E-05
  21  Prefactor     .10000E-03    6.5212        .14066E-06** at limit **
  22  norm          1.2131        .94578       -.23304E-07   -.69110E-04
  23  Prefactor     1.6660        8.7441        .62119E-05   -.14597E-04
  24  Prefactor     21.736        31.582        .45264E-06    .32561E-05
  25  Prefactor     10.704        64.540       -.15163E-04   -.40328E-04
  26  Prefactor     1.6534        12.359        .42155E-05    .10566E-03
  27  Prefactor     .10000E-03    14.676        .16195E-06** at limit **
  28  Normalizat    1.2954        .22118       -.81976E-06   -.15066E-04
  29  Prefactor     .84414        .18158        .42753E-06   -.32269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8198
  Prefactor  = 0.0001
  Prefactor  = 11.0338
  Prefactor  = 46.5879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.951
  Prefactor  = 1.75806
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.175
  Prefactor  = 2.45709
  norm       = 3.40235
  Prefactor  = 0.0001
  Prefactor  = 30.3164
  Prefactor  = 0.0001
  norm       = 1.21314
  Prefactor  = 1.666
  Prefactor  = 21.7363
  Prefactor  = 10.7035
  Prefactor  = 1.65336
  Prefactor  = 0.0001
  Normalizat = 1.29541
  Prefactor  = 0.844136
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.181     FROM HESSE     STATUS=OK           557 CALLS     4209 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.820        12.699        .87777E-04   -1.4795    
   4  Prefactor     .10000E-03    11.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.034        17.337        .12058E-03   -1.5044    
   6  Prefactor     46.588        59.394        .29365E-03   -1.4342    
   7  Prefactor     .10000E-03    15.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.6605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5721        .27964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.951        5.6209        .10358E-03   -1.4934    
  11  Prefactor     1.7581        79.083        .31830E-03   -1.5443    
  12  Prefactor     .10000E-03    8.4555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .85030        .69035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3557        .11411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.175        36.783        .89151E-04   -1.4809    
  17  Prefactor     2.4571        611.29        .25265E-02   -1.5394    
  18  norm          3.4024        .82038        .30872E-04   -1.5339    
  19  Prefactor     .10000E-03    4.3952        .15759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.316        29.710        .72755E-04   -1.4606    
  21  Prefactor     .10000E-03    6.5662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2131        .95106        .64153E-04   -1.5488    
  23  Prefactor     1.6660        8.7233        .16334E-02   -1.5450    
  24  Prefactor     21.736        31.582        .85903E-04   -1.4775    
  25  Prefactor     10.704        63.985        .12283E-03   -1.5054    
  26  Prefactor     1.6534        12.065        .32744E-03   -1.5451    
  27  Prefactor     .10000E-03    15.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2954        .26446        .27178E-03   -.83703    
  29  Prefactor     .84414        .21552        .28151E-03   -.98121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55058e-10
Minuit parameter uncertainties:
  1  1.66993e-06
  2  1.09242e-05
  3  12.7008
  4  2.94314e-06
  5  17.345
  6  59.4699
  7  4.022e-06
  8  3.06961e-06
  9  8.42186e-07
  10  5.62106
  11  23.615
  12  3.05077e-06
  13  3.56718e-07
  14  1.22007e-06
  15  1.03956e-05
  16  36.8242
  17  78.3317
  18  0.820384
  19  5.93317e-06
  20  29.725
  21  2.59634e-06
  22  0.951073
  23  7.62594
  24  31.6061
  25  52.4238
  26  8.9347
  27  1.15541e-05
  28  0.264732
  29  0.215739
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.040e-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:  8.441e-01  2.157e-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.295e+00  2.647e-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: 4.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544724/likelihoodResults_295056001_295315201_4FGL_J1223.5+0818_daily_bin215.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) = 5935.18132433
delta logL = -0.000439641373305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5935.18088476
delta logL = -7.47422745917e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8954       1.0000          .0000       10.000    
     3 'Normalizat'    1.2956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84401       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=   5935.181     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    345.14        .90712E-02** at limit **
   2  Index         1.8696        6.6807        .50000        .17131E-04
   3  Normalizat    1.2954        .31021E-01    .61449E-01    .17415E-04
   4  Prefactor     .84414        .26703E-01    .63646E-01    .24139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.86964
  Normalizat = 1.29541
  Prefactor  = 0.844137
 **********
 **   18 **HESSE 
 **********

 FCN=   5935.181     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8696        5.9205        .50000       -.67651    
   3  Normalizat    1.2954        .24522        .27178E-03   -.83703    
   4  Prefactor     .84414        .21097        .28151E-03   -.98121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98399e-10
Minuit parameter uncertainties:
  1  0.000211525
  2  3.90441
  3  0.245441
  4  0.211177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544724': 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) = 5935.18088444
delta logL = 2.44586772169e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.115e-04  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.870e+00  3.904e+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.441e-01  2.112e-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.295e+00  2.454e-01  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/544724/cmap_HighResolution_295056001_295315201_4FGL_J1223.5+0818_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-03', job_status='DONE', photon_flux_upper_limit='4.34e-08', time_completed='2021-09-05 10:55:22.154598', job_id='544724', GAL2='0.84', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630864522.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='215' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:55:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 544724: <4FGL_J1223.5+0818_daily_bin215> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin215> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:40:31 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:40:32 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:32 2021
Terminated at Sun Sep  5 10:55:23 2021
Results reported at Sun Sep  5 10:55:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin215 185.883 8.3017 295056001 295315201 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 :                                   806.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

