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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin319
RA = 124.557, Dec = 42.3819
tmin = 322012801, tmax = 322272001
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='395853', job_status='RUN', time_executed='2021-08-29 16:33:13.782478', time_epoch_executed='1630279993.78' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395853/ft1_4FGL_J0818.2+4222_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395853/ft2_4FGL_J0818.2+4222_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395853/ft1_4FGL_J0818.2+4222_daily_bin319.fits outfile=/scratch/kocevski/395853/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin319.fits ra=124.557 dec=42.3819 rad=12.0 tmin=322012801.0 tmax=322272001.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.46
user 3.16
sys 2.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395853/ft1_filtered_4FGL_J0818.2+4222_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/395853/ft2_4FGL_J0818.2+4222_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/395853/ltcube_322012801_322272001_4FGL_J0818.2+4222_daily_bin319.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/395853/ft2_4FGL_J0818.2+4222_daily_bin319.fits
.....................!
real 14.69
user 11.31
sys 3.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395853/ft1_filtered_4FGL_J0818.2+4222_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/395853/ft2_4FGL_J0818.2+4222_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/395853/ltcube_322012801_322272001_4FGL_J0818.2+4222_daily_bin319.fits outfile=/scratch/kocevski/395853/expmap_322012801_322272001_4FGL_J0818.2+4222_daily_bin319.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/395853/ltcube_322012801_322272001_4FGL_J0818.2+4222_daily_bin319.fits
.....................!
real 194.97
user 186.25
sys 7.11

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/395853/ft1_filtered_4FGL_J0818.2+4222_daily_bin319.fits scfile=/scratch/kocevski/395853/ft2_4FGL_J0818.2+4222_daily_bin319.fits outfile=/scratch/kocevski/395853/cmap_322012801_322272001_4FGL_J0818.2+4222_daily_bin319.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.45
user 0.36
sys 2.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395853/ft1_filtered_4FGL_J0818.2+4222_daily_bin319.fits scfile=/scratch/kocevski/395853/ft2_4FGL_J0818.2+4222_daily_bin319.fits outfile=/scratch/kocevski/395853/cmap_HighResolution_322012801_322272001_4FGL_J0818.2+4222_daily_bin319.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.42
user 0.37
sys 2.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9420       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.014       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6971       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7808       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10818E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9527       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3741       1.0000         .10000E-03   10000.    
    13 'norm      '    .92455       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6954       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10626E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.2434       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .46912E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    173.18       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.222       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.9555       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87800       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=   7305.880     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4072 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2699        .87263E-08** at limit **
   2  Prefactor     6.9393        15.952        .68870E-06    .11504E-04
   3  Prefactor     27.541        33.097       -.11921E-05   -.15290E-03
   4  Prefactor     4.3892        7.5921        .30521E-06    .21025E-05
   5  Prefactor     .10000E-03    6.0348       -.36059E-08** at limit **
   6  norm          17.013        13.143        .11434E-06   -.15664E-04
   7  norm          2.6972        2.0313        .19069E-07   -.22884E-04
   8  Prefactor     6.7812        7.6519        .12874E-06   -.66671E-04
   9  Prefactor     .10000E-03    16.477        .13983E-08** at limit **
  10  Prefactor     .10121E-03    2.2238        .20661E-06** at limit **
  11  norm          6.9524        5.2404        .15216E-05   -.75638E-03
  12  norm          3.3741        1.9592       -.22457E-06   -.59439E-05
  13  norm          .92464        .54686        .12046E-08   -.42038E-03
  14  Prefactor     .10000E-03    13.179        .15952E-07** at limit **
  15  Prefactor     .10000E-03    36.895       -.34575E-06** at limit **
  16  Prefactor     1.5561        2.9932        .53485E-06   -.19472E-03
  17  Prefactor     5.6837        28.931        .12672E-05    .22573E-04
  18  Prefactor     .10000E-03    3.7642        .44023E-07** at limit **
  19  Prefactor     .10000E-03    4.0924        .45451E-07** at limit **
  20  norm          .10000E-03    5.0592        .19312E-06** at limit **
  21  norm          9.2438        5.9265       -.47457E-07   -.55106E-05
  22  Prefactor     .10000E-03    1.1498       -.79976E-08** at limit **
  23  Prefactor     173.21        78.024        .30241E-05    .32914E-03
  24  Prefactor     13.219        23.700        .39457E-06    .24145E-04
  25  Prefactor     .10000E-03    2.0681        .35628E-07** at limit **
  26  Prefactor     .10000E-03    6.5805        .12881E-07** at limit **
  27  norm          .10000E-03    .49400        .70010E-08** at limit **
  28  Prefactor     7.9591        4.8359       -.15296E-08   -.61370E-04
  29  Normalizat    1.1632        .18750       -.12334E-05   -.24390E-04
  30  Prefactor     .87800        .13532        .20299E-06   -.12925E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.93934
  Prefactor  = 27.5408
  Prefactor  = 4.38921
  Prefactor  = 0.0001
  norm       = 17.0125
  norm       = 2.69721
  Prefactor  = 6.78119
  Prefactor  = 0.0001
  Prefactor  = 0.000101213
  norm       = 6.9524
  norm       = 3.37413
  norm       = 0.924645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55608
  Prefactor  = 5.68368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.24375
  Prefactor  = 0.0001
  Prefactor  = 173.208
  Prefactor  = 13.2185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.95912
  Normalizat = 1.16325
  Prefactor  = 0.878002
 **********
 **   18 **HESSE 
 **********

 FCN=   7305.880     FROM HESSE     STATUS=OK           602 CALLS     4674 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2969        .17247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9393        15.940        .15227E-03   -1.5181    
   3  Prefactor     27.541        33.496        .76278E-04   -1.4658    
   4  Prefactor     4.3892        7.5724        .19231E-03   -1.5289    
   5  Prefactor     .10000E-03    6.0486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.013        13.142        .97099E-04   -1.4883    
   7  norm          2.6972        2.0269        .10202E-03   -1.5379    
   8  Prefactor     6.7812        7.6415        .15408E-03   -1.5187    
   9  Prefactor     .10000E-03    16.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10121E-03    5.4691        .40548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9524        5.4218        .76074E-03   -1.5181    
  12  norm          3.3741        1.9660        .84160E-04   -1.5341    
  13  norm          .92464        .54037        .45714E-04   -1.5516    
  14  Prefactor     .10000E-03    13.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5561        2.9540        .19022E-03   -1.5458    
  17  Prefactor     5.6837        28.945        .16831E-03   -1.5231    
  18  Prefactor     .10000E-03    3.7741        .16188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1209        .16884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.2232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.2438        5.9289        .13182E-03   -1.5100    
  22  Prefactor     .10000E-03    7.3862        .17407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     173.21        83.073        .15331E-03   -1.3068    
  24  Prefactor     13.219        23.631        .11016E-03   -1.4981    
  25  Prefactor     .10000E-03    4.1586        .23486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.5834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.0121        .96586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.9591        4.0095        .11531E-03   -1.5144    
  29  Normalizat    1.1632        .21457        .26725E-03   -.87746    
  30  Prefactor     .87800        .15697        .23257E-03   -.96914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7442e-10
