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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1556
RA = 124.695, Dec = 31.8862
tmin = 642643201, tmax = 642902401
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='413794', job_status='RUN', time_executed='2021-08-29 17:23:22.587064', time_epoch_executed='1630283002.59' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413794/ft1_4FGL_J0818.7+3153_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413794/ft2_4FGL_J0818.7+3153_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413794/ft1_4FGL_J0818.7+3153_daily_bin1556.fits outfile=/scratch/kocevski/413794/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1556.fits ra=124.695 dec=31.8862 rad=12.0 tmin=642643201.0 tmax=642902401.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.57
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413794/ft1_filtered_4FGL_J0818.7+3153_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/413794/ft2_4FGL_J0818.7+3153_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/413794/ltcube_642643201_642902401_4FGL_J0818.7+3153_daily_bin1556.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/413794/ft2_4FGL_J0818.7+3153_daily_bin1556.fits
.....................!
real 11.79
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413794/ft1_filtered_4FGL_J0818.7+3153_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/413794/ft2_4FGL_J0818.7+3153_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/413794/ltcube_642643201_642902401_4FGL_J0818.7+3153_daily_bin1556.fits outfile=/scratch/kocevski/413794/expmap_642643201_642902401_4FGL_J0818.7+3153_daily_bin1556.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/413794/ltcube_642643201_642902401_4FGL_J0818.7+3153_daily_bin1556.fits
.....................!
real 190.47
user 185.76
sys 4.14

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/413794/ft1_filtered_4FGL_J0818.7+3153_daily_bin1556.fits scfile=/scratch/kocevski/413794/ft2_4FGL_J0818.7+3153_daily_bin1556.fits outfile=/scratch/kocevski/413794/cmap_642643201_642902401_4FGL_J0818.7+3153_daily_bin1556.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.71
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413794/ft1_filtered_4FGL_J0818.7+3153_daily_bin1556.fits scfile=/scratch/kocevski/413794/ft2_4FGL_J0818.7+3153_daily_bin1556.fits outfile=/scratch/kocevski/413794/cmap_HighResolution_642643201_642902401_4FGL_J0818.7+3153_daily_bin1556.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.65
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413794/ft1_filtered_4FGL_J0818.7+3153_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/413794/ft2_4FGL_J0818.7+3153_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413794/Model_4FGL_J0818.7+3153_daily_bin1556.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/413794/ft1_filtered_4FGL_J0818.7+3153_daily_bin1556.fits.....................!
real 62.64
user 59.61
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.822       1.0000         .10000E-03   10000.    
     2 'norm      '    .35817E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43522E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.173       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5924       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4266       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5050       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.189       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.353       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7964       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.501       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.214       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2656       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .65996       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2030       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=   6314.211     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2429 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.819        18.400        .29416E-06   -.62779E-05
   2  norm          .10004E-03    47.818        .28456E-05** at limit **
   3  Prefactor     .10083E-03    83.960       -.22663E-06** at limit **
   4  Prefactor     14.201        17.511       -.69305E-06   -.20819E-04
   5  Prefactor     .10000E-03    16.047        .32162E-07** at limit **
   6  norm          .10000E-03    18.388        .12578E-05** at limit **
   7  norm          3.3821        477.16       -.14732E-04   -.55021E-05
   8  Prefactor     3.4234        5.7018        .58315E-06    .76909E-04
   9  Prefactor     .10000E-03    11.960        .13564E-06** at limit **
  10  norm          1.5050        .70683        .37323E-08   -.16110E-03
  11  Prefactor     17.193        34.119        .17119E-06   -.45130E-05
  12  Prefactor     .10000E-03    10.044        .22236E-06** at limit **
  13  Prefactor     15.352        14.078       -.37378E-08   -.42062E-04
  14  Prefactor     .10000E-03    43.123        .20864E-06** at limit **
  15  Prefactor     .10000E-03    1.6142        .27823E-06** at limit **
  16  norm          1.7951        1.4083       -.26846E-07   -.13984E-03
  17  Prefactor     7.5048        24.457        .19722E-06   -.31816E-05
  18  Prefactor     10.498        12.368        .16187E-08   -.74745E-05
  19  Prefactor     15.204        21.953       -.10359E-06   -.43587E-05
  20  Prefactor     6.2650        3.5276       -.12976E-06   -.13250E-03
  21  Normalizat    .66012        .22872        .26157E-05   -.33888E-04
  22  Prefactor     1.2031        .17744       -.26939E-05   -.16031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8189
  norm       = 0.000100044
  Prefactor  = 0.000100825
  Prefactor  = 14.2006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.38211
  Prefactor  = 3.42345
  Prefactor  = 0.0001
  norm       = 1.50497
  Prefactor  = 17.1928
  Prefactor  = 0.0001
  Prefactor  = 15.352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79507
  Prefactor  = 7.50476
  Prefactor  = 10.4985
  Prefactor  = 15.2035
  Prefactor  = 6.26503
  Normalizat = 0.660124
  Prefactor  = 1.20308
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.211     FROM HESSE     STATUS=OK           356 CALLS     2785 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.819        18.406        .89960E-04   -1.4817    
   2  norm          .10004E-03    55.578        .21953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10083E-03    255.67        .82991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.201        17.462        .10639E-03   -1.4954    
   5  Prefactor     .10000E-03    16.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3821        480.35        .21320E-02   -1.5340    
   8  Prefactor     3.4234        5.6839        .21852E-03   -1.5338    
   9  Prefactor     .10000E-03    11.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5050        .70321        .42312E-04   -1.5463    
  11  Prefactor     17.193        34.119        .96605E-04   -1.4878    
  12  Prefactor     .10000E-03    10.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.352        14.027        .10222E-03   -1.4924    
  14  Prefactor     .10000E-03    44.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6400        .98526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7951        1.3889        .75907E-04   -1.5440    
  17  Prefactor     7.5048        24.397        .14632E-03   -1.5160    
  18  Prefactor     10.498        12.296        .12364E-03   -1.5060    
  19  Prefactor     15.204        21.967        .10268E-03   -1.4928    
  20  Prefactor     6.2650        3.5317        .54492E-03   -1.5207    
  21  Normalizat    .66012        .22931        .32513E-03   -1.0549    
  22  Prefactor     1.2031        .17807        .19906E-03   -.86236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83365e-09
