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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin787
RA = 185.883, Dec = 8.3017
tmin = 443318401, tmax = 443577601
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='548008', job_status='RUN', time_executed='2021-09-05 10:53:10.292706', time_epoch_executed='1630864390.29' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548008/ft1_4FGL_J1223.5+0818_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548008/ft2_4FGL_J1223.5+0818_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548008/ft1_4FGL_J1223.5+0818_daily_bin787.fits outfile=/scratch/kocevski/548008/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin787.fits ra=185.883 dec=8.3017 rad=12.0 tmin=443318401.0 tmax=443577601.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.64
user 4.37
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548008/ft1_filtered_4FGL_J1223.5+0818_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/548008/ft2_4FGL_J1223.5+0818_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/548008/ltcube_443318401_443577601_4FGL_J1223.5+0818_daily_bin787.fits outfile=/scratch/kocevski/548008/expmap_443318401_443577601_4FGL_J1223.5+0818_daily_bin787.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/548008/ltcube_443318401_443577601_4FGL_J1223.5+0818_daily_bin787.fits
.....................!
real 190.52
user 185.34
sys 4.54

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/548008/ft1_filtered_4FGL_J1223.5+0818_daily_bin787.fits scfile=/scratch/kocevski/548008/ft2_4FGL_J1223.5+0818_daily_bin787.fits outfile=/scratch/kocevski/548008/cmap_443318401_443577601_4FGL_J1223.5+0818_daily_bin787.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548008/ft1_filtered_4FGL_J1223.5+0818_daily_bin787.fits scfile=/scratch/kocevski/548008/ft2_4FGL_J1223.5+0818_daily_bin787.fits outfile=/scratch/kocevski/548008/cmap_HighResolution_443318401_443577601_4FGL_J1223.5+0818_daily_bin787.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/548008/ft1_filtered_4FGL_J1223.5+0818_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/548008/ft2_4FGL_J1223.5+0818_daily_bin787.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548008/Model_4FGL_J1223.5+0818_daily_bin787.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/548008/ft1_filtered_4FGL_J1223.5+0818_daily_bin787.fits.....................!
real 53.76
user 52.30
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81880E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5699       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4110       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.514       1.0000         .10000E-03   10000.    
    16 'norm      '    14.772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .73578       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.0062       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8228       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.5801       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.1718       1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.760       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0286       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0210       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=   6048.905     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3164 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1192       -.17569E-07** at limit **
   2  Prefactor     .10000E-03    121.83        .12970E-05** at limit **
   3  Prefactor     .10000E-03    2.9123       -.62849E-08** at limit **
   4  Prefactor     .10000E-03    2.9621        .54415E-08** at limit **
   5  Prefactor     .10000E-03    13.499        .84903E-07** at limit **
   6  Prefactor     .10000E-03    26.361        .32926E-06** at limit **
   7  Prefactor     .10000E-03    19.153        .40784E-06** at limit **
   8  Prefactor     36.936        22.718        .17922E-07    .38476E-04
   9  Prefactor     .92960E-01    1.2923       -.88725E-07   -.33822E-03
  10  Prefactor     .10000E-03    1.5051       -.16245E-07** at limit **
  11  Prefactor     21.341        22.992        .11720E-05    .87621E-04
  12  Prefactor     .10000E-03    4.0151        .19977E-07** at limit **
  13  norm          1.5697        1.9389       -.42713E-07   -.22650E-03
  14  norm          1.4090        3.7096       -.42156E-05   -.11680E-02
  15  Prefactor     42.512        35.202       -.13018E-06    .78785E-04
  16  norm          14.791        44.859        .21796E-04   -.31057E-03
  17  Prefactor     .10000E-03    44.908       -.24519E-06** at limit **
  18  norm          .73588        .52915       -.10764E-06    .63638E-03
  19  Prefactor     .10000E-03    5.5329       -.16940E-08** at limit **
  20  Prefactor     .10000E-03    6.6527        .14632E-07** at limit **
  21  Prefactor     .10000E-03    8.5525        .56539E-07** at limit **
  22  norm          4.0066        1.9429       -.18398E-08    .96423E-04
  23  Prefactor     9.8239        11.276       -.12769E-05   -.94812E-03
  24  Prefactor     .10000E-03    26.393       -.30180E-06** at limit **
  25  Prefactor     7.5806        26.313       -.23001E-05   -.27344E-03
  26  Prefactor     6.1729        11.870       -.19387E-06   -.21430E-04
  27  Prefactor     25.762        17.746       -.31564E-06    .67242E-04
  28  Normalizat    1.0286        .20074        .16220E-05    .81484E-04
  29  Prefactor     1.0208        .17264       -.76857E-06    .18659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9361
  Prefactor  = 0.0929604
  Prefactor  = 0.0001
  Prefactor  = 21.3411
  Prefactor  = 0.0001
  norm       = 1.56973
  norm       = 1.40905
  Prefactor  = 42.5123
  norm       = 14.7907
  Prefactor  = 0.0001
  norm       = 0.735882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00659
  Prefactor  = 9.82392
  Prefactor  = 0.0001
  Prefactor  = 7.58062
  Prefactor  = 6.17292
  Prefactor  = 25.7619
  Normalizat = 1.02863
  Prefactor  = 1.02083
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.905     FROM HESSE     STATUS=OK           547 CALLS     3711 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    122.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9154        .12962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9697        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.936        22.712        .65945E-04   -1.4492    
   9  Prefactor     .92960E-01    18.107        .16754E-02   -1.5647    
  10  Prefactor     .10000E-03    1.5244        .92937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.341        22.937        .86714E-04   -1.4784    
  12  Prefactor     .10000E-03    4.0209        .15213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5697        1.9186        .11625E-03   -1.5457    
  14  norm          1.4090        3.8701        .19445E-03   -1.5471    
  15  Prefactor     42.512        35.216        .61483E-04   -1.4403    
  16  norm          14.791        44.023        .10421E-03   -1.4939    
  17  Prefactor     .10000E-03    44.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .73588        .50741        .42974E-04   -1.5536    
  19  Prefactor     .10000E-03    5.5572        .17865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.6184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.0066        1.9387        .71144E-04   -1.5308    
  23  Prefactor     9.8239        11.753        .63928E-03   -1.5081    
  24  Prefactor     .10000E-03    26.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.5806        26.837        .72830E-03   -1.5157    
  26  Prefactor     6.1729        11.814        .16160E-03   -1.5211    
  27  Prefactor     25.762        17.740        .78927E-04   -1.4692    
  28  Normalizat    1.0286        .23588        .27176E-03   -.92077    
  29  Prefactor     1.0208        .20149        .24298E-03   -.92038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50485e-09
