/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 202 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 = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.2+4222_daily_bin57
RA = 124.557, Dec = 42.3819
tmin = 254102401, tmax = 254361601
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='395516', job_status='RUN', time_executed='2021-08-29 16:35:20.018508', time_epoch_executed='1630280120.02' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395516/ft1_4FGL_J0818.2+4222_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395516/ft2_4FGL_J0818.2+4222_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395516/ft1_4FGL_J0818.2+4222_daily_bin57.fits outfile=/scratch/kocevski/395516/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin57.fits ra=124.557 dec=42.3819 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.12
user 1.83
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395516/ft1_filtered_4FGL_J0818.2+4222_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/395516/ft2_4FGL_J0818.2+4222_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/395516/ltcube_254102401_254361601_4FGL_J0818.2+4222_daily_bin57.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/395516/ft2_4FGL_J0818.2+4222_daily_bin57.fits
.....................!
real 13.10
user 12.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395516/ft1_filtered_4FGL_J0818.2+4222_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/395516/ft2_4FGL_J0818.2+4222_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/395516/ltcube_254102401_254361601_4FGL_J0818.2+4222_daily_bin57.fits outfile=/scratch/kocevski/395516/expmap_254102401_254361601_4FGL_J0818.2+4222_daily_bin57.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/395516/ltcube_254102401_254361601_4FGL_J0818.2+4222_daily_bin57.fits
.....................!
real 190.71
user 184.96
sys 5.35

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/395516/ft1_filtered_4FGL_J0818.2+4222_daily_bin57.fits scfile=/scratch/kocevski/395516/ft2_4FGL_J0818.2+4222_daily_bin57.fits outfile=/scratch/kocevski/395516/cmap_254102401_254361601_4FGL_J0818.2+4222_daily_bin57.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395516/ft1_filtered_4FGL_J0818.2+4222_daily_bin57.fits scfile=/scratch/kocevski/395516/ft2_4FGL_J0818.2+4222_daily_bin57.fits outfile=/scratch/kocevski/395516/cmap_HighResolution_254102401_254361601_4FGL_J0818.2+4222_daily_bin57.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5962       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6364       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.090       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.0131       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8580       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9229       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6627       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.707       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.904       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4261       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14095E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.246       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.061       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1387       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1726       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12058E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.0997       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0405       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80151       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=   5731.760     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3361 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5964        7.9648       -.14646E-06   -.13317E-04
   2  Prefactor     6.6366        9.9303        .18695E-06   -.26197E-03
   3  Prefactor     .10000E-03    54.364       -.60015E-05** at limit **
   4  Prefactor     .10000E-03    4.8293        .99811E-08** at limit **
   5  Prefactor     30.089        18.318        .17161E-07    .38902E-05
   6  norm          .10000E-03    20.608        .72496E-05** at limit **
   7  norm          5.0131        3.3002        .24627E-07    .48565E-05
   8  Prefactor     .10000E-03    5.6225       -.17732E-08** at limit **
   9  Prefactor     .10000E-03    20.437       -.31405E-06** at limit **
  10  Prefactor     5.8562        6.6851        .11126E-05    .15812E-04
  11  norm          4.9229        5.0223        .33895E-06   -.14415E-04
  12  norm          .10000E-03    .67381       -.22492E-08** at limit **
  13  norm          1.6627        .77032       -.51786E-07    .81275E-04
  14  Prefactor     12.710        17.716       -.52660E-07   -.73777E-05
  15  Prefactor     13.911        17.794       -.47874E-07    .31763E-04
  16  Prefactor     2.4259        2.6517       -.58386E-07    .39900E-05
  17  Prefactor     .10000E-03    90.752       -.90692E-05** at limit **
  18  Prefactor     10.248        11.048        .68755E-07    .85638E-04
  19  Prefactor     .10000E-03    6.6476        .37554E-08** at limit **
  20  norm          15.061        8.1028       -.35630E-07    .58249E-05
  21  norm          6.1386        6.1408        .21565E-06    .41651E-05
  22  Prefactor     2.1725        2.4195       -.76483E-08   -.13757E-04
  23  Prefactor     .10000E-03    30.203       -.16772E-05** at limit **
  24  Prefactor     .10000E-03    64.999        .14119E-04** at limit **
  25  Prefactor     .10000E-03    1.9558       -.42414E-07** at limit **
  26  Prefactor     .10000E-03    20.079       -.59804E-05** at limit **
  27  norm          3.0994        1.0641       -.25651E-08    .29443E-04
  28  Prefactor     4.0429        3.4768        .25751E-06   -.11748E-02
  29  Normalizat    1.0466        .19713       -.27585E-06   -.12925E-04
  30  Prefactor     .80151        .14462       -.17067E-06   -.47217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.59636
  Prefactor  = 6.63662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0892
  norm       = 0.0001
  norm       = 5.01306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.85617
  norm       = 4.92288
  norm       = 0.0001
  norm       = 1.66267
  Prefactor  = 12.7097
  Prefactor  = 13.9107
  Prefactor  = 2.42589
  Prefactor  = 0.0001
  Prefactor  = 10.2485
  Prefactor  = 0.0001
  norm       = 15.0612
  norm       = 6.13859
  Prefactor  = 2.1725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.09943
  Prefactor  = 4.04289
  Normalizat = 1.04665
  Prefactor  = 0.801515
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.760     FROM HESSE     STATUS=OK           594 CALLS     3955 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5964        7.9720        .14550E-03   -1.5157    
   2  Prefactor     6.6366        10.096        .77885E-03   -1.5193    
   3  Prefactor     .10000E-03    54.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8357        .16246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.089        18.323        .73040E-04   -1.4610    
   6  norm          .10000E-03    20.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0131        3.2983        .10739E-03   -1.5260    
   8  Prefactor     .10000E-03    5.6645        .17525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8562        6.6599        .16593E-03   -1.5224    
  11  norm          4.9229        5.0142        .16547E-03   -1.5264    
  12  norm          .10000E-03    .67626        .60609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6627        .76666        .41354E-04   -1.5450    
  14  Prefactor     12.710        17.716        .11237E-03   -1.4995    
  15  Prefactor     13.911        17.683        .10742E-03   -1.4962    
  16  Prefactor     2.4259        2.6346        .11816E-03   -1.5396    
  17  Prefactor     .10000E-03    92.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.248        11.047        .12517E-03   -1.5068    
  19  Prefactor     .10000E-03    6.6904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.061        8.1037        .10320E-03   -1.4932    
  21  norm          6.1386        6.1380        .16204E-03   -1.5212    
  22  Prefactor     2.1725        2.4137        .11942E-03   -1.5413    
  23  Prefactor     .10000E-03    30.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    65.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.402        .20170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.0994        1.3854        .41195E-04   -1.5356    
  28  Prefactor     4.0429        9.3503        .10030E-02   -1.5306    
  29  Normalizat    1.0466        .23051        .26765E-03   -.91484    
  30  Prefactor     .80151        .16822        .22974E-03   -.99673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08929e-09
