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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin187
RA = 124.557, Dec = 42.3819
tmin = 287798401, tmax = 288057601
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='395698', job_status='RUN', time_executed='2021-08-29 16:32:52.205290', time_epoch_executed='1630279972.21' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395698

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395698/ft1_4FGL_J0818.2+4222_daily_bin187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395698/ft1_4FGL_J0818.2+4222_daily_bin187.fits outfile=/scratch/kocevski/395698/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin187.fits ra=124.557 dec=42.3819 rad=12.0 tmin=287798401.0 tmax=288057601.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 5.82
user 3.36
sys 2.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.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/395698/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin187.fits evtable="EVENTS" outfile="/scratch/kocevski/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.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 2.24
user 0.35
sys 1.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.fits" evtable="EVENTS" scfile=/scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits sctable="SC_DATA" outfile=/scratch/kocevski/395698/ltcube_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.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/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits
.....................!
real 13.67
user 11.40
sys 2.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits sctable="SC_DATA" expcube=/scratch/kocevski/395698/ltcube_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.fits outfile=/scratch/kocevski/395698/expmap_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.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/395698/ltcube_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.fits
.....................!
real 195.30
user 187.57
sys 6.90

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.2+4222 @ 124.557 42.3819

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.fits scfile=/scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits outfile=/scratch/kocevski/395698/cmap_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.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.557 yref=42.3819 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 2.29
user 0.37
sys 1.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.fits scfile=/scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits outfile=/scratch/kocevski/395698/cmap_HighResolution_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.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.557 yref=42.3819 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 2.30
user 0.37
sys 1.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395698/Model_4FGL_J0818.2+4222_daily_bin187.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/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.fits.....................!
real 65.36
user 61.32
sys 3.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.fits', '/scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits', expMap='/scratch/kocevski/395698/expmap_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.fits', expCube='/scratch/kocevski/395698/ltcube_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395698/Model_4FGL_J0818.2+4222_daily_bin187.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.2+4222'

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/395698/ft1_filtered_4FGL_J0818.2+4222_daily_bin187.fits
Spacecraft file(s): /scratch/kocevski/395698/ft2_4FGL_J0818.2+4222_daily_bin187.fits
Exposure map: /scratch/kocevski/395698/expmap_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.fits
Exposure cube: /scratch/kocevski/395698/ltcube_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395698/Model_4FGL_J0818.2+4222_daily_bin187.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) = 6912.12101628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.844       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8151       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6782       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9857       1.0000         .10000E-03   10000.    
    13 'norm      '    .75770       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0451       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.239       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7651       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5791       1.0000         .10000E-03   10000.    
    21 'norm      '    .12320E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.551       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0509       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.433       1.0000         .10000E-03   10000.    
    27 'norm      '    1.1638       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22178E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93381       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87917       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6912.119     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3936 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8547        .78368E-08** at limit **
   2  Prefactor     23.845        13.772        .26549E-06   -.40423E-04
   3  Prefactor     8.8165        22.789        .45055E-06    .11015E-04
   4  Prefactor     10.597        9.3890        .49039E-07   -.35752E-05
   5  Prefactor     .10000E-03    6.0038        .91290E-08** at limit **
   6  norm          .10000E-03    3.6090        .75421E-07** at limit **
   7  norm          .10000E-03    .84870        .16367E-07** at limit **
   8  Prefactor     .10000E-03    2.6468        .31993E-07** at limit **
   9  Prefactor     .10000E-03    26.074        .40497E-06** at limit **
  10  Prefactor     2.6786        5.4240        .30561E-06   -.97275E-04
  11  norm          .10000E-03    .81829        .11056E-08** at limit **
  12  norm          1.9857        1.2211       -.30372E-08    .11115E-04
  13  norm          .75767        .54661       -.68239E-07   -.37125E-03
  14  Prefactor     17.136        17.362        .15030E-06    .21121E-04
  15  Prefactor     1.0519        10.766        .37308E-06   -.11438E-03
  16  Prefactor     .10000E-03    1.8121       -.34442E-07** at limit **
  17  Prefactor     17.248        20.656        .57053E-06    .11448E-03
  18  Prefactor     .10000E-03    4.7799       -.45284E-07** at limit **
  19  Prefactor     3.7628        4.9555        .28779E-05   -.33748E-03
  20  norm          2.5786        2.8142        .12504E-06    .14063E-03
  21  norm          .10009E-03    2.5571       -.80412E-06** at limit **
  22  Prefactor     .10000E-03    1.0325       -.10904E-06** at limit **
  23  Prefactor     53.514        51.303       -.53509E-05   -.27581E-03
  24  Prefactor     .10000E-03    23.798       -.18218E-06** at limit **
  25  Prefactor     1.0526        2.5891        .65454E-06   -.92345E-04
  26  Prefactor     13.427        19.841       -.92467E-06   -.91281E-04
  27  norm          1.1646        .53481        .28619E-07   -.90397E-03
  28  Prefactor     .10000E-03    1.8506        .21558E-06** at limit **
  29  Normalizat    .93380        .16547        .12496E-06   -.17309E-04
  30  Prefactor     .87916        .12346       -.44373E-06    .55365E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 23.8447
  Prefactor  = 8.81654
  Prefactor  = 10.5971
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67861
  norm       = 0.0001
  norm       = 1.9857
  norm       = 0.757669
  Prefactor  = 17.1362
  Prefactor  = 1.05192
  Prefactor  = 0.0001
  Prefactor  = 17.2485
  Prefactor  = 0.0001
  Prefactor  = 3.76283
  norm       = 2.57861
  norm       = 0.000100089
  Prefactor  = 0.0001
  Prefactor  = 53.5138
  Prefactor  = 0.0001
  Prefactor  = 1.05255
  Prefactor  = 13.4268
  norm       = 1.16456
  Prefactor  = 0.000100001
  Normalizat = 0.933797
  Prefactor  = 0.879161
 **********
 **   18 **HESSE 
 **********

 FCN=   6912.119     FROM HESSE     STATUS=OK           590 CALLS     4526 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8670        .13717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.845        13.781        .41016E-03   -1.4731    
   3  Prefactor     8.8165        22.760        .13500E-03   -1.5114    
   4  Prefactor     10.597        9.3687        .12309E-03   -1.5057    
   5  Prefactor     .10000E-03    6.0209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.6180        .15425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .85675        .74687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6547        .13207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6786        5.2735        .23804E-03   -1.5381    
  11  norm          .10000E-03    .81956        .73438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9857        1.2227        .70121E-04   -1.5426    
  13  norm          .75767        .52250        .47072E-04   -1.5534    
  14  Prefactor     17.136        17.363        .96758E-04   -1.4880    
  15  Prefactor     1.0519        32.273        .45766E-02   -1.5503    
  16  Prefactor     .10000E-03    1.8445        .21696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.248        20.632        .96464E-04   -1.4877    
  18  Prefactor     .10000E-03    4.8228        .17750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7628        5.0754        .10403E-02   -1.5320    
  20  norm          2.5786        2.8084        .14138E-03   -1.5387    
  21  norm          .10009E-03    26.754        .25153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.0656        .16475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     53.514        54.220        .54810E-04   -1.4244    
  24  Prefactor     .10000E-03    23.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0526        2.5193        .19132E-03   -1.5503    
  26  Prefactor     13.427        19.690        .10929E-03   -1.4975    
  27  norm          1.1646        .49783        .37095E-04   -1.5492    
  28  Prefactor     .10000E-03    5.1614        .20219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93380        .18783        .25163E-03   -.95283    
  30  Prefactor     .87916        .14168        .20649E-03   -.96873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05385e-08
