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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1483
RA = 124.695, Dec = 31.8862
tmin = 623721601, tmax = 623980801
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='413689', job_status='RUN', time_executed='2021-08-29 17:23:41.930267', time_epoch_executed='1630283021.93' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413689/ft1_4FGL_J0818.7+3153_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413689/ft2_4FGL_J0818.7+3153_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413689/ft1_4FGL_J0818.7+3153_daily_bin1483.fits outfile=/scratch/kocevski/413689/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1483.fits ra=124.695 dec=31.8862 rad=12.0 tmin=623721601.0 tmax=623980801.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.94
user 4.84
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413689/ft2_4FGL_J0818.7+3153_daily_bin1483.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/413689/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1483.fits evtable="EVENTS" outfile="/scratch/kocevski/413689/ft1_filtered_4FGL_J0818.7+3153_daily_bin1483.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.01
user 0.29
sys 0.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413689/ft1_filtered_4FGL_J0818.7+3153_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/413689/ft2_4FGL_J0818.7+3153_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/413689/ltcube_623721601_623980801_4FGL_J0818.7+3153_daily_bin1483.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/413689/ft2_4FGL_J0818.7+3153_daily_bin1483.fits
.....................!
real 13.39
user 11.90
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413689/ft1_filtered_4FGL_J0818.7+3153_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/413689/ft2_4FGL_J0818.7+3153_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/413689/ltcube_623721601_623980801_4FGL_J0818.7+3153_daily_bin1483.fits outfile=/scratch/kocevski/413689/expmap_623721601_623980801_4FGL_J0818.7+3153_daily_bin1483.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/413689/ltcube_623721601_623980801_4FGL_J0818.7+3153_daily_bin1483.fits
.....................!
real 193.32
user 185.34
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/413689/ft1_filtered_4FGL_J0818.7+3153_daily_bin1483.fits scfile=/scratch/kocevski/413689/ft2_4FGL_J0818.7+3153_daily_bin1483.fits outfile=/scratch/kocevski/413689/cmap_623721601_623980801_4FGL_J0818.7+3153_daily_bin1483.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.66
user 0.36
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413689/ft1_filtered_4FGL_J0818.7+3153_daily_bin1483.fits scfile=/scratch/kocevski/413689/ft2_4FGL_J0818.7+3153_daily_bin1483.fits outfile=/scratch/kocevski/413689/cmap_HighResolution_623721601_623980801_4FGL_J0818.7+3153_daily_bin1483.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.60
user 0.37
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413689/ft1_filtered_4FGL_J0818.7+3153_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/413689/ft2_4FGL_J0818.7+3153_daily_bin1483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413689/Model_4FGL_J0818.7+3153_daily_bin1483.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/413689/ft1_filtered_4FGL_J0818.7+3153_daily_bin1483.fits.....................!
real 74.06
user 65.08
sys 2.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.8079       1.0000         .10000E-03   10000.    
     7 'norm      '    .10594E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.230       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5323       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.473       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6932       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3796       1.0000         .10000E-03   10000.    
    16 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9701       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21404       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0114       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0692       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=   6934.905     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2372 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8682       -.24359E-07** at limit **
   2  norm          .10000E-03    2.4408        .36218E-07** at limit **
   3  Prefactor     .10001E-03    28.496        .58036E-05** at limit **
   4  Prefactor     .10000E-03    5.9730        .30435E-07** at limit **
   5  Prefactor     .10000E-03    12.851       -.14026E-06** at limit **
   6  norm          7.8092        14.875        .45744E-06   -.67229E-04
   7  norm          .10001E-03    27.117       -.57497E-05** at limit **
   8  Prefactor     .10000E-03    2.0090       -.36297E-07** at limit **
   9  Prefactor     38.243        37.184        .19795E-05    .11312E-03
  10  norm          1.5323        .56361        .17978E-07   -.33536E-04
  11  Prefactor     .10001E-03    160.75       -.44902E-05** at limit **
  12  Prefactor     25.475        22.802       -.41371E-06   -.10884E-03
  13  Prefactor     .10000E-03    3.5137       -.18888E-07** at limit **
  14  Prefactor     3.6515        35.717       -.20061E-05   -.19786E-03
  15  Prefactor     1.3797        1.9560        .21807E-06    .38645E-04
  16  norm          .10000E-03    .59136        .14042E-05** at limit **
  17  Prefactor     6.9691        15.239        .42612E-06    .63132E-05
  18  Prefactor     .10000E-03    15.075        .78886E-06** at limit **
  19  Prefactor     6.0683        15.370        .45877E-05   -.58397E-04
  20  Prefactor     .21316        1.6985        .69059E-06   -.68961E-03
  21  Normalizat    1.0113        .18106       -.23643E-05   -.55955E-03
  22  Prefactor     1.0692        .13946        .33420E-06   -.68612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.80923
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 38.2427
  norm       = 1.53233
  Prefactor  = 0.000100012
  Prefactor  = 25.4754
  Prefactor  = 0.0001
  Prefactor  = 3.65147
  Prefactor  = 1.37974
  norm       = 0.000100001
  Prefactor  = 6.96913
  Prefactor  = 0.0001
  Prefactor  = 6.06826
  Prefactor  = 0.213164
  Normalizat = 1.01133
  Prefactor  = 1.06917
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.905     FROM HESSE     STATUS=OK           338 CALLS     2710 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9002        .17944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4760        .12699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    29.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.8092        14.875        .14350E-03   -1.5149    
   7  norm          .10001E-03    28.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0297        .11519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.243        37.498        .64823E-04   -1.4470    
  10  norm          1.5323        .56655        .36731E-04   -1.5460    
  11  Prefactor     .10001E-03    164.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.475        22.835        .79371E-04   -1.4698    
  13  Prefactor     .10000E-03    3.5181        .15242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6515        35.593        .21015E-03   -1.5326    
  15  Prefactor     1.3797        1.9275        .13347E-03   -1.5473    
  16  norm          .10000E-03    .80372        .10902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9691        15.227        .15196E-03   -1.5180    
  18  Prefactor     .10000E-03    15.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0683        15.405        .81490E-03   -1.5215    
  20  Prefactor     .21316        6.8664        .20740E-02   -1.5616    
  21  Normalizat    1.0113        .20383        .27213E-03   -.92652    
  22  Prefactor     1.0692        .15809        .21341E-03   -.90458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64875e-09