Minuit parameter uncertainties:
  1  7.9731
  2  10.099
  3  2.58714e-06
  4  1.00298e-06
  5  18.3265
  6  9.17594e-06
  7  3.29837
  8  6.90792e-06
  9  8.28272e-06
  10  6.66071
  11  5.01464
  12  7.93598e-07
  13  0.766661
  14  17.7229
  15  17.6892
  16  2.63477
  17  3.61035e-05
  18  11.0491
  19  3.77249e-07
  20  8.10424
  21  6.1386
  22  2.41378
  23  1.4432e-05
  24  0.000186046
  25  6.90653e-05
  26  4.05284e-05
  27  1.38541
  28  9.35366
  29  0.230735
  30  0.16833
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.663e+00  7.667e-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:  8.015e-01  1.683e-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.047e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.17
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 8.30e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 4.68e-05 +/- 2.16e-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) = 5731.17818492
delta logL = 0.581964948377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5731.17171225
delta logL = 0.588437618835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4516       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4720       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81994       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=   5731.172     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      236 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4516        8.5280        .78217E-02    .17094E-03
   2  alpha         2.4720        3.7356        .23285        .47940E-04
   3  Normalizat    1.0019        .10955        .46190E-01    .12242E-04
   4  Prefactor     .81993        .63969E-01    .43976E-01    .98489E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45158
  alpha      = 2.47205
  Normalizat = 1.00187
  Prefactor  = 0.819933
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.172     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4516        .72870        .34675E-04   -1.5467    
   2  alpha         2.4720        .45827        .93549E-02   -.11181E-01
   3  Normalizat    1.0019        .21968        .27218E-03   -.92968    
   4  Prefactor     .81993        .16525        .22721E-03   -.98998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02307e-12
Minuit parameter uncertainties:
  1  0.728701
  2  0.46088
  3  0.219882
  4  0.165353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395516': 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) = 5731.17171223
delta logL = 0.588437632778

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.452e+00  7.287e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.472e+00  4.609e-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.199e-01  1.654e-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.002e+00  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.35
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.47 +/- 0.46
Photon Flux (Free Index): 1.26e-07 +/- 6.22e-08
Energy Flux (Free Index): 3.82e-05 +/- 1.61e-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/395516/cmap_HighResolution_254102401_254361601_4FGL_J0818.2+4222_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.30e-08', energy_flux2='3.82e-05', photon_flux_error='3.83e-08', dlogl='5.88e-01', energy_flux='4.68e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-08-29 16:47:14.670254', photon_index_error2='0.46', photon_index2='2.47', ts='14.17', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.05', time_epoch_completed='1630280834.67', return_code='0', job_id='395516', GAL2='0.82', EG2='1.00', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='6.22e-08', ts2='15.35', photon_index='2.00' WHERE bin_id='57' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:47:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 395516: <4FGL_J0818.2+4222_daily_bin57> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin57> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 16:31:42 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:31:43 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:31:43 2021
Terminated at Sun Aug 29 16:47:15 2021
Results reported at Sun Aug 29 16:47:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin57 124.557 42.3819 254102401 254361601 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 :                                   711.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

