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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1151
RA = 124.695, Dec = 31.8862
tmin = 537667201, tmax = 537926401
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='412093', job_status='RUN', time_executed='2021-08-29 17:16:13.199228', time_epoch_executed='1630282573.2' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412093

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412093/ft1_4FGL_J0818.7+3153_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412093/ft2_4FGL_J0818.7+3153_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412093/ft1_4FGL_J0818.7+3153_daily_bin1151.fits outfile=/scratch/kocevski/412093/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1151.fits ra=124.695 dec=31.8862 rad=12.0 tmin=537667201.0 tmax=537926401.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.24
user 4.73
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412093/ft2_4FGL_J0818.7+3153_daily_bin1151.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/412093/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1151.fits evtable="EVENTS" outfile="/scratch/kocevski/412093/ft1_filtered_4FGL_J0818.7+3153_daily_bin1151.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.34
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412093/ft1_filtered_4FGL_J0818.7+3153_daily_bin1151.fits" evtable="EVENTS" scfile=/scratch/kocevski/412093/ft2_4FGL_J0818.7+3153_daily_bin1151.fits sctable="SC_DATA" outfile=/scratch/kocevski/412093/ltcube_537667201_537926401_4FGL_J0818.7+3153_daily_bin1151.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/412093/ft2_4FGL_J0818.7+3153_daily_bin1151.fits
.....................!
real 12.24
user 11.60
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412093/ft1_filtered_4FGL_J0818.7+3153_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/412093/ft2_4FGL_J0818.7+3153_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/412093/ltcube_537667201_537926401_4FGL_J0818.7+3153_daily_bin1151.fits outfile=/scratch/kocevski/412093/expmap_537667201_537926401_4FGL_J0818.7+3153_daily_bin1151.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/412093/ltcube_537667201_537926401_4FGL_J0818.7+3153_daily_bin1151.fits
.....................!
real 190.79
user 185.36
sys 5.02

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/412093/ft1_filtered_4FGL_J0818.7+3153_daily_bin1151.fits scfile=/scratch/kocevski/412093/ft2_4FGL_J0818.7+3153_daily_bin1151.fits outfile=/scratch/kocevski/412093/cmap_537667201_537926401_4FGL_J0818.7+3153_daily_bin1151.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.84
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412093/ft1_filtered_4FGL_J0818.7+3153_daily_bin1151.fits scfile=/scratch/kocevski/412093/ft2_4FGL_J0818.7+3153_daily_bin1151.fits outfile=/scratch/kocevski/412093/cmap_HighResolution_537667201_537926401_4FGL_J0818.7+3153_daily_bin1151.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.81
user 0.38
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412093/ft1_filtered_4FGL_J0818.7+3153_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/412093/ft2_4FGL_J0818.7+3153_daily_bin1151.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412093/Model_4FGL_J0818.7+3153_daily_bin1151.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/412093/ft1_filtered_4FGL_J0818.7+3153_daily_bin1151.fits.....................!
real 61.35
user 58.87
sys 1.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.4389       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.671       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8048       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.583       1.0000         .10000E-03   10000.    
     6 'norm      '    .10442E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0775       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    165.71       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3383       1.0000         .10000E-03   10000.    
    16 'norm      '    .11150E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.428       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1921       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84563       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0588       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=   5868.575     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2480 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1216       -.12839E-06** at limit **
   2  norm          4.4408        8.4209       -.20717E-05    .34041E-03
   3  Prefactor     15.616        53.757        .54105E-05    .13080E-03
   4  Prefactor     9.8117        30.034        .13266E-05    .72639E-04
   5  Prefactor     10.480        69.959       -.72076E-06    .30227E-04
   6  norm          .10000E-03    49.081        .24710E-04** at limit **
   7  norm          .10000E-03    45.001       -.28314E-05** at limit **
   8  Prefactor     .10000E-03    2.6592       -.66560E-07** at limit **
   9  Prefactor     .10000E-03    17.749        .18048E-07** at limit **
  10  norm          2.0776        .75450        .24425E-09    .31741E-03
  11  Prefactor     .10000E-03    21.337        .40679E-06** at limit **
  12  Prefactor     .10000E-03    13.064        .11967E-06** at limit **
  13  Prefactor     5.2533        10.746        .21479E-07    .43858E-04
  14  Prefactor     165.64        41.475       -.10801E-05   -.63920E-03
  15  Prefactor     1.3374        2.3997       -.13383E-06   -.35516E-04
  16  norm          .10000E-03    .86028        .34556E-07** at limit **
  17  Prefactor     45.421        39.718       -.43383E-06    .26107E-04
  18  Prefactor     .10000E-03    12.883       -.18136E-06** at limit **
  19  Prefactor     8.1916        15.456       -.29090E-06   -.80155E-05
  20  Prefactor     .10000E-03    3.1690       -.19245E-06** at limit **
  21  Normalizat    .84564        .19965        .13546E-05    .51666E-04
  22  Prefactor     1.0587        .15251        .10202E-06    .59944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.44085
  Prefactor  = 15.6155
  Prefactor  = 9.81167
  Prefactor  = 10.4798
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.25327
  Prefactor  = 165.638
  Prefactor  = 1.33741
  norm       = 0.0001
  Prefactor  = 45.4205
  Prefactor  = 0.0001
  Prefactor  = 8.19157
  Prefactor  = 0.0001
  Normalizat = 0.845644
  Prefactor  = 1.05874
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.575     FROM HESSE     STATUS=OK           342 CALLS     2822 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4408        8.4694        .95566E-03   -1.5286    
   3  Prefactor     15.616        53.692        .10118E-03   -1.4917    
   4  Prefactor     9.8117        30.066        .12797E-03   -1.5081    
   5  Prefactor     10.480        69.464        .12316E-03   -1.5060    
   6  norm          .10000E-03    48.313        .45220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    44.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6877        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0776        .75456        .38035E-04   -1.5420    
  11  Prefactor     .10000E-03    21.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2533        10.661        .17537E-03   -1.5250    
  14  Prefactor     165.64        39.058        .15667E-03   -1.3127    
  15  Prefactor     1.3374        2.3428        .14841E-03   -1.5477    
  16  norm          .10000E-03    3.6463        .12751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.421        39.669        .59486E-04   -1.4359    
  18  Prefactor     .10000E-03    13.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.1916        15.470        .14007E-03   -1.5135    
  20  Prefactor     .10000E-03    3.2644        .26633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84564        .22805        .29829E-03   -.98397    
  22  Prefactor     1.0587        .17573        .21304E-03   -.90796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88195e-10
