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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1114
RA = 124.695, Dec = 31.8862
tmin = 528076801, tmax = 528336001
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='412034', job_status='RUN', time_executed='2021-08-29 17:17:50.724459', time_epoch_executed='1630282670.72' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412034

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412034/ft1_4FGL_J0818.7+3153_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412034/ft2_4FGL_J0818.7+3153_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412034/ft1_4FGL_J0818.7+3153_daily_bin1114.fits outfile=/scratch/kocevski/412034/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1114.fits ra=124.695 dec=31.8862 rad=12.0 tmin=528076801.0 tmax=528336001.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.70
user 3.21
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412034/ft1_filtered_4FGL_J0818.7+3153_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/412034/ft2_4FGL_J0818.7+3153_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/412034/ltcube_528076801_528336001_4FGL_J0818.7+3153_daily_bin1114.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/412034/ft2_4FGL_J0818.7+3153_daily_bin1114.fits
.....................!
real 12.42
user 11.76
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412034/ft1_filtered_4FGL_J0818.7+3153_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/412034/ft2_4FGL_J0818.7+3153_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/412034/ltcube_528076801_528336001_4FGL_J0818.7+3153_daily_bin1114.fits outfile=/scratch/kocevski/412034/expmap_528076801_528336001_4FGL_J0818.7+3153_daily_bin1114.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/412034/ltcube_528076801_528336001_4FGL_J0818.7+3153_daily_bin1114.fits
.....................!
real 190.36
user 184.83
sys 5.13

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/412034/ft1_filtered_4FGL_J0818.7+3153_daily_bin1114.fits scfile=/scratch/kocevski/412034/ft2_4FGL_J0818.7+3153_daily_bin1114.fits outfile=/scratch/kocevski/412034/cmap_528076801_528336001_4FGL_J0818.7+3153_daily_bin1114.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.80
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412034/ft1_filtered_4FGL_J0818.7+3153_daily_bin1114.fits scfile=/scratch/kocevski/412034/ft2_4FGL_J0818.7+3153_daily_bin1114.fits outfile=/scratch/kocevski/412034/cmap_HighResolution_528076801_528336001_4FGL_J0818.7+3153_daily_bin1114.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.88
user 0.40
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2816       1.0000         .10000E-03   10000.    
     2 'norm      '    .15474E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20383E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    38.189       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .24361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.919       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0195       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.809       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80712       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2858       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8012.213     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2423 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2816        9.1275         .0000        .16725E-03
   2  norm          .10000E-03    2.0124         .0000    ** at limit **
   3  Prefactor     .10000E-03    17.295         .0000    ** at limit **
   4  Prefactor     .10000E-03    13.285         .0000    ** at limit **
   5  Prefactor     .10000E-03    10.470         .0000    ** at limit **
   6  norm          38.190        14.564         .0000        .18964E-03
   7  norm          .10000E-03    34.196         .0000    ** at limit **
   8  Prefactor     3.5357        4.0811         .0000        .56639E-03
   9  Prefactor     .10000E-03    10.543         .0000    ** at limit **
  10  norm          .24356        .43698         .0000        .25529E-02
  11  Prefactor     27.919        28.340         .0000        .50906E-04
  12  Prefactor     7.0228        31.387         .0000       -.19255E-03
  13  Prefactor     2.4976        8.6994         .0000        .70760E-02
  14  Prefactor     49.808        22.703         .0000        .20938E-03
  15  Prefactor     .10000E-03    .86146         .0000    ** at limit **
  16  norm          .10000E-03    .30701         .0000    ** at limit **
  17  Prefactor     .10000E-03    5.2267         .0000    ** at limit **
  18  Prefactor     4.2997        7.8579         .0000        .27066E-03
  19  Prefactor     8.5449        11.233         .0000        .95347E-04
  20  Prefactor     .10000E-03    1.4653         .0000    ** at limit **
  21  Normalizat    .80712        .17188         .0000        .41712E-03
  22  Prefactor     1.2857        .13738         .0000        .70808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.2816
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.1904
  norm       = 0.0001
  Prefactor  = 3.53567
  Prefactor  = 0.0001
  norm       = 0.243555
  Prefactor  = 27.9194
  Prefactor  = 7.02279
  Prefactor  = 2.49757
  Prefactor  = 49.8079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.29973
  Prefactor  = 8.5449
  Prefactor  = 0.0001
  Normalizat = 0.807115
  Prefactor  = 1.28575
 **********
 **   18 **HESSE 
 **********

 FCN=   8012.213     FROM HESSE     STATUS=OK           346 CALLS     2769 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2816        9.1092        .19471E-03   -1.5294    
   2  norm          .10000E-03    22.193        .22931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    89.518        .59239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          38.190        14.564        .64857E-04   -1.4471    
   7  norm          .10000E-03    34.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5357        4.0221        .18173E-03   -1.5332    
   9  Prefactor     .10000E-03    10.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .24356        .37154        .73495E-03   -1.5609    
  11  Prefactor     27.919        28.336        .37911E-03   -1.4651    
  12  Prefactor     7.0228        31.278        .15142E-03   -1.5178    
  13  Prefactor     2.4976        8.5569        .12940E-02   -1.5392    
  14  Prefactor     49.808        22.664        .56822E-04   -1.4295    
  15  Prefactor     .10000E-03    .86903        .81039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .31111        .48294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2997        7.8393        .19431E-03   -1.5293    
  19  Prefactor     8.5449        11.231        .13713E-03   -1.5123    
  20  Prefactor     .10000E-03    1.4757        .10579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .80712        .19703        .31372E-03   -.99805    
  22  Prefactor     1.2857        .15910        .20827E-03   -.83732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24092e-09
