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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin469
RA = 185.883, Dec = 8.3017
tmin = 360892801, tmax = 361152001
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='546285', job_status='RUN', time_executed='2021-09-05 10:49:05.782552', time_epoch_executed='1630864145.78' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546285

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546285/ft1_4FGL_J1223.5+0818_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546285/ft2_4FGL_J1223.5+0818_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546285/ft1_4FGL_J1223.5+0818_daily_bin469.fits outfile=/scratch/kocevski/546285/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin469.fits ra=185.883 dec=8.3017 rad=12.0 tmin=360892801.0 tmax=361152001.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.54
user 3.31
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546285/ft1_filtered_4FGL_J1223.5+0818_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/546285/ft2_4FGL_J1223.5+0818_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/546285/ltcube_360892801_361152001_4FGL_J1223.5+0818_daily_bin469.fits outfile=/scratch/kocevski/546285/expmap_360892801_361152001_4FGL_J1223.5+0818_daily_bin469.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/546285/ltcube_360892801_361152001_4FGL_J1223.5+0818_daily_bin469.fits
.....................!
real 192.00
user 186.78
sys 4.76

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 184 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/546285/ft1_filtered_4FGL_J1223.5+0818_daily_bin469.fits scfile=/scratch/kocevski/546285/ft2_4FGL_J1223.5+0818_daily_bin469.fits outfile=/scratch/kocevski/546285/cmap_360892801_361152001_4FGL_J1223.5+0818_daily_bin469.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546285/ft1_filtered_4FGL_J1223.5+0818_daily_bin469.fits scfile=/scratch/kocevski/546285/ft2_4FGL_J1223.5+0818_daily_bin469.fits outfile=/scratch/kocevski/546285/cmap_HighResolution_360892801_361152001_4FGL_J1223.5+0818_daily_bin469.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9302       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38455E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    145.03       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17210E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2985       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5176       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3955       1.0000         .10000E-03   10000.    
    14 'norm      '    13.366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.828       1.0000         .10000E-03   10000.    
    16 'norm      '    13.437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3955       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4170       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.893       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4106       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .50147E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.118       1.0000         .10000E-03   10000.    
    25 'Prefactor '    29.231       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54571       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2643       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=   5737.888     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3707 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9278        16.348       -.49009E-07   -.28268E-03
   2  Prefactor     .10000E-03    207.00        .14740E-04** at limit **
   3  Prefactor     9.1179        9.6220       -.42623E-05   -.12619E-03
   4  Prefactor     .10000E-03    4.6093       -.74785E-07** at limit **
   5  Prefactor     .10001E-03    8.1462       -.32887E-05** at limit **
   6  Prefactor     145.17        116.00        .10761E-03    .22069E-04
   7  Prefactor     .10000E-03    51.779       -.41075E-07** at limit **
   8  Prefactor     .10000E-03    7.4691        .33596E-06** at limit **
   9  Prefactor     2.2977        2.2956        .14741E-06   -.28568E-03
  10  Prefactor     .10000E-03    1.6555        .16522E-07** at limit **
  11  Prefactor     5.5386        34.424       -.96919E-05   -.16210E-04
  12  Prefactor     .10000E-03    8.2088        .13591E-05** at limit **
  13  norm          2.3940        2.0180        .16397E-06    .11958E-04
  14  norm          13.365        5.4860        .81445E-06   -.35690E-04
  15  Prefactor     43.833        30.858       -.39666E-06    .13455E-04
  16  norm          13.431        38.325       -.36272E-05    .10083E-04
  17  Prefactor     6.3880        226.59       -.23802E-04    .15785E-05
  18  norm          1.4165        .67125        .28161E-06   -.17986E-03
  19  Prefactor     .10000E-03    4.3876        .46792E-06** at limit **
  20  Prefactor     39.878        33.951       -.14447E-05   -.13420E-04
  21  Prefactor     .10000E-03    3.7019        .92927E-07** at limit **
  22  norm          3.4100        1.7276        .38119E-06    .88396E-04
  23  Prefactor     .10000E-03    6.0586        .16859E-05** at limit **
  24  Prefactor     37.092        39.110       -.10409E-04   -.31778E-04
  25  Prefactor     29.232        44.479        .38501E-05    .18035E-05
  26  Prefactor     .10000E-03    4.1576       -.76146E-07** at limit **
  27  Prefactor     .10000E-03    3.3259        .73347E-07** at limit **
  28  Normalizat    .54590        .21779       -.18931E-04    .12790E-04
  29  Prefactor     1.2645        .18452        .36286E-05   -.46889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.92778
  Prefactor  = 0.0001
  Prefactor  = 9.11792
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 145.173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29773
  Prefactor  = 0.0001
  Prefactor  = 5.53865
  Prefactor  = 0.0001
  norm       = 2.39401
  norm       = 13.3646
  Prefactor  = 43.8332
  norm       = 13.4305
  Prefactor  = 6.38801
  norm       = 1.41654
  Prefactor  = 0.0001
  Prefactor  = 39.8782
  Prefactor  = 0.0001
  norm       = 3.41003
  Prefactor  = 0.0001
  Prefactor  = 37.092
  Prefactor  = 29.2325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.5459
  Prefactor  = 1.26446
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.888     FROM HESSE     STATUS=OK           555 CALLS     4262 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9278        16.347        .63580E-03   -1.5078    
   2  Prefactor     .10000E-03    207.67        .19543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1179        9.6162        .13276E-03   -1.5104    
   4  Prefactor     .10000E-03    4.6253        .15879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    8.1792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     145.17        115.95        .16729E-03   -1.3292    
   7  Prefactor     .10000E-03    51.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2977        2.2831        .11040E-03   -1.5405    
  10  Prefactor     .10000E-03    1.6823        .95044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5386        34.312        .17105E-03   -1.5237    
  12  Prefactor     .10000E-03    8.2603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3940        2.0174        .95771E-04   -1.5399    
  14  norm          13.365        5.4820        .93975E-04   -1.4977    
  15  Prefactor     43.833        30.852        .60558E-04   -1.4383    
  16  norm          13.431        38.382        .10927E-03   -1.4975    
  17  Prefactor     6.3880        227.31        .15871E-03   -1.5202    
  18  norm          1.4165        .66248        .38331E-04   -1.5470    
  19  Prefactor     .10000E-03    4.3922        .15487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     39.878        33.962        .63462E-04   -1.4444    
  21  Prefactor     .10000E-03    3.7139        .14233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4100        1.7245        .67459E-04   -1.5339    
  23  Prefactor     .10000E-03    21.366        .36123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.092        39.025        .65784E-04   -1.4489    
  25  Prefactor     29.232        44.461        .74104E-04   -1.4626    
  26  Prefactor     .10000E-03    4.1677        .15077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.3305        .13491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .54590        .24363        .36250E-03   -1.1033    
  29  Prefactor     1.2645        .21031        .22148E-03   -.84370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27221e-09