Minuit parameter uncertainties:
  1  2.9074e-05
  2  8.47171
  3  53.8586
  4  30.1127
  5  54.0527
  6  0.000471088
  7  5.40487e-05
  8  9.36037e-06
  9  5.59796e-05
  10  0.754562
  11  3.03459e-05
  12  1.97303e-05
  13  10.6648
  14  39.0645
  15  2.34292
  16  1.48647e-05
  17  39.692
  18  4.39329e-06
  19  15.4778
  20  2.46387e-05
  21  0.22831
  22  0.17583
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.973e-05  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.059e+00  1.758e-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.456e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/412093/likelihoodResults_537667201_537926401_4FGL_J0818.7+3153_daily_bin1151.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) = 5868.57514909
delta logL = -0.000364318817446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5868.57478475
delta logL = 2.58060026681e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1111       1.0000          .0000       10.000    
     3 'Normalizat'    .84565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0587       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=   5868.575     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    68.933        .18142E-02** at limit **
   2  Index         2.0722        5.7854        .50000        .12900E-04
   3  Normalizat    .84564        .11040E-01    .29829E-03   -.93375E-05
   4  Prefactor     1.0587        .87841E-02    .21304E-03    .22360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100656
  Index      = 2.07222
  Normalizat = 0.845643
  Prefactor  = 1.05874
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.575     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10066E-03    321.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0722        8.1289        .50000       -.62557    
   3  Normalizat    .84564        .24422E-01    .11932E-04   -.98397    
   4  Prefactor     1.0587        .19430E-01    .85215E-05   -.90796    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49899e-09
Minuit parameter uncertainties:
  1  0.0291971
  2  351.045
  3  0.0244224
  4  0.0194301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412093': 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) = 5868.57478458
delta logL = 1.9016351871e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.007e-04  2.920e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.072e+00  3.510e+02  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.059e+00  1.943e-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.456e-01  2.442e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.695 31.886

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-08-29 17:27:07.546547', job_id='412093', GAL2='1.06', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630283227.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1151' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 412093: <4FGL_J0818.7+3153_daily_bin1151> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1151> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:15:49 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:15:50 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:50 2021
Terminated at Sun Aug 29 17:27:08 2021
Results reported at Sun Aug 29 17:27:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1151 124.695 31.8862 537667201 537926401 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 :                                   652.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            679 sec.

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

