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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1403
RA = 124.695, Dec = 31.8862
tmin = 602985601, tmax = 603244801
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='413574', job_status='RUN', time_executed='2021-08-29 17:22:27.417912', time_epoch_executed='1630282947.42' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413574

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413574/ft1_4FGL_J0818.7+3153_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413574/ft1_4FGL_J0818.7+3153_daily_bin1403.fits outfile=/scratch/kocevski/413574/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1403.fits ra=124.695 dec=31.8862 rad=12.0 tmin=602985601.0 tmax=603244801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.81
user 2.77
sys 3.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.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/413574/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.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 3.67
user 0.33
sys 3.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/413574/ltcube_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.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/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits
.....................!
real 16.24
user 12.27
sys 3.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/413574/ltcube_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.fits outfile=/scratch/kocevski/413574/expmap_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.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/413574/ltcube_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.fits
.....................!
real 194.57
user 185.22
sys 8.84

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.7+3153 @ 124.695 31.8862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.fits scfile=/scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits outfile=/scratch/kocevski/413574/cmap_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.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=124.695 yref=31.8862 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 3.67
user 0.35
sys 3.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.fits scfile=/scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits outfile=/scratch/kocevski/413574/cmap_HighResolution_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.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=124.695 yref=31.8862 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 3.67
user 0.36
sys 3.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413574/Model_4FGL_J0818.7+3153_daily_bin1403.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/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.fits.....................!
real 25.83
user 19.48
sys 5.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.fits', '/scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits', expMap='/scratch/kocevski/413574/expmap_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.fits', expCube='/scratch/kocevski/413574/ltcube_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413574/Model_4FGL_J0818.7+3153_daily_bin1403.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.7+3153'

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/413574/ft1_filtered_4FGL_J0818.7+3153_daily_bin1403.fits
Spacecraft file(s): /scratch/kocevski/413574/ft2_4FGL_J0818.7+3153_daily_bin1403.fits
Exposure map: /scratch/kocevski/413574/expmap_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.fits
Exposure cube: /scratch/kocevski/413574/ltcube_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413574/Model_4FGL_J0818.7+3153_daily_bin1403.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 771.173048661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 767.835610064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.153       1.0000         .10000E-03   10000.    
     2 'norm      '    20.254       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17359       1.0000         .10000E-03   10000.    
     4 'Prefactor '    75.971       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .55606E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.969       1.0000         .10000E-03   10000.    
     7 'norm      '    7.9839       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58862E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3876       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19392E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    155.53       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12114E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7438       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2859       1.0000         .10000E-03   10000.    
    16 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .41952E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0184       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77689E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   767.4917     FROM MIGRAD    STATUS=CONVERGED    371 CALLS      899 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.378        31.009       -.87112E-06    .37260E-04
   2  norm          20.636        21.648       -.99315E-06    .27740E-04
   3  Prefactor     .10000E-03    76.322        .19464E-05** at limit **
   4  Prefactor     74.580        92.891        .14648E-05    .71054E-05
   5  Prefactor     .10000E-03    96.076        .63591E-05** at limit **
   6  norm          18.241        38.572       -.35663E-05    .20280E-04
   7  norm          .10000E-03    793.75       -.81534E-05** at limit **
   8  Prefactor     .10000E-03    5.0589       -.80501E-07** at limit **
   9  Prefactor     .10000E-03    63.610       -.61427E-06** at limit **
  10  norm          1.3280        1.6830       -.64007E-06    .13322E-03
  11  Prefactor     .10000E-03    74.290       -.10081E-06** at limit **
  12  Prefactor     156.50        149.40        .21126E-05    .53409E-05
  13  Prefactor     .10000E-03    41.693       -.20171E-06** at limit **
  14  Prefactor     .10000E-03    133.15       -.64299E-06** at limit **
  15  Prefactor     3.6048        12.231       -.62894E-06    .10763E-05
  16  norm          .10000E-03    9.0530        .10538E-06** at limit **
  17  Prefactor     .10000E-03    910.56       -.10292E-04** at limit **
  18  Prefactor     .10000E-03    154.29       -.17996E-05** at limit **
  19  Prefactor     4.1178        9948.4         .0000         .0000    
  20  Prefactor    10000.0        9714.7        .52299E-05** at limit **
  21  Normalizat    .10000E-01    9.3379        .62420E-04** at limit **
  22  Prefactor     1.1512        .25940        .11806E-05    .29032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3779
  norm       = 20.6361
  Prefactor  = 0.0001
  Prefactor  = 74.5803
  Prefactor  = 0.0001
  norm       = 18.2413
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32804
  Prefactor  = 0.0001
  Prefactor  = 156.501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.60481
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.11779
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.15119
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   767.4917     FROM HESSE     STATUS=FAILED        83 CALLS      982 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.378        26.796        .29990E-02   -1.5004    
   2  norm          20.636        17.211        .22250E-02   -1.4799    
   3  Prefactor     .10000E-03    76.618        .98564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     74.580        73.862        .11517E-02   -1.3979    
   5  Prefactor     .10000E-03    96.201        .10552E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.241        35.223        .23621E-02   -1.4854    
   7  norm          .10000E-03    790.12        .35475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    63.883        .94843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3280        1.6663        .87464E-02   -1.5477    
  11  Prefactor     .10000E-03    73.872        .10128E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     156.50        147.37        .80816E-03   -1.3199    
  13  Prefactor     .10000E-03    39.808        .90835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    133.03        .79409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6048        11.842        .55842E-02   -1.5328    
  16  norm          .10000E-03    8.9903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1085.5        .35836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    152.33        .10621E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     540.83        536.65         .0000       -1.5302    
  20  Prefactor    10000.0        .13260        .52299E-05    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .27287        .62420E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1512        1.1393        .11806E-05   -.87847    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.31797e-11
