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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin904
RA = 124.557, Dec = 42.3819
tmin = 473644801, tmax = 473904001
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='400279', job_status='RUN', time_executed='2021-08-29 16:46:07.173418', time_epoch_executed='1630280767.17' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400279/ft1_4FGL_J0818.2+4222_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400279/ft2_4FGL_J0818.2+4222_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400279/ft1_4FGL_J0818.2+4222_daily_bin904.fits outfile=/scratch/kocevski/400279/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin904.fits ra=124.557 dec=42.3819 rad=12.0 tmin=473644801.0 tmax=473904001.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.55
user 3.52
sys 0.92

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400279/ft1_filtered_4FGL_J0818.2+4222_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/400279/ft2_4FGL_J0818.2+4222_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/400279/ltcube_473644801_473904001_4FGL_J0818.2+4222_daily_bin904.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/400279/ft2_4FGL_J0818.2+4222_daily_bin904.fits
.....................!
real 12.67
user 11.44
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400279/ft1_filtered_4FGL_J0818.2+4222_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/400279/ft2_4FGL_J0818.2+4222_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/400279/ltcube_473644801_473904001_4FGL_J0818.2+4222_daily_bin904.fits outfile=/scratch/kocevski/400279/expmap_473644801_473904001_4FGL_J0818.2+4222_daily_bin904.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/400279/ltcube_473644801_473904001_4FGL_J0818.2+4222_daily_bin904.fits
.....................!
real 194.11
user 185.56
sys 5.12

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/400279/ft1_filtered_4FGL_J0818.2+4222_daily_bin904.fits scfile=/scratch/kocevski/400279/ft2_4FGL_J0818.2+4222_daily_bin904.fits outfile=/scratch/kocevski/400279/cmap_473644801_473904001_4FGL_J0818.2+4222_daily_bin904.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.22
user 0.38
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400279/ft1_filtered_4FGL_J0818.2+4222_daily_bin904.fits scfile=/scratch/kocevski/400279/ft2_4FGL_J0818.2+4222_daily_bin904.fits outfile=/scratch/kocevski/400279/cmap_HighResolution_473644801_473904001_4FGL_J0818.2+4222_daily_bin904.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.40
user 0.39
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0222       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.8884       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36716E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.161       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.342       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8386       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6482       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.628       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89457       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15337E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.229       1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.111       1.0000         .10000E-03   10000.    
    27 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9674       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .64843       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2514       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=   7227.274     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     3951 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.4179        .90712E-02** at limit **
   2  Prefactor     6.0180        14.181        .40904E-02    .22934E-03
   3  Prefactor     9.6922        25.690        .32177E-02    .10067E-03
   4  Prefactor     .10000E-03    2.5279        .90712E-02** at limit **
   5  Prefactor     .10000E-03    12.074        .90712E-02** at limit **
   6  norm          .10000E-03    3.9735        .90712E-02** at limit **
   7  norm          5.8890        2.7454        .41373E-02    .63701E-05
   8  Prefactor     .10013E-03    6.8494        .74649E-01** at limit **
   9  Prefactor     15.018        48.317        .25716E-02    .85296E-04
  10  Prefactor     19.345        7.0532        .22767E-02    .28297E-03
  11  norm          4.8384        4.0193        .45720E-02    .31017E-03
  12  norm          1.6482        1.2125        .82230E-02   -.24119E-03
  13  norm          1.3363        .69432        .94896E-02    .48252E-03
  14  Prefactor     18.627        20.420        .23199E-02    .22307E-04
  15  Prefactor     .10000E-03    6.1887        .90712E-02** at limit **
  16  Prefactor     .89373        2.8134        .12788E-01    .14804E-02
  17  Prefactor     .10000E-03    9.1224        .90712E-02** at limit **
  18  Prefactor     .10000E-03    7.5541        .90712E-02** at limit **
  19  Prefactor     .10000E-03    5.6942        .90712E-01** at limit **
  20  norm          .10000E-03    3.8408        .90712E-02** at limit **
  21  norm          .10000E-03    4.3266        .90712E-02** at limit **
  22  Prefactor     3.6210        2.4098        .53075E-02    .62247E-04
  23  Prefactor     .10000E-03    71.953        .90712E-02** at limit **
  24  Prefactor     .10000E-03    17.868        .90712E-02** at limit **
  25  Prefactor     10.229        4.5317        .31320E-02   -.29426E-02
  26  Prefactor     37.111        26.340        .16447E-02    .58954E-03
  27  norm          .10000E-03    .25175        .20151E-01** at limit **
  28  Prefactor     6.9667        4.6393        .37997E-02    .24840E-02
  29  Normalizat    .64843        .19342        .77844E-01    .37125E-04
  30  Prefactor     1.2515        .14623        .33515E-01   -.58924E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.01805
  Prefactor  = 9.69222
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 5.88898
  Prefactor  = 0.000100127
  Prefactor  = 15.0179
  Prefactor  = 19.3449
  norm       = 4.83838
  norm       = 1.64821
  norm       = 1.33629
  Prefactor  = 18.6272
  Prefactor  = 0.0001
  Prefactor  = 0.893732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.62095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2289
  Prefactor  = 37.1115
  norm       = 0.0001
  Prefactor  = 6.96671
  Normalizat = 0.648431
  Prefactor  = 1.25152
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.274     FROM HESSE     STATUS=OK           590 CALLS     4541 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0180        14.162        .16362E-03   -1.5217    
   3  Prefactor     9.6922        25.666        .12871E-03   -1.5085    
   4  Prefactor     .10000E-03    2.5303        .13199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.9817        .16550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.8890        2.7450        .93018E-04   -1.5223    
   8  Prefactor     .10013E-03    18.033        .39614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.018        44.992        .10286E-03   -1.4933    
  10  Prefactor     19.345        6.9960        .91069E-04   -1.4828    
  11  norm          4.8384        4.0101        .14880E-03   -1.5268    
  12  norm          1.6482        1.2182        .77382E-04   -1.5451    
  13  norm          1.3363        .68101        .47906E-04   -1.5477    
  14  Prefactor     18.627        20.418        .92797E-04   -1.4845    
  15  Prefactor     .10000E-03    6.1953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .89373        2.7835        .23409E-03   -1.5519    
  17  Prefactor     .10000E-03    9.1330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.456        .39010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.8792        .16261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3733        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6210        2.4069        .10289E-03   -1.5327    
  23  Prefactor     .10000E-03    72.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.229        4.5332        .10976E-03   -1.5068    
  26  Prefactor     37.111        26.346        .65790E-04   -1.4489    
  27  norm          .10000E-03    .32715        .76443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.9667        4.2983        .12892E-03   -1.5180    
  29  Normalizat    .64843        .21075        .34467E-03   -1.0597    
  30  Prefactor     1.2515        .16231        .20482E-03   -.84760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23898e-08
