/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 5 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 = 7680
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.7+3153_daily_bin256
RA = 124.695, Dec = 31.8862
tmin = 305683201, tmax = 305942401
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='406717', job_status='RUN', time_executed='2021-08-29 17:00:55.371878', time_epoch_executed='1630281655.37' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406717

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406717/ft1_4FGL_J0818.7+3153_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406717/ft2_4FGL_J0818.7+3153_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406717/ft1_4FGL_J0818.7+3153_daily_bin256.fits outfile=/scratch/kocevski/406717/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin256.fits ra=124.695 dec=31.8862 rad=12.0 tmin=305683201.0 tmax=305942401.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 4.96
user 4.47
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406717/ft2_4FGL_J0818.7+3153_daily_bin256.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/406717/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin256.fits evtable="EVENTS" outfile="/scratch/kocevski/406717/ft1_filtered_4FGL_J0818.7+3153_daily_bin256.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.88
user 0.31
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406717/ft1_filtered_4FGL_J0818.7+3153_daily_bin256.fits" evtable="EVENTS" scfile=/scratch/kocevski/406717/ft2_4FGL_J0818.7+3153_daily_bin256.fits sctable="SC_DATA" outfile=/scratch/kocevski/406717/ltcube_305683201_305942401_4FGL_J0818.7+3153_daily_bin256.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/406717/ft2_4FGL_J0818.7+3153_daily_bin256.fits
.....................!
real 12.41
user 11.68
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406717/ft1_filtered_4FGL_J0818.7+3153_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/406717/ft2_4FGL_J0818.7+3153_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/406717/ltcube_305683201_305942401_4FGL_J0818.7+3153_daily_bin256.fits outfile=/scratch/kocevski/406717/expmap_305683201_305942401_4FGL_J0818.7+3153_daily_bin256.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/406717/ltcube_305683201_305942401_4FGL_J0818.7+3153_daily_bin256.fits
.....................!
real 191.00
user 185.51
sys 4.67

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/406717/ft1_filtered_4FGL_J0818.7+3153_daily_bin256.fits scfile=/scratch/kocevski/406717/ft2_4FGL_J0818.7+3153_daily_bin256.fits outfile=/scratch/kocevski/406717/cmap_305683201_305942401_4FGL_J0818.7+3153_daily_bin256.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.75
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406717/ft1_filtered_4FGL_J0818.7+3153_daily_bin256.fits scfile=/scratch/kocevski/406717/ft2_4FGL_J0818.7+3153_daily_bin256.fits outfile=/scratch/kocevski/406717/cmap_HighResolution_305683201_305942401_4FGL_J0818.7+3153_daily_bin256.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.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406717/ft1_filtered_4FGL_J0818.7+3153_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/406717/ft2_4FGL_J0818.7+3153_daily_bin256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406717/Model_4FGL_J0818.7+3153_daily_bin256.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/406717/ft1_filtered_4FGL_J0818.7+3153_daily_bin256.fits.....................!
real 61.24
user 59.49
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.589       1.0000         .10000E-03   10000.    
     2 'norm      '    9.6751       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.110       1.0000         .10000E-03   10000.    
     6 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14899E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1348       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.862       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.981       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.8998       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7626       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3198       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75142       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1945       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=   6368.222     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2386 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.599        16.567        .11988E-04   -.28222E-04
   2  norm          9.6718        5.1854        .11658E-05   -.19866E-03
   3  Prefactor     .10000E-03    39.431        .25229E-05** at limit **
   4  Prefactor     .10000E-03    11.539        .77374E-08** at limit **
   5  Prefactor     41.136        42.622       -.76280E-05   -.10454E-04
   6  norm          .10000E-03    3.4936       -.13582E-07** at limit **
   7  norm          .10001E-03    522.64       -.97636E-04** at limit **
   8  Prefactor     6.1341        4.8353       -.71777E-06   -.50811E-03
   9  Prefactor     16.898        30.300       -.29490E-04   -.12065E-04
  10  norm          1.6024        .63785       -.69912E-07   -.80938E-03
  11  Prefactor     16.997        31.217       -.12941E-04   -.37984E-05
  12  Prefactor     .10000E-03    13.107        .39631E-06** at limit **
  13  Prefactor     1.5610        14.778        .13507E-04   -.33699E-03
  14  Prefactor     9.8731        23.384       -.79676E-06   -.11925E-03
  15  Prefactor     .10000E-03    1.1030       -.18432E-06** at limit **
  16  norm          .10000E-03    .47823        .29951E-06** at limit **
  17  Prefactor     7.7614        17.252       -.30446E-05   -.77867E-04
  18  Prefactor     .10000E-03    4.3284        .32755E-07** at limit **
  19  Prefactor     1.3324        58.000        .41992E-04   -.19377E-03
  20  Prefactor     .10000E-03    1.4403       -.82514E-08** at limit **
  21  Normalizat    .75139        .18398       -.26708E-05   -.46189E-03
  22  Prefactor     1.1945        .14480        .24623E-07   -.53569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5991
  norm       = 9.67177
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 41.1361
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 6.13412
  Prefactor  = 16.8975
  norm       = 1.60243
  Prefactor  = 16.9967
  Prefactor  = 0.0001
  Prefactor  = 1.56096
  Prefactor  = 9.87309
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.76143
  Prefactor  = 0.0001
  Prefactor  = 1.33243
  Prefactor  = 0.0001
  Normalizat = 0.751392
  Prefactor  = 1.19447
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.222     FROM HESSE     STATUS=OK           342 CALLS     2728 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.599        16.587        .88272E-04   -1.4800    
   2  norm          9.6718        5.1827        .12027E-03   -1.5086    
   3  Prefactor     .10000E-03    39.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.136        42.607        .62519E-04   -1.4424    
   6  norm          .10000E-03    3.5125        .14566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    529.31        .18195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1341        4.8178        .14497E-03   -1.5213    
   9  Prefactor     16.898        30.344        .97535E-04   -1.4886    
  10  norm          1.6024        .63681        .37977E-04   -1.5455    
  11  Prefactor     16.997        31.187        .97195E-04   -1.4883    
  12  Prefactor     .10000E-03    13.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5610        14.309        .34090E-03   -1.5458    
  14  Prefactor     9.8731        22.515        .12736E-03   -1.5079    
  15  Prefactor     .10000E-03    1.1155        .81633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .68792        .10262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7614        17.225        .14392E-03   -1.5151    
  18  Prefactor     .10000E-03    4.4126        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3324        57.394        .38308E-03   -1.5477    
  20  Prefactor     .10000E-03    1.4543        .93503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75139        .20614        .29238E-03   -1.0190    
  22  Prefactor     1.1945        .16400        .20071E-03   -.86502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96675e-09
