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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1744
RA = 124.557, Dec = 42.3819
tmin = 691372801, tmax = 691632001
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='570794', job_status='RUN', time_executed='2022-12-02 00:27:38.069617', time_epoch_executed='1669969658.07' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570794/ft1_4FGL_J0818.2+4222_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570794/ft2_4FGL_J0818.2+4222_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570794/ft1_4FGL_J0818.2+4222_daily_bin1744.fits outfile=/scratch/kocevski/570794/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1744.fits ra=124.557 dec=42.3819 rad=12.0 tmin=691372801.0 tmax=691632001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.50
user 2.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/570794/ft2_4FGL_J0818.2+4222_daily_bin1744.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/570794/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/570794/ft1_filtered_4FGL_J0818.2+4222_daily_bin1744.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 520

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570794/ft1_filtered_4FGL_J0818.2+4222_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/570794/ft2_4FGL_J0818.2+4222_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/570794/ltcube_691372801_691632001_4FGL_J0818.2+4222_daily_bin1744.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/570794/ft2_4FGL_J0818.2+4222_daily_bin1744.fits
.....................!
real 12.64
user 12.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570794/ft1_filtered_4FGL_J0818.2+4222_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/570794/ft2_4FGL_J0818.2+4222_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/570794/ltcube_691372801_691632001_4FGL_J0818.2+4222_daily_bin1744.fits outfile=/scratch/kocevski/570794/expmap_691372801_691632001_4FGL_J0818.2+4222_daily_bin1744.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/570794/ltcube_691372801_691632001_4FGL_J0818.2+4222_daily_bin1744.fits
.....................!
real 190.90
user 185.24
sys 5.34

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/570794/ft1_filtered_4FGL_J0818.2+4222_daily_bin1744.fits scfile=/scratch/kocevski/570794/ft2_4FGL_J0818.2+4222_daily_bin1744.fits outfile=/scratch/kocevski/570794/cmap_691372801_691632001_4FGL_J0818.2+4222_daily_bin1744.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570794/ft1_filtered_4FGL_J0818.2+4222_daily_bin1744.fits scfile=/scratch/kocevski/570794/ft2_4FGL_J0818.2+4222_daily_bin1744.fits outfile=/scratch/kocevski/570794/cmap_HighResolution_691372801_691632001_4FGL_J0818.2+4222_daily_bin1744.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=124.557 yref=42.3819 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93026E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25591E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55562E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .25232E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    18.115       1.0000          .0000       .10000E+07
     6 'norm      '    .41714E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.3774       1.0000          .0000       .10000E+07
     8 'Prefactor '    16.628       1.0000          .0000       .10000E+07
     9 'Prefactor '    .60013E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    22.722       1.0000          .0000       .10000E+07
    11 'norm      '    .74385E-07   1.0000          .0000       .10000E+07
    12 'norm      '    4.7131       1.0000          .0000       .10000E+07
    13 'norm      '    .81077       1.0000          .0000       .10000E+07
    14 'Prefactor '    76.110       1.0000          .0000       .10000E+07
    15 'Prefactor '    .71982E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.2730       1.0000          .0000       .10000E+07
    17 'Prefactor '    .45855E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    26.122       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.4966       1.0000          .0000       .10000E+07
    20 'norm      '    1.5294       1.0000          .0000       .10000E+07
    21 'norm      '    9.8233       1.0000          .0000       .10000E+07
    22 'Prefactor '    .88490E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.8949       1.0000          .0000       .10000E+07
    24 'Prefactor '    3.3272       1.0000          .0000       .10000E+07
    25 'norm      '    .73791E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    2.8703       1.0000          .0000       .10000E+07
    27 'Normalizat'    .81940       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2295       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=   5780.928     FROM MIGRAD    STATUS=CONVERGED    208 CALLS     1594 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65503E-08    3.4058       -.14161E-05** at limit **
   2  Prefactor     .36970E-07    3.7372        .40837E-07** at limit **
   3  Prefactor     .10209E-06    12.555       -.14745E-05** at limit **
   4  Prefactor     .18319E-08    5.3906        .12556E-05** at limit **
   5  Prefactor     18.032        3.1070       -.30002E-06   -.12302E-01
   6  norm          .55511E-10    4.2328       -.71237E-06** at limit **
   7  norm          1.3768        3.1030        .27300E-06    .30134E-02
   8  Prefactor     16.729        1.2684       -.95795E-07   -.13599E-01
   9  Prefactor     .16653E-08    32.404       -.22340E-05** at limit **
  10  Prefactor     22.755        4.0526       -.42698E-06   -.89445E-01
  11  norm          .45519E-08    3.8212        .15599E-06** at limit **
  12  norm          4.7126        2.2068        .15962E-06   -.82971E-02
  13  norm          .81070        .56753       -.84673E-07   -.21167E-01
  14  Prefactor     75.711        37.268       -.25603E-05    .58367E-01
  15  Prefactor     .47906E-07    2.7852       -.82304E-07** at limit **
  16  Prefactor     4.2705        3.5147       -.53913E-07    .53714E-02
  17  Prefactor     .31475E-07    11.935        .38324E-05** at limit **
  18  Prefactor     25.997        2.1019        .20175E-06    .35196E-01
  19  Prefactor     2.4922        7.3847        .10485E-05    .54534E-02
  20  norm          1.5187        4.6742       -.80656E-06   -.12765E-02
  21  norm          9.8218        7.0541       -.66106E-06   -.87684E-02
  22  Prefactor     .42188E-08    32.599        .39535E-05** at limit **
  23  Prefactor     3.8984        3.9303        .96981E-07   -.59107E-02
  24  Prefactor     3.2331        10.485        .10487E-05    .42731E-01
  25  norm           .0000        3.4655       -.40774E-06** at limit **
  26  Prefactor     2.8600        3.1872        .20931E-06    .12205E-02
  27  Normalizat    .82014        .25122        .18195E-04    .31728E-05
  28  Prefactor     1.2292        .19852       -.11668E-05    .14268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.55032e-09
  Prefactor  = 3.69704e-08
  Prefactor  = 1.02085e-07
  Prefactor  = 1.83187e-09
  Prefactor  = 18.0325
  norm       = 5.55112e-11
  norm       = 1.37676
  Prefactor  = 16.7287
  Prefactor  = 1.66533e-09
  Prefactor  = 22.7554
  norm       = 4.55191e-09
  norm       = 4.71256
  norm       = 0.810702
  Prefactor  = 75.7108
  Prefactor  = 4.79061e-08
  Prefactor  = 4.27049
  Prefactor  = 3.14748e-08
  Prefactor  = 25.9968
  Prefactor  = 2.49218
  norm       = 1.51868
  norm       = 9.82184
  Prefactor  = 4.21885e-09
  Prefactor  = 3.89836
  Prefactor  = 3.23308
  norm       = 0
  Prefactor  = 2.86001
  Normalizat = 0.820136
  Prefactor  = 1.22919
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.928     FROM HESSE     STATUS=OK           587 CALLS     2181 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65503E-08    3.6742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .36970E-07    6.3363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10209E-06    13.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18319E-08    5.5395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.032        29.215        .23504E-03   -1.5623    
   6  norm          .55511E-10    4.2645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3768        3.1408        .92753E-03   -1.5684    
   8  Prefactor     16.729        14.511        .24535E-03   -1.5626    
   9  Prefactor     .16653E-08    32.384        .15162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.755        8.9612        .20984E-03   -1.5613    
  11  norm          .45519E-08    4.1500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7126        2.2103        .46327E-03   -1.5665    
  13  norm          .81070        .57589        .52136E-03   -1.5690    
  14  Prefactor     75.711        40.930        .11463E-03   -1.5534    
  15  Prefactor     .47906E-07    6.2306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2705        3.5478        .48716E-03   -1.5667    
  17  Prefactor     .31475E-07    12.351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.997        14.816        .19570E-03   -1.5606    
  19  Prefactor     2.4922        7.4325        .64656E-03   -1.5676    
  20  norm          1.5187        4.7259        .86283E-03   -1.5683    
  21  norm          9.8218        7.1464        .31948E-03   -1.5645    
  22  Prefactor     .42188E-08    32.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.8984        4.0598        .51101E-03   -1.5668    
  24  Prefactor     3.2331        45.985        .55467E-03   -1.5672    
  25  norm           .0000        .33755        .25163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.8600        3.6296        .59972E-03   -1.5674    
  27  Normalizat    .82014        .22734        .75426E-01   -.99326    
  28  Prefactor     1.2292        .17381        .51615E-01   -.85438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97599e-07
