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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1296
RA = 124.695, Dec = 31.8862
tmin = 575251201, tmax = 575510401
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='413394', job_status='RUN', time_executed='2021-08-29 17:21:05.749999', time_epoch_executed='1630282865.75' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413394/ft1_4FGL_J0818.7+3153_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413394/ft2_4FGL_J0818.7+3153_daily_bin1296.fits


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

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

Done.
real 6.43
user 5.01
sys 1.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413394/ft2_4FGL_J0818.7+3153_daily_bin1296.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/413394/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1296.fits evtable="EVENTS" outfile="/scratch/kocevski/413394/ft1_filtered_4FGL_J0818.7+3153_daily_bin1296.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.66
user 0.35
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413394/ft1_filtered_4FGL_J0818.7+3153_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/413394/ft2_4FGL_J0818.7+3153_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/413394/ltcube_575251201_575510401_4FGL_J0818.7+3153_daily_bin1296.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/413394/ft2_4FGL_J0818.7+3153_daily_bin1296.fits
.....................!
real 13.15
user 11.48
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413394/ft1_filtered_4FGL_J0818.7+3153_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/413394/ft2_4FGL_J0818.7+3153_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/413394/ltcube_575251201_575510401_4FGL_J0818.7+3153_daily_bin1296.fits outfile=/scratch/kocevski/413394/expmap_575251201_575510401_4FGL_J0818.7+3153_daily_bin1296.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/413394/ltcube_575251201_575510401_4FGL_J0818.7+3153_daily_bin1296.fits
.....................!
real 192.81
user 185.73
sys 6.35

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/413394/ft1_filtered_4FGL_J0818.7+3153_daily_bin1296.fits scfile=/scratch/kocevski/413394/ft2_4FGL_J0818.7+3153_daily_bin1296.fits outfile=/scratch/kocevski/413394/cmap_575251201_575510401_4FGL_J0818.7+3153_daily_bin1296.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.67
user 0.37
sys 1.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413394/ft1_filtered_4FGL_J0818.7+3153_daily_bin1296.fits scfile=/scratch/kocevski/413394/ft2_4FGL_J0818.7+3153_daily_bin1296.fits outfile=/scratch/kocevski/413394/cmap_HighResolution_575251201_575510401_4FGL_J0818.7+3153_daily_bin1296.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.67
user 0.40
sys 1.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413394/ft1_filtered_4FGL_J0818.7+3153_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/413394/ft2_4FGL_J0818.7+3153_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413394/Model_4FGL_J0818.7+3153_daily_bin1296.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/413394/ft1_filtered_4FGL_J0818.7+3153_daily_bin1296.fits.....................!
real 64.63
user 61.62
sys 2.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.450       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8022       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2142       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.207       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7664       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7906       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2570       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6900       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85972       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0483       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=   6733.021     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2010 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0556       -.51640E-08** at limit **
   2  norm          .10000E-03    2.0196        .25740E-07** at limit **
   3  Prefactor     .10000E-03    11.800        .57251E-05** at limit **
   4  Prefactor     .10000E-03    5.3511       -.25723E-07** at limit **
   5  Prefactor     .10000E-03    44.786       -.17387E-04** at limit **
   6  norm          23.450        13.543       -.40048E-06   -.45852E-03
   7  norm          .10000E-03    35.841        .19137E-04** at limit **
   8  Prefactor     1.8022        2.3221       -.72839E-07   -.21809E-03
   9  Prefactor     .10000E-03    18.057       -.96842E-05** at limit **
  10  norm          1.2142        .51102        .48624E-08   -.18989E-04
  11  Prefactor     .10000E-03    15.328        .54960E-05** at limit **
  12  Prefactor     .10000E-03    11.180       -.54101E-05** at limit **
  13  Prefactor     7.6621        7.2659        .55464E-07    .19525E-04
  14  Prefactor     22.206        17.403       -.12697E-06    .58719E-05
  15  Prefactor     1.7664        1.8609       -.10059E-06   -.46953E-03
  16  norm          2.7906        1.3941       -.22349E-07   -.21462E-03
  17  Prefactor     .10000E-03    6.8948        .11067E-06** at limit **
  18  Prefactor     5.2567        8.7122       -.27434E-06   -.17439E-03
  19  Prefactor     .10000E-03    11.363        .96375E-07** at limit **
  20  Prefactor     2.6901        2.5966       -.11003E-07    .14231E-05
  21  Normalizat    .85978        .16671        .25431E-06    .63616E-04
  22  Prefactor     1.0483        .13724        .79364E-07    .93031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.4496
  norm       = 0.0001
  Prefactor  = 1.80215
  Prefactor  = 0.0001
  norm       = 1.21417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.66208
  Prefactor  = 22.2065
  Prefactor  = 1.76645
  norm       = 2.79059
  Prefactor  = 0.0001
  Prefactor  = 5.25675
  Prefactor  = 0.0001
  Prefactor  = 2.69006
  Normalizat = 0.859781
  Prefactor  = 1.0483
 **********
 **   18 **HESSE 
 **********

 FCN=   6733.021     FROM HESSE     STATUS=OK           340 CALLS     2350 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0594        .14008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0660        .11382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.450        13.602        .41359E-03   -1.4739    
   7  norm          .10000E-03    35.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8022        2.3056        .13722E-03   -1.5439    
   9  Prefactor     .10000E-03    18.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2142        .50929        .36653E-04   -1.5488    
  11  Prefactor     .10000E-03    15.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6621        7.2547        .14487E-03   -1.5154    
  14  Prefactor     22.206        17.411        .84998E-04   -1.4765    
  15  Prefactor     1.7664        1.8425        .10975E-03   -1.5442    
  16  norm          2.7906        1.3895        .62241E-04   -1.5374    
  17  Prefactor     .10000E-03    6.9022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2567        8.7017        .17531E-03   -1.5249    
  19  Prefactor     .10000E-03    11.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6901        2.5977        .12629E-03   -1.5380    
  21  Normalizat    .85978        .19016        .26909E-03   -.97888    
  22  Prefactor     1.0483        .15705        .20494E-03   -.91136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10749e-10
