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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1404
RA = 124.557, Dec = 42.3819
tmin = 603244801, tmax = 603504001
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='404845', job_status='RUN', time_executed='2021-08-29 16:59:54.999938', time_epoch_executed='1630281595.0' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404845/ft1_4FGL_J0818.2+4222_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404845/ft2_4FGL_J0818.2+4222_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404845/ft1_4FGL_J0818.2+4222_daily_bin1404.fits outfile=/scratch/kocevski/404845/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1404.fits ra=124.557 dec=42.3819 rad=12.0 tmin=603244801.0 tmax=603504001.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.37
user 2.64
sys 2.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404845/ft1_filtered_4FGL_J0818.2+4222_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/404845/ft2_4FGL_J0818.2+4222_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/404845/ltcube_603244801_603504001_4FGL_J0818.2+4222_daily_bin1404.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/404845/ft2_4FGL_J0818.2+4222_daily_bin1404.fits
.....................!
real 16.73
user 13.50
sys 3.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404845/ft1_filtered_4FGL_J0818.2+4222_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/404845/ft2_4FGL_J0818.2+4222_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/404845/ltcube_603244801_603504001_4FGL_J0818.2+4222_daily_bin1404.fits outfile=/scratch/kocevski/404845/expmap_603244801_603504001_4FGL_J0818.2+4222_daily_bin1404.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/404845/ltcube_603244801_603504001_4FGL_J0818.2+4222_daily_bin1404.fits
.....................!
real 195.06
user 185.78
sys 8.13

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/404845/ft1_filtered_4FGL_J0818.2+4222_daily_bin1404.fits scfile=/scratch/kocevski/404845/ft2_4FGL_J0818.2+4222_daily_bin1404.fits outfile=/scratch/kocevski/404845/cmap_603244801_603504001_4FGL_J0818.2+4222_daily_bin1404.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.97
user 0.37
sys 2.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404845/ft1_filtered_4FGL_J0818.2+4222_daily_bin1404.fits scfile=/scratch/kocevski/404845/ft2_4FGL_J0818.2+4222_daily_bin1404.fits outfile=/scratch/kocevski/404845/cmap_HighResolution_603244801_603504001_4FGL_J0818.2+4222_daily_bin1404.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.99
user 0.39
sys 2.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.249       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.012       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53490       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7744       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.629       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12930E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.949       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3434.8       1.0000         .10000E-03   10000.    
    23 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    26 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    27 'norm      '    10000.       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96634       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=   997.1117     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     5243 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.246        13.987        .61193E-06   -.54583E-05
   2  Prefactor     .10000E-03    41.550        .28020E-06** at limit **
   3  Prefactor     38.995        59.567        .34254E-05   -.40218E-04
   4  Prefactor     .56932        64.193       -.18651E-05   -.49745E-04
   5  Prefactor     .10000E-03    21.196       -.16814E-06** at limit **
   6  norm          .10000E-03    15.280        .32312E-08** at limit **
   7  norm          .10000E-03    2.4205       -.91992E-07** at limit **
   8  Prefactor     2.7755        40.699        .23523E-05   -.11533E-04
   9  Prefactor     .10000E-03    213.25       -.18685E-06** at limit **
  10  Prefactor     16.627        20.891        .34106E-07    .12768E-03
  11  norm          .10000E-03    17.323       -.81437E-06** at limit **
  12  norm          .10211E-03    4.4283       -.34079E-06** at limit **
  13  norm          3.3795        2.8286       -.10323E-06    .33161E-03
  14  Prefactor     64.964        195.26       -.25603E-06    .31047E-04
  15  Prefactor     .10000E-03    85.052       -.54384E-07** at limit **
  16  Prefactor     .10000E-03    10.691       -.94129E-08** at limit **
  17  Prefactor     .10000E-03    131.28        .13913E-06** at limit **
  18  Prefactor     .10000E-03    54.932        .30163E-07** at limit **
  19  Prefactor     .10000E-03    65.741       -.40258E-06** at limit **
  20  norm          .10000E-03    67.884       -.48330E-06** at limit **
  21  norm          .10000E-03    90.259       -.76907E-06** at limit **
  22  Prefactor     3431.4        2857.0        .14377E-04    .37082E-05
  23  Prefactor    10000.0        9243.7        .53377E-05** at limit **
  24  Prefactor    10000.0        8992.2        .41705E-05** at limit **
  25  Prefactor    10000.0        1557.5        .28242E-05** at limit **
  26  Prefactor    10000.0        9995.2        .48763E-05** at limit **
  27  norm         10000.0        380.55        .67676E-06** at limit **
  28  Prefactor    10000.0        1445.4        .27931E-05** at limit **
  29  Normalizat    .10000E-01    .27664       -.29469E-04** at limit **
  30  Prefactor     .96649        .19201        .40508E-05    .29172E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2463
  Prefactor  = 0.0001
  Prefactor  = 38.9947
  Prefactor  = 0.569319
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.77552
  Prefactor  = 0.0001
  Prefactor  = 16.6274
  norm       = 0.000100001
  norm       = 0.000102113
  norm       = 3.37954
  Prefactor  = 64.9642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3431.41
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.966489
 **********
 **   18 **HESSE 
 **********

 FCN=   997.1117     FROM HESSE     STATUS=OK           580 CALLS     5823 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.246        14.126        .62581E-03   -1.5068    
   2  Prefactor     .10000E-03    41.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.995        59.869        .64172E-04   -1.4458    
   4  Prefactor     .56932        299.63        .42735E-02   -1.5557    
   5  Prefactor     .10000E-03    21.205        .14203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.284        .12060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4234        .47966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7755        40.521        .24432E-03   -1.5375    
   9  Prefactor     .10000E-03    213.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.627        20.921        .49109E-03   -1.4892    
  11  norm          .10000E-03    17.870        .25496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10211E-03    12.748        .23359E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3795        2.8294        .46954E-04   -1.5340    
  14  Prefactor     64.964        195.48        .49797E-04   -1.4094    
  15  Prefactor     .10000E-03    85.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.692        .10087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    131.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    65.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    67.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    90.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3431.4        2874.0        .42117E-04   -.31911    
  23  Prefactor    10000.0        9248.3        .19425E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        8992.7        .18155E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        1556.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        9995.1        .18199E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm         10000.0        380.64        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor    10000.0        1444.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .38120        .99056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .96649        .20635        .17347E-03   -.93855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02676e-09
