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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1029
RA = 124.557, Dec = 42.3819
tmin = 506044801, tmax = 506304001
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='400457', job_status='RUN', time_executed='2021-08-29 16:46:26.532117', time_epoch_executed='1630280786.53' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400457/ft1_4FGL_J0818.2+4222_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400457/ft2_4FGL_J0818.2+4222_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400457/ft1_4FGL_J0818.2+4222_daily_bin1029.fits outfile=/scratch/kocevski/400457/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1029.fits ra=124.557 dec=42.3819 rad=12.0 tmin=506044801.0 tmax=506304001.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.21
user 4.06
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/400457/ft2_4FGL_J0818.2+4222_daily_bin1029.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/400457/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/400457/ft1_filtered_4FGL_J0818.2+4222_daily_bin1029.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 1.73
user 0.34
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400457/ft1_filtered_4FGL_J0818.2+4222_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/400457/ft2_4FGL_J0818.2+4222_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/400457/ltcube_506044801_506304001_4FGL_J0818.2+4222_daily_bin1029.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/400457/ft2_4FGL_J0818.2+4222_daily_bin1029.fits
.....................!
real 13.08
user 11.57
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400457/ft1_filtered_4FGL_J0818.2+4222_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/400457/ft2_4FGL_J0818.2+4222_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/400457/ltcube_506044801_506304001_4FGL_J0818.2+4222_daily_bin1029.fits outfile=/scratch/kocevski/400457/expmap_506044801_506304001_4FGL_J0818.2+4222_daily_bin1029.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/400457/ltcube_506044801_506304001_4FGL_J0818.2+4222_daily_bin1029.fits
.....................!
real 190.71
user 185.33
sys 4.87

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/400457/ft1_filtered_4FGL_J0818.2+4222_daily_bin1029.fits scfile=/scratch/kocevski/400457/ft2_4FGL_J0818.2+4222_daily_bin1029.fits outfile=/scratch/kocevski/400457/cmap_506044801_506304001_4FGL_J0818.2+4222_daily_bin1029.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 1.16
user 0.36
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400457/ft1_filtered_4FGL_J0818.2+4222_daily_bin1029.fits scfile=/scratch/kocevski/400457/ft2_4FGL_J0818.2+4222_daily_bin1029.fits outfile=/scratch/kocevski/400457/cmap_HighResolution_506044801_506304001_4FGL_J0818.2+4222_daily_bin1029.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 1.18
user 0.39
sys 0.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4438       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.440       1.0000         .10000E-03   10000.    
     6 'norm      '    73.102       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2734       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.355       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2968       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3726       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2139       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5753       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14894E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0126       1.0000         .10000E-03   10000.    
    21 'norm      '    8.4226       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .90068       1.0000         .10000E-03   10000.    
    23 'Prefactor '    49.398       1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.424       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.356       1.0000         .10000E-03   10000.    
    27 'norm      '    1.0714       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2740       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0677       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79965       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=   6481.013     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3919 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4422        6.5918        .23114E-05   -.15330E-02
   2  Prefactor     .10000E-03    4.3025        .26524E-07** at limit **
   3  Prefactor     26.350        30.153        .11120E-05    .49595E-04
   4  Prefactor     .10000E-03    6.1014       -.22515E-07** at limit **
   5  Prefactor     10.442        18.209        .77639E-06    .18244E-05
   6  norm          73.099        20.413       -.13781E-06   -.10810E-03
   7  norm          3.2735        2.3714        .28065E-07   -.17030E-04
   8  Prefactor     .10000E-03    6.8626        .44312E-07** at limit **
   9  Prefactor     19.351        38.617       -.26832E-05   -.86806E-04
  10  Prefactor     .10000E-03    2.4272        .17545E-07** at limit **
  11  norm          1.2958        6.1368        .98538E-06   -.37654E-03
  12  norm          2.3730        2.2397       -.13105E-06   -.13282E-03
  13  norm          1.2140        .56695        .12689E-07   -.44315E-04
  14  Prefactor     .10000E-03    55.939        .39893E-06** at limit **
  15  Prefactor     2.5760        8.6978        .12369E-06   -.10531E-03
  16  Prefactor     .10000E-03    1.0591        .17942E-07** at limit **
  17  Prefactor     35.631        28.941        .83069E-06    .39517E-04
  18  Prefactor     .10000E-03    13.246       -.23206E-07** at limit **
  19  Prefactor     .10000E-03    2.3112        .15444E-09** at limit **
  20  norm          4.0130        3.7038        .67767E-08    .31844E-04
  21  norm          8.4231        5.5292       -.66114E-07   -.20031E-04
  22  Prefactor     .89780        1.7779        .13187E-06   -.41572E-03
  23  Prefactor     49.412        46.944        .76979E-05    .31599E-03
  24  Prefactor     36.434        48.630        .61271E-05    .20469E-03
  25  Prefactor     .10000E-03    2.3073        .17521E-07** at limit **
  26  Prefactor     17.361        22.530       -.43660E-06    .10163E-03
  27  norm          1.0719        .67716        .16129E-07   -.19706E-03
  28  Prefactor     4.2732        4.9035       -.49532E-07   -.13448E-03
  29  Normalizat    1.0677        .18512       -.11645E-05    .23885E-04
  30  Prefactor     .79968        .13638       -.68948E-07   -.61076E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.44224
  Prefactor  = 0.0001
  Prefactor  = 26.3497
  Prefactor  = 0.0001
  Prefactor  = 10.4419
  norm       = 73.0993
  norm       = 3.27351
  Prefactor  = 0.0001
  Prefactor  = 19.3506
  Prefactor  = 0.0001
  norm       = 1.29582
  norm       = 2.37304
  norm       = 1.21396
  Prefactor  = 0.0001
  Prefactor  = 2.57602
  Prefactor  = 0.0001
  Prefactor  = 35.6307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01298
  norm       = 8.42307
  Prefactor  = 0.897798
  Prefactor  = 49.4116
  Prefactor  = 36.434
  Prefactor  = 0.0001
  Prefactor  = 17.3612
  norm       = 1.07188
  Prefactor  = 4.2732
  Normalizat = 1.06775
  Prefactor  = 0.799677
 **********
 **   18 **HESSE 
 **********

 FCN=   6481.013     FROM HESSE     STATUS=OK           594 CALLS     4513 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4422        8.9914        .95512E-03   -1.5286    
   2  Prefactor     .10000E-03    4.3110        .16308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.350        30.169        .78044E-04   -1.4681    
   4  Prefactor     .10000E-03    6.1190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.442        18.188        .12400E-03   -1.5062    
   6  norm          73.099        20.452        .46957E-04   -1.3996    
   7  norm          3.2735        2.3707        .10198E-03   -1.5346    
   8  Prefactor     .10000E-03    6.9133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.351        38.818        .91041E-04   -1.4828    
  10  Prefactor     .10000E-03    2.4587        .12239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2958        5.9703        .32769E-03   -1.5480    
  12  norm          2.3730        2.1577        .95174E-04   -1.5400    
  13  norm          1.2140        .56923        .39155E-04   -1.5488    
  14  Prefactor     .10000E-03    56.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5760        8.6776        .25433E-03   -1.5387    
  16  Prefactor     .10000E-03    1.0759        .80800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.631        28.872        .67138E-04   -1.4513    
  18  Prefactor     .10000E-03    13.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3132        .11952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0130        3.7039        .14412E-03   -1.5307    
  21  norm          8.4231        5.5347        .13813E-03   -1.5127    
  22  Prefactor     .89780        1.4734        .14439E-02   -1.5518    
  23  Prefactor     49.412        48.053        .57056E-04   -1.4301    
  24  Prefactor     36.434        49.052        .66405E-04   -1.4500    
  25  Prefactor     .10000E-03    2.3987        .23837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.361        22.542        .96138E-04   -1.4874    
  27  norm          1.0719        .72003        .42451E-04   -1.5501    
  28  Prefactor     4.2732        5.2542        .15120E-03   -1.5295    
  29  Normalizat    1.0677        .21291        .26221E-03   -.90794    
  30  Prefactor     .79968        .15755        .23126E-03   -.99740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40793e-09