Minuit parameter uncertainties:
  1  1.71883e-07
  2  8.16541e-07
  3  3.40889e-06
  4  6.18629e-08
  5  0.000124196
  6  13.6037
  7  1.92624e-06
  8  2.30572
  9  6.25735e-06
  10  0.509293
  11  3.32877e-07
  12  3.89662e-06
  13  7.25552
  14  17.4154
  15  1.84255
  16  1.38954
  17  5.63138e-07
  18  8.70378
  19  3.99886e-06
  20  2.5978
  21  0.19031
  22  0.157117
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.897e-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.048e+00  1.571e-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:  8.598e-01  1.903e-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: 4.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413394/likelihoodResults_575251201_575510401_4FGL_J0818.7+3153_daily_bin1296.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) = 6733.02188291
delta logL = -0.000425409698437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6733.0214577
delta logL = -1.93638697965e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1280       1.0000          .0000       10.000    
     3 'Normalizat'    .85973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0483       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=   6733.021     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    125.14        .90712E-02** at limit **
   2  Index         2.1212        8.2785        .50000        .49209E-05
   3  Normalizat    .85978        .14185E-01    .44385E-01    .20732E-04
   4  Prefactor     1.0483        .11877E-01    .40007E-01    .60709E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1212
  Normalizat = 0.859781
  Prefactor  = 1.0483
 **********
 **   18 **HESSE 
 **********

 FCN=   6733.021     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    875.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1212        6.8526        .50000       -.61353    
   3  Normalizat    .85978        .41505E-01    .26909E-03   -.97888    
   4  Prefactor     1.0483        .34766E-01    .20494E-03   -.91136    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97171e-09
Minuit parameter uncertainties:
  1  5.13069e-06
  2  36.7
  3  0.0415068
  4  0.0347665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413394': 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) = 6733.02145749
delta logL = 1.64382072398e-08

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.131e-06  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.121e+00  3.670e+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.048e+00  3.477e-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:  8.598e-01  4.151e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/413394/cmap_HighResolution_575251201_575510401_4FGL_J0818.7+3153_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2021-08-29 17:32:29.531913', job_id='413394', GAL2='1.05', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630283549.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1296' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:32:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 413394: <4FGL_J0818.7+3153_daily_bin1296> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1296 124.695 31.8862 575251201 575510401 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 :                                   696.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            727 sec.

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

