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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin613
RA = 185.883, Dec = 8.3017
tmin = 398217601, tmax = 398476801
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='546572', job_status='RUN', time_executed='2021-09-05 10:49:43.395720', time_epoch_executed='1630864183.4' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546572

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546572/ft1_4FGL_J1223.5+0818_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546572/ft2_4FGL_J1223.5+0818_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546572/ft1_4FGL_J1223.5+0818_daily_bin613.fits outfile=/scratch/kocevski/546572/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin613.fits ra=185.883 dec=8.3017 rad=12.0 tmin=398217601.0 tmax=398476801.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 6.54
user 6.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546572/ft1_filtered_4FGL_J1223.5+0818_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/546572/ft2_4FGL_J1223.5+0818_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/546572/ltcube_398217601_398476801_4FGL_J1223.5+0818_daily_bin613.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/546572/ft2_4FGL_J1223.5+0818_daily_bin613.fits
.....................!
real 10.87
user 10.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546572/ft1_filtered_4FGL_J1223.5+0818_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/546572/ft2_4FGL_J1223.5+0818_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/546572/ltcube_398217601_398476801_4FGL_J1223.5+0818_daily_bin613.fits outfile=/scratch/kocevski/546572/expmap_398217601_398476801_4FGL_J1223.5+0818_daily_bin613.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/546572/ltcube_398217601_398476801_4FGL_J1223.5+0818_daily_bin613.fits
.....................!
real 191.16
user 184.93
sys 5.84

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/546572/ft1_filtered_4FGL_J1223.5+0818_daily_bin613.fits scfile=/scratch/kocevski/546572/ft2_4FGL_J1223.5+0818_daily_bin613.fits outfile=/scratch/kocevski/546572/cmap_398217601_398476801_4FGL_J1223.5+0818_daily_bin613.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546572/ft1_filtered_4FGL_J1223.5+0818_daily_bin613.fits scfile=/scratch/kocevski/546572/ft2_4FGL_J1223.5+0818_daily_bin613.fits outfile=/scratch/kocevski/546572/cmap_HighResolution_398217601_398476801_4FGL_J1223.5+0818_daily_bin613.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/546572/ft1_filtered_4FGL_J1223.5+0818_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/546572/ft2_4FGL_J1223.5+0818_daily_bin613.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546572/Model_4FGL_J1223.5+0818_daily_bin613.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/546572/ft1_filtered_4FGL_J1223.5+0818_daily_bin613.fits.....................!
real 44.56
user 43.23
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5171       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4637       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5104       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4709       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9308       1.0000         .10000E-03   10000.    
    13 'norm      '    .13257E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .22246E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7009       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.452       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.567       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5883       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84517       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3020       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=   4770.930     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3734 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5194        23.509       -.25814E-05   -.84471E-05
   2  Prefactor     .10000E-03    54.786       -.83434E-05** at limit **
   3  Prefactor     6.4634        8.4285       -.13382E-05   -.11185E-02
   4  Prefactor     .10000E-03    4.3547       -.41284E-07** at limit **
   5  Prefactor     16.301        19.271       -.26789E-06   -.73009E-05
   6  Prefactor     .10000E-03    30.110        .89565E-05** at limit **
   7  Prefactor     36.507        37.191        .12325E-04   -.12036E-03
   8  Prefactor     21.862        25.267       -.12617E-05    .31623E-05
   9  Prefactor     1.9531        3.6873       -.30415E-06   -.44868E-03
  10  Prefactor     2.5089        4.5587       -.36593E-06   -.45416E-03
  11  Prefactor     2.3494        105.36       -.82139E-04    .24379E-04
  12  Prefactor     9.9101        13.033       -.10983E-06   -.64601E-04
  13  norm          .10000E-03    2.4346       -.64101E-07** at limit **
  14  norm          .10001E-03    1.9881        .15099E-05** at limit **
  15  Prefactor     .10000E-03    15.508        .30926E-05** at limit **
  16  norm          .10000E-03    35.268       -.30476E-05** at limit **
  17  Prefactor     .10001E-03    128.62        .45893E-04** at limit **
  18  norm          1.7007        .68847       -.17838E-07   -.14806E-02
  19  Prefactor     19.451        18.947       -.25650E-06   -.32294E-03
  20  Prefactor     18.563        35.012       -.28239E-05    .22660E-04
  21  Prefactor     .10000E-03    5.7079       -.38189E-07** at limit **
  22  norm          3.5881        1.9846       -.73094E-07   -.27210E-03
  23  Prefactor     .10000E-03    20.795       -.56918E-05** at limit **
  24  Prefactor     .10000E-03    10.965        .31277E-06** at limit **
  25  Prefactor     .10000E-03    57.422       -.11658E-05** at limit **
  26  Prefactor     .10000E-03    13.653       -.27946E-05** at limit **
  27  Prefactor     .10000E-03    16.053        .13404E-05** at limit **
  28  Normalizat    .84556        .24921        .52239E-06    .20897E-04
  29  Prefactor     1.3017        .21481        .22067E-05   -.50679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.51938
  Prefactor  = 0.0001
  Prefactor  = 6.46335
  Prefactor  = 0.0001
  Prefactor  = 16.3008
  Prefactor  = 0.000100001
  Prefactor  = 36.5066
  Prefactor  = 21.8616
  Prefactor  = 1.95314
  Prefactor  = 2.50894
  Prefactor  = 2.34944
  Prefactor  = 9.9101
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 1.70071
  Prefactor  = 19.451
  Prefactor  = 18.5626
  Prefactor  = 0.0001
  norm       = 3.58808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.845555
  Prefactor  = 1.30173
 **********
 **   18 **HESSE 
 **********

 FCN=   4770.930     FROM HESSE     STATUS=OK           553 CALLS     4287 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5194        23.525        .15720E-03   -1.5197    
   2  Prefactor     .10000E-03    54.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4634        8.5002        .78931E-03   -1.5199    
   4  Prefactor     .10000E-03    4.3689        .14075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.301        19.287        .99193E-04   -1.4900    
   6  Prefactor     .10000E-03    30.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.507        37.083        .66344E-04   -1.4499    
   8  Prefactor     21.862        25.263        .85658E-04   -1.4772    
   9  Prefactor     1.9531        3.6072        .16177E-03   -1.5428    
  10  Prefactor     2.5089        4.4714        .17433E-03   -1.5391    
  11  Prefactor     2.3494        106.52        .26013E-03   -1.5401    
  12  Prefactor     9.9101        11.990        .12716E-03   -1.5078    
  13  norm          .10000E-03    5.6384        .19188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    8.6564        .18258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    35.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    127.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7007        .67539        .33889E-04   -1.5447    
  19  Prefactor     19.451        18.947        .45407E-03   -1.4826    
  20  Prefactor     18.563        34.960        .92952E-04   -1.4846    
  21  Prefactor     .10000E-03    5.7309        .16116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5881        1.9827        .69003E-04   -1.5329    
  23  Prefactor     .10000E-03    21.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    57.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .84556        .29393        .32743E-03   -.98401    
  29  Prefactor     1.3017        .25594        .23842E-03   -.83256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00394e-09
