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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin515
RA = 185.883, Dec = 8.3017
tmin = 372816001, tmax = 373075201
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='546378', job_status='RUN', time_executed='2021-09-05 10:47:55.615170', time_epoch_executed='1630864075.62' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546378/ft1_4FGL_J1223.5+0818_daily_bin515.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546378/ft2_4FGL_J1223.5+0818_daily_bin515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546378/ft1_4FGL_J1223.5+0818_daily_bin515.fits outfile=/scratch/kocevski/546378/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin515.fits ra=185.883 dec=8.3017 rad=12.0 tmin=372816001.0 tmax=373075201.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.64
user 4.29
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546378/ft1_filtered_4FGL_J1223.5+0818_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/546378/ft2_4FGL_J1223.5+0818_daily_bin515.fits sctable="SC_DATA" expcube=/scratch/kocevski/546378/ltcube_372816001_373075201_4FGL_J1223.5+0818_daily_bin515.fits outfile=/scratch/kocevski/546378/expmap_372816001_373075201_4FGL_J1223.5+0818_daily_bin515.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/546378/ltcube_372816001_373075201_4FGL_J1223.5+0818_daily_bin515.fits
.....................!
real 189.68
user 184.44
sys 4.74

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/546378/ft1_filtered_4FGL_J1223.5+0818_daily_bin515.fits scfile=/scratch/kocevski/546378/ft2_4FGL_J1223.5+0818_daily_bin515.fits outfile=/scratch/kocevski/546378/cmap_372816001_373075201_4FGL_J1223.5+0818_daily_bin515.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.57
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.099       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.857       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.999       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4595       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18635E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1820       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2852       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    50.404       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .42238       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.538       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.114       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.065       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.4254       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.346       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0795       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91196       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=   6300.536     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3712 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.099        17.362       -.21697E-06   -.92878E-05
   2  Prefactor     25.857        95.147       -.40470E-06    .10280E-06
   3  Prefactor     .10000E-03    5.8238        .18718E-05** at limit **
   4  Prefactor     .10000E-03    7.2562        .57549E-06** at limit **
   5  Prefactor     10.543        10.904       -.69220E-06   -.56271E-03
   6  Prefactor     .10000E-03    22.798        .23078E-04** at limit **
   7  Prefactor     75.997        47.896       -.21603E-07    .41697E-04
   8  Prefactor     .10000E-03    7.9897       -.58710E-06** at limit **
   9  Prefactor     2.8879        2.9766       -.10815E-06   -.30178E-03
  10  Prefactor     4.4596        3.6769       -.71265E-07   -.17540E-03
  11  Prefactor     .10057E-03    29.349       -.12441E-05** at limit **
  12  Prefactor     8.1819        9.3528       -.26444E-07   -.92060E-05
  13  norm          3.2853        2.7089       -.35121E-07   -.63066E-04
  14  norm          2.0484        3.9058       -.46789E-06   -.51146E-03
  15  Prefactor     .10000E-03    18.984       -.19426E-04** at limit **
  16  norm          50.405        44.149        .51981E-06    .33266E-04
  17  Prefactor     .10000E-03    48.561        .13289E-04** at limit **
  18  norm          .42218        .44174       -.18287E-07   -.36910E-03
  19  Prefactor     17.540        11.937        .22327E-06    .27259E-03
  20  Prefactor     .10000E-03    33.448       -.19137E-04** at limit **
  21  Prefactor     .10000E-03    5.8716       -.19323E-05** at limit **
  22  norm          15.115        2.9557        .13955E-07    .21616E-03
  23  Prefactor     .10000E-03    5.3590       -.14113E-07** at limit **
  24  Prefactor     24.064        39.422       -.71893E-06    .46196E-05
  25  Prefactor     6.4233        75.244        .69706E-06   -.49218E-05
  26  Prefactor     14.344        15.893       -.14249E-05   -.92896E-03
  27  Prefactor     .10000E-03    15.784        .57778E-05** at limit **
  28  Normalizat    1.0796        .21481        .80893E-06    .10946E-03
  29  Prefactor     .91194        .18054       -.33544E-08    .13083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0994
  Prefactor  = 25.857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5425
  Prefactor  = 0.0001
  Prefactor  = 75.9972
  Prefactor  = 0.0001
  Prefactor  = 2.88789
  Prefactor  = 4.45962
  Prefactor  = 0.000100571
  Prefactor  = 8.18187
  norm       = 3.2853
  norm       = 2.04836
  Prefactor  = 0.0001
  norm       = 50.4052
  Prefactor  = 0.0001
  norm       = 0.422182
  Prefactor  = 17.5395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1147
  Prefactor  = 0.0001
  Prefactor  = 24.0638
  Prefactor  = 6.42328
  Prefactor  = 14.3442
  Prefactor  = 0.0001
  Normalizat = 1.07956
  Prefactor  = 0.911938
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.536     FROM HESSE     STATUS=OK           559 CALLS     4271 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.099        17.359        .12025E-03   -1.5042    
   2  Prefactor     25.857        95.247        .78780E-04   -1.4691    
   3  Prefactor     .10000E-03    5.8540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.543        10.946        .61699E-03   -1.5058    
   6  Prefactor     .10000E-03    22.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     75.997        47.688        .46060E-04   -1.3962    
   8  Prefactor     .10000E-03    7.9960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8879        2.9533        .12604E-03   -1.5368    
  10  Prefactor     4.4596        3.6596        .12389E-03   -1.5286    
  11  Prefactor     .10057E-03    258.15        .79042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1819        9.3297        .14016E-03   -1.5136    
  13  norm          3.2853        2.7055        .10816E-03   -1.5345    
  14  norm          2.0484        3.7294        .17864E-03   -1.5422    
  15  Prefactor     .10000E-03    18.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          50.405        43.934        .56487E-04   -1.4287    
  17  Prefactor     .10000E-03    48.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .42218        .41592        .49935E-03   -1.5578    
  19  Prefactor     17.540        11.936        .95638E-04   -1.4870    
  20  Prefactor     .10000E-03    33.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.9055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.115        2.9480        .56441E-04   -1.4930    
  23  Prefactor     .10000E-03    5.3707        .17945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.064        39.394        .81655E-04   -1.4726    
  25  Prefactor     6.4233        74.046        .15834E-03   -1.5201    
  26  Prefactor     14.344        16.015        .52874E-03   -1.4950    
  27  Prefactor     .10000E-03    15.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0796        .25173        .28761E-03   -.90411    
  29  Prefactor     .91194        .21037        .26968E-03   -.95725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44185e-09