Minuit parameter uncertainties:
  1  5.45349e-06
  2  7.32906e-06
  3  0.00100609
  4  5.66095e-06
  5  1.26474e-05
  6  14.8822
  7  0.000942044
  8  4.3659e-06
  9  37.5212
  10  0.566555
  11  0.0028288
  12  22.8429
  13  1.92602e-06
  14  22.8181
  15  1.92758
  16  6.0638e-05
  17  15.2353
  18  1.81951e-06
  19  15.4148
  20  2.41937
  21  0.203985
  22  0.158164
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.548e+01  2.284e+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:  1.069e+00  1.582e-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.011e+00  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.77
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.26e-05

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) = 6934.4524116
delta logL = 0.452565858933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.44807106
delta logL = 0.456906396817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.058       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2462       1.0000          .0000       10.000    
     3 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0641       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=   6934.448     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.058        44.288        .19619E-02    .83612E-04
   2  Index         1.2462        1.0607        .33620       -.40532E-04
   3  Normalizat    1.0323        .17675        .61018E-01   -.50578E-04
   4  Prefactor     1.0640        .13685        .39148E-01    .32230E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0581
  Index      = 1.2462
  Normalizat = 1.03235
  Prefactor  = 1.064
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.448     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.058        28.661        .78476E-04   -1.4687    
   2  Index         1.2462        .73098        .15191E-01   -.84921    
   3  Normalizat    1.0323        .19483        .26986E-03   -.91955    
   4  Prefactor     1.0640        .15742        .21390E-03   -.90626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3291e-09
Minuit parameter uncertainties:
  1  28.6766
  2  0.737078
  3  0.194964
  4  0.15749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413689': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.44807096
delta logL = 0.456906493565

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.606e+01  2.868e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.246e+00  7.371e-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.064e+00  1.575e-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.032e+00  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.68
Ra Dec: 124.695 31.886
Photon Index (Free Index): 1.25 +/- 0.74
Photon Flux (Free Index): 5.49e-09 +/- 7.96e-09
Energy Flux (Free Index): 3.98e-05 +/- 6.35e-05

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/413689/cmap_HighResolution_623721601_623980801_4FGL_J0818.7+3153_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='3.98e-05', photon_flux_error='2.46e-08', dlogl='4.57e-01', energy_flux='1.40e-05', photon_flux2='5.49e-09', job_status='DONE', time_completed='2021-08-29 17:34:44.263224', photon_index_error2='0.74', photon_index2='1.25', ts='6.77', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='6.35e-05', EG='1.01', time_epoch_completed='1630283684.26', return_code='0', job_id='413689', GAL2='1.06', EG2='1.03', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='7.96e-09', ts2='7.68', photon_index='2.13' WHERE bin_id='1483' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 413689: <4FGL_J0818.7+3153_daily_bin1483> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1483 124.695 31.8862 623721601 623980801 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 :                                   648.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

