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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin600
RA = 185.883, Dec = 8.3017
tmin = 394848001, tmax = 395107201
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='546551', job_status='RUN', time_executed='2021-09-05 10:46:13.077900', time_epoch_executed='1630863973.08' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546551

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546551/ft1_4FGL_J1223.5+0818_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546551/ft2_4FGL_J1223.5+0818_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546551/ft1_4FGL_J1223.5+0818_daily_bin600.fits outfile=/scratch/kocevski/546551/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin600.fits ra=185.883 dec=8.3017 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.38
user 4.98
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546551/ft1_filtered_4FGL_J1223.5+0818_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/546551/ft2_4FGL_J1223.5+0818_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/546551/ltcube_394848001_395107201_4FGL_J1223.5+0818_daily_bin600.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/546551/ft2_4FGL_J1223.5+0818_daily_bin600.fits
.....................!
real 11.57
user 11.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546551/ft1_filtered_4FGL_J1223.5+0818_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/546551/ft2_4FGL_J1223.5+0818_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/546551/ltcube_394848001_395107201_4FGL_J1223.5+0818_daily_bin600.fits outfile=/scratch/kocevski/546551/expmap_394848001_395107201_4FGL_J1223.5+0818_daily_bin600.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/546551/ltcube_394848001_395107201_4FGL_J1223.5+0818_daily_bin600.fits
.....................!
real 190.55
user 185.52
sys 4.28

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/546551/ft1_filtered_4FGL_J1223.5+0818_daily_bin600.fits scfile=/scratch/kocevski/546551/ft2_4FGL_J1223.5+0818_daily_bin600.fits outfile=/scratch/kocevski/546551/cmap_394848001_395107201_4FGL_J1223.5+0818_daily_bin600.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/546551/ft1_filtered_4FGL_J1223.5+0818_daily_bin600.fits scfile=/scratch/kocevski/546551/ft2_4FGL_J1223.5+0818_daily_bin600.fits outfile=/scratch/kocevski/546551/cmap_HighResolution_394848001_395107201_4FGL_J1223.5+0818_daily_bin600.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/546551/ft1_filtered_4FGL_J1223.5+0818_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/546551/ft2_4FGL_J1223.5+0818_daily_bin600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546551/Model_4FGL_J1223.5+0818_daily_bin600.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/546551/ft1_filtered_4FGL_J1223.5+0818_daily_bin600.fits.....................!
real 56.80
user 55.41
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    176.14       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8649       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7525       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.908       1.0000         .10000E-03   10000.    
    13 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17523E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.650       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1963       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0758       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3050       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9148       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9855       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.905       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3033       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71479       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=   6164.308     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3737 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2455       -.85212E-07** at limit **
   2  Prefactor     .10000E-03    41.583       -.26683E-05** at limit **
   3  Prefactor     .10000E-03    9.8126        .57464E-06** at limit **
   4  Prefactor     .10000E-03    29.735       -.10562E-04** at limit **
   5  Prefactor     .10000E-03    20.344       -.69312E-06** at limit **
   6  Prefactor     176.12        105.79        .23514E-06    .32615E-04
   7  Prefactor     5.8611        31.376        .21463E-07    .27710E-04
   8  Prefactor     .10000E-03    23.928        .17542E-05** at limit **
   9  Prefactor     .10000E-03    1.2589       -.58167E-07** at limit **
  10  Prefactor     3.7529        3.2162       -.11329E-06    .41589E-04
  11  Prefactor     .10000E-03    17.512       -.31701E-06** at limit **
  12  Prefactor     11.908        9.6881        .18937E-06    .10157E-04
  13  norm          .10000E-03    1.0906       -.16175E-06** at limit **
  14  norm          1.4645        3.1930       -.16269E-05    .40588E-04
  15  Prefactor     .10000E-03    74.591        .58312E-05** at limit **
  16  norm          14.651        25.104        .15312E-05    .60882E-04
  17  Prefactor     .10000E-03    41.677       -.25345E-05** at limit **
  18  norm          1.1964        .54450        .11794E-06    .84305E-03
  19  Prefactor     7.0766        9.2846       -.13595E-06    .52939E-05
  20  Prefactor     7.3019        30.536        .29428E-06    .11222E-04
  21  Prefactor     .10000E-03    16.405        .16785E-05** at limit **
  22  norm          1.9148        1.6427       -.11621E-06    .31227E-03
  23  Prefactor     9.9872        8.1401        .14231E-07   -.71325E-04
  24  Prefactor     .10000E-03    19.172       -.28205E-05** at limit **
  25  Prefactor     .10000E-03    40.819       -.26592E-05** at limit **
  26  Prefactor     .10000E-03    4.4498        .65886E-08** at limit **
  27  Prefactor     13.910        17.011       -.12172E-06    .14097E-04
  28  Normalizat    1.3033        .20302        .12012E-06    .13463E-03
  29  Prefactor     .71474        .15846        .58583E-06   -.27072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 176.125
  Prefactor  = 5.86111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.75286
  Prefactor  = 0.0001
  Prefactor  = 11.9076
  norm       = 0.0001
  norm       = 1.46454
  Prefactor  = 0.0001
  norm       = 14.6511
  Prefactor  = 0.0001
  norm       = 1.19644
  Prefactor  = 7.07658
  Prefactor  = 7.3019
  Prefactor  = 0.0001
  norm       = 1.91484
  Prefactor  = 9.9872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9103
  Normalizat = 1.30331
  Prefactor  = 0.714744
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.308     FROM HESSE     STATUS=OK           551 CALLS     4288 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2466        .17563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.074        .33456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     176.12        106.76        .15204E-03   -1.3046    
   7  Prefactor     5.8611        30.871        .16583E-03   -1.5224    
   8  Prefactor     .10000E-03    24.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2694        .85936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7529        3.2205        .12469E-03   -1.5320    
  11  Prefactor     .10000E-03    17.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.908        9.6511        .11609E-03   -1.5018    
  13  norm          .10000E-03    1.1071        .79791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4645        3.2288        .18390E-03   -1.5466    
  15  Prefactor     .10000E-03    76.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.651        25.054        .10464E-03   -1.4942    
  17  Prefactor     .10000E-03    41.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1964        .54027        .35389E-04   -1.5489    
  19  Prefactor     7.0766        9.2427        .15081E-03   -1.5176    
  20  Prefactor     7.3019        30.388        .14840E-03   -1.5167    
  21  Prefactor     .10000E-03    16.832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9148        1.6263        .86972E-04   -1.5431    
  23  Prefactor     9.9872        8.1346        .12681E-03   -1.5076    
  24  Prefactor     .10000E-03    19.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    41.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.4573        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.910        17.125        .10741E-03   -1.4962    
  28  Normalizat    1.3033        .24303        .24745E-03   -.83468    
  29  Prefactor     .71474        .18651        .27002E-03   -1.0295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98576e-10