Minuit parameter uncertainties:
  1  0.000310212
  2  0.000967903
  3  0.00231832
  4  0.000201631
  5  29.2155
  6  3.41594e-05
  7  3.14077
  8  14.5109
  9  0.000466433
  10  8.9612
  11  0.000274663
  12  2.21033
  13  0.575888
  14  40.9302
  15  0.00109296
  16  3.54779
  17  0.00124671
  18  14.8161
  19  7.43257
  20  4.72593
  21  7.14643
  22  0.000740499
  23  4.05976
  24  24.3865
  25  3.6063e-06
  26  3.6296
  27  0.227605
  28  0.173891
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.107e-01  5.759e-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:  1.229e+00  1.739e-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.201e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.61
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.62e-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) = 5780.91970736
delta logL = 0.00837512919952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5780.91956233
delta logL = 0.00852015659348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80399       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9189       1.0000          .0000       5.0000    
     3 'Normalizat'    .82227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2287       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=   5780.920     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      200 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80399        2.4239        .52638E-03    .20054E-02
   2  alpha         1.9189        1.8673        .40032        .41217E-05
   3  Normalizat    .82226        .22348        .75346E-01    .19335E-04
   4  Prefactor     1.2287        .17847        .51628E-01    .33073E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.803987
  alpha      = 1.9189
  Normalizat = 0.822264
  Prefactor  = 1.22868
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.920     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80399        .57026        .46661E-05   -1.5690    
   2  alpha         1.9189        .58115        .15004E-01   -.23459    
   3  Normalizat    .82226        .23780        .33348E-03   -.99248    
   4  Prefactor     1.2287        .19592        .22825E-03   -.85453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89124e-12
