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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin6
RA = 124.557, Dec = 42.3819
tmin = 240883201, tmax = 241142401
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='395429', job_status='RUN', time_executed='2021-08-29 16:32:37.196399', time_epoch_executed='1630279957.2' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395429

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395429/ft1_4FGL_J0818.2+4222_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395429/ft2_4FGL_J0818.2+4222_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395429/ft1_4FGL_J0818.2+4222_daily_bin6.fits outfile=/scratch/kocevski/395429/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin6.fits ra=124.557 dec=42.3819 rad=12.0 tmin=240883201.0 tmax=241142401.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 1.87
user 1.33
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395429/ft2_4FGL_J0818.2+4222_daily_bin6.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/395429/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/395429/ft1_filtered_4FGL_J0818.2+4222_daily_bin6.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.86
user 0.32
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395429/ft1_filtered_4FGL_J0818.2+4222_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/395429/ft2_4FGL_J0818.2+4222_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/395429/ltcube_240883201_241142401_4FGL_J0818.2+4222_daily_bin6.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/395429/ft2_4FGL_J0818.2+4222_daily_bin6.fits
.....................!
real 15.43
user 14.52
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395429/ft1_filtered_4FGL_J0818.2+4222_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/395429/ft2_4FGL_J0818.2+4222_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/395429/ltcube_240883201_241142401_4FGL_J0818.2+4222_daily_bin6.fits outfile=/scratch/kocevski/395429/expmap_240883201_241142401_4FGL_J0818.2+4222_daily_bin6.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/395429/ltcube_240883201_241142401_4FGL_J0818.2+4222_daily_bin6.fits
.....................!
real 191.49
user 185.04
sys 5.47

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/395429/ft1_filtered_4FGL_J0818.2+4222_daily_bin6.fits scfile=/scratch/kocevski/395429/ft2_4FGL_J0818.2+4222_daily_bin6.fits outfile=/scratch/kocevski/395429/cmap_240883201_241142401_4FGL_J0818.2+4222_daily_bin6.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.92
user 0.38
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395429/ft1_filtered_4FGL_J0818.2+4222_daily_bin6.fits scfile=/scratch/kocevski/395429/ft2_4FGL_J0818.2+4222_daily_bin6.fits outfile=/scratch/kocevski/395429/cmap_HighResolution_240883201_241142401_4FGL_J0818.2+4222_daily_bin6.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.98
user 0.38
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.019       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8316       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.811       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42615E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50400       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9488       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8969       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.081       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.146       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.089       1.0000         .10000E-03   10000.    
    21 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0598       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.409       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .78117       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16275E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77387       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1249       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5456.892     FROM MIGRAD    STATUS=CONVERGED   1377 CALLS     5112 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.164        12.297        .10285E-03   -.25423E-04
   2  Prefactor     22.024        16.828        .42679E-03    .27223E-04
   3  Prefactor     .10000E-03    23.150        .18142E-02** at limit **
   4  Prefactor     7.8267        15.857        .14328E-03    .52367E-05
   5  Prefactor     .10000E-03    9.7733        .18142E-02** at limit **
   6  norm          26.811        15.571        .77369E-04   -.17045E-04
   7  norm          .10000E-03    1.2415        .79892E-03** at limit **
   8  Prefactor     20.812        14.431        .87717E-04    .20361E-03
   9  Prefactor     .10000E-03    73.637        .14702    ** at limit **
  10  Prefactor     .49401        13.531        .24976E-02    .82765E-04
  11  norm          5.9495        5.7004        .16163E-03    .24548E-04
  12  norm          2.8971        2.4271        .98305E-04    .16769E-04
  13  norm          1.9792        .90250        .42585E-04   -.12014E-03
  14  Prefactor     .10000E-03    10.162        .18142E-02** at limit **
  15  Prefactor     10.083        17.486        .12620E-03   -.22611E-04
  16  Prefactor     .10000E-03    3.0763        .24749E-03** at limit **
  17  Prefactor     18.127        33.707        .94023E-04   -.70372E-04
  18  Prefactor     .10000E-03    4.2812        .14914E-02** at limit **
  19  Prefactor     .10000E-03    24.409        .36285E-03** at limit **
  20  norm          14.091        7.8787        .10671E-03   -.60941E-04
  21  norm          .10000E-03    3.1678        .12816E-02** at limit **
  22  Prefactor     4.0608        3.3951        .11653E-03   -.69512E-03
  23  Prefactor     .10000E-03    23.588        .18142E-02** at limit **
  24  Prefactor     39.394        44.862        .63849E-04   -.58865E-04
  25  Prefactor     .10000E-03    1.2674        .80900E-03** at limit **
  26  Prefactor     .10000E-03    43.642        .18142E-02** at limit **
  27  norm          .78136        .52212        .41851E-04   -.40137E-02
  28  Prefactor     .10006E-03    27.835        .21142E-02** at limit **
  29  Normalizat    .77378        .24495        .31644E-03   -.19846E-03
  30  Prefactor     1.1249        .18660        .21523E-03    .95079E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1643
  Prefactor  = 22.0238
  Prefactor  = 0.0001
  Prefactor  = 7.82673
  Prefactor  = 0.0001
  norm       = 26.8111
  norm       = 0.0001
  Prefactor  = 20.8119
  Prefactor  = 0.000100001
  Prefactor  = 0.494007
  norm       = 5.94952
  norm       = 2.89713
  norm       = 1.97917
  Prefactor  = 0.0001
  Prefactor  = 10.0833
  Prefactor  = 0.0001
  Prefactor  = 18.1269
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 14.0911
  norm       = 0.0001
  Prefactor  = 4.06085
  Prefactor  = 0.0001
  Prefactor  = 39.3941
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.781362
  Prefactor  = 0.00010006
  Normalizat = 0.773784
  Prefactor  = 1.12492
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.892     FROM HESSE     STATUS=OK           568 CALLS     5680 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.164        12.296        .41141E-05   -1.4929    
   2  Prefactor     22.024        16.828        .17072E-04   -1.4769    
   3  Prefactor     .10000E-03    23.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8267        15.855        .57314E-05   -1.5148    
   5  Prefactor     .10000E-03    9.7740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.811        15.571        .30948E-05   -1.4672    
   7  norm          .10000E-03    1.2416        .15978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.812        14.459        .35087E-05   -1.4795    
   9  Prefactor     .10000E-03    79.024        .14118       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .49401        13.324        .99906E-04   -1.5567    
  11  norm          5.9495        5.7001        .64653E-05   -1.5220    
  12  norm          2.8971        2.4270        .39322E-05   -1.5368    
  13  norm          1.9792        .90157        .17034E-05   -1.5427    
  14  Prefactor     .10000E-03    10.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.083        17.447        .50480E-05   -1.5073    
  16  Prefactor     .10000E-03    3.0763        .49497E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.127        33.702        .37609E-05   -1.4856    
  18  Prefactor     .10000E-03    4.2813        .29828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.410        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.091        7.8783        .42683E-05   -1.4957    
  21  norm          .10000E-03    3.1680        .25631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0608        3.3943        .46612E-05   -1.5305    
  23  Prefactor     .10000E-03    23.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     39.394        44.857        .12770E-04   -1.4452    
  25  Prefactor     .10000E-03    1.2674        .16180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    43.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .78136        .52056        .83702E-05   -1.5531    
  28  Prefactor     .10006E-03    28.095        .42283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77378        .24481        .12658E-04   -1.0105    
  30  Prefactor     1.1249        .18674        .86091E-05   -.88674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21062e-09
