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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1385
RA = 124.557, Dec = 42.3819
tmin = 598320001, tmax = 598579201
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='404817', job_status='RUN', time_executed='2021-08-29 17:00:12.580261', time_epoch_executed='1630281612.58' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404817/ft1_4FGL_J0818.2+4222_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404817/ft2_4FGL_J0818.2+4222_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404817/ft1_4FGL_J0818.2+4222_daily_bin1385.fits outfile=/scratch/kocevski/404817/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1385.fits ra=124.557 dec=42.3819 rad=12.0 tmin=598320001.0 tmax=598579201.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 10.39
user 3.09
sys 6.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404817/ft2_4FGL_J0818.2+4222_daily_bin1385.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/404817/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1385.fits evtable="EVENTS" outfile="/scratch/kocevski/404817/ft1_filtered_4FGL_J0818.2+4222_daily_bin1385.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 7.04
user 0.33
sys 6.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404817/ft1_filtered_4FGL_J0818.2+4222_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/404817/ft2_4FGL_J0818.2+4222_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/404817/ltcube_598320001_598579201_4FGL_J0818.2+4222_daily_bin1385.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/404817/ft2_4FGL_J0818.2+4222_daily_bin1385.fits
.....................!
real 20.43
user 12.89
sys 7.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404817/ft1_filtered_4FGL_J0818.2+4222_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/404817/ft2_4FGL_J0818.2+4222_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/404817/ltcube_598320001_598579201_4FGL_J0818.2+4222_daily_bin1385.fits outfile=/scratch/kocevski/404817/expmap_598320001_598579201_4FGL_J0818.2+4222_daily_bin1385.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/404817/ltcube_598320001_598579201_4FGL_J0818.2+4222_daily_bin1385.fits
.....................!
real 199.98
user 185.83
sys 13.23

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/404817/ft1_filtered_4FGL_J0818.2+4222_daily_bin1385.fits scfile=/scratch/kocevski/404817/ft2_4FGL_J0818.2+4222_daily_bin1385.fits outfile=/scratch/kocevski/404817/cmap_598320001_598579201_4FGL_J0818.2+4222_daily_bin1385.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 6.85
user 0.38
sys 6.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404817/ft1_filtered_4FGL_J0818.2+4222_daily_bin1385.fits scfile=/scratch/kocevski/404817/ft2_4FGL_J0818.2+4222_daily_bin1385.fits outfile=/scratch/kocevski/404817/cmap_HighResolution_598320001_598579201_4FGL_J0818.2+4222_daily_bin1385.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 6.79
user 0.38
sys 6.32

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.249       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1830       1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6323       1.0000         .10000E-03   10000.    
    13 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11132E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.445       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11438E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    346.63       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.956       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    57.951       1.0000         .10000E-03   10000.    
    27 'norm      '    .73568       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .28146E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .70766       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96916       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=   1228.390     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3973 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.697       -.47947E-06** at limit **
   2  Prefactor     .10000E-03    36.724       -.10315E-05** at limit **
   3  Prefactor     .10000E-03    37.730       -.30745E-06** at limit **
   4  Prefactor     49.240        44.343        .87772E-06   -.57586E-04
   5  Prefactor     .10000E-03    30.940        .84427E-06** at limit **
   6  norm          2.1075        161.42        .19793E-05   -.28435E-04
   7  norm          .10000E-03    4.7715        .17613E-06** at limit **
   8  Prefactor     .10000E-03    9.2212        .13765E-05** at limit **
   9  Prefactor     8.2638        179.23       -.93417E-05   -.42144E-04
  10  Prefactor     .10000E-03    16.047        .28549E-05** at limit **
  11  norm          .10000E-03    5.2144       -.20094E-07** at limit **
  12  norm          1.6309        3.5366        .95703E-07    .16875E-04
  13  norm          .10000E-03    1.5767        .50976E-05** at limit **
  14  Prefactor     .10000E-03    121.02        .21784E-06** at limit **
  15  Prefactor     11.495        55.825       -.11596E-04   -.47084E-03
  16  Prefactor     9.3954        13.708        .13631E-05   -.10732E-02
  17  Prefactor     .10000E-03    23.986        .73489E-06** at limit **
  18  Prefactor     .10000E-03    9.4350        .48457E-06** at limit **
  19  Prefactor     .10000E-03    40.458       -.38217E-06** at limit **
  20  norm          .10000E-03    27.887        .15302E-05** at limit **
  21  norm          .10000E-03    8.6068        .29729E-06** at limit **
  22  Prefactor     .10000E-03    3.5263        .24253E-06** at limit **
  23  Prefactor     346.74        289.33        .39014E-05    .10113E-04
  24  Prefactor     12.873        106.41       -.25503E-05   -.51354E-04
  25  Prefactor     .10000E-03    4.7818        .29534E-06** at limit **
  26  Prefactor     57.989        58.939        .15190E-05   -.10882E-04
  27  norm          .73636        1.2689       -.39470E-07   -.64994E-03
  28  Prefactor     .10000E-03    10.633        .64299E-06** at limit **
  29  Normalizat    .70669        .40507       -.15075E-04   -.36198E-03
  30  Prefactor     .97003        .30987        .67720E-05   -.61430E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.2398
  Prefactor  = 0.0001
  norm       = 2.10749
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26379
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.63089
  norm       = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 11.4954
  Prefactor  = 9.39541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 346.745
  Prefactor  = 12.8733
  Prefactor  = 0.0001
  Prefactor  = 57.9885
  norm       = 0.736364
  Prefactor  = 0.000100005
  Normalizat = 0.706691
  Prefactor  = 0.970035
 **********
 **   18 **HESSE 
 **********

 FCN=   1228.390     FROM HESSE     STATUS=OK           570 CALLS     4543 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.816        .15947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.240        44.315        .57142E-04   -1.4303    
   5  Prefactor     .10000E-03    30.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1075        162.66        .27861E-03   -1.5418    
   7  norm          .10000E-03    4.7823        .74715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2184        .10395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2638        176.71        .14087E-03   -1.5133    
  10  Prefactor     .10000E-03    16.201        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.2159        .78157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6309        3.4931        .94313E-04   -1.5453    
  13  norm          .10000E-03    1.7536        .76906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    121.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.495        58.565        .11842E-03   -1.5030    
  16  Prefactor     9.3954        13.691        .10458E-03   -1.5095    
  17  Prefactor     .10000E-03    23.991        .16774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.4362        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    28.128        .18073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.6087        .10044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5407        .64261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     346.74        288.93        .10934E-03   -1.1962    
  24  Prefactor     12.873        106.30        .11128E-03   -1.4990    
  25  Prefactor     .10000E-03    4.8955        .14952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     57.989        58.932        .52700E-04   -1.4183    
  27  norm          .73636        1.0316        .41694E-03   -1.5536    
  28  Prefactor     .10000E-03    62.115        .18348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .70669        .45304        .28953E-03   -1.0363    
  30  Prefactor     .97003        .34738        .20499E-03   -.93735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6421e-09
