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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1414
RA = 124.695, Dec = 31.8862
tmin = 605836801, tmax = 606096001
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='413590', job_status='RUN', time_executed='2021-08-29 17:23:34.022895', time_epoch_executed='1630283014.02' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413590

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413590/ft1_4FGL_J0818.7+3153_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413590/ft2_4FGL_J0818.7+3153_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413590/ft1_4FGL_J0818.7+3153_daily_bin1414.fits outfile=/scratch/kocevski/413590/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1414.fits ra=124.695 dec=31.8862 rad=12.0 tmin=605836801.0 tmax=606096001.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 3.84
user 3.38
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413590/ft2_4FGL_J0818.7+3153_daily_bin1414.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/413590/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1414.fits evtable="EVENTS" outfile="/scratch/kocevski/413590/ft1_filtered_4FGL_J0818.7+3153_daily_bin1414.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.76
user 0.31
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413590/ft1_filtered_4FGL_J0818.7+3153_daily_bin1414.fits" evtable="EVENTS" scfile=/scratch/kocevski/413590/ft2_4FGL_J0818.7+3153_daily_bin1414.fits sctable="SC_DATA" outfile=/scratch/kocevski/413590/ltcube_605836801_606096001_4FGL_J0818.7+3153_daily_bin1414.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/413590/ft2_4FGL_J0818.7+3153_daily_bin1414.fits
.....................!
real 12.27
user 11.62
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413590/ft1_filtered_4FGL_J0818.7+3153_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/413590/ft2_4FGL_J0818.7+3153_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/413590/ltcube_605836801_606096001_4FGL_J0818.7+3153_daily_bin1414.fits outfile=/scratch/kocevski/413590/expmap_605836801_606096001_4FGL_J0818.7+3153_daily_bin1414.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/413590/ltcube_605836801_606096001_4FGL_J0818.7+3153_daily_bin1414.fits
.....................!
real 189.80
user 184.44
sys 4.98

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/413590/ft1_filtered_4FGL_J0818.7+3153_daily_bin1414.fits scfile=/scratch/kocevski/413590/ft2_4FGL_J0818.7+3153_daily_bin1414.fits outfile=/scratch/kocevski/413590/cmap_605836801_606096001_4FGL_J0818.7+3153_daily_bin1414.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 0.91
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413590/ft1_filtered_4FGL_J0818.7+3153_daily_bin1414.fits scfile=/scratch/kocevski/413590/ft2_4FGL_J0818.7+3153_daily_bin1414.fits outfile=/scratch/kocevski/413590/cmap_HighResolution_605836801_606096001_4FGL_J0818.7+3153_daily_bin1414.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 0.86
user 0.38
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413590/ft1_filtered_4FGL_J0818.7+3153_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/413590/ft2_4FGL_J0818.7+3153_daily_bin1414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413590/Model_4FGL_J0818.7+3153_daily_bin1414.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/413590/ft1_filtered_4FGL_J0818.7+3153_daily_bin1414.fits.....................!
real 64.58
user 62.29
sys 1.46

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2461       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6544       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6523       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23319E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9929       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5538       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4841       1.0000         .10000E-03   10000.    
    16 'norm      '    .91606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6298       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3910       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66304       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=   6320.560     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2335 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.340        .22103E-06** at limit **
   2  norm          4.2430        5.0185        .22996E-05    .11402E-03
   3  Prefactor     .10000E-03    54.459       -.45699E-05** at limit **
   4  Prefactor     .10000E-03    10.713       -.67253E-07** at limit **
   5  Prefactor     .10000E-03    24.166        .85274E-06** at limit **
   6  norm          2.6542        8.4546        .32213E-06   -.54638E-05
   7  norm          .10000E-03    63.911        .53243E-06** at limit **
   8  Prefactor     2.6522        2.7245        .24153E-07   -.47185E-05
   9  Prefactor     .10000E-03    69.433        .37114E-05** at limit **
  10  norm          1.9929        .69440        .14861E-07   -.48803E-04
  11  Prefactor     38.511        35.106       -.16371E-06   -.10978E-03
  12  Prefactor     4.5423        66.815        .36208E-05   -.19412E-04
  13  Prefactor     .10000E-03    5.4272       -.53664E-08** at limit **
  14  Prefactor     .10000E-03    24.701        .49373E-06** at limit **
  15  Prefactor     1.4837        2.6197        .21873E-06   -.18185E-04
  16  norm          .91599        1.3010        .40566E-06   -.93395E-04
  17  Prefactor     .10000E-03    11.855        .13440E-06** at limit **
  18  Prefactor     .10000E-03    17.011       -.13706E-06** at limit **
  19  Prefactor     .10000E-03    17.200       -.23659E-06** at limit **
  20  Prefactor     8.6295        4.4682        .54469E-07   -.69916E-05
  21  Normalizat    1.3911        .18822       -.10668E-05    .59395E-05
  22  Prefactor     .66296        .13541       -.18317E-06   -.77952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.65423
  norm       = 0.0001
  Prefactor  = 2.65221
  Prefactor  = 0.000100001
  norm       = 1.99289
  Prefactor  = 38.5111
  Prefactor  = 4.54232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48375
  norm       = 0.91599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.62951
  Normalizat = 1.39109
  Prefactor  = 0.662959
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.560     FROM HESSE     STATUS=OK           340 CALLS     2675 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2430        5.0261        .91037E-03   -1.5296    
   3  Prefactor     .10000E-03    54.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6542        8.4328        .25020E-03   -1.5382    
   7  norm          .10000E-03    63.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6522        2.7284        .12892E-03   -1.5382    
   9  Prefactor     .10000E-03    69.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9929        .69249        .37695E-04   -1.5426    
  11  Prefactor     38.511        35.081        .64581E-04   -1.4466    
  12  Prefactor     4.5423        66.712        .18864E-03   -1.5282    
  13  Prefactor     .10000E-03    5.4402        .18077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4837        2.5943        .16273E-03   -1.5464    
  16  norm          .91599        1.2997        .25731E-03   -1.5517    
  17  Prefactor     .10000E-03    11.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6295        4.4736        .11731E-03   -1.5120    
  21  Normalizat    1.3911        .21715        .23805E-03   -.80887    
  22  Prefactor     .66296        .15622        .24766E-03   -1.0500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06723e-10
