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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin665
RA = 124.557, Dec = 42.3819
tmin = 411696001, tmax = 411955201
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='398507', job_status='RUN', time_executed='2021-08-29 16:41:36.701233', time_epoch_executed='1630280496.7' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398507

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398507/ft1_4FGL_J0818.2+4222_daily_bin665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398507/ft2_4FGL_J0818.2+4222_daily_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398507/ft1_4FGL_J0818.2+4222_daily_bin665.fits outfile=/scratch/kocevski/398507/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin665.fits ra=124.557 dec=42.3819 rad=12.0 tmin=411696001.0 tmax=411955201.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 6.50
user 5.93
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/398507/ft1_filtered_4FGL_J0818.2+4222_daily_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/398507/ft2_4FGL_J0818.2+4222_daily_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/398507/ltcube_411696001_411955201_4FGL_J0818.2+4222_daily_bin665.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/398507/ft2_4FGL_J0818.2+4222_daily_bin665.fits
.....................!
real 12.64
user 11.92
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398507/ft1_filtered_4FGL_J0818.2+4222_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/398507/ft2_4FGL_J0818.2+4222_daily_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/398507/ltcube_411696001_411955201_4FGL_J0818.2+4222_daily_bin665.fits outfile=/scratch/kocevski/398507/expmap_411696001_411955201_4FGL_J0818.2+4222_daily_bin665.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/398507/ltcube_411696001_411955201_4FGL_J0818.2+4222_daily_bin665.fits
.....................!
real 190.98
user 185.31
sys 5.27

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/398507/ft1_filtered_4FGL_J0818.2+4222_daily_bin665.fits scfile=/scratch/kocevski/398507/ft2_4FGL_J0818.2+4222_daily_bin665.fits outfile=/scratch/kocevski/398507/cmap_411696001_411955201_4FGL_J0818.2+4222_daily_bin665.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.84
user 0.36
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398507/ft1_filtered_4FGL_J0818.2+4222_daily_bin665.fits scfile=/scratch/kocevski/398507/ft2_4FGL_J0818.2+4222_daily_bin665.fits outfile=/scratch/kocevski/398507/cmap_HighResolution_411696001_411955201_4FGL_J0818.2+4222_daily_bin665.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.87
user 0.40
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.367       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6372       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.597       1.0000         .10000E-03   10000.    
     6 'norm      '    8.9966       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.701       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2847       1.0000         .10000E-03   10000.    
    11 'norm      '    .53301       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8428       1.0000         .10000E-03   10000.    
    13 'norm      '    .73193       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.713       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    42.310       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11235E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.946       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10109E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .76839       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12794E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0899       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78776       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=   4816.585     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4028 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84215        3.9110       -.12611E-05   -.21206E-03
   2  Prefactor     .10000E-03    6.0651       -.90266E-07** at limit **
   3  Prefactor     19.368        29.308       -.11962E-07   -.32894E-06
   4  Prefactor     5.6384        9.7314       -.18414E-06   -.12006E-04
   5  Prefactor     14.597        17.584       -.19048E-06    .10287E-04
   6  norm          8.9985        11.106       -.13162E-06   -.32979E-05
   7  norm          .10000E-03    2.6811       -.20213E-06** at limit **
   8  Prefactor     7.1795        9.8241       -.16663E-06    .26663E-06
   9  Prefactor     15.713        51.524        .12564E-05   -.96760E-05
  10  Prefactor     3.2858        5.5752       -.83727E-06   -.14717E-04
  11  norm          .54530        4.5133       -.10258E-07   -.28880E-03
  12  norm          2.8412        2.5785       -.44227E-08   -.10218E-03
  13  norm          .73191        .63564        .84190E-08    .32363E-03
  14  Prefactor     28.007        31.203        .18048E-07   -.39509E-05
  15  Prefactor     5.7002        17.372       -.79935E-07   -.20816E-05
  16  Prefactor     4.4130        3.7005        .60761E-07   -.15748E-04
  17  Prefactor     .10000E-03    86.108       -.70897E-06** at limit **
  18  Prefactor     14.716        14.401       -.19576E-06   -.56839E-04
  19  Prefactor     .10000E-03    5.2668       -.60882E-07** at limit **
  20  norm          .10000E-03    11.116        .12758E-07** at limit **
  21  norm          42.310        14.816        .16716E-06   -.71470E-04
  22  Prefactor     .10000E-03    6.0668       -.15591E-05** at limit **
  23  Prefactor     64.895        119.91       -.22041E-05    .18410E-04
  24  Prefactor     .10000E-03    18.329       -.52894E-07** at limit **
  25  Prefactor     .10000E-03    1.5836       -.11985E-06** at limit **
  26  Prefactor     .10006E-03    43.517       -.38638E-05** at limit **
  27  norm          .76912        .58836        .36245E-06    .52876E-03
  28  Prefactor     .10001E-03    24.035        .28708E-05** at limit **
  29  Normalizat    1.0895        .21909       -.13895E-05    .64674E-04
  30  Prefactor     .78807        .16303        .19505E-05   -.10373E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.842149
  Prefactor  = 0.0001
  Prefactor  = 19.3678
  Prefactor  = 5.63839
  Prefactor  = 14.5972
  norm       = 8.99849
  norm       = 0.0001
  Prefactor  = 7.17946
  Prefactor  = 15.7133
  Prefactor  = 3.28578
  norm       = 0.545298
  norm       = 2.84117
  norm       = 0.731908
  Prefactor  = 28.0071
  Prefactor  = 5.70018
  Prefactor  = 4.41296
  Prefactor  = 0.0001
  Prefactor  = 14.7164
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 42.3101
  Prefactor  = 0.000100004
  Prefactor  = 64.895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  norm       = 0.769118
  Prefactor  = 0.00010001
  Normalizat = 1.08945
  Prefactor  = 0.788072
 **********
 **   18 **HESSE 
 **********

 FCN=   4816.585     FROM HESSE     STATUS=OK           602 CALLS     4630 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84215        3.8953        .27141E-03   -1.5524    
   2  Prefactor     .10000E-03    6.1000        .16692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.368        29.306        .91012E-04   -1.4828    
   4  Prefactor     5.6384        9.7108        .16919E-03   -1.5233    
   5  Prefactor     14.597        17.575        .10483E-03   -1.4944    
   6  norm          8.9985        11.108        .13363E-03   -1.5108    
   7  norm          .10000E-03    2.7493        .22183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1795        9.7800        .14970E-03   -1.5172    
   9  Prefactor     15.713        51.206        .10108E-03   -1.4915    
  10  Prefactor     3.2858        5.5500        .19374E-03   -1.5345    
  11  norm          .54530        15.688        .25635E-02   -1.5560    
  12  norm          2.8412        2.6521        .96319E-04   -1.5371    
  13  norm          .73191        .62459        .47436E-04   -1.5537    
  14  Prefactor     28.007        31.227        .75704E-04   -1.4649    
  15  Prefactor     5.7002        17.120        .16826E-03   -1.5230    
  16  Prefactor     4.4130        3.6691        .10546E-03   -1.5288    
  17  Prefactor     .10000E-03    86.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.716        14.413        .10442E-03   -1.4941    
  19  Prefactor     .10000E-03    5.2715        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          42.310        14.781        .61630E-04   -1.4406    
  22  Prefactor     .10000E-03    33.444        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.895        118.50        .49798E-04   -1.4095    
  24  Prefactor     .10000E-03    18.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.6107        .85253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10006E-03    125.78        .48564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .76912        .58864        .44912E-04   -1.5533    
  28  Prefactor     .10001E-03    38.697        .21944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0895        .23653        .25455E-03   -.90091    
  30  Prefactor     .78807        .17537        .22809E-03   -1.0017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30213e-09
