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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin307
RA = 185.883, Dec = 8.3017
tmin = 318902401, tmax = 319161601
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='544874', job_status='RUN', time_executed='2021-09-05 10:43:51.431496', time_epoch_executed='1630863831.43' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544874/ft1_4FGL_J1223.5+0818_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544874/ft2_4FGL_J1223.5+0818_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544874/ft1_4FGL_J1223.5+0818_daily_bin307.fits outfile=/scratch/kocevski/544874/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin307.fits ra=185.883 dec=8.3017 rad=12.0 tmin=318902401.0 tmax=319161601.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.41
user 3.18
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544874/ft1_filtered_4FGL_J1223.5+0818_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/544874/ft2_4FGL_J1223.5+0818_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/544874/ltcube_318902401_319161601_4FGL_J1223.5+0818_daily_bin307.fits outfile=/scratch/kocevski/544874/expmap_318902401_319161601_4FGL_J1223.5+0818_daily_bin307.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/544874/ltcube_318902401_319161601_4FGL_J1223.5+0818_daily_bin307.fits
.....................!
real 189.50
user 184.38
sys 4.75

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/544874/ft1_filtered_4FGL_J1223.5+0818_daily_bin307.fits scfile=/scratch/kocevski/544874/ft2_4FGL_J1223.5+0818_daily_bin307.fits outfile=/scratch/kocevski/544874/cmap_318902401_319161601_4FGL_J1223.5+0818_daily_bin307.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544874/ft1_filtered_4FGL_J1223.5+0818_daily_bin307.fits scfile=/scratch/kocevski/544874/ft2_4FGL_J1223.5+0818_daily_bin307.fits outfile=/scratch/kocevski/544874/cmap_HighResolution_318902401_319161601_4FGL_J1223.5+0818_daily_bin307.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/544874/ft1_filtered_4FGL_J1223.5+0818_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/544874/ft2_4FGL_J1223.5+0818_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544874/Model_4FGL_J1223.5+0818_daily_bin307.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/544874/ft1_filtered_4FGL_J1223.5+0818_daily_bin307.fits.....................!
real 53.12
user 51.47
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3347       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.305       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8629       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.708       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.233       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    74.994       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .57827       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.146       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92260       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94092       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=   5796.982     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3688 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.216       -.69146E-06** at limit **
   2  Prefactor     .10000E-03    64.843       -.30331E-05** at limit **
   3  Prefactor     2.3377        7.9523        .64384E-05    .46856E-03
   4  Prefactor     .10000E-03    6.8091        .64289E-07** at limit **
   5  Prefactor     13.397        19.045       -.10258E-06    .33847E-05
   6  Prefactor     67.306        93.904       -.22559E-05    .51939E-05
   7  Prefactor     .10000E-03    24.316       -.12163E-05** at limit **
   8  Prefactor     .10000E-03    29.905        .17872E-05** at limit **
   9  Prefactor     1.5294        2.5247        .98725E-07    .49422E-04
  10  Prefactor     1.8632        2.1980        .18970E-07    .23526E-04
  11  Prefactor     9.1454        28.679        .35593E-05   -.49595E-04
  12  Prefactor     .10000E-03    9.9216       -.55422E-06** at limit **
  13  norm          .10000E-03    .73870        .76190E-08** at limit **
  14  norm          4.0227        4.6214       -.32914E-06   -.45705E-04
  15  Prefactor     .10000E-03    7.6186       -.13091E-06** at limit **
  16  norm          .10000E-03    18.871       -.44248E-06** at limit **
  17  Prefactor     .10000E-03    49.453        .99745E-06** at limit **
  18  norm          3.1049        .83951        .92511E-08   -.89900E-04
  19  Prefactor     .10000E-03    3.1615        .73412E-08** at limit **
  20  Prefactor     43.711        25.294        .18823E-06    .45767E-04
  21  Prefactor     .10000E-03    9.1931        .55194E-06** at limit **
  22  norm          11.233        2.5996        .17609E-07    .83814E-04
  23  Prefactor     .10000E-03    4.1631        .97035E-08** at limit **
  24  Prefactor     .10000E-03    16.914        .12309E-05** at limit **
  25  Prefactor     74.953        50.449        .46881E-05    .52807E-04
  26  Prefactor     .60927        17.597        .45727E-05   -.64664E-03
  27  Prefactor     19.144        14.029        .66772E-06    .18620E-03
  28  Normalizat    .92224        .20727        .29202E-06    .19499E-03
  29  Prefactor     .94123        .17123       -.55359E-06    .16043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.33766
  Prefactor  = 0.0001
  Prefactor  = 13.3972
  Prefactor  = 67.3062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.5294
  Prefactor  = 1.86322
  Prefactor  = 9.14542
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.02271
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.10489
  Prefactor  = 0.0001
  Prefactor  = 43.711
  Prefactor  = 0.0001
  norm       = 11.2329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.9531
  Prefactor  = 0.609271
  Prefactor  = 19.1441
  Normalizat = 0.922243
  Prefactor  = 0.941225
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.982     FROM HESSE     STATUS=OK           551 CALLS     4239 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3377        8.1445        .13418E-02   -1.5402    
   4  Prefactor     .10000E-03    6.8532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.397        19.015        .10944E-03   -1.4976    
   6  Prefactor     67.306        94.054        .48923E-04   -1.4065    
   7  Prefactor     .10000E-03    24.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5294        2.4802        .14358E-03   -1.5461    
  10  Prefactor     1.8632        2.1640        .11425E-03   -1.5435    
  11  Prefactor     9.1454        28.412        .13200E-03   -1.5103    
  12  Prefactor     .10000E-03    10.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .74134        .63897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0227        4.5905        .14806E-03   -1.5307    
  15  Prefactor     .10000E-03    7.6194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1049        .83937        .32467E-04   -1.5356    
  19  Prefactor     .10000E-03    3.1648        .13219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.711        25.321        .60640E-04   -1.4385    
  21  Prefactor     .10000E-03    9.2907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.233        2.5999        .55941E-04   -1.5038    
  23  Prefactor     .10000E-03    4.1692        .15172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     74.953        55.051        .23183E-03   -1.3974    
  26  Prefactor     .60927        66.304        .44414E-02   -1.5552    
  27  Prefactor     19.144        14.074        .91535E-04   -1.4833    
  28  Normalizat    .92224        .23897        .28987E-03   -.95683    
  29  Prefactor     .94123        .19711        .25237E-03   -.94715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08965e-08