Minuit parameter uncertainties:
  1  4.67259e-06
  2  15.9495
  3  33.5187
  4  7.57406
  5  2.69004e-06
  6  13.1442
  7  2.02695
  8  7.64263
  9  3.61739e-06
  10  0.00515163
  11  5.42219
  12  1.96602
  13  0.540371
  14  6.1153e-06
  15  0.000175027
  16  2.95426
  17  25.672
  18  2.03433e-06
  19  3.20865e-06
  20  1.09265e-05
  21  5.92924
  22  8.72537e-05
  23  83.1288
  24  23.6472
  25  2.77837e-05
  26  1.26115e-06
  27  4.21959e-06
  28  4.00966
  29  0.214729
  30  0.157052
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.246e-01  5.404e-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.780e-01  1.571e-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:  1.163e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.11
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 1.52e-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) = 7305.83850073
delta logL = 0.0417759803477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7305.83678192
delta logL = 0.0434947904996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89603       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8348       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87534       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=   7305.837     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89628        15.690        .10451E-01    .12963E-03
   2  alpha         1.8348        2.6607        .40291       -.18834E-04
   3  Normalizat    1.1712        .16154        .60252E-01    .27534E-04
   4  Prefactor     .87542        .10613        .44690E-01   -.60981E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.896282
  alpha      = 1.83482
  Normalizat = 1.17125
  Prefactor  = 0.875422
 **********
 **   18 **HESSE 
 **********

 FCN=   7305.837     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89628        .55018        .46438E-04   -1.5519    
   2  alpha         1.8348        .53712        .14389E-01   -.26932    
   3  Normalizat    1.1712        .20060        .26648E-03   -.87496    
   4  Prefactor     .87542        .15393        .23289E-03   -.97005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30135e-12
Minuit parameter uncertainties:
  1  0.550185
  2  0.541666
  3  0.200734
  4  0.154005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395853': 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) = 7305.83678133
delta logL = 0.0434953838285

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.963e-01  5.502e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.835e+00  5.417e-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.754e-01  1.540e-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:  1.171e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.83 +/- 0.54
Photon Flux (Free Index): 3.85e-08 +/- 3.33e-08
Energy Flux (Free Index): 2.94e-05 +/- 2.24e-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/395853/cmap_HighResolution_322012801_322272001_4FGL_J0818.2+4222_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='2.94e-05', photon_flux_error='2.70e-08', dlogl='4.35e-02', energy_flux='2.60e-05', photon_flux2='3.85e-08', job_status='DONE', time_completed='2021-08-29 16:48:28.246336', photon_index_error2='0.54', photon_index2='1.83', ts='9.11', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='1.16', time_epoch_completed='1630280908.25', return_code='0', job_id='395853', GAL2='0.88', EG2='1.17', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.33e-08', ts2='9.18', photon_index='2.00' WHERE bin_id='319' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:48:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 395853: <4FGL_J0818.2+4222_daily_bin319> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin319> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 16:32:07 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:32:08 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:32:08 2021
Terminated at Sun Aug 29 16:48:29 2021
Results reported at Sun Aug 29 16:48:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin319 124.557 42.3819 322012801 322272001 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 :                                   940.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