Minuit parameter uncertainties:
  1  17.3672
  2  95.8143
  3  5.61434e-06
  4  5.83056e-06
  5  10.948
  6  2.35702e-06
  7  47.712
  8  9.53851e-07
  9  2.95344
  10  3.65973
  11  0.0243857
  12  9.33138
  13  2.70557
  14  3.72978
  15  1.54762e-05
  16  43.9621
  17  7.21723e-06
  18  0.415928
  19  11.9374
  20  8.11655e-05
  21  1.59936e-06
  22  2.94807
  23  1.18758e-07
  24  39.4361
  25  43.685
  26  16.02
  27  4.55029e-06
  28  0.252005
  29  0.210562
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.119e-01  2.106e-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.080e+00  2.520e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546378/likelihoodResults_372816001_373075201_4FGL_J1223.5+0818_daily_bin515.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) = 6300.53605743
delta logL = -0.000252766974882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6300.53580508
delta logL = -4.20966898673e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0120       1.0000          .0000       10.000    
     3 'Normalizat'    1.0796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91194       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=   6300.536     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    450.40        .90712E-02** at limit **
   2  Index         1.9763        7.6049        .50000        .18270E-04
   3  Normalizat    1.0796        .27288E-01    .65017E-01    .79769E-05
   4  Prefactor     .91194        .23849E-01    .45157E-01    .31304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.97632
  Normalizat = 1.07956
  Prefactor  = 0.911937
 **********
 **   18 **HESSE 
 **********

 FCN=   6300.536     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1074.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9763        5.0833        .50000       -.64944    
   3  Normalizat    1.0796        .44684E-01    .28761E-03   -.90411    
   4  Prefactor     .91194        .39081E-01    .13484E-02   -.95725    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.22142e-09
Minuit parameter uncertainties:
  1  0.00196365
  2  32.1891
  3  0.0446854
  4  0.0390823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546378': 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) = 6300.53580492
delta logL = -2.57445208263e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.964e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.976e+00  3.219e+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:  9.119e-01  3.908e-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.080e+00  4.469e-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/546378/cmap_HighResolution_372816001_373075201_4FGL_J1223.5+0818_daily_bin515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-05 11:01:51.444595', job_id='546378', GAL2='0.91', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630864911.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-2.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='515' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 546378: <4FGL_J1223.5+0818_daily_bin515> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin515 185.883 8.3017 372816001 373075201 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 :                                   832.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