Minuit parameter uncertainties:
  1  1.45849e-06
  2  0.000102707
  3  4.62601e-05
  4  6.81687e-05
  5  0.000125198
  6  106.877
  7  26.924
  8  1.38367e-05
  9  1.11532e-07
  10  3.22069
  11  5.3342e-05
  12  9.65234
  13  6.41968e-06
  14  3.22918
  15  0.000153508
  16  25.0724
  17  6.77676e-05
  18  0.540274
  19  9.24453
  20  29.8176
  21  0.000120866
  22  1.62636
  23  8.1355
  24  6.83427e-05
  25  6.03302e-05
  26  6.13258e-08
  27  17.131
  28  0.243248
  29  0.186677
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  7.147e-01  1.867e-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.303e+00  2.432e-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: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546551/likelihoodResults_394848001_395107201_4FGL_J1223.5+0818_daily_bin600.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) = 6164.30765648
delta logL = -6.23973510301e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6164.30759415
delta logL = -7.07577783032e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10631E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0267       1.0000          .0000       10.000    
     3 'Normalizat'    1.3033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71474       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=   6164.308     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.009        .90712E-02** at limit **
   2  Index         2.0039        8.5841        .50000        .19235E-05
   3  Normalizat    1.3033        .22755E-02    .55959E-01    .54524E-04
   4  Prefactor     .71475        .19074E-02    .61047E-01    .57583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.00388
  Normalizat = 1.30331
  Prefactor  = 0.714746
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.308     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    939.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0039        6.2934        .50000       -.64253    
   3  Normalizat    1.3033        .17648E-01    .24745E-03   -.83468    
   4  Prefactor     .71475        .14781E-01    .27002E-03   -1.0295    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40591e-08
Minuit parameter uncertainties:
  1  0.00379849
  2  299.568
  3  0.0176478
  4  0.0147808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546551': 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) = 6164.3075941
delta logL = -1.535499905e-08

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.798e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.004e+00  2.996e+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:  7.147e-01  1.478e-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:  1.303e+00  1.765e-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/546551/cmap_HighResolution_394848001_395107201_4FGL_J1223.5+0818_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-05 11:00:00.507803', job_id='546551', GAL2='0.71', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630864800.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-1.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='600' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:00:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 546551: <4FGL_J1223.5+0818_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin600 185.883 8.3017 394848001 395107201 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 :                                   820.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

