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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1186
RA = 124.695, Dec = 31.8862
tmin = 546739201, tmax = 546998401
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='412145', job_status='RUN', time_executed='2021-08-29 17:17:06.509640', time_epoch_executed='1630282626.51' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412145

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412145/ft1_4FGL_J0818.7+3153_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412145/ft2_4FGL_J0818.7+3153_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412145/ft1_4FGL_J0818.7+3153_daily_bin1186.fits outfile=/scratch/kocevski/412145/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1186.fits ra=124.695 dec=31.8862 rad=12.0 tmin=546739201.0 tmax=546998401.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.87
user 3.37
sys 3.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412145/ft1_filtered_4FGL_J0818.7+3153_daily_bin1186.fits" evtable="EVENTS" scfile=/scratch/kocevski/412145/ft2_4FGL_J0818.7+3153_daily_bin1186.fits sctable="SC_DATA" outfile=/scratch/kocevski/412145/ltcube_546739201_546998401_4FGL_J0818.7+3153_daily_bin1186.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/412145/ft2_4FGL_J0818.7+3153_daily_bin1186.fits
.....................!
real 16.92
user 12.87
sys 3.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412145/ft1_filtered_4FGL_J0818.7+3153_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/412145/ft2_4FGL_J0818.7+3153_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/412145/ltcube_546739201_546998401_4FGL_J0818.7+3153_daily_bin1186.fits outfile=/scratch/kocevski/412145/expmap_546739201_546998401_4FGL_J0818.7+3153_daily_bin1186.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/412145/ltcube_546739201_546998401_4FGL_J0818.7+3153_daily_bin1186.fits
.....................!
real 194.77
user 185.72
sys 8.23

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/412145/ft1_filtered_4FGL_J0818.7+3153_daily_bin1186.fits scfile=/scratch/kocevski/412145/ft2_4FGL_J0818.7+3153_daily_bin1186.fits outfile=/scratch/kocevski/412145/cmap_546739201_546998401_4FGL_J0818.7+3153_daily_bin1186.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 3.86
user 0.35
sys 3.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412145/ft1_filtered_4FGL_J0818.7+3153_daily_bin1186.fits scfile=/scratch/kocevski/412145/ft2_4FGL_J0818.7+3153_daily_bin1186.fits outfile=/scratch/kocevski/412145/cmap_HighResolution_546739201_546998401_4FGL_J0818.7+3153_daily_bin1186.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 3.75
user 0.38
sys 3.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412145/ft1_filtered_4FGL_J0818.7+3153_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/412145/ft2_4FGL_J0818.7+3153_daily_bin1186.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412145/Model_4FGL_J0818.7+3153_daily_bin1186.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/412145/ft1_filtered_4FGL_J0818.7+3153_daily_bin1186.fits....................!
real 85.66
user 78.72
sys 5.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.2338       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5244       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.102       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.330       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11600E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88093       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2373       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=   9002.770     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2067 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.966       -.58549E-06** at limit **
   2  norm          .10000E-03    2.6047       -.21019E-07** at limit **
   3  Prefactor     6.9081        29.994        .33242E-06    .17733E-05
   4  Prefactor     2.5566        24.492        .74858E-06   -.28287E-04
   5  Prefactor     .10000E-03    17.735        .44479E-06** at limit **
   6  norm          8.2342        11.426        .20569E-05   -.44064E-03
   7  norm          .10001E-03    33.498        .54834E-05** at limit **
   8  Prefactor     3.5243        3.8581        .25353E-06   -.19630E-03
   9  Prefactor     .10000E-03    7.6598       -.27780E-06** at limit **
  10  norm          1.4364        .49744        .62995E-08   -.29844E-03
  11  Prefactor     .10000E-03    14.081        .12320E-05** at limit **
  12  Prefactor     .10000E-03    21.581       -.27210E-05** at limit **
  13  Prefactor     .10000E-03    8.0109        .19682E-05** at limit **
  14  Prefactor     5.4853        19.562        .50532E-05   -.22737E-03
  15  Prefactor     .10000E-03    1.2597        .46306E-07** at limit **
  16  norm          1.0584        1.1368       -.16220E-06   -.47568E-03
  17  Prefactor     .10000E-03    8.4053       -.17292E-05** at limit **
  18  Prefactor     32.103        13.295       -.28367E-07   -.21616E-05
  19  Prefactor     12.329        16.417        .17911E-06   -.30665E-05
  20  Prefactor     .10072E-03    1.4976       -.40144E-06** at limit **
  21  Normalizat    .88086        .16925       -.57463E-06    .44447E-04
  22  Prefactor     1.2374        .13465       -.27210E-06    .52917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.90808
  Prefactor  = 2.55656
  Prefactor  = 0.0001
  norm       = 8.23421
  norm       = 0.000100012
  Prefactor  = 3.52433
  Prefactor  = 0.0001
  norm       = 1.43641
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 5.4853
  Prefactor  = 0.0001
  norm       = 1.05842
  Prefactor  = 0.000100001
  Prefactor  = 32.1026
  Prefactor  = 12.3291
  Prefactor  = 0.000100715
  Normalizat = 0.88086
  Prefactor  = 1.2374
 **********
 **   18 **HESSE 
 **********

 FCN=   9002.770     FROM HESSE     STATUS=OK           350 CALLS     2417 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6520        .29787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9081        29.868        .15265E-03   -1.5182    
   4  Prefactor     2.5566        24.458        .25524E-03   -1.5388    
   5  Prefactor     .10000E-03    17.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.2342        11.865        .69858E-03   -1.5134    
   7  norm          .10001E-03    35.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5243        3.8479        .18383E-03   -1.5332    
   9  Prefactor     .10000E-03    7.6688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4364        .49660        .37660E-04   -1.5468    
  11  Prefactor     .10000E-03    14.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4853        20.311        .85788E-03   -1.5240    
  15  Prefactor     .10000E-03    1.2914        .20767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0584        1.0901        .94185E-04   -1.5502    
  17  Prefactor     .10000E-03    8.6629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.103        13.222        .70720E-04   -1.4574    
  19  Prefactor     12.329        16.450        .11408E-03   -1.5006    
  20  Prefactor     .10072E-03    2.4541        .40615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88086        .19496        .30331E-03   -.97136    
  22  Prefactor     1.2374        .15551        .21171E-03   -.85188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20203e-09
