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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin852
RA = 185.883, Dec = 8.3017
tmin = 460166401, tmax = 460425601
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='548104', job_status='RUN', time_executed='2021-09-05 10:53:02.279579', time_epoch_executed='1630864382.28' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548104

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548104/ft1_4FGL_J1223.5+0818_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548104/ft2_4FGL_J1223.5+0818_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548104/ft1_4FGL_J1223.5+0818_daily_bin852.fits outfile=/scratch/kocevski/548104/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin852.fits ra=185.883 dec=8.3017 rad=12.0 tmin=460166401.0 tmax=460425601.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.42
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548104/ft1_filtered_4FGL_J1223.5+0818_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/548104/ft2_4FGL_J1223.5+0818_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/548104/ltcube_460166401_460425601_4FGL_J1223.5+0818_daily_bin852.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/548104/ft2_4FGL_J1223.5+0818_daily_bin852.fits
.....................!
real 11.89
user 11.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548104/ft1_filtered_4FGL_J1223.5+0818_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/548104/ft2_4FGL_J1223.5+0818_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/548104/ltcube_460166401_460425601_4FGL_J1223.5+0818_daily_bin852.fits outfile=/scratch/kocevski/548104/expmap_460166401_460425601_4FGL_J1223.5+0818_daily_bin852.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/548104/ltcube_460166401_460425601_4FGL_J1223.5+0818_daily_bin852.fits
.....................!
real 192.87
user 187.28
sys 5.19

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/548104/ft1_filtered_4FGL_J1223.5+0818_daily_bin852.fits scfile=/scratch/kocevski/548104/ft2_4FGL_J1223.5+0818_daily_bin852.fits outfile=/scratch/kocevski/548104/cmap_460166401_460425601_4FGL_J1223.5+0818_daily_bin852.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.56
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9991       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33547E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3851       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.216       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7155       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-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      '    2.0186       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9076       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7045       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2489       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.986       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.8302       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78470       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1444       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=   5318.491     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3699 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.179       -.15473E-07** at limit **
   2  Prefactor     .10000E-03    101.21       -.42131E-04** at limit **
   3  Prefactor     1.9759        18.167       -.58885E-05   -.21998E-03
   4  Prefactor     .10000E-03    3.4647        .10647E-06** at limit **
   5  Prefactor     .10000E-03    9.3911       -.13379E-06** at limit **
   6  Prefactor     .10000E-03    197.22        .32815E-04** at limit **
   7  Prefactor     44.191        47.309       -.74022E-05    .36852E-04
   8  Prefactor     7.3810        27.298       -.13119E-05   -.10070E-04
   9  Prefactor     .10000E-03    1.0523        .66873E-07** at limit **
  10  Prefactor     .10000E-03    1.2718       -.85830E-07** at limit **
  11  Prefactor     20.222        27.598       -.26706E-05    .13810E-05
  12  Prefactor     2.7140        8.2835       -.69544E-06   -.23397E-03
  13  norm          .10000E-03    .82687       -.20582E-07** at limit **
  14  norm          .10000E-03    3.1002       -.19489E-07** at limit **
  15  Prefactor     .10000E-03    9.7452       -.43154E-06** at limit **
  16  norm          .10000E-03    12.800       -.53833E-07** at limit **
  17  Prefactor     .10000E-03    114.67        .40812E-04** at limit **
  18  norm          2.0192        .71798        .77437E-07    .16071E-03
  19  Prefactor     .10000E-03    8.8060        .13545E-07** at limit **
  20  Prefactor     .10000E-03    22.635        .42090E-07** at limit **
  21  Prefactor     .10000E-03    2.6482        .52508E-07** at limit **
  22  norm          2.9087        1.7538        .30933E-07   -.45092E-04
  23  Prefactor     2.7071        6.8389       -.45665E-06   -.27446E-03
  24  Prefactor     4.0491        125.55       -.17604E-04   -.11075E-04
  25  Prefactor     .10000E-03    63.358        .34217E-05** at limit **
  26  Prefactor     10.986        11.858        .98762E-06   -.62749E-04
  27  Prefactor     6.8298        7.7320       -.48669E-06    .91748E-06
  28  Normalizat    .78486        .20779        .18581E-05    .23770E-04
  29  Prefactor     1.1444        .17994        .69286E-06    .58627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.1907
  Prefactor  = 7.38096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2222
  Prefactor  = 2.71397
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.90875
  Prefactor  = 2.70714
  Prefactor  = 4.04912
  Prefactor  = 0.0001
  Prefactor  = 10.9856
  Prefactor  = 6.82975
  Normalizat = 0.784861
  Prefactor  = 1.14436
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.491     FROM HESSE     STATUS=OK           547 CALLS     4246 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    100.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9759        18.519        .29293E-03   -1.5427    
   4  Prefactor     .10000E-03    3.4787        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    198.76        .21342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.191        47.212        .60300E-04   -1.4377    
   8  Prefactor     7.3810        27.205        .14759E-03   -1.5165    
   9  Prefactor     .10000E-03    1.0718        .72990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2290        .15920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.222        27.559        .89081E-04   -1.4808    
  12  Prefactor     2.7140        8.2351        .24716E-03   -1.5378    
  13  norm          .10000E-03    .82814        .64647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1990        .24949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    114.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0192        .71231        .33792E-04   -1.5424    
  19  Prefactor     .10000E-03    8.9384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6500        .11590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9087        1.7465        .70514E-04   -1.5367    
  23  Prefactor     2.7071        6.8212        .24770E-03   -1.5379    
  24  Prefactor     4.0491        124.91        .19547E-03   -1.5305    
  25  Prefactor     .10000E-03    63.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.986        11.840        .12087E-03   -1.5045    
  27  Prefactor     6.8298        7.7293        .15352E-03   -1.5185    
  28  Normalizat    .78486        .23786        .29193E-03   -1.0063    
  29  Prefactor     1.1444        .20763        .22112E-03   -.88061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66375e-10
