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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin839
RA = 124.695, Dec = 31.8862
tmin = 456796801, tmax = 457056001
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='410280', job_status='RUN', time_executed='2021-08-29 17:11:36.557098', time_epoch_executed='1630282296.56' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='839'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410280

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410280/ft1_4FGL_J0818.7+3153_daily_bin839.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410280/ft2_4FGL_J0818.7+3153_daily_bin839.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410280/ft1_4FGL_J0818.7+3153_daily_bin839.fits outfile=/scratch/kocevski/410280/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin839.fits ra=124.695 dec=31.8862 rad=12.0 tmin=456796801.0 tmax=457056001.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.04
user 3.09
sys 0.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410280/ft1_filtered_4FGL_J0818.7+3153_daily_bin839.fits" evtable="EVENTS" scfile=/scratch/kocevski/410280/ft2_4FGL_J0818.7+3153_daily_bin839.fits sctable="SC_DATA" outfile=/scratch/kocevski/410280/ltcube_456796801_457056001_4FGL_J0818.7+3153_daily_bin839.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/410280/ft2_4FGL_J0818.7+3153_daily_bin839.fits
.....................!
real 15.44
user 14.33
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410280/ft1_filtered_4FGL_J0818.7+3153_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/410280/ft2_4FGL_J0818.7+3153_daily_bin839.fits sctable="SC_DATA" expcube=/scratch/kocevski/410280/ltcube_456796801_457056001_4FGL_J0818.7+3153_daily_bin839.fits outfile=/scratch/kocevski/410280/expmap_456796801_457056001_4FGL_J0818.7+3153_daily_bin839.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/410280/ltcube_456796801_457056001_4FGL_J0818.7+3153_daily_bin839.fits
.....................!
real 190.74
user 185.22
sys 5.00

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/410280/ft1_filtered_4FGL_J0818.7+3153_daily_bin839.fits scfile=/scratch/kocevski/410280/ft2_4FGL_J0818.7+3153_daily_bin839.fits outfile=/scratch/kocevski/410280/cmap_456796801_457056001_4FGL_J0818.7+3153_daily_bin839.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 1.21
user 0.38
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410280/ft1_filtered_4FGL_J0818.7+3153_daily_bin839.fits scfile=/scratch/kocevski/410280/ft2_4FGL_J0818.7+3153_daily_bin839.fits outfile=/scratch/kocevski/410280/cmap_HighResolution_456796801_457056001_4FGL_J0818.7+3153_daily_bin839.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 1.22
user 0.39
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410280/ft1_filtered_4FGL_J0818.7+3153_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/410280/ft2_4FGL_J0818.7+3153_daily_bin839.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410280/Model_4FGL_J0818.7+3153_daily_bin839.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/410280/ft1_filtered_4FGL_J0818.7+3153_daily_bin839.fits.....................!
real 53.67
user 51.35
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6752       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10993E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24544E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15825E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .94002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4751       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0236       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.030       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3310       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86838       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89672       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=   5479.053     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2062 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6760        7.7050       -.19618E-05   -.52157E-03
   2  norm          4.4789        3.4529       -.17884E-06    .47557E-04
   3  Prefactor     .10000E-03    19.848        .95717E-05** at limit **
   4  Prefactor     .10053E-03    14.880       -.98465E-06** at limit **
   5  Prefactor     .10000E-03    9.3237       -.31170E-05** at limit **
   6  norm          .10000E-03    8.3496        .14926E-05** at limit **
   7  norm          .10000E-03    25.036       -.78109E-05** at limit **
   8  Prefactor     .94297        3.7806       -.22702E-05   -.11323E-02
   9  Prefactor     .10000E-03    6.9032       -.10012E-06** at limit **
  10  norm          1.4752        .65107       -.34317E-07    .56655E-03
  11  Prefactor     .10000E-03    11.868        .61726E-05** at limit **
  12  Prefactor     .10000E-03    13.615       -.57017E-05** at limit **
  13  Prefactor     .10000E-03    14.950       -.28411E-05** at limit **
  14  Prefactor     .10000E-03    5.5758       -.37157E-07** at limit **
  15  Prefactor     .10000E-03    .89840       -.52925E-07** at limit **
  16  norm          .10000E-03    .56370       -.56555E-07** at limit **
  17  Prefactor     6.0202        21.883        .91174E-05   -.40897E-05
  18  Prefactor     .10000E-03    2.6038        .75595E-09** at limit **
  19  Prefactor     18.043        16.016       -.13684E-04   -.68222E-05
  20  Prefactor     3.3331        3.6537       -.61750E-07   -.22848E-03
  21  Normalizat    .86844        .16718        .29547E-05    .56602E-04
  22  Prefactor     .89671        .13539       -.49853E-06    .28471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67598
  norm       = 4.47895
  Prefactor  = 0.0001
  Prefactor  = 0.000100532
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.942974
  Prefactor  = 0.0001
  norm       = 1.47521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.02023
  Prefactor  = 0.0001
  Prefactor  = 18.0427
  Prefactor  = 3.33314
  Normalizat = 0.868435
  Prefactor  = 0.896715
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.053     FROM HESSE     STATUS=OK           348 CALLS     2410 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6760        7.7938        .32559E-03   -1.5449    
   2  norm          4.4789        3.4553        .11101E-03   -1.5285    
   3  Prefactor     .10000E-03    19.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10053E-03    19.646        .76399E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.4631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    25.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94297        3.8424        .27229E-03   -1.5514    
   9  Prefactor     .10000E-03    6.9049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4752        .64124        .37300E-04   -1.5465    
  11  Prefactor     .10000E-03    11.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5841        .17068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .90883        .68460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3927        .10766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0202        21.800        .16360E-03   -1.5217    
  18  Prefactor     .10000E-03    2.6132        .11664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.043        15.924        .94323E-04   -1.4858    
  20  Prefactor     3.3331        3.6464        .14342E-03   -1.5343    
  21  Normalizat    .86844        .19455        .24179E-03   -.97578    
  22  Prefactor     .89671        .15863        .19676E-03   -.96256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24871e-09