Minuit parameter uncertainties:
  1  9.84254e-07
  2  0.000431908
  3  8.06571e-07
  4  9.24553e-07
  5  2.66251e-05
  6  5.13635e-05
  7  2.9349e-05
  8  22.7176
  9  2.59417
  10  1.75354e-06
  11  22.9468
  12  3.76148e-06
  13  1.9187
  14  3.87078
  15  35.2328
  16  44.1197
  17  6.24569e-05
  18  0.507416
  19  9.87143e-07
  20  2.08084e-06
  21  2.30162e-05
  22  1.93874
  23  11.7555
  24  5.6826e-05
  25  26.88
  26  11.8187
  27  17.7435
  28  0.236118
  29  0.201637
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  4.251e+01  3.523e+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:  1.021e+00  2.016e-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.029e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 2.32e-05

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

Saving results to:
/scratch/kocevski/548008/likelihoodResults_443318401_443577601_4FGL_J1223.5+0818_daily_bin787.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) = 6048.35162818
delta logL = 0.553660611593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6048.34721777
delta logL = 0.558071022415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.410       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5842       1.0000          .0000       10.000    
     3 'Normalizat'    .97283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0458       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=   6048.347     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      316 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.413        36.045        .93345E-04    .60153E-03
   2  Index         2.5842        .85835        .33973E-02    .42568E-03
   3  Normalizat    .97215        .23403        .27814E-03    .15990E-03
   4  Prefactor     1.0465        .20278        .24016E-03    .16657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4132
  Index      = 2.58423
  Normalizat = 0.972153
  Prefactor  = 1.04647
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.347     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.413        25.834        .37338E-05   -1.4849    
   2  Index         2.5842        .61601        .13589E-03   -.50425    
   3  Normalizat    .97215        .23010        .11126E-04   -.93969    
   4  Prefactor     1.0465        .20107        .48033E-04   -.91196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10582e-10
Minuit parameter uncertainties:
  1  25.8494
  2  0.618059
  3  0.23033
  4  0.201216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548008': 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) = 6048.34721263
delta logL = 0.55807615328

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.841e+01  2.585e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.584e+00  6.181e-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:  1.046e+00  2.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  9.722e-01  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 185.883 8.302
Photon Index (Free Index): 2.58 +/- 0.62
Photon Flux (Free Index): 8.07e-08 +/- 6.02e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.31e-05

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/548008/cmap_HighResolution_443318401_443577601_4FGL_J1223.5+0818_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='2.15e-05', photon_flux_error='2.74e-08', dlogl='5.58e-01', energy_flux='2.80e-05', photon_flux2='8.07e-08', job_status='DONE', time_completed='2021-09-05 11:06:04.141056', photon_index_error2='0.62', photon_index2='2.58', ts='3.63', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='9.83e-08', energy_flux_error2='1.31e-05', EG='1.03', time_epoch_completed='1630865164.14', return_code='0', job_id='548008', GAL2='1.05', EG2='0.97', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='6.02e-08', ts2='4.78', photon_index='1.92' WHERE bin_id='787' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 548008: <4FGL_J1223.5+0818_daily_bin787> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin787 185.883 8.3017 443318401 443577601 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

