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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1521
RA = 124.695, Dec = 31.8862
tmin = 633571201, tmax = 633830401
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='413743', job_status='RUN', time_executed='2021-08-29 17:24:50.397874', time_epoch_executed='1630283090.4' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413743/ft1_4FGL_J0818.7+3153_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413743/ft2_4FGL_J0818.7+3153_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413743/ft1_4FGL_J0818.7+3153_daily_bin1521.fits outfile=/scratch/kocevski/413743/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1521.fits ra=124.695 dec=31.8862 rad=12.0 tmin=633571201.0 tmax=633830401.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.77
user 3.31
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413743/ft1_filtered_4FGL_J0818.7+3153_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/413743/ft2_4FGL_J0818.7+3153_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/413743/ltcube_633571201_633830401_4FGL_J0818.7+3153_daily_bin1521.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/413743/ft2_4FGL_J0818.7+3153_daily_bin1521.fits
.....................!
real 12.49
user 11.84
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413743/ft1_filtered_4FGL_J0818.7+3153_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/413743/ft2_4FGL_J0818.7+3153_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/413743/ltcube_633571201_633830401_4FGL_J0818.7+3153_daily_bin1521.fits outfile=/scratch/kocevski/413743/expmap_633571201_633830401_4FGL_J0818.7+3153_daily_bin1521.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/413743/ltcube_633571201_633830401_4FGL_J0818.7+3153_daily_bin1521.fits
.....................!
real 190.54
user 185.48
sys 4.64

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/413743/ft1_filtered_4FGL_J0818.7+3153_daily_bin1521.fits scfile=/scratch/kocevski/413743/ft2_4FGL_J0818.7+3153_daily_bin1521.fits outfile=/scratch/kocevski/413743/cmap_633571201_633830401_4FGL_J0818.7+3153_daily_bin1521.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.79
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413743/ft1_filtered_4FGL_J0818.7+3153_daily_bin1521.fits scfile=/scratch/kocevski/413743/ft2_4FGL_J0818.7+3153_daily_bin1521.fits outfile=/scratch/kocevski/413743/cmap_HighResolution_633571201_633830401_4FGL_J0818.7+3153_daily_bin1521.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.78
user 0.36
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413743/ft1_filtered_4FGL_J0818.7+3153_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/413743/ft2_4FGL_J0818.7+3153_daily_bin1521.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413743/Model_4FGL_J0818.7+3153_daily_bin1521.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/413743/ft1_filtered_4FGL_J0818.7+3153_daily_bin1521.fits.....................!
real 60.30
user 57.33
sys 1.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.703       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.1076       1.0000         .10000E-03   10000.    
     7 'norm      '    53.425       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.539       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1292       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12255E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8911       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.245       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .95547E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    102.30       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75611       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=   6017.911     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2440 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.698        16.128       -.38367E-06   -.52835E-05
   2  norm          2.2777        3.8425        .26568E-06    .73441E-05
   3  Prefactor     .10000E-03    53.447       -.13145E-05** at limit **
   4  Prefactor     .10000E-03    25.614       -.43249E-06** at limit **
   5  Prefactor     .10000E-03    14.513        .37540E-07** at limit **
   6  norm          6.1041        11.691        .41314E-05   -.62525E-04
   7  norm          53.384        82.894       -.62049E-05   -.94394E-04
   8  Prefactor     .10000E-03    2.8766        .87980E-07** at limit **
   9  Prefactor     33.532        32.702       -.33776E-06   -.37053E-04
  10  norm          1.1291        .54502       -.94945E-08   -.55157E-04
  11  Prefactor     .10000E-03    33.318        .12669E-05** at limit **
  12  Prefactor     5.8905        13.351        .22160E-07   -.29325E-05
  13  Prefactor     .10000E-03    5.0205        .53243E-07** at limit **
  14  Prefactor     27.320        20.524       -.75867E-06   -.19576E-03
  15  Prefactor     .10000E-03    1.6184        .91028E-07** at limit **
  16  norm          .15053E-03    .49290       -.14457E-06** at limit **
  17  Prefactor     .10000E-03    9.6405        .12486E-06** at limit **
  18  Prefactor     .10000E-03    9.5498       -.14592E-06** at limit **
  19  Prefactor     102.29        30.192        .12701E-06    .32267E-04
  20  Prefactor     .10000E-03    1.6735        .40732E-07** at limit **
  21  Normalizat    1.0884        .17929        .54018E-06    .39234E-04
  22  Prefactor     .75609        .13459       -.31931E-06    .82284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6978
  norm       = 2.27767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.1041
  norm       = 53.3838
  Prefactor  = 0.0001
  Prefactor  = 33.5322
  norm       = 1.12911
  Prefactor  = 0.0001
  Prefactor  = 5.89049
  Prefactor  = 0.0001
  Prefactor  = 27.3201
  Prefactor  = 0.0001
  norm       = 0.000150529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 102.29
  Prefactor  = 0.0001
  Normalizat = 1.08841
  Prefactor  = 0.756087
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.911     FROM HESSE     STATUS=OK           346 CALLS     2786 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.698        16.140        .10107E-03   -1.4915    
   2  norm          2.2777        3.8256        .18786E-03   -1.5406    
   3  Prefactor     .10000E-03    53.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.1041        11.977        .81227E-03   -1.5214    
   7  norm          53.384        84.957        .54874E-04   -1.4245    
   8  Prefactor     .10000E-03    2.9182        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.532        32.738        .69193E-04   -1.4549    
  10  norm          1.1291        .54450        .38505E-04   -1.5495    
  11  Prefactor     .10000E-03    33.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8905        13.340        .16545E-03   -1.5223    
  13  Prefactor     .10000E-03    5.0317        .16972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.320        22.334        .76750E-04   -1.4662    
  15  Prefactor     .10000E-03    1.6614        .19245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .15053E-03    2.3510        .17732E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     102.29        30.332        .39753E-04   -1.3682    
  20  Prefactor     .10000E-03    1.6845        .97985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0884        .20833        .24810E-03   -.90125    
  22  Prefactor     .75609        .15639        .22369E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94893e-09