Minuit parameter uncertainties:
  1  3.07499e-05
  2  14.1704
  3  25.6949
  4  2.92136e-06
  5  0.000287851
  6  2.40801e-05
  7  2.7451
  8  0.00302668
  9  45.0938
  10  6.99635
  11  4.01036
  12  1.21825
  13  0.681013
  14  20.4256
  15  3.43596e-05
  16  2.78392
  17  5.64729e-05
  18  1.4807e-05
  19  4.55451e-05
  20  8.52939e-06
  21  1.6491e-05
  22  2.40696
  23  0.000167326
  24  6.83029e-05
  25  4.53337
  26  26.354
  27  8.94709e-08
  28  4.29844
  29  0.211011
  30  0.162374
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.336e+00  6.810e-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:  1.252e+00  1.624e-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:  6.484e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.83
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 3.76e-05 +/- 1.92e-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) = 7227.27316804
delta logL = 0.00083667976287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7227.27312853
delta logL = 0.000876189367773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3318       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0132       1.0000          .0000       5.0000    
     3 'Normalizat'    .64758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2519       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=   7227.273     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3317        14.742        .95114E-02    .97167E-03
   2  alpha         2.0131        3.3332        .30613        .36709E-05
   3  Normalizat    .64759        .10241        .77889E-01   -.25600E-04
   4  Prefactor     1.2519        .83700E-01    .33506E-01    .50501E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3317
  alpha      = 2.01309
  Normalizat = 0.647587
  Prefactor  = 1.25187
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.273     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3317        .67823        .47745E-04   -1.5477    
   2  alpha         2.0131        .41200        .11852E-01   -.19602    
   3  Normalizat    .64759        .19716        .34487E-03   -1.0600    
   4  Prefactor     1.2519        .15895        .20480E-03   -.84750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11003e-11
Minuit parameter uncertainties:
  1  0.678235
  2  0.413964
  3  0.197372
  4  0.159006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400279': 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) = 7227.27312845
delta logL = 0.000876273712493

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.332e+00  6.782e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.013e+00  4.140e-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.252e+00  1.590e-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:  6.476e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.84
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.01 +/- 0.41
Photon Flux (Free Index): 6.76e-08 +/- 3.98e-08
Energy Flux (Free Index): 3.70e-05 +/- 2.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/400279/cmap_HighResolution_473644801_473904001_4FGL_J0818.2+4222_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='3.70e-05', photon_flux_error='3.40e-08', dlogl='8.76e-04', energy_flux='3.76e-05', photon_flux2='6.76e-08', job_status='DONE', time_completed='2021-08-29 17:00:53.797350', photon_index_error2='0.41', photon_index2='2.01', ts='6.83', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='0.65', time_epoch_completed='1630281653.8', return_code='0', job_id='400279', GAL2='1.25', EG2='0.65', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='3.98e-08', ts2='6.84', photon_index='2.00' WHERE bin_id='904' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:00:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 400279: <4FGL_J0818.2+4222_daily_bin904> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin904> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 16:45:43 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:45:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 16:45:44 2021
Terminated at Sun Aug 29 17:00:54 2021
Results reported at Sun Aug 29 17:00:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin904 124.557 42.3819 473644801 473904001 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 :                                   887.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

