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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin8
RA = 124.557, Dec = 42.3819
tmin = 241401601, tmax = 241660801
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='395433', job_status='RUN', time_executed='2021-08-29 16:34:26.947011', time_epoch_executed='1630280066.95' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395433/ft1_4FGL_J0818.2+4222_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395433/ft2_4FGL_J0818.2+4222_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395433/ft1_4FGL_J0818.2+4222_daily_bin8.fits outfile=/scratch/kocevski/395433/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin8.fits ra=124.557 dec=42.3819 rad=12.0 tmin=241401601.0 tmax=241660801.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.14
user 1.27
sys 1.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395433/ft2_4FGL_J0818.2+4222_daily_bin8.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/395433/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/395433/ft1_filtered_4FGL_J0818.2+4222_daily_bin8.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.05
user 0.30
sys 1.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395433/ft1_filtered_4FGL_J0818.2+4222_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/395433/ft2_4FGL_J0818.2+4222_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/395433/ltcube_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.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/395433/ft2_4FGL_J0818.2+4222_daily_bin8.fits
.....................!
real 15.05
user 12.25
sys 1.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395433/ft1_filtered_4FGL_J0818.2+4222_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/395433/ft2_4FGL_J0818.2+4222_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/395433/ltcube_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.fits outfile=/scratch/kocevski/395433/expmap_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.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/395433/ltcube_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.fits
.....................!
real 192.99
user 185.81
sys 6.63

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/395433/ft1_filtered_4FGL_J0818.2+4222_daily_bin8.fits scfile=/scratch/kocevski/395433/ft2_4FGL_J0818.2+4222_daily_bin8.fits outfile=/scratch/kocevski/395433/cmap_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.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.00
user 0.36
sys 1.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395433/ft1_filtered_4FGL_J0818.2+4222_daily_bin8.fits scfile=/scratch/kocevski/395433/ft2_4FGL_J0818.2+4222_daily_bin8.fits outfile=/scratch/kocevski/395433/cmap_HighResolution_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.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.00
user 0.37
sys 1.61

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395433/ft1_filtered_4FGL_J0818.2+4222_daily_bin8.fits', '/scratch/kocevski/395433/ft2_4FGL_J0818.2+4222_daily_bin8.fits', expMap='/scratch/kocevski/395433/expmap_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.fits', expCube='/scratch/kocevski/395433/ltcube_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395433/Model_4FGL_J0818.2+4222_daily_bin8.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/395433/ft1_filtered_4FGL_J0818.2+4222_daily_bin8.fits
Spacecraft file(s): /scratch/kocevski/395433/ft2_4FGL_J0818.2+4222_daily_bin8.fits
Exposure map: /scratch/kocevski/395433/expmap_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.fits
Exposure cube: /scratch/kocevski/395433/ltcube_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395433/Model_4FGL_J0818.2+4222_daily_bin8.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) = 6366.31767817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2386       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.763       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.088       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5729       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12891E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.6903       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5132       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.173       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5906       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.035       1.0000         .10000E-03   10000.    
    21 'norm      '    8.6026       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9502       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.709       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10506E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8204       1.0000         .10000E-03   10000.    
    27 'norm      '    .40046       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0102       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89465       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94254       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=   6366.312     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3910 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2382        8.1276        .52557E-06   -.21521E-04
   2  Prefactor     15.763        12.152        .31540E-07   -.21493E-05
   3  Prefactor     .10000E-03    14.199       -.81544E-06** at limit **
   4  Prefactor     20.087        14.225       -.10253E-07   -.16823E-04
   5  Prefactor     8.5704        20.762       -.37291E-06   -.39062E-04
   6  norm          .10000E-03    2.9449        .21870E-07** at limit **
   7  norm          .10000E-03    .79388       -.33463E-08** at limit **
   8  Prefactor     5.1680        8.1772        .19032E-06    .68388E-04
   9  Prefactor     38.790        50.399       -.67462E-07    .37330E-04
  10  Prefactor     .10000E-03    4.1414       -.14365E-05** at limit **
  11  norm          5.6899        4.1410        .25992E-06    .41858E-03
  12  norm          .10000E-03    .74794        .65762E-07** at limit **
  13  norm          1.4712        .64784       -.22821E-07    .10903E-02
  14  Prefactor     .10000E-03    6.1845        .75979E-07** at limit **
  15  Prefactor     .10000E-03    9.1270        .65863E-06** at limit **
  16  Prefactor     5.5140        3.1071        .82342E-06   -.15645E-04
  17  Prefactor     40.171        27.944       -.51985E-06   -.42308E-04
  18  Prefactor     6.5911        10.656        .22180E-06    .18658E-04
  19  Prefactor     .10000E-03    2.7030       -.37291E-08** at limit **
  20  norm          17.035        7.9322       -.10568E-07   -.25283E-05
  21  norm          8.6025        5.9804        .41615E-06   -.86614E-04
  22  Prefactor     2.9499        2.4827        .41857E-07   -.74647E-05
  23  Prefactor     11.700        38.149       -.29918E-05   -.12368E-03
  24  Prefactor     .10000E-03    20.350        .60405E-06** at limit **
  25  Prefactor     .10002E-03    1.4070       -.10352E-06** at limit **
  26  Prefactor     4.8043        17.880       -.27129E-06   -.70690E-04
  27  norm          .40085        .87051        .11927E-06    .11220E-03
  28  Prefactor     4.0077        6.5960       -.22913E-08    .59517E-04
  29  Normalizat    .89466        .19321       -.65021E-07    .17538E-03
  30  Prefactor     .94256        .14301       -.38079E-06    .20761E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.23825
  Prefactor  = 15.7627
  Prefactor  = 0.000100001
  Prefactor  = 20.0875
  Prefactor  = 8.5704
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.16803
  Prefactor  = 38.7899
  Prefactor  = 0.000100004
  norm       = 5.68989
  norm       = 0.0001
  norm       = 1.47118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.514
  Prefactor  = 40.1709
  Prefactor  = 6.59107
  Prefactor  = 0.0001
  norm       = 17.0346
  norm       = 8.60249
  Prefactor  = 2.94992
  Prefactor  = 11.6995
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  Prefactor  = 4.80429
  norm       = 0.400846
  Prefactor  = 4.0077
  Normalizat = 0.894657
  Prefactor  = 0.942565
 **********
 **   18 **HESSE 
 **********

 FCN=   6366.312     FROM HESSE     STATUS=OK           600 CALLS     4510 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2382        8.1284        .22507E-03   -1.5348    
   2  Prefactor     15.763        12.158        .10088E-03   -1.4914    
   3  Prefactor     .10000E-03    14.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.087        14.221        .89364E-04   -1.4811    
   5  Prefactor     8.5704        20.768        .13691E-03   -1.5122    
   6  norm          .10000E-03    2.9484        .13372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .79511        .69382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1680        8.1294        .17684E-03   -1.5253    
   9  Prefactor     38.790        50.249        .64355E-04   -1.4462    
  10  Prefactor     .10000E-03    8.1712        .28500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.6899        4.1652        .13529E-03   -1.5231    
  12  norm          .10000E-03    .76037        .67311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4712        .63869        .40231E-04   -1.5465    
  14  Prefactor     .10000E-03    6.1869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5140        3.2279        .51810E-03   -1.5238    
  17  Prefactor     40.171        27.960        .63241E-04   -1.4440    
  18  Prefactor     6.5911        10.628        .15632E-03   -1.5194    
  19  Prefactor     .10000E-03    2.7058        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.035        7.9309        .97040E-04   -1.4882    
  21  norm          8.6025        5.9915        .68335E-03   -1.5121    
  22  Prefactor     2.9499        2.4772        .10872E-03   -1.5364    
  23  Prefactor     11.700        39.631        .11707E-03   -1.5024    
  24  Prefactor     .10000E-03    20.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    35.290        .17722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.8043        17.882        .18323E-03   -1.5270    
  27  norm          .40085        .88324        .64802E-03   -1.5581    
  28  Prefactor     4.0077        7.0041        .15242E-03   -1.5308    
  29  Normalizat    .89466        .21893        .28246E-03   -.96648    
  30  Prefactor     .94256        .16310        .21862E-03   -.94669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43459e-09
