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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1388
RA = 124.557, Dec = 42.3819
tmin = 599097601, tmax = 599356801
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='404821', job_status='RUN', time_executed='2021-08-29 16:56:12.508189', time_epoch_executed='1630281372.51' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404821/ft1_4FGL_J0818.2+4222_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404821/ft2_4FGL_J0818.2+4222_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404821/ft1_4FGL_J0818.2+4222_daily_bin1388.fits outfile=/scratch/kocevski/404821/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1388.fits ra=124.557 dec=42.3819 rad=12.0 tmin=599097601.0 tmax=599356801.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 4.01
user 2.64
sys 0.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404821/ft1_filtered_4FGL_J0818.2+4222_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/404821/ft2_4FGL_J0818.2+4222_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/404821/ltcube_599097601_599356801_4FGL_J0818.2+4222_daily_bin1388.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/404821/ft2_4FGL_J0818.2+4222_daily_bin1388.fits
.....................!
real 14.75
user 13.53
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404821/ft1_filtered_4FGL_J0818.2+4222_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/404821/ft2_4FGL_J0818.2+4222_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/404821/ltcube_599097601_599356801_4FGL_J0818.2+4222_daily_bin1388.fits outfile=/scratch/kocevski/404821/expmap_599097601_599356801_4FGL_J0818.2+4222_daily_bin1388.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/404821/ltcube_599097601_599356801_4FGL_J0818.2+4222_daily_bin1388.fits
.....................!
real 190.78
user 185.33
sys 4.85

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/404821/ft1_filtered_4FGL_J0818.2+4222_daily_bin1388.fits scfile=/scratch/kocevski/404821/ft2_4FGL_J0818.2+4222_daily_bin1388.fits outfile=/scratch/kocevski/404821/cmap_599097601_599356801_4FGL_J0818.2+4222_daily_bin1388.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.36
user 0.38
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404821/ft1_filtered_4FGL_J0818.2+4222_daily_bin1388.fits scfile=/scratch/kocevski/404821/ft2_4FGL_J0818.2+4222_daily_bin1388.fits outfile=/scratch/kocevski/404821/cmap_HighResolution_599097601_599356801_4FGL_J0818.2+4222_daily_bin1388.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.45
user 0.39
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    79.302       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    221.79       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .70709E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.998       1.0000         .10000E-03   10000.    
     6 'norm      '    .10435E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.244       1.0000         .10000E-03   10000.    
    11 'norm      '    9.0239       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3735       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0474       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0244       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.374       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1832       1.0000         .10000E-03   10000.    
    20 'norm      '    11.044       1.0000         .10000E-03   10000.    
    21 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    74.028       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11097E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .33245       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93545       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=   2286.959     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     3996 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          78.985        324.19       -.51345E-04    .18393E-04
   2  Prefactor     24.389        183.43        .13582E-04    .59028E-05
   3  Prefactor     221.40        265.55        .32825E-04    .12396E-03
   4  Prefactor     .22739E-03    105.78       -.29421E-04** at limit **
   5  Prefactor     13.966        73.908        .39014E-04    .61001E-04
   6  norm          .10000E-03    170.81       -.74866E-06** at limit **
   7  norm          .10000E-03    7.2493        .23686E-06** at limit **
   8  Prefactor     .10000E-03    13.134        .23634E-06** at limit **
   9  Prefactor     .10000E-03    46.483       -.10721E-06** at limit **
  10  Prefactor     10.245        18.535       -.10868E-05    .80165E-05
  11  norm          9.0240        8.0849        .47733E-06    .96952E-04
  12  norm          2.3737        2.4368        .25498E-06    .13603E-03
  13  norm          1.0469        1.0925       -.41482E-07    .72779E-04
  14  Prefactor     .10000E-03    37.145        .42815E-07** at limit **
  15  Prefactor     .10000E-03    19.982       -.21079E-06** at limit **
  16  Prefactor     8.0246        8.3561        .67305E-06   -.30144E-03
  17  Prefactor     19.377        52.731       -.56279E-05    .20247E-05
  18  Prefactor     .10000E-03    14.544       -.36150E-06** at limit **
  19  Prefactor     8.1831        8.6286       -.28375E-06    .17675E-04
  20  norm          11.042        9.5450       -.35804E-06    .29228E-04
  21  norm          .10000E-03    3.1745       -.38248E-07** at limit **
  22  Prefactor     .10000E-03    1.0949       -.54910E-07** at limit **
  23  Prefactor     .10000E-03    69.064        .40747E-08** at limit **
  24  Prefactor     74.006        56.314        .31398E-05    .14811E-04
  25  Prefactor     .10000E-03    2.7935        .13566E-07** at limit **
  26  Prefactor     .10000E-03    20.966        .10579E-06** at limit **
  27  norm          .33189        .42258       -.50660E-07    .31730E-03
  28  Prefactor     .10000E-03    2.8939       -.23560E-06** at limit **
  29  Normalizat    1.0852        .33018       -.26309E-05    .31693E-03
  30  Prefactor     .93517        .28338        .92775E-05    .13380E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 78.9854
  Prefactor  = 24.3893
  Prefactor  = 221.397
  Prefactor  = 0.00022739
  Prefactor  = 13.9665
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2449
  norm       = 9.02401
  norm       = 2.37373
  norm       = 1.04685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.02459
  Prefactor  = 19.3772
  Prefactor  = 0.0001
  Prefactor  = 8.18314
  norm       = 11.0423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.0057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.331894
  Prefactor  = 0.0001
  Normalizat = 1.08518
  Prefactor  = 0.935167
 **********
 **   18 **HESSE 
 **********

 FCN=   2286.959     FROM HESSE     STATUS=OK           592 CALLS     4588 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          78.985        325.99        .22549E-03   -1.3928    
   2  Prefactor     24.389        183.10        .81294E-04   -1.4720    
   3  Prefactor     221.40        314.33        .13581E-03   -1.2721    
   4  Prefactor     .22739E-03    131.75        .10623       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.966        74.226        .10706E-03   -1.4960    
   6  norm          .10000E-03    171.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.2895        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.137        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.245        18.507        .12519E-03   -1.5068    
  11  norm          9.0240        8.0741        .12242E-03   -1.5107    
  12  norm          2.3737        2.4424        .72268E-04   -1.5400    
  13  norm          1.0469        1.0619        .47311E-04   -1.5503    
  14  Prefactor     .10000E-03    37.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0246        8.3364        .63886E-03   -1.5141    
  17  Prefactor     19.377        52.929        .90995E-04   -1.4827    
  18  Prefactor     .10000E-03    14.575        .17795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.1831        8.6279        .14004E-03   -1.5136    
  20  norm          11.042        9.5648        .12055E-03   -1.5043    
  21  norm          .10000E-03    3.1819        .83194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.1038        .48845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    69.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     74.006        56.379        .23332E-03   -1.3985    
  25  Prefactor     .10000E-03    2.8343        .77957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .33189        .38741        .32175E-03   -1.5593    
  28  Prefactor     .10000E-03    3.9089        .14941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0852        .38161        .27586E-03   -.90229    
  30  Prefactor     .93517        .32607        .25718E-03   -.94923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39001e-09