Minuit parameter uncertainties:
  1  8.99411
  2  3.44665e-06
  3  30.1864
  4  2.92796e-06
  5  18.1979
  6  20.4542
  7  2.37075
  8  3.71591e-05
  9  38.8682
  10  6.09096e-06
  11  5.56361
  12  2.15773
  13  0.569236
  14  0.000112472
  15  8.68181
  16  1.61266e-06
  17  28.8833
  18  2.60553e-05
  19  2.5184e-07
  20  3.70412
  21  5.53501
  22  1.4735
  23  48.0911
  24  49.1064
  25  1.07129e-05
  26  22.5532
  27  0.720036
  28  5.25477
  29  0.213079
  30  0.157642
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.214e+00  5.692e-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.997e-01  1.576e-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.068e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.47
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 3.41e-05 +/- 1.60e-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) = 6478.74727873
delta logL = 2.26561265661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6478.69278553
delta logL = 2.32010585192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47671       1.0000         .10000E-03   10000.    
     2 'alpha     '    .99410       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80481       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=   6478.693     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      219 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47668        .33659        .69055E-02    .33176E-03
   2  alpha         .99406        .31439        .22228       -.76760E-04
   3  Normalizat    1.0917        .17239        .58763E-01    .24787E-04
   4  Prefactor     .80481        .13440        .43780E-01   -.40023E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.47668
  alpha      = 0.99406
  Normalizat = 1.09165
  Prefactor  = 0.804808
 **********
 **   18 **HESSE 
 **********

 FCN=   6478.693     FROM HESSE     STATUS=OK            35 CALLS      254 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47668        .52658        .29591E-03   -1.5570    
   2  alpha         .99406        .48553        .96092E-02   -.64647    
   3  Normalizat    1.0917        .19754        .25987E-03   -.90020    
   4  Prefactor     .80481        .15424        .23101E-03   -.99551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23129e-11