Minuit parameter uncertainties:
  1  6.67393e-05
  2  0.000470864
  3  8.14835
  4  9.46785e-07
  5  19.0233
  6  94.2623
  7  7.18688e-05
  8  0.00015873
  9  2.48038
  10  2.16405
  11  28.4539
  12  4.90521e-05
  13  5.37872e-07
  14  4.59085
  15  2.73614e-06
  16  4.47727e-05
  17  0.000139917
  18  0.839375
  19  2.56149e-06
  20  25.3271
  21  3.69079e-05
  22  2.59993
  23  1.75687e-07
  24  9.25437e-05
  25  55.0887
  26  12.7251
  27  14.0769
  28  0.23925
  29  0.197262
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.412e-01  1.973e-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:  9.222e-01  2.393e-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: 3.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544874/likelihoodResults_318902401_319161601_4FGL_J1223.5+0818_daily_bin307.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) = 5796.98257393
delta logL = -0.000617940591837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5796.98195606
delta logL = -7.108792488e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8867       1.0000          .0000       10.000    
     3 'Normalizat'    .92225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94122       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=   5796.982     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    49.833        .18142E-02** at limit **
   2  Index         1.8233        5.6011        .50000        .29730E-04
   3  Normalizat    .92224        .12024E-01    .28987E-03   -.47063E-05
   4  Prefactor     .94123        .10632E-01    .25237E-03   -.12163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101841
  Index      = 1.82326
  Normalizat = 0.922242
  Prefactor  = 0.941226
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.982     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10184E-03    214.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8233        6.7344        .50000       -.68846    
   3  Normalizat    .92224        .25556E-01    .11595E-04   -.95683    
   4  Prefactor     .94123        .22598E-01    .10095E-04   -.94715    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23139e-08
Minuit parameter uncertainties:
  1  0.0399223
  2  300.82
  3  0.0255562
  4  0.0225987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544874': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5796.98195525
delta logL = 7.40477844374e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.018e-04  3.992e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.823e+00  3.008e+02  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.412e-01  2.260e-02  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:  9.222e-01  2.556e-02  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/544874/cmap_HighResolution_318902401_319161601_4FGL_J1223.5+0818_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-03', job_status='DONE', photon_flux_upper_limit='3.42e-08', time_completed='2021-09-05 10:57:04.226660', job_id='544874', GAL2='0.94', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630864624.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='307' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 544874: <4FGL_J1223.5+0818_daily_bin307> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin307> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:40:44 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:40: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:40:45 2021
Terminated at Sun Sep  5 10:57:05 2021
Results reported at Sun Sep  5 10:57:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin307 185.883 8.3017 318902401 319161601 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

