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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1023
RA = 124.695, Dec = 31.8862
tmin = 504489601, tmax = 504748801
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='411888', job_status='RUN', time_executed='2021-08-29 17:18:25.196106', time_epoch_executed='1630282705.2' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411888

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411888/ft1_4FGL_J0818.7+3153_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411888/ft2_4FGL_J0818.7+3153_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411888/ft1_4FGL_J0818.7+3153_daily_bin1023.fits outfile=/scratch/kocevski/411888/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1023.fits ra=124.695 dec=31.8862 rad=12.0 tmin=504489601.0 tmax=504748801.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.43
user 4.16
sys 1.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/411888/ft2_4FGL_J0818.7+3153_daily_bin1023.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/411888/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/411888/ft1_filtered_4FGL_J0818.7+3153_daily_bin1023.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 1.52
user 0.32
sys 1.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411888/ft1_filtered_4FGL_J0818.7+3153_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/411888/ft2_4FGL_J0818.7+3153_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/411888/ltcube_504489601_504748801_4FGL_J0818.7+3153_daily_bin1023.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/411888/ft2_4FGL_J0818.7+3153_daily_bin1023.fits
.....................!
real 12.87
user 11.42
sys 1.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411888/ft1_filtered_4FGL_J0818.7+3153_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/411888/ft2_4FGL_J0818.7+3153_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/411888/ltcube_504489601_504748801_4FGL_J0818.7+3153_daily_bin1023.fits outfile=/scratch/kocevski/411888/expmap_504489601_504748801_4FGL_J0818.7+3153_daily_bin1023.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/411888/ltcube_504489601_504748801_4FGL_J0818.7+3153_daily_bin1023.fits
.....................!
real 190.96
user 184.97
sys 5.53

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/411888/ft1_filtered_4FGL_J0818.7+3153_daily_bin1023.fits scfile=/scratch/kocevski/411888/ft2_4FGL_J0818.7+3153_daily_bin1023.fits outfile=/scratch/kocevski/411888/cmap_504489601_504748801_4FGL_J0818.7+3153_daily_bin1023.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 1.54
user 0.36
sys 1.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411888/ft1_filtered_4FGL_J0818.7+3153_daily_bin1023.fits scfile=/scratch/kocevski/411888/ft2_4FGL_J0818.7+3153_daily_bin1023.fits outfile=/scratch/kocevski/411888/cmap_HighResolution_504489601_504748801_4FGL_J0818.7+3153_daily_bin1023.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 1.51
user 0.39
sys 1.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411888/ft1_filtered_4FGL_J0818.7+3153_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/411888/ft2_4FGL_J0818.7+3153_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411888/Model_4FGL_J0818.7+3153_daily_bin1023.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/411888/ft1_filtered_4FGL_J0818.7+3153_daily_bin1023.fits.....................!
real 60.39
user 57.63
sys 2.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7097       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.814       1.0000         .10000E-03   10000.    
     7 'norm      '    146.64       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18340E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9056       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2567       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1857       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92155       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90450       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=   5708.109     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2044 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7790        .88781E-07** at limit **
   2  norm          5.9714        5.2747        .28160E-05   -.13341E-03
   3  Prefactor     .10001E-03    189.47       -.24545E-05** at limit **
   4  Prefactor     3.7006        37.005       -.69253E-05   -.11002E-03
   5  Prefactor     .10000E-03    30.985       -.43723E-06** at limit **
   6  norm          15.800        12.409       -.21874E-07   -.70575E-04
   7  norm          146.52        117.69       -.17596E-05   -.17642E-03
   8  Prefactor     .10000E-03    2.7923        .17323E-06** at limit **
   9  Prefactor     .10095E-03    28.308       -.87635E-06** at limit **
  10  norm          1.6930        .68235        .12263E-07   -.56579E-04
  11  Prefactor     .10000E-03    14.667        .81366E-08** at limit **
  12  Prefactor     2.0556        90.687        .20192E-05   -.39623E-05
  13  Prefactor     .10000E-03    7.9175        .13324E-06** at limit **
  14  Prefactor     .10000E-03    13.324        .34352E-07** at limit **
  15  Prefactor     1.9052        1.7913        .35767E-07    .48042E-05
  16  norm          1.2565        1.0362        .35146E-07    .47300E-04
  17  Prefactor     .10000E-03    14.114        .14771E-06** at limit **
  18  Prefactor     .10000E-03    2.8201        .26054E-07** at limit **
  19  Prefactor     2.1856        30.347        .20739E-05   -.94328E-05
  20  Prefactor     .10000E-03    1.4869        .73463E-07** at limit **
  21  Normalizat    .92156        .18309       -.19725E-05    .93536E-04
  22  Prefactor     .90460        .14034        .67643E-06   -.46955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.97141
  Prefactor  = 0.000100006
  Prefactor  = 3.7006
  Prefactor  = 0.0001
  norm       = 15.7997
  norm       = 146.522
  Prefactor  = 0.0001
  Prefactor  = 0.000100949
  norm       = 1.69298
  Prefactor  = 0.0001
  Prefactor  = 2.05558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90523
  norm       = 1.25646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.18562
  Prefactor  = 0.0001
  Normalizat = 0.921556
  Prefactor  = 0.904598
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.109     FROM HESSE     STATUS=OK           350 CALLS     2394 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7900        .16130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9714        5.2842        .70868E-03   -1.5219    
   3  Prefactor     .10001E-03    194.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7006        37.299        .20967E-03   -1.5323    
   5  Prefactor     .10000E-03    31.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.800        12.418        .10072E-03   -1.4913    
   7  norm          146.52        119.67        .16638E-03   -1.3281    
   8  Prefactor     .10000E-03    2.8246        .12319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10095E-03    30.628        .11853       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6930        .68136        .38138E-04   -1.5448    
  11  Prefactor     .10000E-03    14.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0556        91.056        .28786E-03   -1.5421    
  13  Prefactor     .10000E-03    7.9505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9052        1.7971        .94806E-04   -1.5432    
  16  norm          1.2565        1.0349        .67102E-04   -1.5484    
  17  Prefactor     .10000E-03    14.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8228        .12390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1856        30.514        .27842E-03   -1.5412    
  20  Prefactor     .10000E-03    1.4972        .89966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92156        .20872        .25981E-03   -.95707    
  22  Prefactor     .90460        .16165        .20732E-03   -.95981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64787e-10
