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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin745
RA = 185.883, Dec = 8.3017
tmin = 432432001, tmax = 432691201
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='546787', job_status='RUN', time_executed='2021-09-05 10:49:45.897835', time_epoch_executed='1630864185.9' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546787/ft1_4FGL_J1223.5+0818_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546787/ft2_4FGL_J1223.5+0818_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546787/ft1_4FGL_J1223.5+0818_daily_bin745.fits outfile=/scratch/kocevski/546787/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin745.fits ra=185.883 dec=8.3017 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.23
user 4.88
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546787/ft2_4FGL_J1223.5+0818_daily_bin745.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/546787/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin745.fits evtable="EVENTS" outfile="/scratch/kocevski/546787/ft1_filtered_4FGL_J1223.5+0818_daily_bin745.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/546787/ft1_filtered_4FGL_J1223.5+0818_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/546787/ft2_4FGL_J1223.5+0818_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/546787/ltcube_432432001_432691201_4FGL_J1223.5+0818_daily_bin745.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/546787/ft2_4FGL_J1223.5+0818_daily_bin745.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546787/ft1_filtered_4FGL_J1223.5+0818_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/546787/ft2_4FGL_J1223.5+0818_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/546787/ltcube_432432001_432691201_4FGL_J1223.5+0818_daily_bin745.fits outfile=/scratch/kocevski/546787/expmap_432432001_432691201_4FGL_J1223.5+0818_daily_bin745.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/546787/ltcube_432432001_432691201_4FGL_J1223.5+0818_daily_bin745.fits
.....................!
real 191.52
user 185.70
sys 5.44

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/546787/ft1_filtered_4FGL_J1223.5+0818_daily_bin745.fits scfile=/scratch/kocevski/546787/ft2_4FGL_J1223.5+0818_daily_bin745.fits outfile=/scratch/kocevski/546787/cmap_432432001_432691201_4FGL_J1223.5+0818_daily_bin745.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.671       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.308       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.704       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4984       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27705E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2314       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.570       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    94.547       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.383       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0085       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=   5065.583     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3688 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.628       -.88709E-07** at limit **
   2  Prefactor     .10001E-03    57.058        .16809E-05** at limit **
   3  Prefactor     18.226        15.312        .61455E-06    .22252E-03
   4  Prefactor     28.670        13.867        .32141E-06    .34280E-03
   5  Prefactor     4.5702        14.292        .14477E-05    .17155E-03
   6  Prefactor     .10000E-03    31.160       -.35710E-06** at limit **
   7  Prefactor     11.361        45.410        .33443E-05    .16921E-03
   8  Prefactor     31.710        33.081        .67658E-06    .10603E-03
   9  Prefactor     2.5248        3.3168        .49803E-06    .13645E-02
  10  Prefactor     .33434        9.6454        .73603E-05   -.57577E-03
  11  Prefactor     .10000E-03    21.703        .18043E-05** at limit **
  12  Prefactor     .10000E-03    10.526        .24492E-06** at limit **
  13  norm          .10000E-03    1.8841       -.43060E-07** at limit **
  14  norm          7.4963        6.0129        .70849E-06    .93579E-03
  15  Prefactor     .10000E-03    31.003       -.41384E-06** at limit **
  16  norm          .10000E-03    37.237        .46953E-06** at limit **
  17  Prefactor     .10003E-03    308.19       -.39878E-05** at limit **
  18  norm          4.2314        1.1738       -.23385E-07    .70212E-03
  19  Prefactor     11.952        15.192        .79032E-06    .18579E-03
  20  Prefactor     .10000E-03    71.873       -.15323E-05** at limit **
  21  Prefactor     30.573        20.900        .11029E-05    .49878E-03
  22  norm          .10000E-03    .65534       -.11217E-06** at limit **
  23  Prefactor     .10000E-03    19.242       -.30612E-06** at limit **
  24  Prefactor     94.557        58.196        .23958E-06    .35111E-04
  25  Prefactor     .10000E-03    78.356       -.12683E-05** at limit **
  26  Prefactor     23.385        17.559        .27881E-06   -.10055E-03
  27  Prefactor     .10000E-03    9.5267       -.25256E-06** at limit **
  28  Normalizat    1.1267        .27474       -.52278E-05    .63517E-04
  29  Prefactor     1.0084        .21585        .28766E-05    .25689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 18.2256
  Prefactor  = 28.6701
  Prefactor  = 4.57022
  Prefactor  = 0.0001
  Prefactor  = 11.3608
  Prefactor  = 31.7104
  Prefactor  = 2.52479
  Prefactor  = 0.334337
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.49628
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100034
  norm       = 4.2314
  Prefactor  = 11.9519
  Prefactor  = 0.000100004
  Prefactor  = 30.5729
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.5568
  Prefactor  = 0.000100003
  Prefactor  = 23.385
  Prefactor  = 0.0001
  Normalizat = 1.1267
  Prefactor  = 1.00839
 **********
 **   18 **HESSE 
 **********

 FCN=   5065.583     FROM HESSE     STATUS=OK           545 CALLS     4233 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    57.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.226        15.342        .93820E-04   -1.4854    
   4  Prefactor     28.670        13.875        .74823E-04   -1.4637    
   5  Prefactor     4.5702        14.333        .18831E-03   -1.5280    
   6  Prefactor     .10000E-03    31.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.361        46.130        .11913E-03   -1.5034    
   8  Prefactor     31.710        33.087        .71161E-04   -1.4581    
   9  Prefactor     2.5248        3.4286        .13755E-03   -1.5390    
  10  Prefactor     .33434        10.964        .19863E-02   -1.5592    
  11  Prefactor     .10000E-03    21.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8996        .95341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4963        6.0731        .13796E-03   -1.5160    
  15  Prefactor     .10000E-03    31.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    37.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    310.50        .21423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2314        1.1776        .35094E-04   -1.5297    
  19  Prefactor     11.952        15.228        .11588E-03   -1.5016    
  20  Prefactor     .10000E-03    72.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.573        21.087        .36233E-03   -1.4602    
  22  norm          .10000E-03    .66572        .56258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     94.557        58.195        .41334E-04   -1.3760    
  25  Prefactor     .10000E-03    78.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     23.385        17.611        .82836E-04   -1.4740    
  27  Prefactor     .10000E-03    9.5748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1267        .31907        .31003E-03   -.88899    
  29  Prefactor     1.0084        .25385        .27833E-03   -.92450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90107e-09