Minuit parameter uncertainties:
  1  23.5584
  2  0.000287612
  3  8.50181
  4  1.56961e-05
  5  19.2947
  6  0.000255311
  7  37.106
  8  25.2757
  9  3.60764
  10  4.47202
  11  31.6996
  12  11.993
  13  2.1818e-05
  14  0.000482471
  15  3.59382e-05
  16  0.000155946
  17  0.00261302
  18  0.675389
  19  18.9532
  20  34.9986
  21  6.78367e-06
  22  1.98278
  23  0.000141318
  24  8.88252e-06
  25  1.00843e-05
  26  2.99998e-05
  27  6.49897e-05
  28  0.294487
  29  0.256191
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  3.594e-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:  1.302e+00  2.562e-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:  8.456e-01  2.945e-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: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546572/likelihoodResults_398217601_398476801_4FGL_J1223.5+0818_daily_bin613.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) = 4770.93049974
delta logL = -0.000305724915961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4770.93019535
delta logL = -1.33006687975e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2382       1.0000          .0000       10.000    
     3 'Normalizat'    .84554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3017       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=   4770.930     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      274 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10169E-03    64.303        .18142E-02** at limit **
   2  Index         2.1801        7.7715        .50000        .19117E-04
   3  Normalizat    .84555        .13867E-01    .32743E-03    .41665E-06
   4  Prefactor     1.3017        .12303E-01    .23842E-03    .50955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101693
  Index      = 2.18014
  Normalizat = 0.845553
  Prefactor  = 1.30173
 **********
 **   18 **HESSE 
 **********

 FCN=   4770.930     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10169E-03    324.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1801        6.2317        .50000       -.59919    
   3  Normalizat    .84555        .32051E-01    .13097E-04   -.98401    
   4  Prefactor     1.3017        .28431E-01    .47684E-04   -.83256    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64516e-08
Minuit parameter uncertainties:
  1  0.0471406
  2  438.853
  3  0.0320521
  4  0.028431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546572': 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) = 4770.93019499
delta logL = -9.67529558693e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.017e-04  4.714e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.180e+00  4.389e+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.302e+00  2.843e-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:  8.456e-01  3.205e-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/546572/cmap_HighResolution_398217601_398476801_4FGL_J1223.5+0818_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-09-05 11:01:34.030642', job_id='546572', GAL2='1.30', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630864894.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='-9.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='613' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 546572: <4FGL_J1223.5+0818_daily_bin613> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin613 185.883 8.3017 398217601 398476801 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 :                                   708.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

