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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin948
RA = 185.883, Dec = 8.3017
tmin = 485049601, tmax = 485308801
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='548240', job_status='RUN', time_executed='2021-09-05 10:52:43.608867', time_epoch_executed='1630864363.61' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548240/ft1_4FGL_J1223.5+0818_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548240/ft2_4FGL_J1223.5+0818_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548240/ft1_4FGL_J1223.5+0818_daily_bin948.fits outfile=/scratch/kocevski/548240/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin948.fits ra=185.883 dec=8.3017 rad=12.0 tmin=485049601.0 tmax=485308801.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.59
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548240/ft1_filtered_4FGL_J1223.5+0818_daily_bin948.fits" evtable="EVENTS" scfile=/scratch/kocevski/548240/ft2_4FGL_J1223.5+0818_daily_bin948.fits sctable="SC_DATA" outfile=/scratch/kocevski/548240/ltcube_485049601_485308801_4FGL_J1223.5+0818_daily_bin948.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/548240/ft2_4FGL_J1223.5+0818_daily_bin948.fits
.....................!
real 11.78
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548240/ft1_filtered_4FGL_J1223.5+0818_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/548240/ft2_4FGL_J1223.5+0818_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/548240/ltcube_485049601_485308801_4FGL_J1223.5+0818_daily_bin948.fits outfile=/scratch/kocevski/548240/expmap_485049601_485308801_4FGL_J1223.5+0818_daily_bin948.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/548240/ltcube_485049601_485308801_4FGL_J1223.5+0818_daily_bin948.fits
.....................!
real 191.75
user 185.89
sys 5.43

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/548240/ft1_filtered_4FGL_J1223.5+0818_daily_bin948.fits scfile=/scratch/kocevski/548240/ft2_4FGL_J1223.5+0818_daily_bin948.fits outfile=/scratch/kocevski/548240/cmap_485049601_485308801_4FGL_J1223.5+0818_daily_bin948.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548240/ft1_filtered_4FGL_J1223.5+0818_daily_bin948.fits scfile=/scratch/kocevski/548240/ft2_4FGL_J1223.5+0818_daily_bin948.fits outfile=/scratch/kocevski/548240/cmap_HighResolution_485049601_485308801_4FGL_J1223.5+0818_daily_bin948.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=185.883 yref=8.3017 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    84.887       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.930       1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.148       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.700       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4721       1.0000         .10000E-03   10000.    
    17 'Prefactor '    98.181       1.0000         .10000E-03   10000.    
    18 'norm      '    .95844       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.319       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3937       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6247       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23999E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.651       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84506       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3681       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=   6605.133     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3691 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.516        .12285E-05** at limit **
   2  Prefactor     84.749        146.07       -.11995E-05   -.45123E-04
   3  Prefactor     .10000E-03    4.6411       -.46317E-06** at limit **
   4  Prefactor     .10000E-03    10.046        .26091E-06** at limit **
   5  Prefactor     .10000E-03    13.519        .10128E-06** at limit **
   6  Prefactor     .10000E-03    39.880       -.43650E-06** at limit **
   7  Prefactor     56.953        47.595       -.12573E-06    .61693E-05
   8  Prefactor     65.153        33.611        .97983E-07   -.51690E-05
   9  Prefactor     .10000E-03    .61382        .34264E-07** at limit **
  10  Prefactor     .10000E-03    .71042        .49291E-07** at limit **
  11  Prefactor     .72264        16.238        .76753E-06   -.12994E-03
  12  Prefactor     19.707        16.060        .60707E-07   -.58087E-05
  13  norm          .10000E-03    1.0670       -.15618E-08** at limit **
  14  norm          .10000E-03    1.4830       -.61876E-07** at limit **
  15  Prefactor     .10000E-03    8.5126        .30450E-07** at limit **
  16  norm          3.4736        71.234        .15526E-04   -.12783E-04
  17  Prefactor     98.193        93.622       -.19618E-06    .52689E-05
  18  norm          .95805        .67620       -.18788E-06   -.52512E-03
  19  Prefactor     .10000E-03    20.116        .11906E-05** at limit **
  20  Prefactor     .10000E-03    15.707        .87590E-07** at limit **
  21  Prefactor     30.317        14.641        .34404E-07    .81184E-05
  22  norm          2.3927        1.6117       -.39830E-07   -.14428E-04
  23  Prefactor     9.6164        11.408       -.96261E-07    .60610E-05
  24  Prefactor     .10000E-03    263.30       -.17137E-05** at limit **
  25  Prefactor     49.650        58.129       -.17814E-07   -.21203E-05
  26  Prefactor     .10000E-03    5.0385        .11820E-06** at limit **
  27  Prefactor     .10000E-03    4.8585        .93516E-07** at limit **
  28  Normalizat    .84490        .22127        .12486E-05   -.84143E-04
  29  Prefactor     1.3682        .18806       -.11810E-05    .14869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 84.749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.9535
  Prefactor  = 65.1525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.722635
  Prefactor  = 19.7069
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47358
  Prefactor  = 98.1929
  norm       = 0.958054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3173
  norm       = 2.39268
  Prefactor  = 9.61642
  Prefactor  = 0.0001
  Prefactor  = 49.6499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.844899
  Prefactor  = 1.3682
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.133     FROM HESSE     STATUS=OK           549 CALLS     4240 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     84.749        146.61        .21801E-03   -1.3864    
   3  Prefactor     .10000E-03    4.6498        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.953        47.554        .53167E-04   -1.4197    
   8  Prefactor     65.153        33.599        .49721E-04   -1.4092    
   9  Prefactor     .10000E-03    .61574        .62180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .71226        .66887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72264        97.988        .62390E-02   -1.5538    
  12  Prefactor     19.707        15.949        .90240E-04   -1.4820    
  13  norm          .10000E-03    1.0701        .81761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4994        .96493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4736        71.799        .10851E-02   -1.5335    
  17  Prefactor     98.193        93.598        .40569E-04   -1.3723    
  18  norm          .95805        .65320        .48526E-04   -1.5512    
  19  Prefactor     .10000E-03    21.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.317        14.620        .72764E-04   -1.4606    
  22  norm          2.3927        1.6062        .80048E-04   -1.5399    
  23  Prefactor     9.6164        11.394        .12917E-03   -1.5088    
  24  Prefactor     .10000E-03    274.22        .40116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     49.650        58.190        .56911E-04   -1.4298    
  26  Prefactor     .10000E-03    5.0466        .17808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.8703        .17495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .84490        .25777        .33588E-03   -.98424    
  29  Prefactor     1.3682        .22019        .23984E-03   -.81301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29917e-10
