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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1185
RA = 124.557, Dec = 42.3819
tmin = 546480001, tmax = 546739201
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='402098', job_status='RUN', time_executed='2021-08-29 16:52:13.090532', time_epoch_executed='1630281133.09' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/402098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/402098/ft1_4FGL_J0818.2+4222_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/402098/ft2_4FGL_J0818.2+4222_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/402098/ft1_4FGL_J0818.2+4222_daily_bin1185.fits outfile=/scratch/kocevski/402098/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1185.fits ra=124.557 dec=42.3819 rad=12.0 tmin=546480001.0 tmax=546739201.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 9.46
user 3.63
sys 5.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/402098/ft2_4FGL_J0818.2+4222_daily_bin1185.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/402098/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1185.fits evtable="EVENTS" outfile="/scratch/kocevski/402098/ft1_filtered_4FGL_J0818.2+4222_daily_bin1185.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 6.06
user 0.31
sys 5.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/402098/ft1_filtered_4FGL_J0818.2+4222_daily_bin1185.fits" evtable="EVENTS" scfile=/scratch/kocevski/402098/ft2_4FGL_J0818.2+4222_daily_bin1185.fits sctable="SC_DATA" outfile=/scratch/kocevski/402098/ltcube_546480001_546739201_4FGL_J0818.2+4222_daily_bin1185.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/402098/ft2_4FGL_J0818.2+4222_daily_bin1185.fits
.....................!
real 17.87
user 11.32
sys 6.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/402098/ft1_filtered_4FGL_J0818.2+4222_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/402098/ft2_4FGL_J0818.2+4222_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/402098/ltcube_546480001_546739201_4FGL_J0818.2+4222_daily_bin1185.fits outfile=/scratch/kocevski/402098/expmap_546480001_546739201_4FGL_J0818.2+4222_daily_bin1185.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/402098/ltcube_546480001_546739201_4FGL_J0818.2+4222_daily_bin1185.fits
.....................!
real 198.25
user 185.38
sys 11.11

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.2+4222 @ 124.557 42.3819

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/402098/ft1_filtered_4FGL_J0818.2+4222_daily_bin1185.fits scfile=/scratch/kocevski/402098/ft2_4FGL_J0818.2+4222_daily_bin1185.fits outfile=/scratch/kocevski/402098/cmap_546480001_546739201_4FGL_J0818.2+4222_daily_bin1185.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 5.99
user 0.39
sys 5.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/402098/ft1_filtered_4FGL_J0818.2+4222_daily_bin1185.fits scfile=/scratch/kocevski/402098/ft2_4FGL_J0818.2+4222_daily_bin1185.fits outfile=/scratch/kocevski/402098/cmap_HighResolution_546480001_546739201_4FGL_J0818.2+4222_daily_bin1185.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 5.96
user 0.39
sys 5.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    108.36       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    53.563       1.0000         .10000E-03   10000.    
     7 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.765       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    36.416       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5724       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10725E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    67.012       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .16181E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5270.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    144.76       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .26193       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0909       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=   1668.401     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3915 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.537        .14799E-06** at limit **
   2  Prefactor     .10000E-03    14.550       -.16958E-06** at limit **
   3  Prefactor     .10000E-03    267.96        .57294E-06** at limit **
   4  Prefactor     108.34        160.20        .81443E-07   -.20805E-04
   5  Prefactor     .10000E-03    37.736        .78303E-06** at limit **
   6  norm          53.560        22.765       -.48156E-06   -.16282E-03
   7  norm          .10000E-03    17.428        .30835E-06** at limit **
   8  Prefactor     .10000E-03    29.745        .86575E-06** at limit **
   9  Prefactor     12.991        1259.3       -.28640E-04   -.35241E-05
  10  Prefactor     .10000E-03    8.2936        .77383E-07** at limit **
  11  norm          .10000E-03    107.12        .19070E-05** at limit **
  12  norm          36.406        51.449        .21992E-06   -.19263E-04
  13  norm          4.4428        3.0799        .14615E-07   -.64849E-03
  14  Prefactor     .10000E-03    83.323       -.58834E-06** at limit **
  15  Prefactor     .10000E-03    61.678        .64349E-06** at limit **
  16  Prefactor     1.5698        12.967        .56746E-05   -.83936E-04
  17  Prefactor     .10000E-03    248.70        .22191E-06** at limit **
  18  Prefactor     67.006        67.839       -.10378E-05   -.66139E-04
  19  Prefactor     .10019E-03    1118.9        .39429E-04** at limit **
  20  norm          .10000E-03    194.34       -.35974E-05** at limit **
  21  norm          .10000E-03    190.86       -.23580E-05** at limit **
  22  Prefactor     .10000E-03    13.706       -.31839E-06** at limit **
  23  Prefactor     5268.4        3323.3        .96184E-05   -.61865E-05
  24  Prefactor     .10000E-03    179.59       -.17449E-05** at limit **
  25  Prefactor     .10000E-03    17.063        .38586E-07** at limit **
  26  Prefactor     144.77        114.82       -.27282E-05   -.38970E-04
  27  norm          .10000E-03    1.9037       -.13598E-06** at limit **
  28  Prefactor     .10000E-03    30.144       -.33192E-06** at limit **
  29  Normalizat    .26207        .46140        .19435E-04    .19223E-04
  30  Prefactor     1.0908        .33116       -.66811E-05   -.89939E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.338
  Prefactor  = 0.0001
  norm       = 53.5597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9906
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 36.4063
  norm       = 4.44284
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.5698
  Prefactor  = 0.000100001
  Prefactor  = 67.0061
  Prefactor  = 0.000100188
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5268.4
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 144.768
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.262065
  Prefactor  = 1.09081
 **********
 **   18 **HESSE 
 **********

 FCN=   1668.401     FROM HESSE     STATUS=OK           564 CALLS     4479 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.546        .16711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.582        .15219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    267.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     108.34        159.96        .38637E-04   -1.3622    
   5  Prefactor     .10000E-03    37.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          53.560        22.822        .54804E-04   -1.4243    
   7  norm          .10000E-03    17.433        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.991        1239.4        .11212E-03   -1.4987    
  10  Prefactor     .10000E-03    8.3059        .11481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    107.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          36.406        51.453        .66412E-04   -1.4500    
  13  norm          4.4428        3.0815        .48169E-04   -1.5286    
  14  Prefactor     .10000E-03    83.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    62.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5698        13.011        .12664E-02   -1.5457    
  17  Prefactor     .10000E-03    249.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     67.006        67.621        .49029E-04   -1.4069    
  19  Prefactor     .10019E-03    1086.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    195.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    190.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.721        .14770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5268.4        3313.7        .40058E-04    .53706E-01
  24  Prefactor     .10000E-03    179.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.108        .16397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     144.77        113.34        .33490E-04   -1.3296    
  27  norm          .10000E-03    1.9079        .55013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    30.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .26207        .44993        .50364E-03   -1.2518    
  30  Prefactor     1.0908        .32590        .18891E-03   -.89761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22614e-10
