/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 41 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 = 7395
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin106
RA = 185.883, Dec = 8.3017
tmin = 266803201, tmax = 267062401
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='543341', job_status='RUN', time_executed='2021-09-05 10:36:36.745682', time_epoch_executed='1630863396.75' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543341/ft1_4FGL_J1223.5+0818_daily_bin106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543341/ft2_4FGL_J1223.5+0818_daily_bin106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543341/ft1_4FGL_J1223.5+0818_daily_bin106.fits outfile=/scratch/kocevski/543341/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin106.fits ra=185.883 dec=8.3017 rad=12.0 tmin=266803201.0 tmax=267062401.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.52
user 1.77
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543341/ft1_filtered_4FGL_J1223.5+0818_daily_bin106.fits evtable="EVENTS" scfile=/scratch/kocevski/543341/ft2_4FGL_J1223.5+0818_daily_bin106.fits sctable="SC_DATA" expcube=/scratch/kocevski/543341/ltcube_266803201_267062401_4FGL_J1223.5+0818_daily_bin106.fits outfile=/scratch/kocevski/543341/expmap_266803201_267062401_4FGL_J1223.5+0818_daily_bin106.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/543341/ltcube_266803201_267062401_4FGL_J1223.5+0818_daily_bin106.fits
.....................!
real 190.25
user 185.13
sys 4.05

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/543341/ft1_filtered_4FGL_J1223.5+0818_daily_bin106.fits scfile=/scratch/kocevski/543341/ft2_4FGL_J1223.5+0818_daily_bin106.fits outfile=/scratch/kocevski/543341/cmap_266803201_267062401_4FGL_J1223.5+0818_daily_bin106.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543341/ft1_filtered_4FGL_J1223.5+0818_daily_bin106.fits scfile=/scratch/kocevski/543341/ft2_4FGL_J1223.5+0818_daily_bin106.fits outfile=/scratch/kocevski/543341/cmap_HighResolution_266803201_267062401_4FGL_J1223.5+0818_daily_bin106.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.013       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6953       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8182       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.229       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20871       1.0000         .10000E-03   10000.    
    13 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.782       1.0000         .10000E-03   10000.    
    16 'norm      '    22.891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6953       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.869       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5061       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.6353       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6956       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.8222       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0305       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87752       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=   7367.758     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3798 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5237        .23090E-06** at limit **
   2  Prefactor     .10000E-03    51.707        .43619E-05** at limit **
   3  Prefactor     10.018        9.2431       -.29385E-05   -.74994E-04
   4  Prefactor     4.6957        4.1907       -.23180E-06    .12858E-03
   5  Prefactor     5.5867        15.041       -.34759E-05   -.75453E-04
   6  Prefactor     .10000E-03    55.759        .16154E-04** at limit **
   7  Prefactor     .10000E-03    7.2368        .32151E-07** at limit **
   8  Prefactor     7.8065        18.338       -.35016E-05    .17857E-04
   9  Prefactor     .10000E-03    1.1814       -.15163E-06** at limit **
  10  Prefactor     2.3455        2.3186       -.10618E-06   -.17000E-03
  11  Prefactor     15.228        21.627        .44576E-06    .91530E-05
  12  Prefactor     .23896        5.9259       -.57472E-06   -.10694E-04
  13  norm          .10000E-03    1.4875        .15062E-07** at limit **
  14  norm          4.0365        3.5696       -.43344E-07   -.38543E-03
  15  Prefactor     17.762        30.486       -.15744E-04    .98643E-05
  16  norm          22.890        28.572       -.73564E-06    .86967E-05
  17  Prefactor     .10000E-03    72.391       -.59007E-05** at limit **
  18  norm          2.6953        .62724       -.21344E-07    .85144E-03
  19  Prefactor     22.869        13.293        .17836E-05    .13208E-03
  20  Prefactor     8.4911        32.516       -.20534E-04   -.12797E-04
  21  Prefactor     .10000E-03    2.2738       -.44636E-07** at limit **
  22  norm          3.6354        1.7211       -.12498E-06   -.14621E-03
  23  Prefactor     6.6970        9.3427       -.27463E-05   -.98131E-04
  24  Prefactor     .10000E-03    21.034       -.28752E-06** at limit **
  25  Prefactor     .10000E-03    48.302       -.11523E-04** at limit **
  26  Prefactor     10.060        10.732        .73742E-06    .43081E-04
  27  Prefactor     6.8235        12.341        .23868E-05   -.45161E-04
  28  Normalizat    1.0303        .18714        .26927E-05    .11892E-03
  29  Prefactor     .87755        .15540        .16309E-05    .20388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0182
  Prefactor  = 4.69566
  Prefactor  = 5.5867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.80646
  Prefactor  = 0.0001
  Prefactor  = 2.34553
  Prefactor  = 15.2279
  Prefactor  = 0.238962
  norm       = 0.0001
  norm       = 4.03645
  Prefactor  = 17.7615
  norm       = 22.8899
  Prefactor  = 0.0001
  norm       = 2.69529
  Prefactor  = 22.8686
  Prefactor  = 8.49109
  Prefactor  = 0.0001
  norm       = 3.6354
  Prefactor  = 6.69705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0599
  Prefactor  = 6.82348
  Normalizat = 1.03026
  Prefactor  = 0.877551
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.758     FROM HESSE     STATUS=OK           567 CALLS     4365 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.018        9.2520        .12663E-03   -1.5075    
   4  Prefactor     4.6957        4.1924        .16131E-03   -1.5275    
   5  Prefactor     5.5867        15.074        .16990E-03   -1.5235    
   6  Prefactor     .10000E-03    55.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8065        18.195        .14341E-03   -1.5149    
   9  Prefactor     .10000E-03    5.4272        .17490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3455        2.2478        .12145E-03   -1.5402    
  11  Prefactor     15.228        21.607        .10263E-03   -1.4927    
  12  Prefactor     .23896        74.534        .36456E-02   -1.5610    
  13  norm          .10000E-03    2.5836        .19121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0365        3.5608        .13117E-03   -1.5306    
  15  Prefactor     17.762        30.439        .94981E-04   -1.4865    
  16  norm          22.890        28.590        .83719E-04   -1.4751    
  17  Prefactor     .10000E-03    72.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6953        .62692        .29528E-04   -1.5380    
  19  Prefactor     22.869        13.228        .83760E-04   -1.4751    
  20  Prefactor     8.4911        32.498        .13745E-03   -1.5125    
  21  Prefactor     .10000E-03    2.2764        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.6354        1.7179        .72830E-04   -1.5327    
  23  Prefactor     6.6970        9.3618        .15507E-03   -1.5190    
  24  Prefactor     .10000E-03    21.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    48.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.060        10.710        .12626E-03   -1.5074    
  27  Prefactor     6.8235        12.316        .15361E-03   -1.5185    
  28  Normalizat    1.0303        .22018        .27221E-03   -.92023    
  29  Prefactor     .87755        .18252        .25514E-03   -.96930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79431e-08
