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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin862
RA = 185.883, Dec = 8.3017
tmin = 462758401, tmax = 463017601
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='548119', job_status='RUN', time_executed='2021-09-05 10:52:31.764019', time_epoch_executed='1630864351.76' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='862'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548119

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548119/ft1_4FGL_J1223.5+0818_daily_bin862.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548119/ft2_4FGL_J1223.5+0818_daily_bin862.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548119/ft1_4FGL_J1223.5+0818_daily_bin862.fits outfile=/scratch/kocevski/548119/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin862.fits ra=185.883 dec=8.3017 rad=12.0 tmin=462758401.0 tmax=463017601.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.63
user 4.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548119/ft2_4FGL_J1223.5+0818_daily_bin862.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/548119/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin862.fits evtable="EVENTS" outfile="/scratch/kocevski/548119/ft1_filtered_4FGL_J1223.5+0818_daily_bin862.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.55
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548119/ft1_filtered_4FGL_J1223.5+0818_daily_bin862.fits" evtable="EVENTS" scfile=/scratch/kocevski/548119/ft2_4FGL_J1223.5+0818_daily_bin862.fits sctable="SC_DATA" outfile=/scratch/kocevski/548119/ltcube_462758401_463017601_4FGL_J1223.5+0818_daily_bin862.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/548119/ft2_4FGL_J1223.5+0818_daily_bin862.fits
.....................!
real 11.66
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548119/ft1_filtered_4FGL_J1223.5+0818_daily_bin862.fits evtable="EVENTS" scfile=/scratch/kocevski/548119/ft2_4FGL_J1223.5+0818_daily_bin862.fits sctable="SC_DATA" expcube=/scratch/kocevski/548119/ltcube_462758401_463017601_4FGL_J1223.5+0818_daily_bin862.fits outfile=/scratch/kocevski/548119/expmap_462758401_463017601_4FGL_J1223.5+0818_daily_bin862.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/548119/ltcube_462758401_463017601_4FGL_J1223.5+0818_daily_bin862.fits
.....................!
real 191.16
user 185.67
sys 5.12

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/548119/ft1_filtered_4FGL_J1223.5+0818_daily_bin862.fits scfile=/scratch/kocevski/548119/ft2_4FGL_J1223.5+0818_daily_bin862.fits outfile=/scratch/kocevski/548119/cmap_462758401_463017601_4FGL_J1223.5+0818_daily_bin862.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.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6379       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9488       1.0000         .10000E-03   10000.    
     6 'Prefactor '    87.623       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2691       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7647       1.0000         .10000E-03   10000.    
    13 'norm      '    6.3867       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0464       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.654       1.0000         .10000E-03   10000.    
    16 'norm      '    28.083       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.863       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6411       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16943E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0673       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.235       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.4540       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .79153       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0900       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=   6606.333     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3700 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7931        14.537        .36259E-06   -.21476E-03
   2  Prefactor     .10000E-03    101.33       -.16453E-05** at limit **
   3  Prefactor     .10000E-03    8.5873        .17261E-05** at limit **
   4  Prefactor     3.6377        5.2723       -.13122E-06   -.50970E-04
   5  Prefactor     4.9423        18.319        .47179E-05    .30536E-04
   6  Prefactor     87.613        109.15       -.69298E-05   -.33213E-04
   7  Prefactor     .10000E-03    10.375       -.53290E-06** at limit **
   8  Prefactor     64.110        27.509       -.65303E-06   -.11715E-04
   9  Prefactor     .10000E-03    1.0630        .11895E-06** at limit **
  10  Prefactor     .10000E-03    1.0534        .20718E-06** at limit **
  11  Prefactor     3.2686        29.542        .44510E-06   -.25426E-03
  12  Prefactor     7.7648        17.012        .31123E-06    .27290E-04
  13  norm          6.3866        3.5432       -.26114E-07    .81346E-04
  14  norm          3.0460        2.7242        .53088E-06   -.29213E-02
  15  Prefactor     24.654        31.108       -.35696E-06    .12927E-04
  16  norm          28.086        40.488        .66106E-06    .23259E-04
  17  Prefactor     38.862        74.488       -.88935E-06   -.12728E-05
  18  norm          3.6410        .80767       -.24313E-07    .90916E-03
  19  Prefactor     .10002E-03    4.1786       -.13883E-05** at limit **
  20  Prefactor     .10000E-03    11.263        .78431E-05** at limit **
  21  Prefactor     .10000E-03    9.6553       -.55476E-05** at limit **
  22  norm          1.0670        1.2322        .68251E-07   -.96510E-03
  23  Prefactor     .10000E-03    5.6436       -.10823E-05** at limit **
  24  Prefactor     25.228        29.309       -.29071E-05   -.30969E-04
  25  Prefactor     .10000E-03    34.615        .15350E-05** at limit **
  26  Prefactor     8.4557        10.598        .58696E-06    .37082E-04
  27  Prefactor     .10000E-03    5.6206        .12773E-06** at limit **
  28  Normalizat    .79162        .20339        .86210E-06    .10760E-03
  29  Prefactor     1.0900        .16780       -.57189E-07    .18885E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.79312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63771
  Prefactor  = 4.94232
  Prefactor  = 87.6129
  Prefactor  = 0.0001
  Prefactor  = 64.1103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26864
  Prefactor  = 7.76479
  norm       = 6.3866
  norm       = 3.04602
  Prefactor  = 24.6539
  norm       = 28.0863
  Prefactor  = 38.8621
  norm       = 3.64099
  Prefactor  = 0.000100017
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.06696
  Prefactor  = 0.0001
  Prefactor  = 25.2279
  Prefactor  = 0.0001
  Prefactor  = 8.45573
  Prefactor  = 0.0001
  Normalizat = 0.791623
  Prefactor  = 1.08999
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.333     FROM HESSE     STATUS=OK           555 CALLS     4255 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7931        14.702        .83432E-03   -1.5227    
   2  Prefactor     .10000E-03    101.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6377        5.2612        .21181E-03   -1.5326    
   5  Prefactor     4.9423        18.180        .18079E-03   -1.5263    
   6  Prefactor     87.613        109.12        .42921E-04   -1.3833    
   7  Prefactor     .10000E-03    10.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.110        27.479        .50118E-04   -1.4105    
   9  Prefactor     .10000E-03    1.0711        .81796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0594        .81419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2686        30.172        .11199E-02   -1.5346    
  12  Prefactor     7.7648        16.983        .14390E-03   -1.5151    
  13  norm          6.3866        3.5445        .91784E-04   -1.5202    
  14  norm          3.0460        4.3668        .80654E-03   -1.5359    
  15  Prefactor     24.654        31.124        .80676E-04   -1.4715    
  16  norm          28.086        43.554        .75600E-04   -1.4648    
  17  Prefactor     38.862        74.504        .64295E-04   -1.4460    
  18  norm          3.6410        .82813        .30131E-04   -1.5326    
  19  Prefactor     .10002E-03    13.261        .31698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.8041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0670        1.2409        .23573E-03   -1.5501    
  23  Prefactor     .10000E-03    5.6779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.228        29.340        .79743E-04   -1.4703    
  25  Prefactor     .10000E-03    34.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.4557        10.612        .13787E-03   -1.5126    
  27  Prefactor     .10000E-03    5.6326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .79162        .23505        .31746E-03   -1.0038    
  29  Prefactor     1.0900        .19314        .23757E-03   -.89787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43289e-09