Minuit parameter uncertainties:
  1  16.5911
  2  5.18297
  3  0.000283833
  4  1.69497e-05
  5  42.6384
  6  1.52346e-06
  7  0.00421676
  8  4.81814
  9  30.3718
  10  0.636817
  11  31.2166
  12  0.000112255
  13  9.45476
  14  22.5346
  15  1.97288e-05
  16  2.59921e-05
  17  17.236
  18  7.3958e-06
  19  17.5071
  20  1.17719e-06
  21  0.206355
  22  0.164069
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.123e-04  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.194e+00  1.641e-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:  7.514e-01  2.064e-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: 5.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406717/likelihoodResults_305683201_305942401_4FGL_J0818.7+3153_daily_bin256.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) = 6368.2228501
delta logL = -0.000362464443242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6368.22248765
delta logL = -1.75787135959e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6368.222     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    155.93        .90712E-02** at limit **
   2  Index         2.1063        8.4266        .50000        .86027E-05
   3  Normalizat    .75139        .15268E-01    .66085E-01    .31484E-04
   4  Prefactor     1.1945        .12986E-01    .34763E-01    .94255E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10635
  Normalizat = 0.751394
  Prefactor  = 1.19447
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.222     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    669.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1063        6.0495        .50000       -.61717    
   3  Normalizat    .75139        .33369E-01    .29238E-03   -1.0190    
   4  Prefactor     1.1945        .28427E-01    .20071E-03   -.86502    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.24159e-09
Minuit parameter uncertainties:
  1  8.92625e-05
  2  29.2882
  3  0.0333694
  4  0.0284271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406717': 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) = 6368.22248757
delta logL = 6.12035364611e-08

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.926e-05  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.106e+00  2.929e+01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.194e+00  2.843e-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:  7.514e-01  3.337e-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/406717/cmap_HighResolution_305683201_305942401_4FGL_J0818.7+3153_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.28e-08', time_completed='2021-08-29 17:12:13.427134', job_id='406717', GAL2='1.19', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630282333.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='6.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='256' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:12:13 PDT 2021


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

Job <4FGL_J0818.7+3153_daily_bin256> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:00:33 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:00:35 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:00:35 2021
Terminated at Sun Aug 29 17:12:14 2021
Results reported at Sun Aug 29 17:12:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin256 124.695 31.8862 305683201 305942401 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 :                                   677.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

