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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin342
RA = 124.695, Dec = 31.8862
tmin = 327974401, tmax = 328233601
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='408049', job_status='RUN', time_executed='2021-08-29 17:05:43.710295', time_epoch_executed='1630281943.71' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408049/ft1_4FGL_J0818.7+3153_daily_bin342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408049/ft2_4FGL_J0818.7+3153_daily_bin342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408049/ft1_4FGL_J0818.7+3153_daily_bin342.fits outfile=/scratch/kocevski/408049/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin342.fits ra=124.695 dec=31.8862 rad=12.0 tmin=327974401.0 tmax=328233601.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.02
user 3.30
sys 0.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408049/ft1_filtered_4FGL_J0818.7+3153_daily_bin342.fits" evtable="EVENTS" scfile=/scratch/kocevski/408049/ft2_4FGL_J0818.7+3153_daily_bin342.fits sctable="SC_DATA" outfile=/scratch/kocevski/408049/ltcube_327974401_328233601_4FGL_J0818.7+3153_daily_bin342.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/408049/ft2_4FGL_J0818.7+3153_daily_bin342.fits
.....................!
real 12.52
user 11.69
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408049/ft1_filtered_4FGL_J0818.7+3153_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/408049/ft2_4FGL_J0818.7+3153_daily_bin342.fits sctable="SC_DATA" expcube=/scratch/kocevski/408049/ltcube_327974401_328233601_4FGL_J0818.7+3153_daily_bin342.fits outfile=/scratch/kocevski/408049/expmap_327974401_328233601_4FGL_J0818.7+3153_daily_bin342.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/408049/ltcube_327974401_328233601_4FGL_J0818.7+3153_daily_bin342.fits
.....................!
real 191.02
user 185.28
sys 5.31

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/408049/ft1_filtered_4FGL_J0818.7+3153_daily_bin342.fits scfile=/scratch/kocevski/408049/ft2_4FGL_J0818.7+3153_daily_bin342.fits outfile=/scratch/kocevski/408049/cmap_327974401_328233601_4FGL_J0818.7+3153_daily_bin342.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.91
user 0.36
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408049/ft1_filtered_4FGL_J0818.7+3153_daily_bin342.fits scfile=/scratch/kocevski/408049/ft2_4FGL_J0818.7+3153_daily_bin342.fits outfile=/scratch/kocevski/408049/cmap_HighResolution_327974401_328233601_4FGL_J0818.7+3153_daily_bin342.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.94
user 0.38
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408049/ft1_filtered_4FGL_J0818.7+3153_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/408049/ft2_4FGL_J0818.7+3153_daily_bin342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408049/Model_4FGL_J0818.7+3153_daily_bin342.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/408049/ft1_filtered_4FGL_J0818.7+3153_daily_bin342.fits.....................!
real 63.08
user 60.86
sys 1.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3263       1.0000         .10000E-03   10000.    
     7 'norm      '    .10716E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .73479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64266       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6478       1.0000         .10000E-03   10000.    
    16 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1532       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8528       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0453       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89392       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6478.580     FROM MIGRAD    STATUS=FAILED       831 CALLS     2377 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4649        .18142E-02** at limit **
   2  norm          2.3214        3.0169        .15348E-03   -.50814E-04
   3  Prefactor     .10000E-03    11.177        .18142E-02** at limit **
   4  Prefactor     .10000E-03    8.2263        .18142E-02** at limit **
   5  Prefactor     .10000E-03    9.5680        .18142E-02** at limit **
   6  norm          1.3264        7.0648        .38165E-03   -.19005E-04
   7  norm          .10000E-03    51.460        .18142E-02** at limit **
   8  Prefactor     3.7224        3.9877        .15837E-03   -.27350E-04
   9  Prefactor     .10000E-03    12.760        .18142E-02** at limit **
  10  norm          .73489        .41351        .37520E-04   -.82720E-04
  11  Prefactor     .10000E-03    55.550        .18142E-02** at limit **
  12  Prefactor     .10000E-03    8.0667        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.4286        .18142E-02** at limit **
  14  Prefactor     .58659        151.93        .56282E-02    .70352E-03
  15  Prefactor     8.6484        3.5462        .90683E-04   -.91769E-04
  16  norm          .10000E-03    1.0417        .11436E-02** at limit **
  17  Prefactor     .10000E-03    10.284        .18142E-02** at limit **
  18  Prefactor     1.1290        13.965        .21523E-02   -.76118E-03
  19  Prefactor     9.8337        14.363        .12766E-03   -.32950E-05
  20  Prefactor     .10000E-03    1.9709        .10938E-02** at limit **
  21  Normalizat    1.0451        .19532        .24150E-03   -.79040E-04
  22  Prefactor     .89410        .15051        .21038E-03   -.72683E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6478.580     FROM SIMPLEX   STATUS=UNCHANGED   1231 CALLS     3608 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4649        .33387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3214        3.0169        .10122E-05   -1.5403    
   3  Prefactor     .10000E-03    11.177        .44718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2263        .31061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5680        .30558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3264        7.0648        .10168E-05   -1.5478    
   7  norm          .10000E-03    51.460        .58436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7224        3.9877        .10061E-05   -1.5322    
   9  Prefactor     .10000E-03    12.760        .34277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .73489        .41351        .10203E-05   -1.5537    
  11  Prefactor     .10000E-03    55.550        .67360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0667        .34029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4286        .31631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .58659        151.93        .10248E-05   -1.5555    
  15  Prefactor     8.6484        3.5462        .99296E-06   -1.5120    
  16  norm          .10000E-03    1.0417        .71184E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.284        .50171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1290        13.965        .10168E-05   -1.5495    
  19  Prefactor     9.8337        14.363        .99070E-06   -1.5081    
  20  Prefactor     .10000E-03    1.9709        .50527E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0451        .19532        .60062E-06   -.91534    
  22  Prefactor     .89410        .15051        .63278E-06   -.96348    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6478.580     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     3935 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4669        .36285E-03** at limit **
   2  norm          2.3214        3.0161        .61392E-05   -.37036E-06
   3  Prefactor     .10000E-03    11.177        .36285E-03** at limit **
   4  Prefactor     .10000E-03    8.2275        .36285E-03** at limit **
   5  Prefactor     .10000E-03    9.5682        .36285E-03** at limit **
   6  norm          1.3264        7.0609        .15266E-04    .14894E-06
   7  norm          .10000E-03    51.462        .36285E-03** at limit **
   8  Prefactor     3.7224        3.9867        .63349E-05    .43071E-06
   9  Prefactor     .10000E-03    12.761        .36285E-03** at limit **
  10  norm          .73489        .41350        .15008E-05   -.30300E-06
  11  Prefactor     .10000E-03    55.570        .36285E-03** at limit **
  12  Prefactor     .10000E-03    8.0669        .36285E-03** at limit **
  13  Prefactor     .10000E-03    6.4294        .36285E-03** at limit **
  14  Prefactor     .58658        151.99        .11256E-02   -.52923E-05
  15  Prefactor     8.6484        3.5440        .36273E-05   -.62684E-06
  16  norm          .10000E-03    1.0439        .22873E-03** at limit **
  17  Prefactor     .10000E-03    10.285        .36285E-03** at limit **
  18  Prefactor     1.1294        13.872        .86090E-04    .13206E-06
  19  Prefactor     9.8337        14.359        .51064E-05   -.13358E-05
  20  Prefactor     .10000E-03    1.9714        .21877E-03** at limit **
  21  Normalizat    1.0451        .19438        .96599E-05   -.16241E-04
  22  Prefactor     .89410        .15058        .84151E-05   -.14050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.32144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32639
  norm       = 0.0001
  Prefactor  = 3.72241
  Prefactor  = 0.0001
  norm       = 0.734892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.586579
  Prefactor  = 8.64844
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12943
  Prefactor  = 9.83371
  Prefactor  = 0.0001
  Normalizat = 1.04513
  Prefactor  = 0.894101
 **********
 **   18 **HESSE 
 **********

 FCN=   6478.580     FROM HESSE     STATUS=OK           320 CALLS     4255 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4669        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3214        3.0157        .12278E-05   -1.5403    
   3  Prefactor     .10000E-03    11.177        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2275        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5682        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3264        7.0638        .30532E-05   -1.5478    
   7  norm          .10000E-03    51.461        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7224        3.9865        .63349E-05   -1.5322    
   9  Prefactor     .10000E-03    12.761        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .73489        .41349        .15008E-05   -1.5537    
  11  Prefactor     .10000E-03    55.571        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0669        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4294        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .58658        151.20        .45026E-04   -1.5555    
  15  Prefactor     8.6484        3.5439        .72546E-06   -1.5120    
  16  norm          .10000E-03    1.0440        .45745E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.285        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1294        13.851        .34436E-05   -1.5495    
  19  Prefactor     9.8337        14.378        .10213E-05   -1.5081    
  20  Prefactor     .10000E-03    1.9714        .43753E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0451        .19385        .19320E-05   -.91534    
  22  Prefactor     .89410        .15037        .16830E-05   -.96348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97551e-12