Minuit parameter uncertainties:
  1  0.570258
  2  0.586827
  3  0.238104
  4  0.196036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570794': 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) = 5780.91956233
delta logL = 0.00852015662895

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.040e-01  5.703e-01  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  1.919e+00  5.868e-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:  1.229e+00  1.960e-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.223e-01  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.63
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.92 +/- 0.59
Photon Flux (Free Index): 3.72e-08 +/- 3.52e-08
Energy Flux (Free Index): 2.41e-05 +/- 2.05e-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/570794/cmap_HighResolution_691372801_691632001_4FGL_J0818.2+4222_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='2.41e-05', photon_flux_error='2.87e-08', dlogl='8.52e-03', energy_flux='2.28e-05', photon_flux2='3.72e-08', job_status='DONE', time_completed='2022-12-02 00:36:50.530612', photon_index_error2='0.59', photon_index2='1.92', ts='5.61', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='0.82', time_epoch_completed='1669970210.53', return_code='0', job_id='570794', GAL2='1.23', EG2='0.82', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='3.52e-08', ts2='5.63', photon_index='2.00' WHERE bin_id='1744' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:36:50 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 570794: <4FGL_J0818.2+4222_daily_bin1744> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:25:19 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:25:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:25:21 2022
Terminated at Fri Dec  2 00:36:51 2022
Results reported at Fri Dec  2 00:36:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1744 124.557 42.3819 691372801 691632001 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 :                                   555.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            692 sec.

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

