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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin302
RA = 124.695, Dec = 31.8862
tmin = 317606401, tmax = 317865601
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='406783', job_status='RUN', time_executed='2021-08-29 17:02:07.100028', time_epoch_executed='1630281727.1' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406783/ft1_4FGL_J0818.7+3153_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406783/ft2_4FGL_J0818.7+3153_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406783/ft1_4FGL_J0818.7+3153_daily_bin302.fits outfile=/scratch/kocevski/406783/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin302.fits ra=124.695 dec=31.8862 rad=12.0 tmin=317606401.0 tmax=317865601.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.92
user 3.13
sys 3.68

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406783/ft1_filtered_4FGL_J0818.7+3153_daily_bin302.fits" evtable="EVENTS" scfile=/scratch/kocevski/406783/ft2_4FGL_J0818.7+3153_daily_bin302.fits sctable="SC_DATA" outfile=/scratch/kocevski/406783/ltcube_317606401_317865601_4FGL_J0818.7+3153_daily_bin302.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/406783/ft2_4FGL_J0818.7+3153_daily_bin302.fits
.....................!
real 16.28
user 11.86
sys 4.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406783/ft1_filtered_4FGL_J0818.7+3153_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/406783/ft2_4FGL_J0818.7+3153_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/406783/ltcube_317606401_317865601_4FGL_J0818.7+3153_daily_bin302.fits outfile=/scratch/kocevski/406783/expmap_317606401_317865601_4FGL_J0818.7+3153_daily_bin302.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/406783/ltcube_317606401_317865601_4FGL_J0818.7+3153_daily_bin302.fits
.....................!
real 196.39
user 185.13
sys 9.38

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/406783/ft1_filtered_4FGL_J0818.7+3153_daily_bin302.fits scfile=/scratch/kocevski/406783/ft2_4FGL_J0818.7+3153_daily_bin302.fits outfile=/scratch/kocevski/406783/cmap_317606401_317865601_4FGL_J0818.7+3153_daily_bin302.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 3.95
user 0.38
sys 3.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406783/ft1_filtered_4FGL_J0818.7+3153_daily_bin302.fits scfile=/scratch/kocevski/406783/ft2_4FGL_J0818.7+3153_daily_bin302.fits outfile=/scratch/kocevski/406783/cmap_HighResolution_317606401_317865601_4FGL_J0818.7+3153_daily_bin302.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 3.64
user 0.38
sys 3.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406783/ft1_filtered_4FGL_J0818.7+3153_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/406783/ft2_4FGL_J0818.7+3153_daily_bin302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406783/Model_4FGL_J0818.7+3153_daily_bin302.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/406783/ft1_filtered_4FGL_J0818.7+3153_daily_bin302.fits.....................!
real 72.64
user 63.79
sys 5.79

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.846       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    46.198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.007       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.179       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14725E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9585       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2489       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85149       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=   6630.940     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2353 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.289        .90712E-02** at limit **
   2  norm          3.2999        4.3401        .55723E-02    .51410E-03
   3  Prefactor     .10000E-03    16.979        .90712E-02** at limit **
   4  Prefactor     .10000E-03    7.3428        .90712E-02** at limit **
   5  Prefactor     15.845        33.158        .25154E-02    .29581E-03
   6  norm          .10000E-03    13.823        .90712E-02** at limit **
   7  norm          46.198        61.653        .14748E-02    .71770E-05
   8  Prefactor     .10000E-03    2.5722        .90712E-02** at limit **
   9  Prefactor     .10002E-03    15.734        .90712E-02** at limit **
  10  norm          1.5413        .67500        .85849E-02    .22180E-03
  11  Prefactor     39.049        33.118        .16035E-02    .77265E-04
  12  Prefactor     .10000E-03    98.767        .90712E-02** at limit **
  13  Prefactor     10.007        13.976        .31668E-02    .72745E-03
  14  Prefactor     10.178        23.379        .31398E-02    .34774E-04
  15  Prefactor     .10000E-03    2.4519        .38452E-01** at limit **
  16  norm          2.4029        1.4993        .66036E-02    .27619E-03
  17  Prefactor     .10001E-03    17.753        .90712E-02** at limit **
  18  Prefactor     .10000E-03    10.271        .90712E-02** at limit **
  19  Prefactor     2.8227        32.984        .60536E-02    .11432E-03
  20  Prefactor     2.9585        2.5329        .59023E-02   -.44231E-04
  21  Normalizat    1.2489        .18315        .57093E-01   -.27864E-04
  22  Prefactor     .85146        .13660        .44384E-01   -.32172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.29992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8449
  norm       = 0.000100004
  norm       = 46.1981
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 1.5413
  Prefactor  = 39.0492
  Prefactor  = 0.000100001
  Prefactor  = 10.0069
  Prefactor  = 10.1781
  Prefactor  = 0.0001
  norm       = 2.40291
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 2.82274
  Prefactor  = 2.95852
  Normalizat = 1.24894
  Prefactor  = 0.851463
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.940     FROM HESSE     STATUS=OK           340 CALLS     2693 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2999        4.3147        .17880E-03   -1.5345    
   3  Prefactor     .10000E-03    16.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.845        33.060        .10061E-03   -1.4912    
   6  norm          .10000E-03    14.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          46.198        61.668        .58990E-04   -1.4348    
   8  Prefactor     .10000E-03    2.6032        .12742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    15.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5413        .67324        .41653E-04   -1.5460    
  11  Prefactor     39.049        33.123        .64141E-04   -1.4457    
  12  Prefactor     .10000E-03    100.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.007        13.197        .12667E-03   -1.5075    
  14  Prefactor     10.178        23.417        .12559E-03   -1.5070    
  15  Prefactor     .10000E-03    4.1685        .22950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4029        1.4929        .70187E-04   -1.5398    
  17  Prefactor     .10001E-03    17.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8227        33.218        .24214E-03   -1.5372    
  20  Prefactor     2.9585        2.5324        .11689E-03   -1.5364    
  21  Normalizat    1.2489        .21245        .25247E-03   -.85104    
  22  Prefactor     .85146        .15874        .23109E-03   -.97858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66836e-09
