/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 8 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.2+4222_daily_bin282
RA = 124.557, Dec = 42.3819
tmin = 312422401, tmax = 312681601
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='395799', job_status='RUN', time_executed='2021-08-29 16:33:36.761553', time_epoch_executed='1630280016.76' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395799/ft1_4FGL_J0818.2+4222_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395799/ft2_4FGL_J0818.2+4222_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395799/ft1_4FGL_J0818.2+4222_daily_bin282.fits outfile=/scratch/kocevski/395799/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin282.fits ra=124.557 dec=42.3819 rad=12.0 tmin=312422401.0 tmax=312681601.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 8.71
user 3.61
sys 4.68

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395799/ft1_filtered_4FGL_J0818.2+4222_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/395799/ft2_4FGL_J0818.2+4222_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/395799/ltcube_312422401_312681601_4FGL_J0818.2+4222_daily_bin282.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/395799/ft2_4FGL_J0818.2+4222_daily_bin282.fits
.....................!
real 16.21
user 11.48
sys 4.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395799/ft1_filtered_4FGL_J0818.2+4222_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/395799/ft2_4FGL_J0818.2+4222_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/395799/ltcube_312422401_312681601_4FGL_J0818.2+4222_daily_bin282.fits outfile=/scratch/kocevski/395799/expmap_312422401_312681601_4FGL_J0818.2+4222_daily_bin282.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/395799/ltcube_312422401_312681601_4FGL_J0818.2+4222_daily_bin282.fits
.....................!
real 195.71
user 186.03
sys 9.09

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/395799/ft1_filtered_4FGL_J0818.2+4222_daily_bin282.fits scfile=/scratch/kocevski/395799/ft2_4FGL_J0818.2+4222_daily_bin282.fits outfile=/scratch/kocevski/395799/cmap_312422401_312681601_4FGL_J0818.2+4222_daily_bin282.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 4.30
user 0.38
sys 3.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395799/ft1_filtered_4FGL_J0818.2+4222_daily_bin282.fits scfile=/scratch/kocevski/395799/ft2_4FGL_J0818.2+4222_daily_bin282.fits outfile=/scratch/kocevski/395799/cmap_HighResolution_312422401_312681601_4FGL_J0818.2+4222_daily_bin282.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 4.29
user 0.38
sys 3.89

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.480       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.9743       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.694       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.8354       1.0000         .10000E-03   10000.    
    12 'norm      '    .77707E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .98516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19010       1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8780       1.0000         .10000E-03   10000.    
    20 'norm      '    .14562E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.4004       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5379       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12358E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .60611       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .38988E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .54865       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2455       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=   6475.908     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     4019 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.245        11.465       -.36050E-07    .23911E-04
   2  Prefactor     9.9041        12.358        .16692E-07    .43110E-05
   3  Prefactor     .10000E-03    17.171       -.23747E-06** at limit **
   4  Prefactor     18.477        17.350        .16206E-05    .40553E-03
   5  Prefactor     .10000E-03    6.6932       -.30274E-06** at limit **
   6  norm          8.9740        11.326        .51054E-07    .14401E-04
   7  norm          1.2046        3.3137       -.49955E-06    .37260E-04
   8  Prefactor     .10000E-03    4.4979       -.10646E-05** at limit **
   9  Prefactor     33.675        43.279        .20385E-05    .11499E-03
  10  Prefactor     .10000E-03    2.1222       -.24738E-06** at limit **
  11  norm          5.8326        4.4232        .49426E-07    .76173E-04
  12  norm          .10806E-01    .81245        .55351E-07   -.16159E-04
  13  norm          .98533        .58487       -.11219E-08    .30567E-03
  14  Prefactor     46.688        39.843        .37609E-06    .22389E-04
  15  Prefactor     .10000E-03    32.718        .12197E-05** at limit **
  16  Prefactor     .19206        5.2006        .23891E-06    .89105E-03
  17  Prefactor     64.516        36.982       -.37787E-06   -.18394E-04
  18  Prefactor     .10000E-03    15.159        .15694E-05** at limit **
  19  Prefactor     9.8774        7.5790       -.31031E-07   -.13765E-03
  20  norm          .10009E-03    18.072        .25378E-05** at limit **
  21  norm          9.3968        7.4730       -.33905E-06   -.64929E-03
  22  Prefactor     1.5376        1.6950       -.68253E-07   -.47126E-03
  23  Prefactor     .10000E-03    78.230        .31499E-05** at limit **
  24  Prefactor     .10000E-03    12.451        .55007E-06** at limit **
  25  Prefactor     .10010E-03    39.996        .38947E-05** at limit **
  26  Prefactor     .10000E-03    6.3957        .90744E-07** at limit **
  27  norm          .60648        .44159       -.10488E-06   -.69387E-03
  28  Prefactor     .10002E-03    3.2243        .15008E-06** at limit **
  29  Normalizat    .54882        .19881       -.28850E-05   -.10520E-03
  30  Prefactor     1.2454        .15361        .11667E-05   -.22132E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.2449
  Prefactor  = 9.90409
  Prefactor  = 0.0001
  Prefactor  = 18.4767
  Prefactor  = 0.0001
  norm       = 8.974
  norm       = 1.20459
  Prefactor  = 0.000100001
  Prefactor  = 33.6754
  Prefactor  = 0.0001
  norm       = 5.8326
  norm       = 0.0108063
  norm       = 0.985327
  Prefactor  = 46.6883
  Prefactor  = 0.000100002
  Prefactor  = 0.192057
  Prefactor  = 64.5158
  Prefactor  = 0.000100001
  Prefactor  = 9.87745
  norm       = 0.000100086
  norm       = 9.39678
  Prefactor  = 1.53757
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100101
  Prefactor  = 0.0001
  norm       = 0.606476
  Prefactor  = 0.000100022
  Normalizat = 0.548821
  Prefactor  = 1.24541
 **********
 **   18 **HESSE 
 **********

 FCN=   6475.908     FROM HESSE     STATUS=OK           614 CALLS     4633 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.245        11.488        .91299E-04   -1.4830    
   2  Prefactor     9.9041        12.365        .12733E-03   -1.5078    
   3  Prefactor     .10000E-03    17.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.477        17.531        .93170E-04   -1.4848    
   5  Prefactor     .10000E-03    6.7173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.9740        11.329        .13379E-03   -1.5109    
   7  norm          1.2046        3.3494        .21704E-03   -1.5488    
   8  Prefactor     .10000E-03    4.5907        .16793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.675        43.742        .69034E-04   -1.4547    
  10  Prefactor     .10000E-03    2.1404        .11451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8326        4.4521        .13943E-03   -1.5225    
  12  norm          .10806E-01    1.2991        .26343E-01   -1.5687    
  13  norm          .98533        .57859        .44825E-04   -1.5509    
  14  Prefactor     46.688        39.901        .58680E-04   -1.4340    
  15  Prefactor     .10000E-03    33.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19206        6.4728        .18793E-02   -1.5620    
  17  Prefactor     64.516        36.990        .49969E-04   -1.4100    
  18  Prefactor     .10000E-03    15.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8774        7.5772        .12750E-03   -1.5079    
  20  norm          .10009E-03    30.285        .36289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.3968        7.3352        .13071E-03   -1.5095    
  22  Prefactor     1.5376        1.6836        .10564E-03   -1.5460    
  23  Prefactor     .10000E-03    78.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10010E-03    2.1482        .33501E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.3987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .60648        .43019        .42864E-04   -1.5552    
  28  Prefactor     .10002E-03    13.318        .19890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .54882        .21288        .35561E-03   -1.1020    
  30  Prefactor     1.2454        .16575        .19685E-03   -.84945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30118e-09