Minuit parameter uncertainties:
  1  4.95944e-06
  2  3.38695e-05
  3  9.2533
  4  4.19271
  5  15.084
  6  0.000205771
  7  2.9474e-06
  8  18.2075
  9  4.81869e-05
  10  2.2479
  11  21.6183
  12  8.4494
  13  5.19503e-06
  14  3.56096
  15  30.4653
  16  28.6073
  17  0.000160436
  18  0.626926
  19  13.23
  20  32.5658
  21  1.20544e-06
  22  1.71795
  23  9.36383
  24  1.76476e-05
  25  0.000148229
  26  10.7125
  27  12.3204
  28  0.220379
  29  0.182648
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  8.776e-01  1.826e-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.030e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 7.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/543341/likelihoodResults_266803201_267062401_4FGL_J1223.5+0818_daily_bin106.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): 0
logL (Free Index) = 7367.71045306
delta logL = 0.047167010609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7367.69679169
delta logL = 0.0608283760821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.070       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1961       1.0000          .0000       10.000    
     3 'Normalizat'    1.0246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87948       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=   7367.697     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      259 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.063        31.953        .11080E-03    .40449E-03
   2  Index         2.1964        .94614        .88946E-02    .17707E-03
   3  Normalizat    1.0246        .20543        .27284E-03   -.94832E-03
   4  Prefactor     .87945        .18007        .25486E-03   -.12802E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0629
  Index      = 2.19642
  Normalizat = 1.02461
  Prefactor  = 0.879448
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.697     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.063        27.331        .22159E-04   -1.4985    
   2  Index         2.1964        .81086        .35578E-03   -.59525    
   3  Normalizat    1.0246        .20518        .54567E-04   -.92211    
   4  Prefactor     .87945        .17986        .50973E-04   -.96863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53633e-09
Minuit parameter uncertainties:
  1  27.3573
  2  0.816138
  3  0.205337
  4  0.179984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543341': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7367.69679151
delta logL = 0.0608285576209

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.306e+01  2.736e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.196e+00  8.161e-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:  8.794e-01  1.800e-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.025e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 185.883 8.302

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/543341/cmap_HighResolution_266803201_267062401_4FGL_J1223.5+0818_daily_bin106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='7.18e-08', time_completed='2021-09-05 10:51:59.067130', job_id='543341', GAL2='0.88', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1630864319.07', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.08e-02', ts2='0.56', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='106' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 543341: <4FGL_J1223.5+0818_daily_bin106> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin106> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:35:39 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:35: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:35:41 2021
Terminated at Sun Sep  5 10:51:59 2021
Results reported at Sun Sep  5 10:51:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin106 185.883 8.3017 266803201 267062401 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 :                                   916.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