Minuit parameter uncertainties:
  1  3.62255
  2  4.31342e-06
  3  29.3279
  4  9.71355
  5  17.5815
  6  11.1106
  7  8.98895e-06
  8  9.78219
  9  51.35
  10  5.55084
  11  5.85088
  12  2.65222
  13  0.624593
  14  31.2451
  15  17.1347
  16  3.6693
  17  0.000249968
  18  14.4161
  19  1.06524e-06
  20  2.48413e-05
  21  14.7819
  22  0.000696772
  23  118.938
  24  3.6019e-06
  25  1.16331e-06
  26  0.00532108
  27  0.588642
  28  0.00124475
  29  0.236759
  30  0.175497
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.319e-01  6.246e-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:  7.881e-01  1.755e-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.089e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.99
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.76e-05

TS (Fixed Index): 3.99
Ra Dec: 124.557 42.382
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/398507/likelihoodResults_411696001_411955201_4FGL_J0818.2+4222_daily_bin665.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) = 4816.56158837
delta logL = 0.0231669722634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4816.5609416
delta logL = 0.023813745498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71569       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8501       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78692       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=   4816.561     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      231 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71568        .61643        .47969E-04    .81860E-03
   2  alpha         1.8501        .65775        .14825E-01    .34850E-04
   3  Normalizat    1.0939        .22018        .25415E-03    .14672E-04
   4  Prefactor     .78691        .17118        .22827E-03   -.38697E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.715678
  alpha      = 1.85011
  Normalizat = 1.09389
  Prefactor  = 0.786914
 **********
 **   18 **HESSE 
 **********

 FCN=   4816.561     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71568        .62071        .19188E-05   -1.5539    
   2  alpha         1.8501        .66222        .59302E-03   -.26298    
   3  Normalizat    1.0939        .22032        .10166E-04   -.89948    
   4  Prefactor     .78691        .17130        .91309E-05   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74847e-10
Minuit parameter uncertainties:
  1  0.620713
  2  0.670822
  3  0.220505
  4  0.171413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398507': 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) = 4816.56094159
delta logL = 0.023813746725

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  7.157e-01  6.207e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.850e+00  6.708e-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:  7.869e-01  1.714e-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.094e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.04
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.85 +/- 0.67
Photon Flux (Free Index): 3.12e-08 +/- 3.60e-08
Energy Flux (Free Index): 2.31e-05 +/- 2.34e-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/398507/cmap_HighResolution_411696001_411955201_4FGL_J0818.2+4222_daily_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-05', comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='2.31e-05', photon_flux_error='3.12e-08', dlogl='2.38e-02', energy_flux='2.06e-05', photon_flux2='3.12e-08', job_status='DONE', time_completed='2021-08-29 16:55:07.713124', photon_index_error2='0.67', photon_index2='1.85', ts='3.99', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.34e-05', EG='1.09', time_epoch_completed='1630281307.71', return_code='0', job_id='398507', GAL2='0.79', EG2='1.09', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='3.60e-08', ts2='4.04', photon_index='2.00' WHERE bin_id='665' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:55:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 398507: <4FGL_J0818.2+4222_daily_bin665> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin665> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 16:40:59 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:41:01 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:41:01 2021
Terminated at Sun Aug 29 16:55:08 2021
Results reported at Sun Aug 29 16:55:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin665 124.557 42.3819 411696001 411955201 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 :                                   812.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