Minuit parameter uncertainties:
  1  8.13121
  2  12.1598
  3  0.00017023
  4  14.2239
  5  20.7855
  6  1.13869e-06
  7  2.76215e-07
  8  8.13109
  9  50.3038
  10  0.000352377
  11  4.16543
  12  5.29708e-07
  13  0.638696
  14  9.28375e-06
  15  0.000125159
  16  3.228
  17  27.9695
  18  10.631
  19  9.15041e-07
  20  7.93137
  21  5.99193
  22  2.47724
  23  39.7204
  24  0.000211674
  25  0.00154282
  26  17.9021
  27  0.883269
  28  7.00558
  29  0.219151
  30  0.16318
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.471e+00  6.387e-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:  9.426e-01  1.632e-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:  8.947e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.85
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.34e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 4.14e-05 +/- 1.80e-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) = 6366.27638745
delta logL = 0.0359884512545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6366.27500212
delta logL = 0.0373737809823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4470       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1069       1.0000          .0000       5.0000    
     3 'Normalizat'    .88682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94561       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=   6366.275     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4474        11.503        .88251E-02    .88711E-04
   2  alpha         2.1066        3.4051        .27710        .21158E-04
   3  Normalizat    .88719        .13288        .64133E-01    .16576E-04
   4  Prefactor     .94539        .79284E-01    .45584E-01    .44540E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4474
  alpha      = 2.10658
  Normalizat = 0.887186
  Prefactor  = 0.945392
 **********
 **   18 **HESSE 
 **********

 FCN=   6366.275     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4474        .62942        .39097E-04   -1.5467    
   2  alpha         2.1066        .40813        .10907E-01   -.15803    
   3  Normalizat    .88719        .20077        .28367E-03   -.96912    
   4  Prefactor     .94539        .15867        .21829E-03   -.94573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33325e-13
Minuit parameter uncertainties:
  1  0.629424
  2  0.410008
  3  0.20094
  4  0.158744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395433': 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) = 6366.27500007
delta logL = 0.0373758324204

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.447e+00  6.294e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.107e+00  4.100e-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:  9.454e-01  1.587e-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:  8.872e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.91
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.11 +/- 0.41
Photon Flux (Free Index): 8.11e-08 +/- 4.37e-08
Energy Flux (Free Index): 3.82e-05 +/- 1.94e-05

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/395433/cmap_HighResolution_241401601_241660801_4FGL_J0818.2+4222_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.34e-08', energy_flux2='3.82e-05', photon_flux_error='3.19e-08', dlogl='3.74e-02', energy_flux='4.14e-05', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-08-29 16:48:07.626974', photon_index_error2='0.41', photon_index2='2.11', ts='14.85', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='0.89', time_epoch_completed='1630280887.63', return_code='0', job_id='395433', GAL2='0.95', EG2='0.89', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='4.37e-08', ts2='14.91', photon_index='2.00' WHERE bin_id='8' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:48:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 395433: <4FGL_J0818.2+4222_daily_bin8> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin8 124.557 42.3819 241401601 241660801 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 :                                   842.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

