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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin42
RA = 124.557, Dec = 42.3819
tmin = 250214401, tmax = 250473601
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='395495', job_status='RUN', time_executed='2021-08-29 16:35:44.808719', time_epoch_executed='1630280144.81' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395495

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395495/ft1_4FGL_J0818.2+4222_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395495/ft2_4FGL_J0818.2+4222_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395495/ft1_4FGL_J0818.2+4222_daily_bin42.fits outfile=/scratch/kocevski/395495/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin42.fits ra=124.557 dec=42.3819 rad=12.0 tmin=250214401.0 tmax=250473601.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 3.09
user 1.22
sys 1.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395495/ft2_4FGL_J0818.2+4222_daily_bin42.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/395495/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin42.fits evtable="EVENTS" outfile="/scratch/kocevski/395495/ft1_filtered_4FGL_J0818.2+4222_daily_bin42.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 2.26
user 0.33
sys 1.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395495/ft1_filtered_4FGL_J0818.2+4222_daily_bin42.fits" evtable="EVENTS" scfile=/scratch/kocevski/395495/ft2_4FGL_J0818.2+4222_daily_bin42.fits sctable="SC_DATA" outfile=/scratch/kocevski/395495/ltcube_250214401_250473601_4FGL_J0818.2+4222_daily_bin42.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/395495/ft2_4FGL_J0818.2+4222_daily_bin42.fits
.....................!
real 15.23
user 12.98
sys 2.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395495/ft1_filtered_4FGL_J0818.2+4222_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/395495/ft2_4FGL_J0818.2+4222_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/395495/ltcube_250214401_250473601_4FGL_J0818.2+4222_daily_bin42.fits outfile=/scratch/kocevski/395495/expmap_250214401_250473601_4FGL_J0818.2+4222_daily_bin42.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/395495/ltcube_250214401_250473601_4FGL_J0818.2+4222_daily_bin42.fits
.....................!
real 195.26
user 186.93
sys 7.49

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/395495/ft1_filtered_4FGL_J0818.2+4222_daily_bin42.fits scfile=/scratch/kocevski/395495/ft2_4FGL_J0818.2+4222_daily_bin42.fits outfile=/scratch/kocevski/395495/cmap_250214401_250473601_4FGL_J0818.2+4222_daily_bin42.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 2.21
user 0.37
sys 1.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395495/ft1_filtered_4FGL_J0818.2+4222_daily_bin42.fits scfile=/scratch/kocevski/395495/ft2_4FGL_J0818.2+4222_daily_bin42.fits outfile=/scratch/kocevski/395495/cmap_HighResolution_250214401_250473601_4FGL_J0818.2+4222_daily_bin42.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 2.23
user 0.37
sys 1.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    13.450       1.0000         .10000E-03   10000.    
     3 'Prefactor '    83.135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18552       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11811E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0449       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5951       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0283       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4666       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6946       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0077       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.799       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0968       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8259       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5332       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.8041       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88062       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5118.828     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     3305 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0330       -.42847E-07** at limit **
   2  Prefactor     13.439        12.770        .18691E-05    .13649E-01
   3  Prefactor     83.279        38.645        .22393E-05   -.11038E-01
   4  Prefactor     .11549E-03    822.90        .15492E-04** at limit **
   5  Prefactor     .10001E-03    7.2445        .14633E-05** at limit **
   6  norm          .10007E-03    48.705        .66262E-05** at limit **
   7  norm          .10000E-03    1.2292        .22111E-06** at limit **
   8  Prefactor     9.0459        1.0381       -.35989E-08   -.15024E-02
   9  Prefactor     .10009E-03    24.052       -.27001E-05** at limit **
  10  Prefactor     2.5924        1.2395        .15739E-06   -.17728E-02
  11  norm          4.0288        4.0504        .20765E-07    .42200E-04
  12  norm          1.4669        1.5071        .22349E-06    .24028E-03
  13  norm          1.6945        .76955       -.32079E-08    .23256E-03
  14  Prefactor     .10000E-03    7.5444        .21525E-05** at limit **
  15  Prefactor     .10000E-03    11.269        .10216E-05** at limit **
  16  Prefactor     5.0070        3.4447        .22934E-07    .39252E-03
  17  Prefactor     .10000E-03    9.9226       -.22745E-06** at limit **
  18  Prefactor     15.796        1.4484        .15066E-06    .66043E-03
  19  Prefactor     6.0956        1.2218        .17315E-07    .44583E-03
  20  norm          1.8249        3.8171       -.48758E-06   -.40033E-04
  21  norm          3.5318        5.3132       -.49658E-06   -.57743E-03
  22  Prefactor     .10000E-03    2.8521       -.86413E-07** at limit **
  23  Prefactor     .10018E-03    32.174        .39673E-05** at limit **
  24  Prefactor     .10001E-03    19.960       -.18624E-05** at limit **
  25  Prefactor     .10000E-03    .97638       -.19196E-06** at limit **
  26  Prefactor     .10001E-03    7.1871        .15529E-05** at limit **
  27  norm          6.8027        1.1625        .10781E-07    .20524E-03
  28  Prefactor     .10000E-03    6.2595        .46606E-06** at limit **
  29  Normalizat    .88088        .22462        .79220E-06    .18577E-03
  30  Prefactor     .79645        .17301        .44124E-06    .21876E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 13.4394
  Prefactor  = 83.2788
  Prefactor  = 0.00011549
  Prefactor  = 0.000100007
  norm       = 0.000100073
  norm       = 0.0001
  Prefactor  = 9.04591
  Prefactor  = 0.000100086
  Prefactor  = 2.59238
  norm       = 4.02884
  norm       = 1.46693
  norm       = 1.69449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.00698
  Prefactor  = 0.0001
  Prefactor  = 15.7955
  Prefactor  = 6.09555
  norm       = 1.82492
  norm       = 3.53183
  Prefactor  = 0.0001
  Prefactor  = 0.000100179
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 6.80272
  Prefactor  = 0.0001
  Normalizat = 0.880879
  Prefactor  = 0.796448
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.828     FROM HESSE     STATUS=OK           652 CALLS     3957 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.439        18.877        .27304E-02   -1.4975    
   3  Prefactor     83.279        50.402        .11014E-02   -1.3880    
   4  Prefactor     .11549E-03    13.429        .99113E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    14.179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10007E-03    6.7781        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0459        7.9469        .33317E-02   -1.5106    
   9  Prefactor     .10009E-03    24.222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5924        6.6229        .63320E-02   -1.5386    
  11  norm          4.0288        4.0562        .50229E-02   -1.5307    
  12  norm          1.4669        1.5008        .88757E-02   -1.5466    
  13  norm          1.6945        .80722        .80819E-02   -1.5448    
  14  Prefactor     .10000E-03    7.5601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0070        3.5177        .44925E-02   -1.5260    
  17  Prefactor     .10000E-03    9.9291        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.796        12.219        .25191E-02   -1.4913    
  19  Prefactor     6.0956        7.8087        .40650E-02   -1.5214    
  20  norm          1.8249        3.8714        .77235E-02   -1.5438    
  21  norm          3.5318        5.4476        .53763E-02   -1.5332    
  22  Prefactor     .10000E-03    2.7408        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10018E-03    32.468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    20.038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .97268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    14.213        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.8027        1.1690        .38455E-02   -1.5186    
  28  Prefactor     .10000E-03    6.1652        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88088        .20079        .44653E-01   -.97135    
  30  Prefactor     .79645        .15137        .43671E-01   -.99859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4933e-07
