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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin981
RA = 185.883, Dec = 8.3017
tmin = 493603201, tmax = 493862401
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='548273', job_status='RUN', time_executed='2021-09-05 10:54:19.127137', time_epoch_executed='1630864459.13' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548273

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548273/ft1_4FGL_J1223.5+0818_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548273/ft2_4FGL_J1223.5+0818_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548273/ft1_4FGL_J1223.5+0818_daily_bin981.fits outfile=/scratch/kocevski/548273/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin981.fits ra=185.883 dec=8.3017 rad=12.0 tmin=493603201.0 tmax=493862401.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.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548273/ft1_filtered_4FGL_J1223.5+0818_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/548273/ft2_4FGL_J1223.5+0818_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/548273/ltcube_493603201_493862401_4FGL_J1223.5+0818_daily_bin981.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/548273/ft2_4FGL_J1223.5+0818_daily_bin981.fits
.....................!
real 11.82
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548273/ft1_filtered_4FGL_J1223.5+0818_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/548273/ft2_4FGL_J1223.5+0818_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/548273/ltcube_493603201_493862401_4FGL_J1223.5+0818_daily_bin981.fits outfile=/scratch/kocevski/548273/expmap_493603201_493862401_4FGL_J1223.5+0818_daily_bin981.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/548273/ltcube_493603201_493862401_4FGL_J1223.5+0818_daily_bin981.fits
.....................!
real 193.84
user 187.96
sys 5.46

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/548273/ft1_filtered_4FGL_J1223.5+0818_daily_bin981.fits scfile=/scratch/kocevski/548273/ft2_4FGL_J1223.5+0818_daily_bin981.fits outfile=/scratch/kocevski/548273/cmap_493603201_493862401_4FGL_J1223.5+0818_daily_bin981.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548273/ft1_filtered_4FGL_J1223.5+0818_daily_bin981.fits scfile=/scratch/kocevski/548273/ft2_4FGL_J1223.5+0818_daily_bin981.fits outfile=/scratch/kocevski/548273/cmap_HighResolution_493603201_493862401_4FGL_J1223.5+0818_daily_bin981.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.119       1.0000         .10000E-03   10000.    
     2 'Prefactor '    52.253       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12388E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68644       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76060       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.371       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8413       1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.246       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .46822       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.229       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0171       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6683       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5014       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    60.202       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2396       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94643       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0066       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=   5382.820     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3687 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.121        23.372       -.61412E-07    .15499E-05
   2  Prefactor     52.262        85.102       -.26757E-05   -.53853E-04
   3  Prefactor     17.954        13.817       -.22264E-06    .15140E-03
   4  Prefactor     .10000E-03    8.4982       -.73184E-06** at limit **
   5  Prefactor     .10000E-03    6.6652       -.15065E-06** at limit **
   6  Prefactor     .10000E-03    109.97       -.68753E-05** at limit **
   7  Prefactor     .63983        444.72       -.10043E-03    .21472E-04
   8  Prefactor     .10000E-03    5.4984       -.35713E-07** at limit **
   9  Prefactor     1.1581        2.1272        .57095E-06    .19337E-02
  10  Prefactor     .75907        2.4812       -.30274E-05    .98552E-03
  11  Prefactor     11.375        19.688       -.13458E-05    .27196E-03
  12  Prefactor     9.8381        9.0685        .20900E-08    .99588E-04
  13  norm          .10000E-03    1.2045       -.13223E-06** at limit **
  14  norm          13.244        5.3884        .46324E-06    .32898E-03
  15  Prefactor     .10000E-03    12.263       -.10272E-06** at limit **
  16  norm          .10000E-03    48.326       -.83673E-06** at limit **
  17  Prefactor     .10000E-03    47.307        .18585E-05** at limit **
  18  norm          .46858        .61762       -.51149E-06   -.98014E-03
  19  Prefactor     11.228        9.6640       -.23573E-06    .56089E-04
  20  Prefactor     8.0173        22.220       -.24154E-06    .85722E-04
  21  Prefactor     4.6677        5.9987       -.16542E-06    .64228E-04
  22  norm          3.5010        2.2576       -.31867E-06    .50920E-03
  23  Prefactor     .10000E-03    10.740       -.51696E-07** at limit **
  24  Prefactor     60.180        51.839        .73235E-05    .29500E-03
  25  Prefactor     .10000E-03    30.269       -.92407E-06** at limit **
  26  Prefactor     .10000E-03    5.3367       -.28549E-06** at limit **
  27  Prefactor     8.2394        11.809       -.69750E-06    .10082E-03
  28  Normalizat    .94650        .22206        .36159E-05    .28725E-03
  29  Prefactor     1.0067        .18506        .39807E-06    .45314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1206
  Prefactor  = 52.2624
  Prefactor  = 17.9545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.639827
  Prefactor  = 0.0001
  Prefactor  = 1.15811
  Prefactor  = 0.759068
  Prefactor  = 11.375
  Prefactor  = 9.83807
  norm       = 0.0001
  norm       = 13.244
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.468575
  Prefactor  = 11.2281
  Prefactor  = 8.01725
  Prefactor  = 4.6677
  norm       = 3.50103
  Prefactor  = 0.000100001
  Prefactor  = 60.1801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.23943
  Normalizat = 0.946502
  Prefactor  = 1.00666
 **********
 **   18 **HESSE 
 **********

 FCN=   5382.820     FROM HESSE     STATUS=OK           561 CALLS     4248 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.121        23.367        .10659E-03   -1.4956    
   2  Prefactor     52.262        85.334        .55483E-04   -1.4261    
   3  Prefactor     17.954        13.831        .94538E-04   -1.4860    
   4  Prefactor     .10000E-03    8.5739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    110.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .63983        42.449        .12393       -1.5548    
   8  Prefactor     .10000E-03    5.5007        .16803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1581        2.0501        .13476E-03   -1.5493    
  10  Prefactor     .75907        2.4849        .19682E-03   -1.5534    
  11  Prefactor     11.375        19.703        .59401E-03   -1.5033    
  12  Prefactor     9.8381        9.0361        .12774E-03   -1.5081    
  13  norm          .10000E-03    1.2152        .78444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.244        5.3212        .92410E-04   -1.4980    
  15  Prefactor     .10000E-03    12.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    48.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .46858        .58793        .56968E-03   -1.5571    
  19  Prefactor     11.228        9.6497        .11955E-03   -1.5038    
  20  Prefactor     8.0173        22.198        .14160E-03   -1.5142    
  21  Prefactor     4.6677        5.9917        .18626E-03   -1.5276    
  22  norm          3.5010        2.2373        .81098E-04   -1.5334    
  23  Prefactor     .10000E-03    10.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     60.180        53.204        .51711E-04   -1.4155    
  25  Prefactor     .10000E-03    30.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.3659        .16552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.2394        11.815        .13967E-03   -1.5134    
  28  Normalizat    .94650        .25410        .28171E-03   -.94845    
  29  Prefactor     1.0067        .21283        .24214E-03   -.92508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18298e-09