Minuit parameter uncertainties:
  1  16.3539
  2  0.00057126
  3  9.61787
  4  3.37993e-05
  5  0.000522949
  6  116.133
  7  0.000267911
  8  2.031e-05
  9  2.28322
  10  4.32467e-06
  11  27.5944
  12  4.92329e-05
  13  2.01743
  14  5.48222
  15  30.8628
  16  38.4531
  17  76.527
  18  0.662487
  19  1.57797e-05
  20  33.9784
  21  1.38906e-05
  22  1.72455
  23  0.000102625
  24  39.0514
  25  44.5113
  26  2.45477e-05
  27  1.20569e-05
  28  0.244111
  29  0.210452
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  4.383e+01  3.086e+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.264e+00  2.105e-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:  5.459e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.83
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.03e-05

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) = 5737.88649075
delta logL = 0.00197418135122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5737.88400806
delta logL = 0.00445686808507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.072       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8712       1.0000          .0000       10.000    
     3 'Normalizat'    .54729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2638       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=   5737.884     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      227 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.072        807.61        .14611E-02   -.50764E-04
   2  Index         1.8712        3.0383        .15774        .83266E-04
   3  Normalizat    .54746        .10074        .81737E-01    .19616E-04
   4  Prefactor     1.2636        .70114E-01    .50115E-01   -.97336E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.0723
  Index      = 1.87119
  Normalizat = 0.547459
  Prefactor  = 1.26362
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.884     FROM HESSE     STATUS=OK            29 CALLS      256 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.072        49.543        .58442E-04   -1.4335    
   2  Index         1.8712        .55784        .54570E-02   -.67611    
   3  Normalizat    .54746        .22853        .36202E-03   -1.1026    
   4  Prefactor     1.2636        .20646        .22154E-03   -.84395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5866e-09
Minuit parameter uncertainties:
  1  49.5861
  2  0.559764
  3  0.228927
  4  0.206597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546285': 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) = 5737.88400778
delta logL = 0.00445715089882

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.264e+00  2.066e-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:  5.475e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 185.883 8.302
Photon Index (Free Index): 1.87 +/- 0.56
Photon Flux (Free Index): 3.26e-08 +/- 2.80e-08
Energy Flux (Free Index): 3.17e-05 +/- 4.10e-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/546285/cmap_HighResolution_360892801_361152001_4FGL_J1223.5+0818_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='3.17e-05', photon_flux_error='2.40e-08', dlogl='4.46e-03', energy_flux='2.88e-05', photon_flux2='3.26e-08', job_status='DONE', time_completed='2021-09-05 11:00:34.386155', photon_index_error2='0.56', photon_index2='1.87', ts='4.83', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='4.10e-05', EG='0.55', time_epoch_completed='1630864834.39', return_code='0', job_id='546285', GAL2='1.26', EG2='0.55', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='2.80e-08', ts2='4.83', photon_index='1.92' WHERE bin_id='469' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:00:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 546285: <4FGL_J1223.5+0818_daily_bin469> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin469 185.883 8.3017 360892801 361152001 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