Minuit parameter uncertainties:
  1  6.02438e-06
  2  8.14465e-06
  3  0.000183285
  4  160.601
  5  2.65791e-05
  6  22.8252
  7  1.71146e-05
  8  0.000139991
  9  259.521
  10  2.47639e-05
  11  0.000432594
  12  51.5153
  13  3.0816
  14  0.000964718
  15  0.000339198
  16  9.04096
  17  0.000927605
  18  67.6988
  19  0.0291326
  20  0.000330735
  21  0.000570408
  22  2.28171e-05
  23  3623.47
  24  0.000629731
  25  3.4907e-05
  26  113.507
  27  4.13179e-06
  28  6.70729e-05
  29  0.456351
  30  0.326501
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  4.443e+00  3.082e+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:  1.091e+00  3.265e-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:  2.621e-01  4.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.22e-07 +/- 1.54e-07
Energy Flux (Fixed Index): 1.25e-04 +/- 8.67e-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) = 1668.38887429
delta logL = 0.0120548503703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1668.38841064
delta logL = 0.0125184985911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4096       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0723       1.0000          .0000       5.0000    
     3 'Normalizat'    .25250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0948       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=   1668.388     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4086        3.5531        .47946E-02    .63051E-04
   2  alpha         2.0723        .63959        .17277        .28584E-05
   3  Normalizat    .25258        .46696        .11583        .18076E-04
   4  Prefactor     1.0950        .35494        .37788E-01   -.63122E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.40862
  alpha      = 2.07225
  Normalizat = 0.252583
  Prefactor  = 1.09501
 **********
 **   18 **HESSE 
 **********

 FCN=   1668.388     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4086        2.6361        .47567E-04   -1.5288    
   2  alpha         2.0723        .48420        .73889E-02   -.17195    
   3  Normalizat    .25258        .41969        .51254E-03   -1.2579    
   4  Prefactor     1.0950        .31915        .18855E-03   -.89626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4218e-12
Minuit parameter uncertainties:
  1  2.63616
  2  0.487378
  3  0.425078
  4  0.319704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/402098': 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) = 1668.38840892
delta logL = 0.012520223336

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  4.409e+00  2.636e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.072e+00  4.874e-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:  1.095e+00  3.197e-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:  2.526e-01  4.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.07 +/- 0.49
Photon Flux (Free Index): 2.38e-07 +/- 1.72e-07
Energy Flux (Free Index): 1.18e-04 +/- 8.13e-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/402098/cmap_HighResolution_546480001_546739201_4FGL_J0818.2+4222_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.22e-07', energy_flux2='1.18e-04', photon_flux_error='1.54e-07', dlogl='1.25e-02', energy_flux='1.25e-04', photon_flux2='2.38e-07', job_status='DONE', time_completed='2021-08-29 17:00:57.580027', photon_index_error2='0.49', photon_index2='2.07', ts='4.52', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='8.13e-05', EG='0.26', time_epoch_completed='1630281657.58', return_code='0', job_id='402098', GAL2='1.10', EG2='0.25', return_code2='0', energy_flux_error='8.67e-05', photon_flux_error2='1.72e-07', ts2='4.52', photon_index='2.00' WHERE bin_id='1185' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 402098: <4FGL_J0818.2+4222_daily_bin1185> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1185 124.557 42.3819 546480001 546739201 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 :                                   607.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            629 sec.

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

