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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1400
RA = 124.695, Dec = 31.8862
tmin = 602208001, tmax = 602467201
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='413570', job_status='RUN', time_executed='2021-08-29 17:22:53.270253', time_epoch_executed='1630282973.27' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413570/ft1_4FGL_J0818.7+3153_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413570/ft2_4FGL_J0818.7+3153_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413570/ft1_4FGL_J0818.7+3153_daily_bin1400.fits outfile=/scratch/kocevski/413570/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1400.fits ra=124.695 dec=31.8862 rad=12.0 tmin=602208001.0 tmax=602467201.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.86
user 4.91
sys 1.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413570/ft2_4FGL_J0818.7+3153_daily_bin1400.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/413570/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1400.fits evtable="EVENTS" outfile="/scratch/kocevski/413570/ft1_filtered_4FGL_J0818.7+3153_daily_bin1400.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 2.13
user 0.34
sys 1.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413570/ft1_filtered_4FGL_J0818.7+3153_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/413570/ft2_4FGL_J0818.7+3153_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/413570/ltcube_602208001_602467201_4FGL_J0818.7+3153_daily_bin1400.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/413570/ft2_4FGL_J0818.7+3153_daily_bin1400.fits
.....................!
real 13.68
user 11.35
sys 2.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413570/ft1_filtered_4FGL_J0818.7+3153_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/413570/ft2_4FGL_J0818.7+3153_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/413570/ltcube_602208001_602467201_4FGL_J0818.7+3153_daily_bin1400.fits outfile=/scratch/kocevski/413570/expmap_602208001_602467201_4FGL_J0818.7+3153_daily_bin1400.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/413570/ltcube_602208001_602467201_4FGL_J0818.7+3153_daily_bin1400.fits
.....................!
real 194.15
user 187.13
sys 6.59

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/413570/ft1_filtered_4FGL_J0818.7+3153_daily_bin1400.fits scfile=/scratch/kocevski/413570/ft2_4FGL_J0818.7+3153_daily_bin1400.fits outfile=/scratch/kocevski/413570/cmap_602208001_602467201_4FGL_J0818.7+3153_daily_bin1400.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 2.26
user 0.36
sys 1.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413570/ft1_filtered_4FGL_J0818.7+3153_daily_bin1400.fits scfile=/scratch/kocevski/413570/ft2_4FGL_J0818.7+3153_daily_bin1400.fits outfile=/scratch/kocevski/413570/cmap_HighResolution_602208001_602467201_4FGL_J0818.7+3153_daily_bin1400.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 2.13
user 0.38
sys 1.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413570/ft1_filtered_4FGL_J0818.7+3153_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/413570/ft2_4FGL_J0818.7+3153_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413570/Model_4FGL_J0818.7+3153_daily_bin1400.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/413570/ft1_filtered_4FGL_J0818.7+3153_daily_bin1400.fits.....................!
real 66.54
user 62.39
sys 3.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27837E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    5.4640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9167       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8798       1.0000         .10000E-03   10000.    
     6 'norm      '    28.922       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .77654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.813       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8221       1.0000         .10000E-03   10000.    
    16 'norm      '    .11731E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .50258E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4640       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.535       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88576       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1058       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=   6710.400     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     2800 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    41.973        .41461E-02** at limit **
   2  norm          5.4643        4.4149        .14268E-03    .35776E-04
   3  Prefactor     .10000E-03    13.681        .18142E-02** at limit **
   4  Prefactor     2.9165        25.989        .11894E-02    .33608E-03
   5  Prefactor     3.8693        49.706        .20485E-03    .55219E-04
   6  norm          28.925        12.400        .74497E-04   -.53107E-04
   7  norm          .10001E-03    41.220        .18142E-02** at limit **
   8  Prefactor     1.4033        3.2254        .21442E-03    .17974E-03
   9  Prefactor     .10000E-03    9.5902        .18142E-02** at limit **
  10  norm          .77629        .48100        .44190E-03    .39521E-03
  11  Prefactor     .10000E-03    12.664        .18142E-02** at limit **
  12  Prefactor     2.5679        41.488        .25473E-03    .13791E-04
  13  Prefactor     .10000E-03    9.0312        .18142E-02** at limit **
  14  Prefactor     23.770        23.834        .82086E-04   -.36552E-03
  15  Prefactor     4.8216        2.8611        .10125E-03    .10835E-03
  16  norm          .10000E-03    .94806        .12165E-02** at limit **
  17  Prefactor     .10009E-03    151.22        .71109E-02** at limit **
  18  Prefactor     3.4581        8.9662        .21728E-03   -.22362E-03
  19  Prefactor     37.537        20.188        .65418E-04    .30412E-04
  20  Prefactor     .10000E-03    1.1177        .84327E-03** at limit **
  21  Normalizat    .88560        .20488        .28330E-03   -.24034E-03
  22  Prefactor     1.1059        .16357        .21161E-03   -.29595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  norm       = 5.46435
  Prefactor  = 0.0001
  Prefactor  = 2.91654
  Prefactor  = 3.86926
  norm       = 28.9245
  norm       = 0.000100006
  Prefactor  = 1.4033
  Prefactor  = 0.0001
  norm       = 0.776292
  Prefactor  = 0.0001
  Prefactor  = 2.56787
  Prefactor  = 0.0001
  Prefactor  = 23.7697
  Prefactor  = 4.82158
  norm       = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 3.45814
  Prefactor  = 37.5366
  Prefactor  = 0.0001
  Normalizat = 0.885599
  Prefactor  = 1.10591
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.400     FROM HESSE     STATUS=OK           322 CALLS     3122 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    42.536        .82922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4643        4.4108        .57071E-05   -1.5240    
   3  Prefactor     .10000E-03    13.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9165        25.924        .47577E-04   -1.5366    
   5  Prefactor     3.8693        49.679        .81942E-05   -1.5315    
   6  norm          28.925        12.399        .29799E-05   -1.4632    
   7  norm          .10001E-03    41.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4033        3.2247        .85768E-05   -1.5471    
   9  Prefactor     .10000E-03    9.5904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .77629        .48083        .17676E-04   -1.5532    
  11  Prefactor     .10000E-03    12.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5679        41.466        .10189E-04   -1.5387    
  13  Prefactor     .10000E-03    9.0348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.770        23.825        .16417E-04   -1.4732    
  15  Prefactor     4.8216        2.8605        .40500E-05   -1.5269    
  16  norm          .10000E-03    .94902        .24330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10009E-03    155.08        .28444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4581        8.9647        .86914E-05   -1.5336    
  19  Prefactor     37.537        20.185        .26167E-05   -1.4482    
  20  Prefactor     .10000E-03    1.1177        .16865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88560        .20496        .11332E-04   -.96968    
  22  Prefactor     1.1059        .16367        .42322E-04   -.89278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07404e-09
