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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1748
RA = 124.557, Dec = 42.3819
tmin = 692409601, tmax = 692668801
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='881626', job_status='RUN', time_executed='2022-12-14 00:26:41.631574', time_epoch_executed='1671006401.63' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881626/ft1_4FGL_J0818.2+4222_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881626/ft2_4FGL_J0818.2+4222_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881626/ft1_4FGL_J0818.2+4222_daily_bin1748.fits outfile=/scratch/kocevski/881626/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1748.fits ra=124.557 dec=42.3819 rad=12.0 tmin=692409601.0 tmax=692668801.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.57
user 3.33
sys 0.22

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

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

Number of photons that the gtmktime cut: 652

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/881626/ft1_filtered_4FGL_J0818.2+4222_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/881626/ft2_4FGL_J0818.2+4222_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/881626/ltcube_692409601_692668801_4FGL_J0818.2+4222_daily_bin1748.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/881626/ft2_4FGL_J0818.2+4222_daily_bin1748.fits
.....................!
real 12.05
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881626/ft1_filtered_4FGL_J0818.2+4222_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/881626/ft2_4FGL_J0818.2+4222_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/881626/ltcube_692409601_692668801_4FGL_J0818.2+4222_daily_bin1748.fits outfile=/scratch/kocevski/881626/expmap_692409601_692668801_4FGL_J0818.2+4222_daily_bin1748.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/881626/ltcube_692409601_692668801_4FGL_J0818.2+4222_daily_bin1748.fits
.....................!
real 190.30
user 185.26
sys 4.72

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/881626/ft1_filtered_4FGL_J0818.2+4222_daily_bin1748.fits scfile=/scratch/kocevski/881626/ft2_4FGL_J0818.2+4222_daily_bin1748.fits outfile=/scratch/kocevski/881626/cmap_692409601_692668801_4FGL_J0818.2+4222_daily_bin1748.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/881626/ft1_filtered_4FGL_J0818.2+4222_daily_bin1748.fits scfile=/scratch/kocevski/881626/ft2_4FGL_J0818.2+4222_daily_bin1748.fits outfile=/scratch/kocevski/881626/cmap_HighResolution_692409601_692668801_4FGL_J0818.2+4222_daily_bin1748.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21239E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .32753E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29735E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .82168       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40555E-04   1.0000          .0000       .10000E+07
     6 'norm      '    3.3916       1.0000          .0000       .10000E+07
     7 'norm      '    4.4186       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.1516       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12645E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    26.260       1.0000          .0000       .10000E+07
    11 'norm      '    .64562E-05   1.0000          .0000       .10000E+07
    12 'norm      '    6.9393       1.0000          .0000       .10000E+07
    13 'norm      '    .83901       1.0000          .0000       .10000E+07
    14 'Prefactor '    .65353E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17054       1.0000          .0000       .10000E+07
    16 'Prefactor '    .99363       1.0000          .0000       .10000E+07
    17 'Prefactor '    .33725E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .21198E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.2752       1.0000          .0000       .10000E+07
    20 'norm      '    .61118E-07   1.0000          .0000       .10000E+07
    21 'norm      '    5.4821       1.0000          .0000       .10000E+07
    22 'Prefactor '    15.106       1.0000          .0000       .10000E+07
    23 'Prefactor '    4.8563       1.0000          .0000       .10000E+07
    24 'Prefactor '    .53819E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .74163E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .32963E-06   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2051       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74216       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=   7259.553     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     2004 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52736E-08    11.909        .70314E-07** at limit **
   2  Prefactor     .15604E-06    3.0597       -.20350E-06** at limit **
   3  Prefactor     .53846E-08    .82882       -.69867E-07** at limit **
   4  Prefactor     .82395        .48114        .45461E-08   -.41802E-03
   5  Prefactor     .93148E-07    9.7347       -.39385E-06** at limit **
   6  norm          3.4023        6.2252       -.28426E-07    .43950E-03
   7  norm          4.4186        2.2885       -.41873E-08   -.13780E-03
   8  Prefactor     7.0733        2.4392        .10409E-07   -.57845E-02
   9  Prefactor     .26479E-07    29.867        .42536E-06** at limit **
  10  Prefactor     26.269        5.4497        .87987E-08   -.44202E-02
  11  norm           .0000        1.5090       -.18496E-06** at limit **
  12  norm          6.9377        2.6451        .43361E-08   -.27315E-04
  13  norm          .84024        .51812       -.39268E-08   -.90452E-04
  14  Prefactor     .36082E-08    4.0668       -.12807E-06** at limit **
  15  Prefactor     .10283E-04    15.297        .44760E-06** at limit **
  16  Prefactor     1.0226        2.4843        .41852E-09    .47753E-02
  17  Prefactor     .11796E-06    5.2292       -.25781E-06** at limit **
  18  Prefactor     .12379E-06    4.2533       -.33593E-06** at limit **
  19  Prefactor     1.2920        4.8587        .83436E-07    .12508E-03
  20  norm          .10913E-06    3.1379       -.24239E-06** at limit **
  21  norm          5.5130        5.9314       -.23045E-06   -.10833E-02
  22  Prefactor     14.580        6.2665        .90561E-07   -.32943E-01
  23  Prefactor     4.8602        4.1759       -.83355E-07   -.58514E-03
  24  Prefactor     .79270E-07    4.0864       -.18296E-06** at limit **
  25  norm           .0000        .42484        .65133E-07** at limit **
  26  Prefactor     .78271E-08    3.4575        .14337E-06** at limit **
  27  Normalizat    1.2052        .20596        .30752E-05    .12208E-04
  28  Prefactor     .74229        .14992       -.19231E-05   -.36419E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.27356e-09
  Prefactor  = 1.56042e-07
  Prefactor  = 5.38458e-09
  Prefactor  = 0.823954
  Prefactor  = 9.31477e-08
  norm       = 3.40234
  norm       = 4.41857
  Prefactor  = 7.07327
  Prefactor  = 2.64788e-08
  Prefactor  = 26.2692
  norm       = 0
  norm       = 6.93772
  norm       = 0.840242
  Prefactor  = 3.60822e-09
  Prefactor  = 1.02831e-05
  Prefactor  = 1.02258
  Prefactor  = 1.17961e-07
  Prefactor  = 1.2379e-07
  Prefactor  = 1.29201
  norm       = 1.09135e-07
  norm       = 5.51296
  Prefactor  = 14.5798
  Prefactor  = 4.86016
  Prefactor  = 7.92699e-08
  norm       = 0
  Prefactor  = 7.82707e-09
  Normalizat = 1.20516
  Prefactor  = 0.742287
 **********
 **   18 **HESSE 
 **********

 FCN=   7259.553     FROM HESSE     STATUS=OK           593 CALLS     2597 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52736E-08    15.194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .15604E-06    4.0400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .53846E-08    14.317        .12513E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82395        11.025        .51333E-03   -1.5690    
   5  Prefactor     .93148E-07    11.434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4023        7.7370        .54914E-03   -1.5671    
   7  norm          4.4186        2.3085        .47884E-03   -1.5666    
   8  Prefactor     7.0733        8.2866        .37486E-03   -1.5655    
   9  Prefactor     .26479E-07    29.998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.269        7.2454        .19518E-03   -1.5605    
  11  norm           .0000        1.5090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.9377        2.6461        .38061E-03   -1.5655    
  13  norm          .84024        .52508        .50071E-03   -1.5690    
  14  Prefactor     .36082E-08    8.1103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10283E-04    9.7683        .85506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0226        3.4296        .43540E-03   -1.5688    
  17  Prefactor     .11796E-06    6.1717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12379E-06    5.0503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2920        4.9084        .98376E-03   -1.5685    
  20  norm          .10913E-06    3.7899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.5130        5.9539        .42890E-03   -1.5661    
  22  Prefactor     14.580        21.129        .25744E-03   -1.5632    
  23  Prefactor     4.8602        4.1865        .45623E-03   -1.5664    
  24  Prefactor     .79270E-07    8.4653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        .24364        .16210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .78271E-08    3.4865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2052        .17752        .57917E-01   -.86444    
  28  Prefactor     .74229        .12978        .42960E-01   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43684e-07