Minuit parameter uncertainties:
  1  1.46289e-05
  2  0.0011201
  3  15.3458
  4  13.877
  5  14.3442
  6  0.000190619
  7  45.8464
  8  33.1058
  9  3.42891
  10  3.82939
  11  0.000624481
  12  4.97581e-05
  13  4.82814e-06
  14  6.07357
  15  0.000208499
  16  0.000182928
  17  0.00655906
  18  1.17764
  19  15.2326
  20  0.00102578
  21  21.0918
  22  6.33374e-06
  23  0.000113886
  24  58.2302
  25  0.000961605
  26  17.6148
  27  4.82658e-05
  28  0.319622
  29  0.254156
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.085e-04  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.008e+00  2.542e-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.127e+00  3.196e-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: 7.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546787/likelihoodResults_432432001_432691201_4FGL_J1223.5+0818_daily_bin745.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) = 5065.5831471
delta logL = -0.000153256971316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5065.08014285
delta logL = 0.502850995295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26186       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0018       1.0000          .0000       10.000    
     3 'Normalizat'    1.0361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0542       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.

 FCN=   5065.080     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      333 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26133        5.0121        .85200E-02    .16543E-02
   2  Index         4.0031        2.1923        .76238E-01    .16666E-03
   3  Normalizat    1.0358        .54165E-01    .72631E-01    .67047E-04
   4  Prefactor     1.0544        .46474E-01    .61685E-01    .74107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.261333
  Index      = 4.00308
  Normalizat = 1.03583
  Prefactor  = 1.05444
 **********
 **   18 **HESSE 
 **********

 FCN=   5065.080     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      368 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26133        14.833        .39035E-03   -1.5606    
   2  Index         4.0031        6.8485        .40434E-02   -.20073    
   3  Normalizat    1.0358        .21742        .32139E-03   -.91840    
   4  Prefactor     1.0544        .18336        .27280E-03   -.90936    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.41716e-07
Minuit parameter uncertainties:
  1  3.93803
  2  4.98927
  3  0.217603
  4  0.183465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546787': 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) = 5065.08014137
delta logL = 0.502852470349

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.613e-01  3.938e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  4.003e+00  4.989e+00  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.054e+00  1.835e-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.036e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 185.883 8.302
Photon Index (Free Index): 4.00 +/- 4.99
Photon Flux (Free Index): 7.78e-08 +/- 8.55e-08
Energy Flux (Free Index): 1.16e-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/546787/cmap_HighResolution_432432001_432691201_4FGL_J1223.5+0818_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='5.03e-01', photon_flux2='7.78e-08', job_status='DONE', time_completed='2021-09-05 11:02:08.673379', photon_index_error2='4.99', photon_index2='4.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.78e-08', energy_flux_error2='1.31e-05', EG='1.13', time_epoch_completed='1630864928.67', return_code='0', job_id='546787', GAL2='1.05', EG2='1.04', return_code2='102', photon_flux_error2='8.55e-08', ts2='1.07', photon_index='1.92' WHERE bin_id='745' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:02:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 546787: <4FGL_J1223.5+0818_daily_bin745> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin745> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:46:19 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:46:20 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:46:20 2021
Terminated at Sun Sep  5 11:02:09 2021
Results reported at Sun Sep  5 11:02:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin745 185.883 8.3017 432432001 432691201 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 :                                   741.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