Minuit parameter uncertainties:
  1  324.017
  2  134.229
  3  316.776
  4  0.259675
  5  64.5198
  6  0.00117506
  7  1.37138e-05
  8  0.000118695
  9  0.000140699
  10  18.5175
  11  8.07509
  12  2.44247
  13  1.06194
  14  3.96352e-05
  15  1.9544e-05
  16  8.33765
  17  53.0573
  18  4.07981e-05
  19  8.62924
  20  9.56614
  21  6.54163e-06
  22  3.24207e-06
  23  0.000157737
  24  56.4195
  25  2.80785e-05
  26  9.15338e-05
  27  0.38741
  28  1.60114e-05
  29  0.382588
  30  0.326757
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.047e+00  1.062e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.352e-01  3.268e-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.085e+00  3.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.23e-08 +/- 5.30e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 2.99e-05

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

Saving results to:
/scratch/kocevski/404821/likelihoodResults_599097601_599356801_4FGL_J0818.2+4222_daily_bin1388.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) = 2286.10927219
delta logL = 0.849714267445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2286.0760544
delta logL = 0.882932052058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55231       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5042       1.0000          .0000       5.0000    
     3 'Normalizat'    .95326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99601       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=   2286.076     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55116        7.4475        .49916E-02    .14488E-02
   2  alpha         3.5069        4.1844        .22420        .49358E-04
   3  Normalizat    .95370        .14094        .65700E-01   -.83679E-05
   4  Prefactor     .99577        .10339        .46217E-01   -.73406E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.551159
  alpha      = 3.50685
  Normalizat = 0.953703
  Prefactor  = 0.995775
 **********
 **   18 **HESSE 
 **********

 FCN=   2286.076     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55116        1.0633        .22262E-04   -1.5559    
   2  alpha         3.5069        1.4155        .94132E-02    .41451    
   3  Normalizat    .95370        .38884        .29061E-03   -.94598    
   4  Prefactor     .99577        .32682        .24934E-03   -.92870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04261e-11
Minuit parameter uncertainties:
  1  1.06335
  2  1.52609
  3  0.389997
  4  0.327473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404821': 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) = 2286.07604768
delta logL = 0.882938772017

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.512e-01  1.063e+00  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  3.507e+00  1.526e+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:  9.958e-01  3.275e-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:  9.537e-01  3.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 124.557 42.382
Photon Index (Free Index): 3.51 +/- 1.53
Photon Flux (Free Index): 2.22e-07 +/- 2.04e-07
Energy Flux (Free Index): 3.86e-05 +/- 2.68e-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/404821/cmap_HighResolution_599097601_599356801_4FGL_J0818.2+4222_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-04', comment='SUCCESS', photon_flux='5.23e-08', energy_flux2='3.86e-05', photon_flux_error='5.30e-08', dlogl='8.83e-01', energy_flux='2.94e-05', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-08-29 17:05:21.568582', photon_index_error2='1.53', photon_index2='3.51', ts='1.93', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='2.68e-05', EG='1.09', time_epoch_completed='1630281921.57', return_code='0', job_id='404821', GAL2='1.00', EG2='0.95', return_code2='0', energy_flux_error='2.99e-05', photon_flux_error2='2.04e-07', ts2='3.73', photon_index='2.00' WHERE bin_id='1388' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:05:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 404821: <4FGL_J0818.2+4222_daily_bin1388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1388 124.557 42.3819 599097601 599356801 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 :                                   555.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            578 sec.

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