Minuit parameter uncertainties:
  1  12.2985
  2  16.8313
  3  2.24266e-05
  4  15.8637
  5  9.63831e-06
  6  15.5731
  7  1.04217e-06
  8  14.4619
  9  0.000479259
  10  5.13187
  11  5.70065
  12  2.42708
  13  0.901576
  14  2.4866e-05
  15  17.4561
  16  6.42353e-06
  17  33.7374
  18  9.25491e-05
  19  0.000278249
  20  7.87889
  21  1.0464e-05
  22  3.39444
  23  3.79961e-06
  24  44.8956
  25  1.24768e-05
  26  0.000804419
  27  0.520563
  28  0.00258779
  29  0.245159
  30  0.186845
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.979e+00  9.016e-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.125e+00  1.868e-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:  7.738e-01  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.01
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.88e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 5.57e-05 +/- 2.54e-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) = 5456.89085725
delta logL = 0.00117862751904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5456.89081074
delta logL = 0.00122513751376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9792       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9772       1.0000          .0000       5.0000    
     3 'Normalizat'    .77544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1244       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=   5456.891     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9788        18.280        .73659E-02    .93738E-04
   2  alpha         1.9767        3.1886        .25309        .65615E-05
   3  Normalizat    .77547        .40553        .71437E-01    .19790E-04
   4  Prefactor     1.1244        .27480        .36726E-01    .14364E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9788
  alpha      = 1.97672
  Normalizat = 0.775465
  Prefactor  = 1.12439
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.891     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9788        .84690        .42793E-04   -1.5427    
   2  alpha         1.9767        .38616        .10169E-01   -.21087    
   3  Normalizat    .77547        .22729        .31614E-03   -1.0099    
   4  Prefactor     1.1244        .18263        .21528E-03   -.88691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0783e-11
Minuit parameter uncertainties:
  1  0.846908
  2  0.38778
  3  0.227571
  4  0.182734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395429': 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) = 5456.89080993
delta logL = 0.00122595228549

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.979e+00  8.469e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.977e+00  3.878e-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.124e+00  1.827e-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:  7.755e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.01
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.98 +/- 0.39
Photon Flux (Free Index): 9.69e-08 +/- 5.57e-08
Energy Flux (Free Index): 5.65e-05 +/- 2.96e-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/395429/cmap_HighResolution_240883201_241142401_4FGL_J0818.2+4222_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.88e-08', energy_flux2='5.65e-05', photon_flux_error='4.50e-08', dlogl='1.23e-03', energy_flux='5.57e-05', photon_flux2='9.69e-08', job_status='DONE', time_completed='2021-08-29 16:46:10.964586', photon_index_error2='0.39', photon_index2='1.98', ts='18.01', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='0.77', time_epoch_completed='1630280770.96', return_code='0', job_id='395429', GAL2='1.12', EG2='0.78', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='5.57e-08', ts2='18.01', photon_index='2.00' WHERE bin_id='6' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 395429: <4FGL_J0818.2+4222_daily_bin6> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin6> 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) <bullet0240>, 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:46:11 2021
Results reported at Sun Aug 29 16:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin6 124.557 42.3819 240883201 241142401 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 :                                   816.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

