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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin650
RA = 124.695, Dec = 31.8862
tmin = 407808001, tmax = 408067201
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='409971', job_status='RUN', time_executed='2021-08-29 17:14:16.140548', time_epoch_executed='1630282456.14' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409971/ft1_4FGL_J0818.7+3153_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409971/ft2_4FGL_J0818.7+3153_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409971/ft1_4FGL_J0818.7+3153_daily_bin650.fits outfile=/scratch/kocevski/409971/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin650.fits ra=124.695 dec=31.8862 rad=12.0 tmin=407808001.0 tmax=408067201.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.37
user 3.85
sys 1.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409971/ft1_filtered_4FGL_J0818.7+3153_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/409971/ft2_4FGL_J0818.7+3153_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/409971/ltcube_407808001_408067201_4FGL_J0818.7+3153_daily_bin650.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/409971/ft2_4FGL_J0818.7+3153_daily_bin650.fits
.....................!
real 13.80
user 12.07
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409971/ft1_filtered_4FGL_J0818.7+3153_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/409971/ft2_4FGL_J0818.7+3153_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/409971/ltcube_407808001_408067201_4FGL_J0818.7+3153_daily_bin650.fits outfile=/scratch/kocevski/409971/expmap_407808001_408067201_4FGL_J0818.7+3153_daily_bin650.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/409971/ltcube_407808001_408067201_4FGL_J0818.7+3153_daily_bin650.fits
.....................!
real 195.09
user 187.77
sys 6.71

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/409971/ft1_filtered_4FGL_J0818.7+3153_daily_bin650.fits scfile=/scratch/kocevski/409971/ft2_4FGL_J0818.7+3153_daily_bin650.fits outfile=/scratch/kocevski/409971/cmap_407808001_408067201_4FGL_J0818.7+3153_daily_bin650.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.69
user 0.36
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409971/ft1_filtered_4FGL_J0818.7+3153_daily_bin650.fits scfile=/scratch/kocevski/409971/ft2_4FGL_J0818.7+3153_daily_bin650.fits outfile=/scratch/kocevski/409971/cmap_HighResolution_407808001_408067201_4FGL_J0818.7+3153_daily_bin650.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.79
user 0.36
sys 1.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409971/ft1_filtered_4FGL_J0818.7+3153_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/409971/ft2_4FGL_J0818.7+3153_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409971/Model_4FGL_J0818.7+3153_daily_bin650.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/409971/ft1_filtered_4FGL_J0818.7+3153_daily_bin650.fits.....................!
real 51.00
user 47.94
sys 2.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23780E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5308       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8661       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5186       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    71.524       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4411       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6717       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0175       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0454       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=   4773.053     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2415 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.513       -.34882E-06** at limit **
   2  norm          .10000E-03    2.0738        .11627E-07** at limit **
   3  Prefactor     12.924        41.129       -.35612E-05   -.67469E-05
   4  Prefactor     .10000E-03    5.4049       -.12111E-06** at limit **
   5  Prefactor     .10000E-03    157.36        .10515E-05** at limit **
   6  norm          .10000E-03    9.9921       -.24008E-06** at limit **
   7  norm          2.9505        978.10        .58397E-05   -.20059E-05
   8  Prefactor     3.8659        4.8714       -.12714E-06   -.31243E-03
   9  Prefactor     6.5236        28.995       -.19271E-05   -.15495E-04
  10  norm          .10000E-03    .21060        .18862E-07** at limit **
  11  Prefactor     .10000E-03    42.967        .30624E-07** at limit **
  12  Prefactor     .10000E-03    16.563       -.18671E-06** at limit **
  13  Prefactor     .10000E-03    3.7440       -.23733E-07** at limit **
  14  Prefactor     .10000E-03    9.3512        .32857E-07** at limit **
  15  Prefactor     .10000E-03    1.2426        .45299E-07** at limit **
  16  norm          .10000E-03    .40205        .65774E-08** at limit **
  17  Prefactor     71.510        41.593       -.79716E-05    .20750E-05
  18  Prefactor     4.4408        8.3912       -.74858E-06   -.16859E-03
  19  Prefactor     17.260        21.825       -.77026E-06   -.91723E-05
  20  Prefactor     4.6721        4.0062       -.61513E-07   -.54807E-05
  21  Normalizat    1.0175        .21631        .18551E-05   -.34362E-04
  22  Prefactor     1.0456        .17002       -.14460E-06    .53731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.95051
  Prefactor  = 3.86594
  Prefactor  = 6.52362
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 71.5097
  Prefactor  = 4.44082
  Prefactor  = 17.2603
  Prefactor  = 4.67214
  Normalizat = 1.01746
  Prefactor  = 1.04556
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.053     FROM HESSE     STATUS=OK           342 CALLS     2757 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0883        .96986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.924        41.046        .11187E-03   -1.4989    
   4  Prefactor     .10000E-03    5.4074        .15687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    159.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9505        980.77        .21513E-03   -1.5364    
   8  Prefactor     3.8659        4.8745        .16441E-03   -1.5315    
   9  Prefactor     6.5236        29.000        .15719E-03   -1.5197    
  10  norm          .10000E-03    .21071        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7461        .13055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2724        .75189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .55623        .85028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     71.510        41.371        .47468E-04   -1.4015    
  18  Prefactor     4.4408        8.4097        .19108E-03   -1.5286    
  19  Prefactor     17.260        21.899        .96324E-04   -1.4877    
  20  Prefactor     4.6721        4.0082        .12446E-03   -1.5276    
  21  Normalizat    1.0175        .25000        .26316E-03   -.92448    
  22  Prefactor     1.0456        .19721        .21118E-03   -.91226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61043e-10