Minuit parameter uncertainties:
  1  1.08758e-06
  2  18.8858
  3  50.4278
  4  0.0288519
  5  0.000637384
  6  0.00140659
  7  3.32981e-06
  8  7.94785
  9  0.00288039
  10  6.62481
  11  4.05651
  12  1.5008
  13  0.807223
  14  8.63741e-05
  15  8.29535e-05
  16  3.5178
  17  2.42882e-05
  18  12.2205
  19  7.81005
  20  3.87188
  21  5.44833
  22  1.96401e-06
  23  0.00482111
  24  0.000836517
  25  2.5019e-06
  26  0.000712708
  27  1.16897
  28  1.74535e-05
  29  0.200957
  30  0.151445
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.694e+00  8.072e-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.964e-01  1.514e-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:  8.809e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.73
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 8.46e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 4.77e-05 +/- 2.27e-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) = 5118.82391197
delta logL = 0.00391667854001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5118.82372392
delta logL = 0.00410472560088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6863       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0322       1.0000          .0000       5.0000    
     3 'Normalizat'    .87812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79756       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=   5118.824     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      189 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6863        16.660        .81065E-02   -.16500E-02
   2  alpha         2.0322        3.2418        .25043       -.21947E-04
   3  Normalizat    .87812        .18306        .44621E-01   -.31361E-05
   4  Prefactor     .79756        .12737        .43686E-01    .23797E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68634
  alpha      = 2.03224
  Normalizat = 0.878121
  Prefactor  = 0.797562
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.824     FROM HESSE     STATUS=OK            33 CALLS      222 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6863        .76718        .40206E-04   -1.5448    
   2  alpha         2.0322        .40137        .10080E-01   -.18822    
   3  Normalizat    .87812        .22060        .27116E-03   -.97233    
   4  Prefactor     .79756        .17269        .22193E-03   -.99818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23669e-10
Minuit parameter uncertainties:
  1  0.767185
  2  0.403178
  3  0.220825
  4  0.172811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395495': 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) = 5118.82372392
delta logL = 0.00410472589192

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  7.976e-01  1.728e-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:  8.781e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.69
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.03 +/- 0.40
Photon Flux (Free Index): 8.73e-08 +/- 4.90e-08
Energy Flux (Free Index): 4.63e-05 +/- 2.58e-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/395495/cmap_HighResolution_250214401_250473601_4FGL_J0818.2+4222_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-08', energy_flux2='4.63e-05', photon_flux_error='4.03e-08', dlogl='4.10e-03', energy_flux='4.77e-05', photon_flux2='8.73e-08', job_status='DONE', time_completed='2021-08-29 16:47:13.061827', photon_index_error2='0.40', photon_index2='2.03', ts='12.73', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='0.88', time_epoch_completed='1630280833.06', return_code='0', job_id='395495', GAL2='0.80', EG2='0.88', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='4.90e-08', ts2='12.69', photon_index='2.00' WHERE bin_id='42' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 395495: <4FGL_J0818.2+4222_daily_bin42> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin42 124.557 42.3819 250214401 250473601 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.66 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.

