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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1388
RA = 124.695, Dec = 31.8862
tmin = 599097601, tmax = 599356801
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='413553', job_status='RUN', time_executed='2021-08-29 17:26:03.563406', time_epoch_executed='1630283163.56' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413553/ft1_4FGL_J0818.7+3153_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413553/ft1_4FGL_J0818.7+3153_daily_bin1388.fits outfile=/scratch/kocevski/413553/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1388.fits ra=124.695 dec=31.8862 rad=12.0 tmin=599097601.0 tmax=599356801.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 11.28
user 2.62
sys 8.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.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/413553/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1388.fits evtable="EVENTS" outfile="/scratch/kocevski/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.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 9.23
user 0.34
sys 8.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/413553/ltcube_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.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/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits
.....................!
real 23.20
user 12.66
sys 9.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/413553/ltcube_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.fits outfile=/scratch/kocevski/413553/expmap_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.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/413553/ltcube_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.fits
.....................!
real 205.27
user 185.95
sys 14.85

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/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.fits scfile=/scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits outfile=/scratch/kocevski/413553/cmap_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.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 8.70
user 0.38
sys 8.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.fits scfile=/scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits outfile=/scratch/kocevski/413553/cmap_HighResolution_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.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 8.88
user 0.39
sys 8.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413553/Model_4FGL_J0818.7+3153_daily_bin1388.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/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.fits.....................!
real 37.82
user 24.96
sys 11.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.fits', '/scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits', expMap='/scratch/kocevski/413553/expmap_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.fits', expCube='/scratch/kocevski/413553/ltcube_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413553/Model_4FGL_J0818.7+3153_daily_bin1388.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/413553/ft1_filtered_4FGL_J0818.7+3153_daily_bin1388.fits
Spacecraft file(s): /scratch/kocevski/413553/ft2_4FGL_J0818.7+3153_daily_bin1388.fits
Exposure map: /scratch/kocevski/413553/expmap_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.fits
Exposure cube: /scratch/kocevski/413553/ltcube_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413553/Model_4FGL_J0818.7+3153_daily_bin1388.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) = 1651.85937234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.968       1.0000         .10000E-03   10000.    
     2 'norm      '    46.680       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18027       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70475E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .29855E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .60674E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7543       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21651E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2874       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.046       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    73.249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0396       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2510       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13095E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6078       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .53805       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.

 FCN=   1651.800     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2705 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.687        160.35        .10149E-04    .64064E-05
   2  norm          46.633        42.491       -.24365E-05   -.28149E-04
   3  Prefactor     .10007E-03    9313.1       -.23154E-03** at limit **
   4  Prefactor     .10000E-03    93.944       -.98976E-06** at limit **
   5  Prefactor     .10000E-03    559.08       -.88791E-05** at limit **
   6  norm          .10000E-03    220.66       -.76613E-05** at limit **
   7  norm          .10000E-03    254.14       -.38878E-05** at limit **
   8  Prefactor     8.7533        18.378       -.15107E-06    .21267E-05
   9  Prefactor     .10000E-03    388.04       -.29953E-05** at limit **
  10  norm          1.2876        1.1719        .57311E-08    .35208E-05
  11  Prefactor     16.057        143.44       -.57607E-06    .35078E-05
  12  Prefactor     .10000E-03    39.272       -.29037E-06** at limit **
  13  Prefactor     .10000E-03    17.513       -.48019E-07** at limit **
  14  Prefactor     73.258        59.345       -.74373E-07    .29103E-05
  15  Prefactor     7.0390        7.6558       -.47069E-07    .31493E-05
  16  norm          .10000E-03    1.4387       -.86317E-07** at limit **
  17  Prefactor     2.2613        219.46        .28186E-06    .11071E-05
  18  Prefactor     .10000E-03    10.754       -.81259E-07** at limit **
  19  Prefactor     .10000E-03    35.643       -.10730E-06** at limit **
  20  Prefactor     .10000E-03    3.8746        .97510E-07** at limit **
  21  Normalizat    1.6075        .37619        .11324E-06    .13690E-04
  22  Prefactor     .53822        .29436       -.16426E-06    .12271E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.6872
  norm       = 46.6325
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 8.75333
  Prefactor  = 0.0001
  norm       = 1.28758
  Prefactor  = 16.057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.2578
  Prefactor  = 7.03904
  norm       = 0.0001
  Prefactor  = 2.26126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.60746
  Prefactor  = 0.538222
 **********
 **   18 **HESSE 
 **********

 FCN=   1651.800     FROM HESSE     STATUS=OK           340 CALLS     3045 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.687        160.31        .27051E-03   -1.4228    
   2  norm          46.633        42.558        .58686E-04   -1.4341    
   3  Prefactor     .10007E-03    9309.5        .39549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    93.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    559.01        .20976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    225.03        .21392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    254.03        .21058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7533        18.355        .13547E-03   -1.5116    
   9  Prefactor     .10000E-03    387.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2876        1.1703        .38953E-04   -1.5481    
  11  Prefactor     16.057        142.71        .99984E-04   -1.4906    
  12  Prefactor     .10000E-03    39.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.521        .16611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     73.258        59.344        .23455E-03   -1.3994    
  15  Prefactor     7.0390        7.6392        .10778E-03   -1.5177    
  16  norm          .10000E-03    1.4579        .47553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2613        219.87        .27387E-03   -1.5407    
  18  Prefactor     .10000E-03    10.766        .13019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5165        .15518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6075        .43203        .23620E-03   -.74802    
  22  Prefactor     .53822        .33419        .30335E-03   -1.1025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2856e-11