Minuit parameter uncertainties:
  1  5.28582e-05
  2  3.82762e-06
  3  41.1358
  4  4.30223e-07
  5  0.000465846
  6  1.31907e-05
  7  109.444
  8  4.875
  9  27.531
  10  2.53441e-07
  11  2.38634e-05
  12  8.42914e-06
  13  1.46031e-05
  14  4.68737e-06
  15  6.68663e-06
  16  1.55894e-06
  17  41.3876
  18  8.41195
  19  21.9094
  20  4.00845
  21  0.250293
  22  0.197347
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.429e-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:  1.046e+00  1.973e-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.017e+00  2.503e-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: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409971/likelihoodResults_407808001_408067201_4FGL_J0818.7+3153_daily_bin650.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) = 4773.05376216
delta logL = -0.000287214003947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4773.05347553
delta logL = -5.85226189287e-07

Fit tolerance = 1e-08

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

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

 FCN=   4773.053     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5693        .90712E-02** at limit **
   2  Index         2.2430        6.1007        .50000        .19033E-04
   3  Normalizat    1.0175        .32492E-02    .43751E-01   -.28097E-05
   4  Prefactor     1.0456        .26521E-02    .40177E-01   -.19634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.24302
  Normalizat = 1.01746
  Prefactor  = 1.04556
 **********
 **   18 **HESSE 
 **********

 FCN=   4773.053     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2430        5.4581        .50000       -.58404    
   3  Normalizat    1.0175        .93849E-02    .26316E-03   -.92448    
   4  Prefactor     1.0456        .76619E-02    .21118E-03   -.91226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62632e-07
Minuit parameter uncertainties:
  1  0.000335901
  2  85.8519
  3  0.00938488
  4  0.00766192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409971': 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) = 4773.05347537
delta logL = -4.24226527684e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.359e-04  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.243e+00  8.585e+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.046e+00  7.662e-03  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.017e+00  9.385e-03  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/409971/cmap_HighResolution_407808001_408067201_4FGL_J0818.7+3153_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-08-29 17:24:20.782594', job_id='409971', GAL2='1.05', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630283060.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-4.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='650' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:24:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 409971: <4FGL_J0818.7+3153_daily_bin650> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin650> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 17:10:39 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:10:40 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:10:40 2021
Terminated at Sun Aug 29 17:24:22 2021
Results reported at Sun Aug 29 17:24:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin650 124.695 31.8862 407808001 408067201 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 :                                   615.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

