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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin565
RA = 124.557, Dec = 42.3819
tmin = 385776001, tmax = 386035201
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='398390', job_status='RUN', time_executed='2021-08-29 16:41:33.973184', time_epoch_executed='1630280493.97' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398390

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398390/ft1_4FGL_J0818.2+4222_daily_bin565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398390/ft2_4FGL_J0818.2+4222_daily_bin565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398390/ft1_4FGL_J0818.2+4222_daily_bin565.fits outfile=/scratch/kocevski/398390/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin565.fits ra=124.557 dec=42.3819 rad=12.0 tmin=385776001.0 tmax=386035201.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.89
user 3.65
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/398390/ft2_4FGL_J0818.2+4222_daily_bin565.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/398390/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin565.fits evtable="EVENTS" outfile="/scratch/kocevski/398390/ft1_filtered_4FGL_J0818.2+4222_daily_bin565.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/398390/ft1_filtered_4FGL_J0818.2+4222_daily_bin565.fits" evtable="EVENTS" scfile=/scratch/kocevski/398390/ft2_4FGL_J0818.2+4222_daily_bin565.fits sctable="SC_DATA" outfile=/scratch/kocevski/398390/ltcube_385776001_386035201_4FGL_J0818.2+4222_daily_bin565.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/398390/ft2_4FGL_J0818.2+4222_daily_bin565.fits
.....................!
real 12.07
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398390/ft1_filtered_4FGL_J0818.2+4222_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/398390/ft2_4FGL_J0818.2+4222_daily_bin565.fits sctable="SC_DATA" expcube=/scratch/kocevski/398390/ltcube_385776001_386035201_4FGL_J0818.2+4222_daily_bin565.fits outfile=/scratch/kocevski/398390/expmap_385776001_386035201_4FGL_J0818.2+4222_daily_bin565.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/398390/ltcube_385776001_386035201_4FGL_J0818.2+4222_daily_bin565.fits
.....................!
real 191.11
user 185.65
sys 4.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/398390/ft1_filtered_4FGL_J0818.2+4222_daily_bin565.fits scfile=/scratch/kocevski/398390/ft2_4FGL_J0818.2+4222_daily_bin565.fits outfile=/scratch/kocevski/398390/cmap_385776001_386035201_4FGL_J0818.2+4222_daily_bin565.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 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398390/ft1_filtered_4FGL_J0818.2+4222_daily_bin565.fits scfile=/scratch/kocevski/398390/ft2_4FGL_J0818.2+4222_daily_bin565.fits outfile=/scratch/kocevski/398390/cmap_HighResolution_385776001_386035201_4FGL_J0818.2+4222_daily_bin565.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 0.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.550       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5950       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12270E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13794E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35638       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4827       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8475       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9285       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1823       1.0000         .10000E-03   10000.    
    20 'norm      '    16.887       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .41208       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15369E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.639       1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.4494       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89796       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0874       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=   7121.581     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4065 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.477        10.668        .48373E-07    .34867E-04
   2  Prefactor     29.255        15.473        .45522E-07   -.38588E-05
   3  Prefactor     .10000E-03    8.0945       -.34090E-08** at limit **
   4  Prefactor     .10000E-03    5.7693       -.16268E-06** at limit **
   5  Prefactor     .10000E-03    6.5577        .53981E-07** at limit **
   6  norm          11.563        13.627        .35671E-07    .44588E-04
   7  norm          2.5950        3.0206        .35433E-07    .93783E-03
   8  Prefactor     .10000E-03    5.2569        .68453E-06** at limit **
   9  Prefactor     .10000E-03    79.712       -.35952E-05** at limit **
  10  Prefactor     .41663        7.3989        .48585E-05   -.28954E-03
  11  norm          3.4828        3.4097        .16729E-07   -.43038E-04
  12  norm          2.8479        1.8714        .15060E-07    .15848E-03
  13  norm          1.9274        .72621       -.25546E-07   -.29663E-03
  14  Prefactor     .10000E-03    24.140       -.41522E-06** at limit **
  15  Prefactor     .10000E-03    5.5950        .20001E-06** at limit **
  16  Prefactor     4.0755        4.1207       -.27301E-07    .17607E-03
  17  Prefactor     40.232        30.726       -.36313E-06   -.13692E-03
  18  Prefactor     .10000E-03    34.577       -.12133E-04** at limit **
  19  Prefactor     7.1871        6.7321        .31198E-07   -.97036E-04
  20  norm          16.885        7.5900       -.27032E-07   -.49204E-03
  21  norm          .10000E-03    2.8039       -.47993E-07** at limit **
  22  Prefactor     .41705        2.2672        .10973E-05    .55389E-03
  23  Prefactor     .10000E-03    133.00        .38159E-05** at limit **
  24  Prefactor     .10000E-03    12.255       -.11662E-06** at limit **
  25  Prefactor     .10000E-03    2.1602        .28150E-06** at limit **
  26  Prefactor     12.652        17.591        .67777E-07   -.23263E-04
  27  norm          .10000E-03    .23859        .44878E-06** at limit **
  28  Prefactor     1.4517        3.3257       -.19346E-05   -.43151E-03
  29  Normalizat    .89762        .20338       -.78911E-06   -.33721E-03
  30  Prefactor     1.0874        .14989        .19157E-06   -.28953E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.477
  Prefactor  = 29.2554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.563
  norm       = 2.59503
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 0.416633
  norm       = 3.48277
  norm       = 2.84792
  norm       = 1.92743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0755
  Prefactor  = 40.2317
  Prefactor  = 0.0001
  Prefactor  = 7.18708
  norm       = 16.8852
  norm       = 0.0001
  Prefactor  = 0.41705
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6517
  norm       = 0.0001
  Prefactor  = 1.45166
  Normalizat = 0.897623
  Prefactor  = 1.08741
 **********
 **   18 **HESSE 
 **********

 FCN=   7121.581     FROM HESSE     STATUS=OK           598 CALLS     4663 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.477        10.675        .82681E-04   -1.4739    
   2  Prefactor     29.255        15.473        .74080E-04   -1.4626    
   3  Prefactor     .10000E-03    8.0984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.563        13.628        .11788E-03   -1.5028    
   7  norm          2.5950        3.0128        .15113E-03   -1.5386    
   8  Prefactor     .10000E-03    30.948        .36835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    79.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .41663        20.118        .26554E-02   -1.5579    
  11  norm          3.4828        3.4105        .14734E-03   -1.5335    
  12  norm          2.8479        1.8693        .89112E-04   -1.5370    
  13  norm          1.9274        .72427        .41303E-04   -1.5430    
  14  Prefactor     .10000E-03    24.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0755        4.0950        .15617E-03   -1.5304    
  17  Prefactor     40.232        29.552        .63199E-04   -1.4439    
  18  Prefactor     .10000E-03    43.446        .47484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1871        6.7347        .14967E-03   -1.5172    
  20  norm          16.885        7.5615        .97465E-04   -1.4886    
  21  norm          .10000E-03    2.8221        .13795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .41705        4.2132        .22782E-02   -1.5579    
  23  Prefactor     .10000E-03    133.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.9601        .23633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.652        17.495        .11267E-03   -1.4996    
  27  norm          .10000E-03    .45241        .76500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.4517        3.4880        .22967E-03   -1.5467    
  29  Normalizat    .89762        .23011        .30756E-03   -.96544    
  30  Prefactor     1.0874        .17339        .22083E-03   -.89870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6746e-09
