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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin883
RA = 124.695, Dec = 31.8862
tmin = 468201601, tmax = 468460801
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='410343', job_status='RUN', time_executed='2021-08-29 17:11:28.405771', time_epoch_executed='1630282288.41' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='883'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410343/ft1_4FGL_J0818.7+3153_daily_bin883.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410343/ft2_4FGL_J0818.7+3153_daily_bin883.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410343/ft1_4FGL_J0818.7+3153_daily_bin883.fits outfile=/scratch/kocevski/410343/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin883.fits ra=124.695 dec=31.8862 rad=12.0 tmin=468201601.0 tmax=468460801.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.65
user 3.21
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410343/ft2_4FGL_J0818.7+3153_daily_bin883.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/410343/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin883.fits evtable="EVENTS" outfile="/scratch/kocevski/410343/ft1_filtered_4FGL_J0818.7+3153_daily_bin883.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.77
user 0.33
sys 0.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410343/ft1_filtered_4FGL_J0818.7+3153_daily_bin883.fits" evtable="EVENTS" scfile=/scratch/kocevski/410343/ft2_4FGL_J0818.7+3153_daily_bin883.fits sctable="SC_DATA" outfile=/scratch/kocevski/410343/ltcube_468201601_468460801_4FGL_J0818.7+3153_daily_bin883.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/410343/ft2_4FGL_J0818.7+3153_daily_bin883.fits
.....................!
real 12.37
user 11.61
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410343/ft1_filtered_4FGL_J0818.7+3153_daily_bin883.fits evtable="EVENTS" scfile=/scratch/kocevski/410343/ft2_4FGL_J0818.7+3153_daily_bin883.fits sctable="SC_DATA" expcube=/scratch/kocevski/410343/ltcube_468201601_468460801_4FGL_J0818.7+3153_daily_bin883.fits outfile=/scratch/kocevski/410343/expmap_468201601_468460801_4FGL_J0818.7+3153_daily_bin883.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/410343/ltcube_468201601_468460801_4FGL_J0818.7+3153_daily_bin883.fits
.....................!
real 192.27
user 186.05
sys 5.58

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/410343/ft1_filtered_4FGL_J0818.7+3153_daily_bin883.fits scfile=/scratch/kocevski/410343/ft2_4FGL_J0818.7+3153_daily_bin883.fits outfile=/scratch/kocevski/410343/cmap_468201601_468460801_4FGL_J0818.7+3153_daily_bin883.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.79
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410343/ft1_filtered_4FGL_J0818.7+3153_daily_bin883.fits scfile=/scratch/kocevski/410343/ft2_4FGL_J0818.7+3153_daily_bin883.fits outfile=/scratch/kocevski/410343/cmap_HighResolution_468201601_468460801_4FGL_J0818.7+3153_daily_bin883.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.75
user 0.38
sys 0.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410343/ft1_filtered_4FGL_J0818.7+3153_daily_bin883.fits evtable="EVENTS" scfile=/scratch/kocevski/410343/ft2_4FGL_J0818.7+3153_daily_bin883.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410343/Model_4FGL_J0818.7+3153_daily_bin883.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/410343/ft1_filtered_4FGL_J0818.7+3153_daily_bin883.fits.....................!
real 68.27
user 66.37
sys 1.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.551       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.586       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    154.03       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8581       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5152       1.0000         .10000E-03   10000.    
    10 'norm      '    .77338       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.743       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.271       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5630       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84897       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0336       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=   7368.078     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2351 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.008        .90712E-02** at limit **
   2  norm          .10000E-03    1.6089        .90712E-02** at limit **
   3  Prefactor     21.336        33.279        .21678E-02    .34740E-03
   4  Prefactor     21.549        16.930        .21570E-02   -.20468E-03
   5  Prefactor     43.585        34.734        .15181E-02    .11921E-03
   6  norm          .10000E-03    3.4002        .90712E-02** at limit **
   7  norm          154.03        102.39        .81203E-03   -.53051E-03
   8  Prefactor     6.8592        5.3222        .38301E-02    .75340E-03
   9  Prefactor     8.5016        23.034        .34343E-02    .72297E-03
  10  norm          .77343        .52553        .10627E-01    .30371E-03
  11  Prefactor     .10000E-03    79.444        .90712E-02** at limit **
  12  Prefactor     .10000E-03    29.063        .90712E-02** at limit **
  13  Prefactor     .10000E-03    5.3915        .90712E-02** at limit **
  14  Prefactor     18.739        17.759        .23128E-02   -.44397E-03
  15  Prefactor     .10000E-03    1.1703        .90712E-02** at limit **
  16  norm          .10000E-03    .38039        .90712E-02** at limit **
  17  Prefactor     .10000E-03    6.0401        .90712E-02** at limit **
  18  Prefactor     .10000E-03    10.497        .90712E-02** at limit **
  19  Prefactor     13.273        17.395        .27488E-02    .35108E-03
  20  Prefactor     4.5632        3.0669        .47112E-02   -.32617E-04
  21  Normalizat    .84893        .16525        .44246E-01    .37407E-04
  22  Prefactor     1.0336        .12942        .40981E-01    .87192E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.3363
  Prefactor  = 21.5487
  Prefactor  = 43.585
  norm       = 0.0001
  norm       = 154.031
  Prefactor  = 6.85922
  Prefactor  = 8.50161
  norm       = 0.773432
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7393
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.273
  Prefactor  = 4.56318
  Normalizat = 0.848928
  Prefactor  = 1.0336
 **********
 **   18 **HESSE 
 **********

 FCN=   7368.078     FROM HESSE     STATUS=OK           336 CALLS     2687 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6177        .10605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.336        33.241        .86710E-04   -1.4784    
   4  Prefactor     21.549        16.911        .86281E-04   -1.4779    
   5  Prefactor     43.585        34.706        .60725E-04   -1.4387    
   6  norm          .10000E-03    3.4076        .15457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          154.03        102.46        .16241E-03   -1.3219    
   8  Prefactor     6.8592        5.2920        .15320E-03   -1.5184    
   9  Prefactor     8.5016        23.000        .13737E-03   -1.5125    
  10  norm          .77343        .50808        .48252E-03   -1.5532    
  11  Prefactor     .10000E-03    80.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.739        17.710        .92513E-04   -1.4842    
  15  Prefactor     .10000E-03    1.1884        .90584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .39280        .10288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.273        17.446        .10995E-03   -1.4979    
  20  Prefactor     4.5632        3.0685        .11976E-03   -1.5281    
  21  Normalizat    .84893        .18829        .27753E-03   -.98279    
  22  Prefactor     1.0336        .14780        .20512E-03   -.91618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43594e-09