Minuit parameter uncertainties:
  1  0.00196671
  2  4.41109
  3  0.000138683
  4  17.4004
  5  27.7568
  6  12.4005
  7  0.00102628
  8  3.22508
  9  2.54198e-05
  10  0.480831
  11  0.000137769
  12  20.6543
  13  1.3122e-05
  14  23.8344
  15  2.8606
  16  1.10716e-05
  17  0.00753109
  18  8.96815
  19  20.1883
  20  1.31834e-07
  21  0.205139
  22  0.163742
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.568e+00  2.065e+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.106e+00  1.637e-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.856e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413570/likelihoodResults_602208001_602467201_4FGL_J0818.7+3153_daily_bin1400.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) = 6709.86182955
delta logL = 0.538205002604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6709.62756649
delta logL = 0.772468064264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5288       1.0000          .0000       10.000    
     3 'Normalizat'    .81880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1412       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6709.628     FROM MIGRAD    STATUS=FAILED       325 CALLS      638 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .23838E-01    .17346E-03** at limit **
   2  Index         6.5297        3.4469        .40059E-02    .97363E-03
   3  Normalizat    .81874        .96066E-01    .29351E-03   -.29477E-03
   4  Prefactor     1.1410        .79148E-01    .20875E-03   -.37552E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6709.628     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      793 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .23838E-01    .16666E-04** at limit **
   2  Index         6.5297        3.4469        .10049E-03    .97363E-03
   3  Normalizat    .81874        .96066E-01    .10293E-04   -.29477E-03
   4  Prefactor     1.1410        .79148E-01    .80661E-05   -.37552E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6709.628     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      832 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14650E-01    .22445E-03** at limit **
   2  Index         6.5297        3.3601        .80118E-03   -.75108E-04
   3  Normalizat    .81874        .85725E-01    .11740E-04   -.26668E-03
   4  Prefactor     1.1410        .70816E-01    .41750E-04   -.31827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.52974
  Normalizat = 0.81874
  Prefactor  = 1.14105
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.628     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      865 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .18133E-01    .20210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.5297        3.4203        .32047E-04    .31093    
   3  Normalizat    .81874        .92225E-01    .23481E-05   -.99377    
   4  Prefactor     1.1410        .76121E-01    .83499E-05   -.88165    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36566e-09
Minuit parameter uncertainties:
  1  8.86408e-08
  2  3.81617
  3  0.0922425
  4  0.0761279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413570': 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) = 6709.6275499
delta logL = 0.772484660637

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.864e-08  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  6.530e+00  3.816e+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.141e+00  7.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  8.187e-01  9.224e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 124.695 31.886
Photon Index (Free Index): 6.53 +/- 3.82
Photon Flux (Free Index): 5.08e-08 +/- 6.03e-07
Energy Flux (Free Index): 6.17e-06 +/- 7.27e-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/413570/cmap_HighResolution_602208001_602467201_4FGL_J0818.7+3153_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', comment='SUCCESS', energy_flux2='6.17e-06', dlogl='7.72e-01', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-08-29 17:36:06.095866', photon_index_error2='3.82', photon_index2='6.53', ts='0.02', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='6.64e-08', energy_flux_error2='7.27e-05', EG='0.89', time_epoch_completed='1630283766.1', return_code='0', job_id='413570', GAL2='1.14', EG2='0.82', return_code2='102', photon_flux_error2='6.03e-07', ts2='1.66', photon_index='2.13' WHERE bin_id='1400' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:36:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 413570: <4FGL_J0818.7+3153_daily_bin1400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1400 124.695 31.8862 602208001 602467201 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 :                                   809.60 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