Minuit parameter uncertainties:
  1  161.599
  2  42.5856
  3  0.0649229
  4  1.43763e-05
  5  0.000156587
  6  0.0014439
  7  0.000113525
  8  18.3672
  9  0.000327497
  10  1.17031
  11  96.0475
  12  3.09545e-06
  13  1.62644e-07
  14  59.3921
  15  7.64028
  16  1.08197e-06
  17  44.7649
  18  1.4161e-06
  19  6.07698e-06
  20  3.632e-06
  21  0.433037
  22  0.335427
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.095e-06  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:  5.382e-01  3.354e-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:  1.607e+00  4.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413553/likelihoodResults_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.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) = 1651.79993831
delta logL = -0.000120597291016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1651.79981979
delta logL = -2.07749485526e-06

Fit tolerance = 1e-08

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

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

 FCN=   1651.800     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10277E-03    5.7329        .18142E-01** at limit **
   2  Index         2.2685        5.5876        .50000        .10305E-04
   3  Normalizat    1.6075        .40975E-02    .23620E-03   -.86589E-04
   4  Prefactor     .53822        .32370E-02    .30335E-03   -.61397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010277
  Index      = 2.26849
  Normalizat = 1.60746
  Prefactor  = 0.538222
 **********
 **   18 **HESSE 
 **********

 FCN=   1651.800     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10277E-03    133.92        .22578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2685        7.4019        .50000       -.57794    
   3  Normalizat    1.6075        .19906E-01    .47240E-04   -.74802    
   4  Prefactor     .53822        .15726E-01    .12134E-04   -1.1025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06345e-09
Minuit parameter uncertainties:
  1  0.0386087
  2  249.349
  3  0.0199063
  4  0.015726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413553': 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) = 1651.79981803
delta logL = -3.13960754283e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.028e-04  3.861e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.268e+00  2.493e+02  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:  5.382e-01  1.573e-02  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.607e+00  1.991e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.695 31.886

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/413553/cmap_HighResolution_599097601_599356801_4FGL_J0818.7+3153_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-08-29 17:35:05.384942', job_id='413553', GAL2='0.54', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1630283705.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='-3.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1388' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:35:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 413553: <4FGL_J0818.7+3153_daily_bin1388> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1388> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:32 2021
Job was executed on host(s) <bullet0143>, 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:35:07 2021
Results reported at Sun Aug 29 17:35:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1388 124.695 31.8862 599097601 599356801 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             213.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

