aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 16 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1718
RA = 124.557, Dec = 42.3819
tmin = 684633601, tmax = 684892801
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='66721', job_status='RUN', time_executed='2022-09-16 13:54:13.986899', time_epoch_executed='1663361653.99' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66721/ft1_4FGL_J0818.2+4222_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66721/ft2_4FGL_J0818.2+4222_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66721/ft1_4FGL_J0818.2+4222_daily_bin1718.fits outfile=/scratch/kocevski/66721/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1718.fits ra=124.557 dec=42.3819 rad=12.0 tmin=684633601.0 tmax=684892801.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.22
user 2.99
sys 0.20

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

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

Number of photons that the gtmktime cut: 804

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66721/ft1_filtered_4FGL_J0818.2+4222_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/66721/ft2_4FGL_J0818.2+4222_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/66721/ltcube_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.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/66721/ft2_4FGL_J0818.2+4222_daily_bin1718.fits
.....................!
real 16.10
user 15.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66721/ft1_filtered_4FGL_J0818.2+4222_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/66721/ft2_4FGL_J0818.2+4222_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/66721/ltcube_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.fits outfile=/scratch/kocevski/66721/expmap_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.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/66721/ltcube_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.fits
.....................!
real 192.37
user 186.00
sys 5.90

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/66721/ft1_filtered_4FGL_J0818.2+4222_daily_bin1718.fits scfile=/scratch/kocevski/66721/ft2_4FGL_J0818.2+4222_daily_bin1718.fits outfile=/scratch/kocevski/66721/cmap_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66721/ft1_filtered_4FGL_J0818.2+4222_daily_bin1718.fits scfile=/scratch/kocevski/66721/ft2_4FGL_J0818.2+4222_daily_bin1718.fits outfile=/scratch/kocevski/66721/cmap_HighResolution_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.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.56
user 0.38
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66721/ft1_filtered_4FGL_J0818.2+4222_daily_bin1718.fits', '/scratch/kocevski/66721/ft2_4FGL_J0818.2+4222_daily_bin1718.fits', expMap='/scratch/kocevski/66721/expmap_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.fits', expCube='/scratch/kocevski/66721/ltcube_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66721/Model_4FGL_J0818.2+4222_daily_bin1718.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  0.000e+00  1.000e+06 ( 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 -5.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/66721/ft1_filtered_4FGL_J0818.2+4222_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/66721/ft2_4FGL_J0818.2+4222_daily_bin1718.fits
Exposure map: /scratch/kocevski/66721/expmap_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.fits
Exposure cube: /scratch/kocevski/66721/ltcube_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66721/Model_4FGL_J0818.2+4222_daily_bin1718.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) = 8702.84827604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93259E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    16.532       1.0000          .0000       .10000E+07
     3 'Prefactor '    .50526       1.0000          .0000       .10000E+07
     4 'Prefactor '    .21113E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.1026       1.0000          .0000       .10000E+07
     6 'norm      '    .70610E-02   1.0000          .0000       .10000E+07
     7 'norm      '    5.0031       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10007E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .20218E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    17.772       1.0000          .0000       .10000E+07
    11 'norm      '    .35286E-03   1.0000          .0000       .10000E+07
    12 'norm      '    1.8005       1.0000          .0000       .10000E+07
    13 'norm      '    1.4048       1.0000          .0000       .10000E+07
    14 'Prefactor '    .28890E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19915E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .94865E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.6081       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.7600       1.0000          .0000       .10000E+07
    19 'Prefactor '    19.264       1.0000          .0000       .10000E+07
    20 'norm      '    1.1574       1.0000          .0000       .10000E+07
    21 'norm      '    .42996E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .78292E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    7.5276       1.0000          .0000       .10000E+07
    24 'Prefactor '    15.567       1.0000          .0000       .10000E+07
    25 'norm      '    .12101E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .42311E-06   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0177       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93646       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=   8701.175     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1532 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.9199        .13252E-06** at limit **
   2  Prefactor     16.481        5.4025        .39084E-06    .15192E-01
   3  Prefactor     .58047        12.940        .10892E-05    .14454E-01
   4  Prefactor     .27756E-09    3.2615       -.18652E-07** at limit **
   5  Prefactor     5.9802        7.1453        .91697E-06    .73512E-02
   6  norm          .26534E-07    14.799        .15577E-05** at limit **
   7  norm          5.0025        2.1898       -.23360E-07    .17589E-02
   8  Prefactor     .83822E-07    63.613       -.62237E-05** at limit **
   9  Prefactor      .0000        22.909        .46168E-06** at limit **
  10  Prefactor     17.774        6.0431        .90569E-07    .18581E-02
  11  norm          .44409E-09    3.5686       -.37910E-06** at limit **
  12  norm          1.8000        1.1534       -.49819E-07   -.26064E-02
  13  norm          1.4042        .60922        .33133E-07    .65363E-02
  14  Prefactor     .15155E-07    13.826       -.40590E-06** at limit **
  15  Prefactor     .12157E-07    1.0137        .51253E-07** at limit **
  16  Prefactor     .11478        23.347        .27760E-06** at limit **
  17  Prefactor     4.5765        6.2300        .10816E-06   -.25081E-01
  18  Prefactor     7.8228        7.3720       -.28841E-06    .32745E-03
  19  Prefactor     19.217        4.6249       -.11436E-06   -.39435E-02
  20  norm          1.1547        3.4276        .52181E-06   -.62096E-03
  21  norm          .16653E-09    5.1510       -.58316E-06** at limit **
  22  Prefactor     .48905E-07    34.280        .32003E-05** at limit **
  23  Prefactor     7.5339        3.6614       -.79722E-07   -.87842E-03
  24  Prefactor     15.338        6.1609        .31488E-06   -.54027E-02
  25  norm           .0000        .18790       -.83601E-08** at limit **
  26  Prefactor     .55511E-10    2.9766        .28373E-06** at limit **
  27  Normalizat    1.0178        .18540        .23309E-05   -.81155E-05
  28  Prefactor     .93655        .13564        .88921E-06    .26627E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 16.4807
  Prefactor  = 0.580469
  Prefactor  = 2.77556e-10
  Prefactor  = 5.98022
  norm       = 2.65343e-08
  norm       = 5.00253
  Prefactor  = 8.38218e-08
  Prefactor  = 0
  Prefactor  = 17.7737
  norm       = 4.44089e-10
  norm       = 1.80004
  norm       = 1.40423
  Prefactor  = 1.51545e-08
  Prefactor  = 1.21569e-08
  Prefactor  = 0.114776
  Prefactor  = 4.57647
  Prefactor  = 7.82281
  Prefactor  = 19.2173
  norm       = 1.1547
  norm       = 1.66533e-10
  Prefactor  = 4.89053e-08
  Prefactor  = 7.53395
  Prefactor  = 15.3375
  norm       = 0
  Prefactor  = 5.55112e-11
  Normalizat = 1.01778
  Prefactor  = 0.936554
 **********
 **   18 **HESSE 
 **********

 FCN=   8701.175     FROM HESSE     STATUS=OK           599 CALLS     2131 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.9335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.481        11.615        .24606E-03   -1.5627    
   3  Prefactor     .58047        42.859        .78182E-03   -1.5693    
   4  Prefactor     .27756E-09    3.4064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9802        11.791        .40618E-03   -1.5659    
   6  norm          .26534E-07    18.783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.0025        2.1983        .44935E-03   -1.5663    
   8  Prefactor     .83822E-07    6.5772        .62420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        22.735        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.774        6.1237        .23731E-03   -1.5624    
  11  norm          .44409E-09    4.1421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8000        1.1512        .77876E-03   -1.5681    
  13  norm          1.4042        .63095        .91449E-03   -1.5684    
  14  Prefactor     .15155E-07    17.037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12157E-07    7.9427        .13143E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11478        1.3094        .80437E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5765        46.697        .46865E-03   -1.5665    
  18  Prefactor     7.8228        7.6614        .35973E-03   -1.5652    
  19  Prefactor     19.217        9.3560        .22792E-03   -1.5620    
  20  norm          1.1547        3.4880        .10721E-02   -1.5686    
  21  norm          .16653E-09    5.1789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .48905E-07    76.630        .14554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.5339        3.6965        .36529E-03   -1.5653    
  24  Prefactor     15.338        20.058        .25359E-03   -1.5630    
  25  norm           .0000        .18513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .55511E-10    3.0167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0178        .16538        .43710E-01   -.92437    
  28  Prefactor     .93655        .11966        .45468E-01   -.94875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7004e-07