Minuit parameter uncertainties:
  1  0.526587
  2  0.490449
  3  0.197672
  4  0.154326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400457': 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) = 6478.69278553
delta logL = 2.32010585529

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  4.767e-01  5.266e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  9.941e-01  4.904e-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.048e-01  1.543e-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.092e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.09
Ra Dec: 124.557 42.382
Photon Index (Free Index): 0.99 +/- 0.49
Photon Flux (Free Index): 1.75e-08 +/- 1.42e-08
Energy Flux (Free Index): 1.14e-04 +/- 9.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/400457/cmap_HighResolution_506044801_506304001_4FGL_J0818.2+4222_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='1.14e-04', photon_flux_error='2.84e-08', dlogl='2.32e+00', energy_flux='3.41e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-08-29 17:00:25.927908', photon_index_error2='0.49', photon_index2='0.99', ts='27.47', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='9.95e-05', EG='1.07', time_epoch_completed='1630281625.93', return_code='0', job_id='400457', GAL2='0.80', EG2='1.09', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='1.42e-08', ts2='32.09', photon_index='2.00' WHERE bin_id='1029' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:00:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 400457: <4FGL_J0818.2+4222_daily_bin1029> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1029> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 16:45:58 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:45:59 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:45:59 2021
Terminated at Sun Aug 29 17:00:26 2021
Results reported at Sun Aug 29 17:00:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1029 124.557 42.3819 506044801 506304001 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 :                                   843.27 sec.
    Max Memory :                                 1049 MB
    Average Memory :                             294.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            868 sec.

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