Minuit parameter uncertainties:
  1  23.3825
  2  85.534
  3  13.8331
  4  2.3889e-05
  5  5.63086e-06
  6  0.000837569
  7  10.43
  8  2.55575e-07
  9  2.05019
  10  2.48527
  11  19.7143
  12  9.0373
  13  1.60005e-06
  14  5.32144
  15  9.30009e-07
  16  0.000154295
  17  0.000185886
  18  0.587936
  19  9.65101
  20  22.2208
  21  5.99244
  22  2.23733
  23  0.000209805
  24  53.2465
  25  6.83069e-05
  26  1.08916e-05
  27  11.818
  28  0.25442
  29  0.213011
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  9.300e-07  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.007e+00  2.130e-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.465e-01  2.544e-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: 4.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548273/likelihoodResults_493603201_493862401_4FGL_J1223.5+0818_daily_bin981.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) = 5382.81993515
delta logL = -0.000387934577702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5382.81954719
delta logL = 2.54703991232e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8933       1.0000          .0000       10.000    
     3 'Normalizat'    .94651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0066       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=   5382.820     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      238 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    66.618        .18142E-02** at limit **
   2  Index         1.8496        5.6966        .50000        .14993E-04
   3  Normalizat    .94650        .11519E-01    .28171E-03   -.29056E-05
   4  Prefactor     1.0067        .10232E-01    .24214E-03   -.52115E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100785
  Index      = 1.84955
  Normalizat = 0.946503
  Prefactor  = 1.00666
 **********
 **   18 **HESSE 
 **********

 FCN=   5382.820     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10079E-03    299.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8496        6.1218        .50000       -.68167    
   3  Normalizat    .94650        .24977E-01    .11268E-04   -.94845    
   4  Prefactor     1.0067        .22188E-01    .96857E-05   -.92508    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.26072e-09
Minuit parameter uncertainties:
  1  0.0308123
  2  315.199
  3  0.0249773
  4  0.0221885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548273': 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) = 5382.81954693
delta logL = 2.79868800135e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.008e-04  3.081e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.850e+00  3.152e+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:  1.007e+00  2.219e-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.465e-01  2.498e-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/548273/cmap_HighResolution_493603201_493862401_4FGL_J1223.5+0818_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2021-09-05 11:06:47.603204', job_id='548273', GAL2='1.01', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630865207.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='981' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:06:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 548273: <4FGL_J1223.5+0818_daily_bin981> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin981> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:57 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:50:58 2021
Terminated at Sun Sep  5 11:06:48 2021
Results reported at Sun Sep  5 11:06:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin981 185.883 8.3017 493603201 493862401 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 :                                   744.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