Minuit parameter uncertainties:
  1  10.6757
  2  15.475
  3  1.70991e-07
  4  2.08788e-05
  5  1.48351e-06
  6  13.6314
  7  3.01295
  8  0.000571342
  9  0.00113765
  10  5.79163
  11  3.4107
  12  1.86938
  13  0.724275
  14  4.98333e-05
  15  1.62384e-05
  16  4.09526
  17  29.5624
  18  0.000288072
  19  6.73541
  20  7.56197
  21  2.88414e-06
  22  2.65105
  23  0.00132068
  24  2.98352e-06
  25  5.03989e-05
  26  17.5018
  27  6.08031e-06
  28  3.48847
  29  0.230366
  30  0.17348
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.927e+00  7.243e-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:  1.087e+00  1.735e-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.976e-01  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.73
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.62e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 5.42e-05 +/- 2.04e-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) = 7121.4499889
delta logL = 0.130721553327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7121.44156956
delta logL = 0.13914089242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8653       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8126       1.0000          .0000       5.0000    
     3 'Normalizat'    .91232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0837       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=   7121.442     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8652        .78966        .76261E-02   -.13269E-04
   2  alpha         1.8125        .34220        .25603       -.14721E-04
   3  Normalizat    .91231        .18674        .69047E-01    .20884E-04
   4  Prefactor     1.0837        .14587        .38242E-01    .48706E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86522
  alpha      = 1.81253
  Normalizat = 0.912314
  Prefactor  = 1.08369
 **********
 **   18 **HESSE 
 **********

 FCN=   7121.442     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8652        .74345        .42464E-04   -1.5435    
   2  alpha         1.8125        .34810        .10409E-01   -.27858    
   3  Normalizat    .91231        .21376        .30547E-03   -.96029    
   4  Prefactor     1.0837        .16728        .22128E-03   -.89989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34215e-11
Minuit parameter uncertainties:
  1  0.743451
  2  0.349327
  3  0.213961
  4  0.167358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398390': 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) = 7121.44156956
delta logL = 0.139140901786

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.865e+00  7.435e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.813e+00  3.493e-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:  1.084e+00  1.674e-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.123e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.99
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.81 +/- 0.35
Photon Flux (Free Index): 7.87e-08 +/- 4.37e-08
Energy Flux (Free Index): 6.30e-05 +/- 3.17e-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/398390/cmap_HighResolution_385776001_386035201_4FGL_J0818.2+4222_daily_bin565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.62e-08', energy_flux2='6.30e-05', photon_flux_error='3.61e-08', dlogl='1.39e-01', energy_flux='5.42e-05', photon_flux2='7.87e-08', job_status='DONE', time_completed='2021-08-29 16:56:04.203438', photon_index_error2='0.35', photon_index2='1.81', ts='26.73', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='3.17e-05', EG='0.90', time_epoch_completed='1630281364.2', return_code='0', job_id='398390', GAL2='1.08', EG2='0.91', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='4.37e-08', ts2='26.99', photon_index='2.00' WHERE bin_id='565' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:56:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 398390: <4FGL_J0818.2+4222_daily_bin565> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin565> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 16:40:51 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:40:52 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:40:52 2021
Terminated at Sun Aug 29 16:56:04 2021
Results reported at Sun Aug 29 16:56:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin565 124.557 42.3819 385776001 386035201 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 :                                   865.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