Minuit parameter uncertainties:
  1  6.64754e-07
  2  13.7826
  3  22.7824
  4  9.36999
  5  2.20202e-06
  6  2.72101e-06
  7  3.11663e-08
  8  6.7408e-07
  9  4.7256e-05
  10  5.27438
  11  2.18014e-07
  12  1.22275
  13  0.522502
  14  17.3678
  15  11.6594
  16  2.81733e-06
  17  20.6404
  18  1.68652e-05
  19  5.07595
  20  2.80852
  21  0.0030875
  22  3.68506e-06
  23  54.2698
  24  1.1754e-05
  25  2.51955
  26  19.6994
  27  0.49783
  28  0.000153122
  29  0.187964
  30  0.141739
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.577e-01  5.225e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  8.792e-01  1.417e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.338e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.78e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.47e-05

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): 0
logL (Free Index) = 6912.10844181
delta logL = 0.0106542764215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6912.10739472
delta logL = 0.0117013727677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73603       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8646       1.0000          .0000       5.0000    
     3 'Normalizat'    .94062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6912.107     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      194 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73689        12.991        .10515E-01    .34244E-03
   2  alpha         1.8667        2.5767        .42972       -.25810E-04
   3  Normalizat    .94009        .86866E-01    .45419E-01    .97600E-05
   4  Prefactor     .87675        .53835E-01    .44705E-01    .31563E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.736893
  alpha      = 1.86674
  Normalizat = 0.940087
  Prefactor  = 0.876751
 **********
 **   18 **HESSE 
 **********

 FCN=   6912.107     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73689        .52765        .47596E-04   -1.5536    
   2  alpha         1.8667        .80512        .16869E-01   -.25609    
   3  Normalizat    .94009        .17786        .25090E-03   -.95066    
   4  Prefactor     .87675        .14030        .20675E-03   -.96958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21452e-12
Minuit parameter uncertainties:
  1  0.52765
  2  0.820784
  3  0.177969
  4  0.140359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395698': 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) = 6912.10738764
delta logL = 0.0117084533786

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.369e-01  5.276e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.867e+00  8.208e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  8.768e-01  1.404e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.401e-01  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.87 +/- 0.82
Photon Flux (Free Index): 3.26e-08 +/- 3.84e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.21e-05

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/395698/cmap_HighResolution_287798401_288057601_4FGL_J0818.2+4222_daily_bin187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.78e-08', energy_flux2='2.33e-05', photon_flux_error='2.61e-08', dlogl='1.17e-02', energy_flux='2.13e-05', photon_flux2='3.26e-08', job_status='DONE', time_completed='2021-08-29 16:47:28.996491', photon_index_error2='0.82', photon_index2='1.87', ts='4.49', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='0.93', time_epoch_completed='1630280849.0', return_code='0', job_id='395698', GAL2='0.88', EG2='0.94', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='3.84e-08', ts2='4.52', photon_index='2.00' WHERE bin_id='187' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:47:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 395698: <4FGL_J0818.2+4222_daily_bin187> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin187> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 16:31:54 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:31:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 16:31:57 2021
Terminated at Sun Aug 29 16:47:29 2021
Results reported at Sun Aug 29 16:47:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin187 124.557 42.3819 287798401 288057601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.2+4222 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   898.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