Minuit parameter uncertainties:
  1  1.33961e-06
  2  11.615
  3  9.97566
  4  6.19049e-05
  5  11.7913
  6  0.00141174
  7  2.19827
  8  0.00148515
  9  1.78146e-05
  10  6.12367
  11  8.58016e-05
  12  1.15122
  13  0.630946
  14  0.00101531
  15  0.000620776
  16  0.775345
  17  29.2378
  18  7.66144
  19  9.35602
  20  3.48797
  21  6.29641e-05
  22  0.00387252
  23  3.69652
  24  20.0579
  25  6.29832e-08
  26  1.86093e-05
  27  0.165466
  28  0.119697
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.404e+00  6.309e-01  0.000e+00  1.000e+06 ( 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 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.366e-01  1.197e-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.018e+00  1.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.95
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.01e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 1.77e-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) = 8700.88691291
delta logL = 0.288300205551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8700.88477342
delta logL = 0.290439697119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3328       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2941       1.0000          .0000       5.0000    
     3 'Normalizat'    .99451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94609       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=   8700.885     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3336        7.5655        .93322E-03    .36124E-02
   2  alpha         2.2943        3.6469        .28938        .51038E-04
   3  Normalizat    .99455        .79051E-01    .46098E-01    .19501E-04
   4  Prefactor     .94602        .49790E-01    .45590E-01    .92373E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33364
  alpha      = 2.29426
  Normalizat = 0.994555
  Prefactor  = 0.946016
 **********
 **   18 **HESSE 
 **********

 FCN=   8700.885     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3336        .58966        .41492E-05   -1.5685    
   2  alpha         2.2943        .39903        .11050E-01   -.82389E-01
   3  Normalizat    .99455        .17854        .27732E-03   -.93213    
   4  Prefactor     .94602        .13519        .21661E-03   -.94551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08225e-09