Minuit parameter uncertainties:
  1  4.59417e-05
  2  2.40864e-05
  3  7.49597e-05
  4  44.3447
  5  0.0001211
  6  37.1337
  7  4.21578e-06
  8  2.89231e-05
  9  76.6852
  10  3.2887e-05
  11  1.81251e-06
  12  3.49358
  13  0.000108312
  14  0.00116014
  15  51.9737
  16  13.6959
  17  7.72696e-05
  18  4.66445e-05
  19  1.00779e-05
  20  0.000200675
  21  1.41464e-05
  22  8.38179e-06
  23  290.145
  24  74.1649
  25  2.58088e-05
  26  58.9913
  27  1.03162
  28  0.00108238
  29  0.455469
  30  0.348184
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.000e-04  1.083e-04  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.700e-01  3.482e-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.067e-01  4.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 124.557 42.382
Photon Flux Upper Limit: 2.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404817/likelihoodResults_598320001_598579201_4FGL_J0818.2+4222_daily_bin1385.txt

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) = 1228.39312186
delta logL = -0.00269256965862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1228.39042828
delta logL = 1.00796137303e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11965E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0639       1.0000          .0000       5.0000    
     3 'Normalizat'    .70693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96996       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=   1227.719     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      293 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32695E-01    .34999E-01    .13741E-02   -.68661E-02
   2  alpha         4.9628        3.3804        .41972       -.31750E-04
   3  Normalizat    .56607        .37428        .72045E-01    .52977E-04
   4  Prefactor     1.0287        .30364        .45891E-01    .63211E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0326955
  alpha      = 4.96279
  Normalizat = 0.566066
  Prefactor  = 1.02866
 **********
 **   18 **HESSE 
 **********

 FCN=   1227.719     FROM HESSE     STATUS=OK            31 CALLS      324 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32695E-01    .73963E-01    .61241E-05   -1.5672    
   2  alpha         4.9628        4.9808        .36590E-01    1.3980    
   3  Normalizat    .56607        .42352        .31891E-03   -1.0944    
   4  Prefactor     1.0287        .34484        .19909E-03   -.91780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21778e-10
Minuit parameter uncertainties:
  1  0.0739633
  2  1.2621
  3  0.425976
  4  0.345585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404817': 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) = 1227.71850054
delta logL = 0.671928748599

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  3.270e-02  7.396e-02  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  4.963e+00  1.262e+00  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.029e+00  3.456e-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:  5.661e-01  4.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 124.557 42.382
Photon Index (Free Index): 4.96 +/- 1.26
Photon Flux (Free Index): 1.57e-07 +/- 1.62e-07
Energy Flux (Free Index): 2.14e-05 +/- 2.18e-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/404817/cmap_HighResolution_598320001_598579201_4FGL_J0818.2+4222_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-04', comment='SUCCESS', energy_flux2='2.14e-05', dlogl='6.72e-01', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-08-29 17:09:16.147530', photon_index_error2='1.26', photon_index2='4.96', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='2.18e-05', EG='0.71', time_epoch_completed='1630282156.15', return_code='0', job_id='404817', GAL2='1.03', EG2='0.57', return_code2='0', photon_flux_error2='1.62e-07', ts2='1.43', photon_index='2.00' WHERE bin_id='1385' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:09:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 404817: <4FGL_J0818.2+4222_daily_bin1385> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1385 124.557 42.3819 598320001 598579201 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