Minuit parameter uncertainties:
  1  0.000565925
  2  0.0015879
  3  0.000555764
  4  6.0281
  5  0.00206431
  6  7.73707
  7  2.30847
  8  8.28665
  9  0.00178331
  10  7.24543
  11  3.4083e-06
  12  2.64606
  13  0.525081
  14  0.000341527
  15  0.0200448
  16  3.42959
  17  0.00170658
  18  0.00158153
  19  4.90843
  20  0.00128627
  21  5.95395
  22  21.1296
  23  4.18652
  24  0.00163813
  25  6.06295e-07
  26  0.000329806
  27  0.177607
  28  0.129838
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.402e-01  5.251e-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:  7.423e-01  1.298e-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.205e+00  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.94
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.19e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.48e-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) = 7259.45013166
delta logL = 0.103204126037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7259.44886733
delta logL = 0.104468447191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85457       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7976       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73985       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=   7259.449     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85454        .76001        .48953E-03    .33534E-02
   2  alpha         1.7976        .55005        .33041       -.12815E-04
   3  Normalizat    1.2107        .16954        .57811E-01    .78068E-05
   4  Prefactor     .73986        .12913        .42929E-01    .18141E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.854543
  alpha      = 1.79763
  Normalizat = 1.21074
  Prefactor  = 0.73986
 **********
 **   18 **HESSE 
 **********

 FCN=   7259.449     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85454        .52457        .46868E-05   -1.5689    
   2  alpha         1.7976        .42148        .13224E-01   -.28478    
   3  Normalizat    1.2107        .19407        .25566E-03   -.86272    
   4  Prefactor     .73986        .14772        .24090E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3848e-13
Minuit parameter uncertainties:
  1  0.524567
  2  0.423678
  3  0.194184
  4  0.147803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881626': 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) = 7259.44886732
delta logL = 0.104468462858

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  8.545e-01  5.246e-01  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  1.798e+00  4.237e-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:  7.399e-01  1.478e-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.211e+00  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.18
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.80 +/- 0.42
Photon Flux (Free Index): 3.56e-08 +/- 2.58e-08
Energy Flux (Free Index): 2.94e-05 +/- 2.35e-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/881626/cmap_HighResolution_692409601_692668801_4FGL_J0818.2+4222_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.19e-08', energy_flux2='2.94e-05', photon_flux_error='2.62e-08', dlogl='1.04e-01', energy_flux='2.36e-05', photon_flux2='3.56e-08', job_status='DONE', time_completed='2022-12-14 00:37:31.307854', photon_index_error2='0.42', photon_index2='1.80', ts='5.94', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='1.21', time_epoch_completed='1671007051.31', return_code='0', job_id='881626', GAL2='0.74', EG2='1.21', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='2.58e-08', ts2='6.18', photon_index='2.00' WHERE bin_id='1748' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:37:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 881626: <4FGL_J0818.2+4222_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:25:18 2022
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:25:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:25:19 2022
Terminated at Wed Dec 14 00:37:32 2022
Results reported at Wed Dec 14 00:37:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1748 124.557 42.3819 692409601 692668801 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 :                                   651.59 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