Minuit parameter uncertainties:
  1  0.589662
  2  0.400755
  3  0.178649
  4  0.13524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66721': 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) = 8700.88477174
delta logL = 0.29044137983

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.334e+00  5.897e-01  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  2.294e+00  4.008e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.460e-01  1.352e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.946e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.55
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.29 +/- 0.40
Photon Flux (Free Index): 9.28e-08 +/- 4.61e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.49e-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/66721/cmap_HighResolution_684633601_684892801_4FGL_J0818.2+4222_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.01e-08', energy_flux2='3.39e-05', photon_flux_error='3.15e-08', dlogl='2.90e-01', energy_flux='3.95e-05', photon_flux2='9.28e-08', job_status='DONE', time_completed='2022-09-16 14:05:49.636062', photon_index_error2='0.40', photon_index2='2.29', ts='12.95', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.02', time_epoch_completed='1663362349.64', return_code='0', job_id='66721', GAL2='0.95', EG2='0.99', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='4.61e-08', ts2='13.55', photon_index='2.00' WHERE bin_id='1718' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 14:05:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 66721: <4FGL_J0818.2+4222_daily_bin1718> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1718> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 13:50:22 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 13:53:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 13:53:49 2022
Terminated at Fri Sep 16 14:05:50 2022
Results reported at Fri Sep 16 14:05:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1718 124.557 42.3819 684633601 684892801 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 :                                   697.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            928 sec.

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