Minuit parameter uncertainties:
  1  14.1303
  2  0.000132319
  3  59.9619
  4  26.2526
  5  2.56391e-06
  6  5.39719e-06
  7  3.90586e-06
  8  21.2269
  9  0.000163851
  10  20.9297
  11  0.000219151
  12  0.0103827
  13  2.82953
  14  197.459
  15  0.000146783
  16  1.59526e-06
  17  0.00025584
  18  0.000127116
  19  0.000146748
  20  0.000153458
  21  0.000258915
  22  3086.94
  23  0.0192475
  24  0.0821957
  25  0.0104653
  26  0.0731934
  27  0.000457249
  28  0.0095987
  29  1.02266e-05
  30  0.206518
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  3.380e+00  2.830e+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

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.665e-01  2.065e-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.000e-02  1.023e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.67
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.69e-07 +/- 1.41e-07
Energy Flux (Fixed Index): 9.50e-05 +/- 7.96e-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) = 995.46027938
delta logL = 1.65144276457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 995.322786855
delta logL = 1.78893528987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8457       1.0000         .10000E-03   10000.    
     2 'alpha     '    .89422       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97394       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=   995.3228     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8467        1.9801        .76739E-02   -.26468E-04
   2  alpha         .89438        .46114        .13429       -.56012E-05
   3  Normalizat    .10000E-01    .33240        .19881    ** at limit **
   4  Prefactor     .97392        .18816        .45941E-01    .23601E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84667
  alpha      = 0.894385
  Normalizat = 0.01
  Prefactor  = 0.973924
 **********
 **   18 **HESSE 
 **********

 FCN=   995.3228     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .75E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8467        2.3795        .35383E-04   -1.5436    
   2  alpha         .89438        .55267        .59041E-03   -.69742    
   3  Normalizat    .10000E-01    .39357        .99988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97392        .16662        .17295E-03   -.93604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45479e-14
Minuit parameter uncertainties:
  1  2.37963
  2  0.560635
  3  1.38211e-07
  4  0.166712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404845': 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) = 995.322785698
delta logL = 1.78893644626

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.847e+00  2.380e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  8.944e-01  5.606e-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.739e-01  1.667e-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.000e-02  1.382e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.23
Ra Dec: 124.557 42.382
Photon Index (Free Index): 0.89 +/- 0.56
Photon Flux (Free Index): 7.39e-08 +/- 6.92e-08
Energy Flux (Free Index): 6.19e-04 +/- 7.94e-04

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/404845/cmap_HighResolution_603244801_603504001_4FGL_J0818.2+4222_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.69e-07', energy_flux2='6.19e-04', photon_flux_error='1.41e-07', dlogl='1.79e+00', energy_flux='9.50e-05', photon_flux2='7.39e-08', job_status='DONE', time_completed='2021-08-29 17:07:37.585890', photon_index_error2='0.56', photon_index2='0.89', ts='11.67', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='7.94e-04', EG='0.01', time_epoch_completed='1630282057.59', return_code='0', job_id='404845', GAL2='0.97', EG2='0.01', return_code2='0', energy_flux_error='7.96e-05', photon_flux_error2='6.92e-08', ts2='15.23', photon_index='2.00' WHERE bin_id='1404' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:07:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 404845: <4FGL_J0818.2+4222_daily_bin1404> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1404> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 16:55:46 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:55:49 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:55:49 2021
Terminated at Sun Aug 29 17:07:38 2021
Results reported at Sun Aug 29 17:07:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1404 124.557 42.3819 603244801 603504001 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 :                                   496.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             198.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            712 sec.

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