Minuit parameter uncertainties:
  1  18.4117
  2  0.00313559
  3  0.0291739
  4  17.4678
  5  6.82299e-06
  6  9.19998e-05
  7  81.2857
  8  5.68483
  9  1.08018e-05
  10  0.703213
  11  34.1574
  12  1.2706e-05
  13  14.0299
  14  0.00016527
  15  4.38677e-06
  16  1.38896
  17  24.4291
  18  12.2992
  19  21.9788
  20  3.53181
  21  0.229641
  22  0.178162
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.271e-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.203e+00  1.782e-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:  6.601e-01  2.296e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413794/likelihoodResults_642643201_642902401_4FGL_J0818.7+3153_daily_bin1556.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) = 6314.21149953
delta logL = -0.000472928238196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6314.21102646
delta logL = 1.41330019687e-07

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     '    2.1078       1.0000          .0000       10.000    
     3 'Normalizat'    .66012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2031       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=   6314.211     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10482E-03    1.5620        .18142E-01** at limit **
   2  Index         1.9779        7.0609        .50000        .16335E-04
   3  Normalizat    .66012        .16779E-02    .32514E-03    .17972E-04
   4  Prefactor     1.2031        .13591E-02    .19906E-03    .87953E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104823
  Index      = 1.97795
  Normalizat = 0.660123
  Prefactor  = 1.20308
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.211     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10482E-03    76.500        .26609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9779        5.2984        .50000       -.64903    
   3  Normalizat    .66012        .11823E-01    .13005E-04   -1.0549    
   4  Prefactor     1.2031        .95767E-02    .79623E-05   -.86236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89091e-08
Minuit parameter uncertainties:
  1  0.0384651
  2  426.118
  3  0.0118229
  4  0.00957668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413794': 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) = 6314.21102608
delta logL = 5.21552465216e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.048e-04  3.847e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.978e+00  4.261e+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.203e+00  9.577e-03  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.601e-01  1.182e-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/413794/cmap_HighResolution_642643201_642902401_4FGL_J0818.7+3153_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2021-08-29 17:34:24.238540', job_id='413794', GAL2='1.20', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630283664.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='5.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1556' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:34:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 413794: <4FGL_J0818.7+3153_daily_bin1556> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1556 124.695 31.8862 642643201 642902401 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