Minuit parameter uncertainties:
  1  7.11808e-05
  2  1.49544e-06
  3  28.7527
  4  15.8232
  5  7.34342e-05
  6  11.8682
  7  0.00133208
  8  3.84817
  9  3.12976e-05
  10  0.496598
  11  0.000187458
  12  0.000507772
  13  0.000216066
  14  20.3364
  15  1.93811e-07
  16  1.09013
  17  0.000206249
  18  13.2236
  19  16.4564
  20  0.00264985
  21  0.195111
  22  0.155566
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.078e-04  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.237e+00  1.556e-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.809e-01  1.951e-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: 5.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412145/likelihoodResults_546739201_546998401_4FGL_J0818.7+3153_daily_bin1186.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) = 9002.77001741
delta logL = -0.000214150533793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9002.76980365
delta logL = -3.86475221603e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2384       1.0000          .0000       10.000    
     3 'Normalizat'    .88086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2374       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=   9002.770     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6742        .90712E-02** at limit **
   2  Index         2.2243        7.0186        .50000        .52184E-05
   3  Normalizat    .88086        .21247E-02    .68558E-01   -.87017E-04
   4  Prefactor     1.2374        .17329E-02    .33801E-01   -.61152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.22432
  Normalizat = 0.880859
  Prefactor  = 1.2374
 **********
 **   18 **HESSE 
 **********

 FCN=   9002.770     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2243        8.6957        .50000       -.58853    
   3  Normalizat    .88086        .63668E-02    .30331E-03   -.97136    
   4  Prefactor     1.2374        .52012E-02    .21171E-03   -.85188    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.33631e-09
Minuit parameter uncertainties:
  1  0.000499436
  2  67.7701
  3  0.00636677
  4  0.00520117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412145': 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) = 9002.76980334
delta logL = -7.69214238971e-08

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.994e-04  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.224e+00  6.777e+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.237e+00  5.201e-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:  8.809e-01  6.367e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/412145/cmap_HighResolution_546739201_546998401_4FGL_J0818.7+3153_daily_bin1186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-08-29 17:30:40.715567', job_id='412145', GAL2='1.24', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630283440.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-7.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1186' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:30:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 412145: <4FGL_J0818.7+3153_daily_bin1186> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1186 124.695 31.8862 546739201 546998401 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 :                                   857.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            892 sec.

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