Minuit parameter uncertainties:
  1  26.8224
  2  17.2147
  3  7.04938e-05
  4  73.9529
  5  0.000207304
  6  35.2633
  7  0.00172201
  8  1.89613e-06
  9  5.42141e-06
  10  1.66634
  11  9.54954e-05
  12  147.714
  13  6.14708e-06
  14  9.99495e-05
  15  11.8498
  16  3.28302e-06
  17  0.00379137
  18  8.27449e-05
  19  1.00757
  20  5.01491e-06
  21  1.15436e-05
  22  1.16496
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 767.491663557

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.565e+02  1.477e+02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.151e+00  1.165e+00  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.000e-02  1.154e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.07
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.69e-07 +/- 1.59e-07
Energy Flux (Fixed Index): 8.60e-05 +/- 8.12e-05

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) = 767.361510923
delta logL = 0.130152633625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 767.356455561
delta logL = 0.135207996095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    248.30       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7489       1.0000          .0000       10.000    
     3 'Normalizat'    .10974E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   767.3563     FROM MIGRAD    STATUS=FAILED       106 CALLS      336 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     248.17        283.51        .12853E-03    .12994E-04
   2  Index         1.7488        .71324        .40050E-02   -.75362E-05
   3  Normalizat    .20241E-01    9.7945        .12730E-01    .63080E-04
   4  Prefactor     1.1523        .63962        .17118E-03   -.48817E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   767.3563     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      404 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     248.17        283.51        .74646E-03   -1.2544    
   2  Index         1.7488        .71324        .38127E-03   -.70790    
   3  Normalizat    .20241E-01    9.7945        .44292E-02   -1.5067    
   4  Prefactor     1.1523        .63962        .13509E-03   -.87813    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   767.3563     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      435 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     248.17        280.13        .25706E-04    .74190E-05
   2  Index         1.7488        .70305        .16020E-03   -.40007E-05
   3  Normalizat    .20238E-01    8.1751        .25460E-02   -.13820E-05
   4  Prefactor     1.1523        .43544        .34236E-04   -.13673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 248.174
  Index      = 1.74879
  Normalizat = 0.0202384
  Prefactor  = 1.15227
 **********
 **   18 **HESSE 
 **********

 FCN=   767.3563     FROM HESSE     STATUS=OK            25 CALLS      460 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     248.17        280.02        .51411E-05   -1.2544    
   2  Index         1.7488        .70255        .64080E-05   -.70790    
   3  Normalizat    .20238E-01    7.8957        .10184E-03   -1.5068    
   4  Prefactor     1.1523        .40955        .68473E-05   -.87813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29692e-12
Minuit parameter uncertainties:
  1  281.552
  2  0.706619
  3  0.575078
  4  0.410684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413574': 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) = 767.356323594
delta logL = 0.135339963356

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.482e+02  2.816e+02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.749e+00  7.066e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.152e+00  4.107e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  2.024e-02  5.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.32
Ra Dec: 124.695 31.886
Photon Index (Free Index): 1.75 +/- 0.71
Photon Flux (Free Index): 1.11e-07 +/- 1.42e-07
Energy Flux (Free Index): 1.56e-04 +/- 2.60e-04

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/413574/cmap_HighResolution_602985601_603244801_4FGL_J0818.7+3153_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.69e-07', energy_flux2='1.56e-04', photon_flux_error='1.59e-07', dlogl='1.35e-01', energy_flux='8.60e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-08-29 17:29:07.483923', photon_index_error2='0.71', photon_index2='1.75', ts='5.07', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.60e-04', EG='0.01', time_epoch_completed='1630283347.48', return_code='101', job_id='413574', GAL2='1.15', EG2='0.02', return_code2='0', energy_flux_error='8.12e-05', photon_flux_error2='1.42e-07', ts2='5.32', photon_index='2.13' WHERE bin_id='1403' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:29:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 413574: <4FGL_J0818.7+3153_daily_bin1403> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1403> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:33 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:20:34 2021
Terminated at Sun Aug 29 17:29:08 2021
Results reported at Sun Aug 29 17:29:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1403 124.695 31.8862 602985601 603244801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.7+3153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   433.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            515 sec.

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