Minuit parameter uncertainties:
  1  7.22967
  2  3.45544
  3  3.45141e-05
  4  0.00646801
  5  4.10684e-06
  6  3.30205e-05
  7  1.23331e-06
  8  3.80718
  9  4.01674e-06
  10  0.641242
  11  1.16205e-05
  12  1.54705e-05
  13  5.83331e-05
  14  4.91155e-06
  15  4.21732e-06
  16  9.45081e-06
  17  21.8291
  18  1.82094e-06
  19  15.9281
  20  3.64667
  21  0.194708
  22  0.158712
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.547e-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:  8.967e-01  1.587e-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.684e-01  1.947e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410280/likelihoodResults_456796801_457056001_4FGL_J0818.7+3153_daily_bin839.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) = 5479.05347483
delta logL = -0.000349479617398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5479.05312546
delta logL = -1.08851054392e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1177       1.0000          .0000       10.000    
     3 'Normalizat'    .86840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89673       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=   5479.053     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.88        .90712E-02** at limit **
   2  Index         2.1014        7.4247        .50000        .94623E-05
   3  Normalizat    .86844        .12337E-01    .44496E-01    .26656E-04
   4  Prefactor     .89671        .10247E-01    .44963E-01    .20123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10139
  Normalizat = 0.868437
  Prefactor  = 0.896713
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.053     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1014        6.0475        .50000       -.61839    
   3  Normalizat    .86844        .18878        .24179E-03   -.97578    
   4  Prefactor     .89671        .15686        .19676E-03   -.96256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48963e-11
Minuit parameter uncertainties:
  1  4.43679e-05
  2  4.08462
  3  0.188922
  4  0.156937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410280': 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): 0
logL (Free Index) = 5479.05312527
delta logL = 8.00000634626e-08

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.437e-05  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.101e+00  4.085e+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.967e-01  1.569e-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.684e-01  1.889e-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/410280/cmap_HighResolution_456796801_457056001_4FGL_J0818.7+3153_daily_bin839.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2021-08-29 17:21:42.329161', job_id='410280', GAL2='0.90', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630282902.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='8.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='839' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:21:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 410280: <4FGL_J0818.7+3153_daily_bin839> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin839> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 17:10:57 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:10:58 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:10:58 2021
Terminated at Sun Aug 29 17:21:43 2021
Results reported at Sun Aug 29 17:21:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin839 124.695 31.8862 456796801 457056001 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 :                                   612.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            646 sec.

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