Minuit parameter uncertainties:
  1  16.144
  2  3.82604
  3  0.000258109
  4  4.98831e-05
  5  4.57197e-07
  6  11.9816
  7  85.1504
  8  2.82978e-06
  9  32.7551
  10  0.544498
  11  0.000196304
  12  13.3465
  13  2.18849e-06
  14  22.3413
  15  2.46254e-06
  16  0.0217993
  17  3.59018e-06
  18  6.98588e-06
  19  30.3368
  20  9.05301e-07
  21  0.208484
  22  0.156482
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  5.890e+00  1.335e+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:  7.561e-01  1.565e-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.088e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413743/likelihoodResults_633571201_633830401_4FGL_J0818.7+3153_daily_bin1521.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) = 6017.90698024
delta logL = 0.00419476482512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6017.90388791
delta logL = 0.00728709709801

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6017.904     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      247 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6472        17.327        .18663E-03   -.26437E-03
   2  Index         2.3049        1.6305        .88125E-02   -.16970E-03
   3  Normalizat    1.0871        .20079        .24823E-03    .63118E-03
   4  Prefactor     .75655        .15413        .22362E-03    .67131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.64723
  Index      = 2.30486
  Normalizat = 1.08712
  Prefactor  = 0.756554
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.904     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6472        14.988        .74653E-05   -1.5277    
   2  Index         2.3049        1.4199        .35250E-03   -.56928    
   3  Normalizat    1.0871        .20080        .49647E-04   -.90167    
   4  Prefactor     .75655        .15418        .44725E-04   -1.0135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99283e-09
Minuit parameter uncertainties:
  1  14.9996
  2  1.44825
  3  0.20094
  4  0.154268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413743': 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) = 6017.90388783
delta logL = 0.00728717648599

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.647e+00  1.500e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.305e+00  1.448e+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.566e-01  1.543e-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.087e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 124.695 31.886

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-08-29 17:35:35.216721', job_id='413743', GAL2='0.76', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630283735.22', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='7.29e-03', ts2='0.29', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1521' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:35:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 413743: <4FGL_J0818.7+3153_daily_bin1521> in cluster <slac> Done

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

Your job looked like:

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

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