Minuit parameter uncertainties:
  1  11.4898
  2  12.3681
  3  5.80186e-05
  4  17.5362
  5  3.91971e-05
  6  11.3319
  7  3.34995
  8  0.000111706
  9  43.7841
  10  1.37688e-05
  11  4.4524
  12  0.235872
  13  0.578598
  14  39.9234
  15  0.000450091
  16  2.22961
  17  37.0032
  18  0.000273446
  19  7.57793
  20  0.00323193
  21  7.33591
  22  1.6837
  23  0.000712781
  24  5.22285e-05
  25  0.000930525
  26  6.22951e-06
  27  0.430194
  28  0.00107997
  29  0.213199
  30  0.165823
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.853e-01  5.786e-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.245e+00  1.658e-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:  5.488e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.89
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.63e-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) = 6475.79565651
delta logL = 0.112597329505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6475.78897401
delta logL = 0.119279821844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92029       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7405       1.0000          .0000       5.0000    
     3 'Normalizat'    .55961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2425       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=   6475.789     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92029        .70561        .10226E-01   -.56620E-03
   2  alpha         1.7405        .52367        .35246       -.17669E-04
   3  Normalizat    .55961        .18451        .79583E-01    .31049E-04
   4  Prefactor     1.2425        .14886        .33695E-01    .33295E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.920288
  alpha      = 1.74052
  Normalizat = 0.55961
  Prefactor  = 1.24252
 **********
 **   18 **HESSE 
 **********

 FCN=   6475.789     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92029        .59960        .45285E-04   -1.5516    
   2  alpha         1.7405        .50925        .13573E-01   -.30867    
   3  Normalizat    .55961        .19930        .35244E-03   -1.0973    
   4  Prefactor     1.2425        .16157        .19709E-03   -.85033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45056e-11
Minuit parameter uncertainties:
  1  0.599608
  2  0.513217
  3  0.199552
  4  0.161639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395799': 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) = 6475.78897401
delta logL = 0.11927982215

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  9.203e-01  5.996e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.741e+00  5.132e-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.243e+00  1.616e-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:  5.596e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.13
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.74 +/- 0.51
Photon Flux (Free Index): 3.67e-08 +/- 3.19e-08
Energy Flux (Free Index): 3.43e-05 +/- 2.73e-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/395799/cmap_HighResolution_312422401_312681601_4FGL_J0818.2+4222_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='3.43e-05', photon_flux_error='2.89e-08', dlogl='1.19e-01', energy_flux='2.77e-05', photon_flux2='3.67e-08', job_status='DONE', time_completed='2021-08-29 16:48:07.767281', photon_index_error2='0.51', photon_index2='1.74', ts='8.89', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='0.55', time_epoch_completed='1630280887.77', return_code='0', job_id='395799', GAL2='1.24', EG2='0.56', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='3.19e-08', ts2='9.13', photon_index='2.00' WHERE bin_id='282' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 16:48:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 395799: <4FGL_J0818.2+4222_daily_bin282> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin282> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 16:32:04 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:32:05 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:32:05 2021
Terminated at Sun Aug 29 16:48:08 2021
Results reported at Sun Aug 29 16:48:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin282 124.557 42.3819 312422401 312681601 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 :                                   926.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            964 sec.

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