Minuit parameter uncertainties:
  1  14.7113
  2  0.000123613
  3  4.00376e-05
  4  5.2619
  5  18.2003
  6  109.372
  7  1.17191e-05
  8  27.4847
  9  1.01343e-06
  10  3.51773e-07
  11  19.8747
  12  16.9931
  13  3.54458
  14  4.36724
  15  31.144
  16  43.6038
  17  74.6837
  18  0.828129
  19  0.000947032
  20  0.000154209
  21  7.01812e-05
  22  1.24088
  23  7.02262e-06
  24  29.3571
  25  1.08798e-05
  26  10.6143
  27  4.76304e-06
  28  0.235348
  29  0.193266
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.465e+01  3.114e+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:  1.090e+00  1.933e-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:  7.916e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 1.92e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/548119/likelihoodResults_462758401_463017601_4FGL_J1223.5+0818_daily_bin862.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) = 6606.33312301
delta logL = 0.000116707125017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6606.33305397
delta logL = 0.000185748995136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.997       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8980       1.0000          .0000       10.000    
     3 'Normalizat'    .79244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0898       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6606.333     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      270 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.033        40.453        .80122E-04    .67314E-04
   2  Index         1.8984        1.3146        .16322E-01    .36513E-03
   3  Normalizat    .79247        .22291        .31731E-03   -.75240E-04
   4  Prefactor     1.0897        .18994        .23760E-03    .11243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0333
  Index      = 1.89843
  Normalizat = 0.792469
  Prefactor  = 1.08968
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.333     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.033        37.218        .16024E-04   -1.4707    
   2  Index         1.8984        1.2107        .32645E-02   -.66914    
   3  Normalizat    .79247        .22145        .12692E-04   -1.0035    
   4  Prefactor     1.0897        .18970        .47521E-04   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7766e-10
Minuit parameter uncertainties:
  1  37.2528
  2  1.23082
  3  0.221706
  4  0.189818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548119': 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) = 6606.33305217
delta logL = 0.000187548027498

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.503e+01  3.725e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.898e+00  1.231e+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:  1.090e+00  1.898e-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:  7.925e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 185.883 8.302
Photon Index (Free Index): 1.90 +/- 1.23
Photon Flux (Free Index): 1.84e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.66e-05 +/- 3.04e-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/548119/cmap_HighResolution_462758401_463017601_4FGL_J1223.5+0818_daily_bin862.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', comment='SUCCESS', photon_flux='1.92e-08', energy_flux2='1.66e-05', photon_flux_error='2.42e-08', dlogl='1.88e-04', energy_flux='1.62e-05', photon_flux2='1.84e-08', job_status='DONE', time_completed='2021-09-05 11:06:45.139365', photon_index_error2='1.23', photon_index2='1.90', ts='1.13', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='8.33e-08', energy_flux_error2='3.04e-05', EG='0.79', time_epoch_completed='1630865205.14', return_code='0', job_id='548119', GAL2='1.09', EG2='0.79', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='4.46e-08', ts2='1.12', photon_index='1.92' WHERE bin_id='862' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 548119: <4FGL_J1223.5+0818_daily_bin862> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin862> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:44 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:45 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:50:45 2021
Terminated at Sun Sep  5 11:06:45 2021
Results reported at Sun Sep  5 11:06:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin862 185.883 8.3017 462758401 463017601 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 :                                   849.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