Minuit parameter uncertainties:
  1  0.000162152
  2  4.31514
  3  0.000103419
  4  7.02469e-07
  5  33.0983
  6  0.000444101
  7  61.7535
  8  1.11317e-06
  9  0.00105937
  10  0.673243
  11  33.1387
  12  0.000578263
  13  13.2008
  14  23.438
  15  5.321e-08
  16  1.49293
  17  0.000973836
  18  5.94331e-06
  19  19.3798
  20  2.53246
  21  0.212596
  22  0.158827
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.783e-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:  8.515e-01  1.588e-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:  1.249e+00  2.126e-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: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406783/likelihoodResults_317606401_317865601_4FGL_J0818.7+3153_daily_bin302.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) = 6630.94012246
delta logL = -4.72454075862e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.48497829
delta logL = 0.455096928531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63197       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7054       1.0000          .0000       10.000    
     3 'Normalizat'    1.1925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87289       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=   6630.485     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      275 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63159        12.653        .11798E-01    .17365E-02
   2  Index         3.7058        2.3078        .82153E-01    .27789E-03
   3  Normalizat    1.1924        .40586E-01    .58215E-01   -.96426E-04
   4  Prefactor     .87293        .31369E-01    .44659E-01   -.72830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.63159
  Index      = 3.70578
  Normalizat = 1.19245
  Prefactor  = 0.872928
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.485     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63159        38.117        .70813E-04   -1.5549    
   2  Index         3.7058        6.8052        .49564E-02   -.26183    
   3  Normalizat    1.1924        .18148        .25745E-03   -.86837    
   4  Prefactor     .87293        .13687        .22843E-03   -.97094    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78724e-09
Minuit parameter uncertainties:
  1  9.8189
  2  5.37658
  3  0.181572
  4  0.136927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406783': 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) = 6630.48497812
delta logL = 0.455097096338

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  6.316e-01  9.819e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.706e+00  5.377e+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:  8.729e-01  1.369e-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:  1.192e+00  1.816e-01  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/406783/cmap_HighResolution_317606401_317865601_4FGL_J0818.7+3153_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-08-29 17:14:21.172839', job_id='406783', GAL2='0.87', fit_tolerance='1e-08', EG2='1.19', EG='1.25', time_epoch_completed='1630282461.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.55e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='302' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:14:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 406783: <4FGL_J0818.7+3153_daily_bin302> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin302 124.695 31.8862 317606401 317865601 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 :                                   776.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