Minuit parameter uncertainties:
  1  0.000247774
  2  147.24
  3  2.56323e-06
  4  3.21019e-06
  5  2.93103e-05
  6  0.000208185
  7  47.5859
  8  33.6092
  9  9.85025e-09
  10  8.90214e-08
  11  16.8567
  12  15.9527
  13  3.30124e-07
  14  8.83323e-06
  15  9.24707e-08
  16  31.6278
  17  93.7395
  18  0.6532
  19  4.33876e-05
  20  5.27404e-05
  21  14.6219
  22  1.60622
  23  11.3971
  24  0.000292763
  25  58.2564
  26  3.04132e-07
  27  4.13819e-07
  28  0.258141
  29  0.220345
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  9.247e-08  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.368e+00  2.203e-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.449e-01  2.581e-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: 3.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548240/likelihoodResults_485049601_485308801_4FGL_J1223.5+0818_daily_bin948.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) = 6605.13331343
delta logL = -0.000548559609342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6605.13276821
delta logL = -3.33962998411e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13792E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8937       1.0000          .0000       10.000    
     3 'Normalizat'    .84529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3678       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=   6605.133     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10133E-03    61.542        .18142E-02** at limit **
   2  Index         1.8423        7.5339        .50000        .20805E-04
   3  Normalizat    .84490        .13560E-01    .33587E-03    .16044E-04
   4  Prefactor     1.3682        .12056E-01    .23984E-03    .17539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101327
  Index      = 1.8423
  Normalizat = 0.844902
  Prefactor  = 1.36819
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.133     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10133E-03    270.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8423        7.8448        .50000       -.68354    
   3  Normalizat    .84490        .29264E-01    .13435E-04   -.98424    
   4  Prefactor     1.3682        .26017E-01    .95935E-05   -.81301    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86164e-08
Minuit parameter uncertainties:
  1  0.0380694
  2  401.318
  3  0.0292646
  4  0.026017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548240': 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) = 6605.13276448
delta logL = 3.93694790546e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.013e-04  3.807e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.842e+00  4.013e+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.368e+00  2.602e-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.449e-01  2.926e-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/548240/cmap_HighResolution_485049601_485308801_4FGL_J1223.5+0818_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-03', job_status='DONE', photon_flux_upper_limit='3.67e-08', time_completed='2021-09-05 11:06:35.765812', job_id='548240', GAL2='1.37', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630865195.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='3.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='948' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:06:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 548240: <4FGL_J1223.5+0818_daily_bin948> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin948> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 10:50:54 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:50:55 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:55 2021
Terminated at Sun Sep  5 11:06:36 2021
Results reported at Sun Sep  5 11:06:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin948 185.883 8.3017 485049601 485308801 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 :                                   829.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