Minuit parameter uncertainties:
  1  3.17328e-06
  2  5.2846
  3  0.00213787
  4  23.5158
  5  0.00014013
  6  12.4198
  7  119.864
  8  3.94551e-06
  9  0.0107855
  10  0.681362
  11  1.43522e-07
  12  27.406
  13  5.36823e-06
  14  7.35371e-06
  15  1.79712
  16  1.03496
  17  1.69358e-05
  18  1.28918e-06
  19  16.3427
  20  1.17541e-06
  21  0.208908
  22  0.161735
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.056e+00  2.741e+01  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:  9.046e-01  1.617e-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:  9.216e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 7.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411888/likelihoodResults_504489601_504748801_4FGL_J0818.7+3153_daily_bin1023.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) = 5708.07625517
delta logL = 0.0322673094079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5708.07418747
delta logL = 0.0343350095172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8473       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6340       1.0000          .0000       10.000    
     3 'Normalizat'    .91504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90514       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=   5708.074     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      270 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8527        54.319        .24096E-03   -.69451E-04
   2  Index         2.6326        2.6324        .12823E-01    .58750E-04
   3  Normalizat    .91492        .20265        .26065E-03    .93513E-04
   4  Prefactor     .90525        .15989        .20723E-03    .85637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.85267
  Index      = 2.63259
  Normalizat = 0.914919
  Prefactor  = 0.905253
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.074     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8527        19.742        .96383E-05   -1.5370    
   2  Index         2.6326        1.6590        .51291E-03   -.49324    
   3  Normalizat    .91492        .20263        .10426E-04   -.95938    
   4  Prefactor     .90525        .15950        .82892E-05   -.95958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51969e-10
Minuit parameter uncertainties:
  1  15.0158
  2  1.70097
  3  0.202803
  4  0.15958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411888': 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) = 5708.07418677
delta logL = 0.0343357092097

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.853e+00  1.502e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.633e+00  1.701e+00  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:  9.053e-01  1.596e-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:  9.149e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/411888/cmap_HighResolution_504489601_504748801_4FGL_J0818.7+3153_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-08-29 17:28:43.690007', job_id='411888', GAL2='0.91', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1630283323.69', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.43e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1023' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:28:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 411888: <4FGL_J0818.7+3153_daily_bin1023> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1023> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:15:36 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:15:38 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:15:38 2021
Terminated at Sun Aug 29 17:28:44 2021
Results reported at Sun Aug 29 17:28:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1023 124.695 31.8862 504489601 504748801 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 :                                   626.42 sec.
    Max Memory :                                 1065 MB
    Average Memory :                             281.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