Minuit parameter uncertainties:
  1  5.20203e-07
  2  5.02663
  3  0.00026132
  4  8.05187e-06
  5  1.43902e-05
  6  8.43657
  7  1.88427e-05
  8  2.72852
  9  0.000585905
  10  0.692497
  11  35.0994
  12  34.8617
  13  1.38329e-06
  14  1.63647e-05
  15  2.59451
  16  1.29978
  17  5.12436e-07
  18  3.68668e-05
  19  2.55185e-05
  20  4.47374
  21  0.217295
  22  0.156322
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.542e+00  3.486e+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:  6.630e-01  1.563e-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.391e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413590/likelihoodResults_605836801_606096001_4FGL_J0818.7+3153_daily_bin1414.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): 0
logL (Free Index) = 6319.95673715
delta logL = 0.60356707518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6319.85716224
delta logL = 0.703141986034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41281       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0070       1.0000          .0000       10.000    
     3 'Normalizat'    1.3028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70053       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=   6319.857     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      280 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40656        5.1135        .95009E-02    .12421E-02
   2  Index         4.0126        1.8839        .73221E-01    .16570E-03
   3  Normalizat    1.3029        .42176E-01    .55307E-01   -.14046E-04
   4  Prefactor     .70036        .31615E-01    .42408E-01   -.20341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.406563
  Index      = 4.01261
  Normalizat = 1.30286
  Prefactor  = 0.700363
 **********
 **   18 **HESSE 
 **********

 FCN=   6319.857     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40656        14.410        .42936E-04   -1.5580    
   2  Index         4.0126        3.6063        .37442E-02   -.19879    
   3  Normalizat    1.3029        .18455        .24456E-03   -.83481    
   4  Prefactor     .70036        .13474        .24147E-03   -1.0351    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3299e-10
Minuit parameter uncertainties:
  1  4.84165
  2  4.05251
  3  0.184638
  4  0.134803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413590': 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) = 6319.85715607
delta logL = 0.703148163892

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.066e-01  4.842e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  4.013e+00  4.053e+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:  7.004e-01  1.348e-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.303e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 124.695 31.886
Photon Index (Free Index): 4.01 +/- 4.05
Photon Flux (Free Index): 8.60e-08 +/- 7.83e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/413590/cmap_HighResolution_605836801_606096001_4FGL_J0818.7+3153_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='7.03e-01', photon_flux2='8.60e-08', job_status='DONE', time_completed='2021-08-29 17:34:31.961251', photon_index_error2='4.05', photon_index2='4.01', ts='0.02', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='9.48e-08', energy_flux_error2='1.23e-05', EG='1.39', time_epoch_completed='1630283671.96', return_code='0', job_id='413590', GAL2='0.70', EG2='1.30', return_code2='102', photon_flux_error2='7.83e-08', ts2='1.54', photon_index='2.13' WHERE bin_id='1414' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:34:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 413590: <4FGL_J0818.7+3153_daily_bin1414> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1414> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:34 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:36 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:36 2021
Terminated at Sun Aug 29 17:34:32 2021
Results reported at Sun Aug 29 17:34:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1414 124.695 31.8862 605836801 606096001 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 :                                   653.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