Minuit parameter uncertainties:
  1  5.08926e-05
  2  1.12761e-06
  3  33.2695
  4  16.9147
  5  34.7219
  6  7.39053e-06
  7  102.575
  8  5.2924
  9  23.0241
  10  0.50808
  11  0.000559336
  12  0.000179659
  13  6.82217e-06
  14  17.7147
  15  9.07701e-07
  16  1.10029e-06
  17  8.23293e-06
  18  2.84319e-05
  19  17.4528
  20  3.0686
  21  0.188435
  22  0.147859
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.797e-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.034e+00  1.479e-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.489e-01  1.884e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410343/likelihoodResults_468201601_468460801_4FGL_J0818.7+3153_daily_bin883.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) = 7368.07840399
delta logL = -0.000162253330927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7367.29979065
delta logL = 0.778451090498

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7368.078     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      540 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.079        .73533E-04** at limit **
   2  Index         1.9696        1.3454        .18411E-04   -.88193E-05
   3  Normalizat    .84893        .18052        .10160E-03    .11077E-02
   4  Prefactor     1.0336        .14632       -.96939E-04    .12492E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.96962
  Normalizat = 0.848932
  Prefactor  = 1.0336
 **********
 **   18 **HESSE 
 **********

 FCN=   7368.078     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      577 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2037.8        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9696        8.6663        .50000       -.65112    
   3  Normalizat    .84893        .45658E-01    .62795E-01   -.98279    
   4  Prefactor     1.0336        .37041E-01    .38771E-01   -.91618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.83733e-10
Minuit parameter uncertainties:
  1  0.00491637
  2  39.014
  3  0.0456597
  4  0.0370416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410343': 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) = 7368.0782422
delta logL = -4.63885044155e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.916e-03  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.970e+00  3.901e+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.034e+00  3.704e-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.489e-01  4.566e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/410343/cmap_HighResolution_468201601_468460801_4FGL_J0818.7+3153_daily_bin883.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-08-29 17:23:48.109074', job_id='410343', GAL2='1.03', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630283028.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-4.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='883' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:23:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 410343: <4FGL_J0818.7+3153_daily_bin883> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin883> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 17:11:01 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:11:03 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:11:03 2021
Terminated at Sun Aug 29 17:23:48 2021
Results reported at Sun Aug 29 17:23:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin883 124.695 31.8862 468201601 468460801 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