Minuit parameter uncertainties:
  1  9.11215
  2  4.75451e-05
  3  1.92018e-05
  4  0.000113126
  5  2.1795e-05
  6  14.5649
  7  2.86635e-05
  8  4.02237
  9  2.29449e-05
  10  0.37154
  11  28.3495
  12  29.6677
  13  8.56113
  14  22.6684
  15  1.06638e-05
  16  2.02382e-06
  17  1.0933e-05
  18  7.84121
  19  11.2339
  20  6.43621e-06
  21  0.1972
  22  0.159157
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  7.023e+00  2.967e+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.286e+00  1.592e-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.071e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/412034/likelihoodResults_528076801_528336001_4FGL_J0818.7+3153_daily_bin1114.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) = 8011.25293699
delta logL = 0.95973930956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8010.8016171
delta logL = 1.41105919389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7246       1.0000          .0000       10.000    
     3 'Normalizat'    .69217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8010.802     FROM MIGRAD    STATUS=CONVERGED    207 CALLS      570 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16429E-02   -.13610E-06** at limit **
   2  Index         6.7245        .21274       -.40995E-05    .14967E-03
   3  Normalizat    .69255        .20247        .10644E-04    .94938E-04
   4  Prefactor     1.3489        .16204       -.16818E-05    .43657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.72446
  Normalizat = 0.69255
  Prefactor  = 1.34894
 **********
 **   18 **HESSE 
 **********

 FCN=   8010.802     FROM HESSE     STATUS=NOT POSDEF    45 CALLS      615 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .18267E-02    .32664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7245        1.4561        .82658E-01    .35212    
   3  Normalizat    .69255        .43883E-01    .75966E-01   -1.0419    
   4  Prefactor     1.3489        .35134E-01    .46149E-01   -.81863    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96152e-08
Minuit parameter uncertainties:
  1  7.85593e-10
  2  1.48049
  3  0.0438851
  4  0.0351346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412034': 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) = 8010.80161123
delta logL = 1.41106507173

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.856e-10  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  6.724e+00  1.480e+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:  1.349e+00  3.513e-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:  6.925e-01  4.389e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 124.695 31.886
Photon Index (Free Index): 6.72 +/- 1.48
Photon Flux (Free Index): 9.39e-08 +/- 4.33e-07
Energy Flux (Free Index): 1.13e-05 +/- 5.18e-05

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/412034/cmap_HighResolution_528076801_528336001_4FGL_J0818.7+3153_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='1.41e+00', photon_flux2='9.39e-08', job_status='DONE', time_completed='2021-08-29 17:30:53.971099', photon_index_error2='1.48', photon_index2='6.72', ts='0.06', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='8.51e-08', energy_flux_error2='5.18e-05', EG='0.81', time_epoch_completed='1630283453.97', return_code='0', job_id='412034', GAL2='1.35', EG2='0.69', return_code2='102', photon_flux_error2='4.33e-07', ts2='3.21', photon_index='2.13' WHERE bin_id='1114' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:30:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 412034: <4FGL_J0818.7+3153_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1114 124.695 31.8862 528076801 528336001 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 :                                   781.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