Minuit parameter uncertainties:
  1  5.43395e-07
  2  3.01586
  3  2.26477e-07
  4  1.56465e-07
  5  7.73171e-08
  6  6.12276
  7  2.9606e-07
  8  3.98679
  9  2.6233e-07
  10  0.413495
  11  2.54595e-06
  12  2.31766e-07
  13  3.01359e-08
  14  18.8817
  15  3.54402
  16  1.58585e-06
  17  2.3782e-07
  18  7.91238
  19  14.3834
  20  1.25313e-07
  21  0.19398
  22  0.150435
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.318e-07  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.941e-01  1.504e-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.045e+00  1.940e-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: 4.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408049/likelihoodResults_327974401_328233601_4FGL_J0818.7+3153_daily_bin342.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) = 6478.58091061
delta logL = -0.000590111045312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6478.58032023
delta logL = 2.63731635641e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1014       1.0000          .0000       10.000    
     3 'Normalizat'    1.0451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89411       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=   6478.580     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      237 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10228E-03    1.5465        .18142E-01** at limit **
   2  Index         2.0279        5.3037        .50000        .26969E-04
   3  Normalizat    1.0451        .17101E-02    .24150E-03   -.19698E-03
   4  Prefactor     .89410        .13960E-02    .21038E-03   -.62469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102277
  Index      = 2.02794
  Normalizat = 1.04513
  Prefactor  = 0.894098
 **********
 **   18 **HESSE 
 **********

 FCN=   6478.580     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10228E-03    44.996        .23884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0279        5.9753        .50000       -.63654    
   3  Normalizat    1.0451        .92668E-02    .48299E-04   -.91534    
   4  Prefactor     .89410        .75647E-02    .42075E-04   -.96348    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50651e-08
Minuit parameter uncertainties:
  1  0.0202599
  2  179.893
  3  0.00926682
  4  0.00756467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408049': 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) = 6478.58031983
delta logL = 6.67044332658e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.023e-04  2.026e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.028e+00  1.799e+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:  8.941e-01  7.565e-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:  1.045e+00  9.267e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/408049/cmap_HighResolution_327974401_328233601_4FGL_J0818.7+3153_daily_bin342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2021-08-29 17:19:03.824600', job_id='408049', GAL2='0.89', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630282743.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='342' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:19:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 408049: <4FGL_J0818.7+3153_daily_bin342> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin342> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 17:05:23 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:05:25 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:05:25 2021
Terminated at Sun Aug 29 17:19:04 2021
Results reported at Sun Aug 29 17:19:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin342 124.695 31.8862 327974401 328233601 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 :                                   804.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