Minuit parameter uncertainties:
  1  9.49592e-07
  2  0.000268
  3  12.1029
  4  1.30705e-05
  5  2.20286e-06
  6  0.000299445
  7  47.2522
  8  27.2511
  9  3.50807e-06
  10  2.81224e-05
  11  27.5768
  12  8.23853
  13  1.19727e-06
  14  2.35101e-05
  15  2.7617e-07
  16  3.14964e-06
  17  7.62721e-05
  18  0.71231
  19  2.54977e-05
  20  5.53918e-05
  21  7.02346e-07
  22  1.74655
  23  6.82318
  24  45.0817
  25  0.000236318
  26  11.8428
  27  7.73046
  28  0.23818
  29  0.207782
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.762e-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.144e+00  2.078e-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:  7.849e-01  2.382e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548104/likelihoodResults_460166401_460425601_4FGL_J1223.5+0818_daily_bin852.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) = 5318.49122387
delta logL = -0.000485164747261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5318.49073993
delta logL = -1.21780158224e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12942E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8833       1.0000          .0000       10.000    
     3 'Normalizat'    .78475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1445       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=   5318.491     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    59.481        .18142E-02** at limit **
   2  Index         1.8181        5.8527        .50000        .25827E-04
   3  Normalizat    .78486        .11184E-01    .29193E-03   -.15690E-03
   4  Prefactor     1.1444        .10107E-01    .22112E-03   -.44008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101841
  Index      = 1.81811
  Normalizat = 0.784864
  Prefactor  = 1.14436
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.491     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10184E-03    258.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8181        7.0138        .50000       -.68979    
   3  Normalizat    .78486        .23830E-01    .11677E-04   -1.0063    
   4  Prefactor     1.1444        .21536E-01    .44224E-04   -.88061    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99817e-08
Minuit parameter uncertainties:
  1  0.043809
  2  300.914
  3  0.0238306
  4  0.0215364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548104': 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) = 5318.49073801
delta logL = 6.96873030392e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.018e-04  4.381e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.818e+00  3.009e+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.144e+00  2.154e-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:  7.849e-01  2.383e-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/548104/cmap_HighResolution_460166401_460425601_4FGL_J1223.5+0818_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-03', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-09-05 11:05:20.968903', job_id='548104', GAL2='1.14', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630865120.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='852' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:05:20 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin852 185.883 8.3017 460166401 460425601 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

