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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin754
RA = 124.557, Dec = 42.3819
tmin = 695001601, tmax = 695606401
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='948455', job_status='RUN', time_executed='2023-01-17 00:48:30.261339', time_epoch_executed='1673945310.26' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948455

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948455/ft1_4FGL_J0818.2+4222_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948455/ft2_4FGL_J0818.2+4222_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948455/ft1_4FGL_J0818.2+4222_weekly_bin754.fits outfile=/scratch/kocevski/948455/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin754.fits ra=124.557 dec=42.3819 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.63
user 5.32
sys 0.26

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

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

Number of photons that the gtmktime cut: 89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948455/ft1_filtered_4FGL_J0818.2+4222_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/948455/ft2_4FGL_J0818.2+4222_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/948455/ltcube_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.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/948455/ft2_4FGL_J0818.2+4222_weekly_bin754.fits
.....................!
real 37.77
user 37.17
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948455/ft1_filtered_4FGL_J0818.2+4222_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/948455/ft2_4FGL_J0818.2+4222_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/948455/ltcube_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.fits outfile=/scratch/kocevski/948455/expmap_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.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/948455/ltcube_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.fits
.....................!
real 193.23
user 187.51
sys 4.98

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/948455/ft1_filtered_4FGL_J0818.2+4222_weekly_bin754.fits scfile=/scratch/kocevski/948455/ft2_4FGL_J0818.2+4222_weekly_bin754.fits outfile=/scratch/kocevski/948455/cmap_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.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.63
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948455/ft1_filtered_4FGL_J0818.2+4222_weekly_bin754.fits scfile=/scratch/kocevski/948455/ft2_4FGL_J0818.2+4222_weekly_bin754.fits outfile=/scratch/kocevski/948455/cmap_HighResolution_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.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.62
user 0.43
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948455/ft1_filtered_4FGL_J0818.2+4222_weekly_bin754.fits', '/scratch/kocevski/948455/ft2_4FGL_J0818.2+4222_weekly_bin754.fits', expMap='/scratch/kocevski/948455/expmap_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.fits', expCube='/scratch/kocevski/948455/ltcube_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948455/Model_4FGL_J0818.2+4222_weekly_bin754.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/948455/ft1_filtered_4FGL_J0818.2+4222_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/948455/ft2_4FGL_J0818.2+4222_weekly_bin754.fits
Exposure map: /scratch/kocevski/948455/expmap_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.fits
Exposure cube: /scratch/kocevski/948455/ltcube_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948455/Model_4FGL_J0818.2+4222_weekly_bin754.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1126.79805591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.025       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.7645       1.0000          .0000       .10000E+07
     3 'Prefactor '    4091.2       1.0000          .0000       .10000E+07
     4 'Prefactor '    .41211E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.3802       1.0000          .0000       .10000E+07
     6 'norm      '    10.088       1.0000          .0000       .10000E+07
     7 'norm      '    27.378       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13845E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2087       1.0000          .0000       .10000E+07
    10 'Prefactor '    .49338E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .53504E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .21159E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .58270E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .21409       1.0000          .0000       .10000E+07
    15 'Prefactor '    .85949E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    21.924       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15837E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .66873E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .14285E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .14543E-04   1.0000          .0000       .10000E+07
    21 'norm      '    19.869       1.0000          .0000       .10000E+07
    22 'Prefactor '    .48063E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    33.342       1.0000          .0000       .10000E+07
    24 'Prefactor '    6.1129       1.0000          .0000       .10000E+07
    25 'norm      '    .53590       1.0000          .0000       .10000E+07
    26 'Prefactor '    2.2686       1.0000          .0000       .10000E+07
    27 'Normalizat'    .66397       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .52797       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=   1071.662     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     3157 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E+07    21677.       -.21435E-05** at limit **
   2  Prefactor     .10000E+07    .65261E+06   -.34456E-04    .23579E-02
   3  Prefactor     2166.0        1949.3        .93635E-06   -.11833E-01
   4  Prefactor     .66613E-09    110.73       -.44004E-06** at limit **
   5  Prefactor     .11213E-07    257.80        .11210E-05** at limit **
   6  norm          7735.4        2435.8       -.91953E-06   -.10693    
   7  norm          28.031        24.414       -.30204E-07    .28259E-03
   8  Prefactor     .24980E-08    74.497       -.32676E-06** at limit **
   9  Prefactor     .11102E-09    209.64       -.12751E-06** at limit **
  10  Prefactor     .55511E-10    54.034       -.55533E-07** at limit **
  11  norm           .0000        3.3174       -.36860E-07** at limit **
  12  norm           .0000        1.5752       -.10967E-07** at limit **
  13  norm          .17433        7.5714        .11183E-06** at limit **
  14  Prefactor     .15543E-08    287.93       -.25632E-06** at limit **
  15  Prefactor     .83267E-09    83.074       -.11332E-06** at limit **
  16  Prefactor     25.755        20.126        .11667E-07    .50842E-03
  17  Prefactor      .0000        41.874        .20058E-06** at limit **
  18  Prefactor      .0000        11.267        .15235E-07** at limit **
  19  Prefactor     .16653E-09    5.1876       -.94120E-07** at limit **
  20  norm          .55511E-10    4.4763        .43703E-07** at limit **
  21  norm          9.5077        10.004        .69341E-07    .46559E-03
  22  Prefactor      .0000        44.024       -.86378E-08** at limit **
  23  Prefactor     31.610        11.589       -.88211E-08    .94932E-04
  24  Prefactor     15.217        41.346        .92161E-09    .72459E-04
  25  norm          .83731        .78755        .87482E-08    .18691E-02
  26  Prefactor      .0000        9.7782        .36791E-08** at limit **
  27  Normalizat    .96147E-01    .26879        .61817E-05   -.73046E-05
  28  Prefactor     .55777        .34526       -.48083E-05   -.55901E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1e+06
  Prefactor  = 999998
  Prefactor  = 2166.01
  Prefactor  = 6.66134e-10
  Prefactor  = 1.12133e-08
  norm       = 7735.45
  norm       = 28.0309
  Prefactor  = 2.498e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0
  norm       = 0.174334
  Prefactor  = 1.55431e-09
  Prefactor  = 8.32667e-10
  Prefactor  = 25.7547
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  norm       = 9.50769
  Prefactor  = 0
  Prefactor  = 31.6098
  Prefactor  = 15.2167
  norm       = 0.837305
  Prefactor  = 0
  Normalizat = 0.0961474
  Prefactor  = 0.557775
 **********
 **   18 **HESSE 
 **********

 FCN=   1071.662     FROM HESSE     STATUS=OK           565 CALLS     3722 TOTAL
                     EDM=   .11E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E+07    20344.        .22934E-03    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E+07    .10267E+06    .78831E-03    1.5739    
   3  Prefactor     2166.0        1890.1        .15666E-04   -1.4777    
   4  Prefactor     .66613E-09    92.167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11213E-07    258.61        .55010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7735.4        .57629E+06    .31523E-03   -1.3947    
   7  norm          28.031        25.189        .19115E-03   -1.5602    
   8  Prefactor     .24980E-08    74.088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    195.82        .10294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    60.707        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        3.5135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.6350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .17433        6.7826        .42118E-03   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15543E-08    288.67        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .83267E-09    87.181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.755        20.038        .21363E-03   -1.5606    
  17  Prefactor      .0000        45.002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        11.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16653E-09    5.2082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    4.4351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.5077        10.283        .22442E-03   -1.5770    
  22  Prefactor      .0000        44.289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     31.610        11.679        .17320E-03   -1.5596    
  24  Prefactor     15.217        42.567        .40583E-03   -1.5786    
  25  norm          .83731        .83547        .60282E-03   -1.5726    
  26  Prefactor      .0000        9.0491        .68161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .96147E-01    .20926        .13912       -1.7568    
  28  Prefactor     .55777        .29095        .61316E-01   -2.0476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0114379
Minuit parameter uncertainties:
  1  42.3801
  2  1023.26
  3  1890.59
  4  0.000497298
  5  0.0034091
  6  87611.4
  7  25.1891
  8  0.000855744
  9  0.000324532
  10  8.65624e-05
  11  1.93099e-05
  12  5.73816e-06
  13  2.17481
  14  0.00133016
  15  0.000539017
  16  20.0384
  17  2.025e-05
  18  1.50232e-05
  19  6.16019e-05
  20  2.5886e-05
  21  10.2832
  22  9.25982e-07
  23  11.6792
  24  42.5676
  25  0.835468
  26  1.27357e-05
  27  0.211092
  28  0.29174
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.743e-01  2.175e+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

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  5.578e-01  2.917e-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.615e-02  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 124.557 42.382
Photon Flux Upper Limit: 3.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948455/likelihoodResults_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.txt

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) = 1071.6595546
delta logL = 0.0020979106248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1071.65936669
delta logL = 0.00228582943328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21478       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2593       1.0000          .0000       5.0000    
     3 'Normalizat'    .96808E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55562       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=   1071.659     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      226 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21513        141.23        .29169E-02** at limit **
   2  alpha         2.2517        3.2527        .41395        .11303E-05
   3  Normalizat    .96750E-01    .66219E-01    .13862        .20866E-04
   4  Prefactor     .55568        .77143E-01    .61427E-01    .26491E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.215127
  alpha      = 2.2517
  Normalizat = 0.0967496
  Prefactor  = 0.555677
 **********
 **   18 **HESSE 
 **********

 FCN=   1071.659     FROM HESSE     STATUS=OK            35 CALLS      261 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21513        5.6614        .10012E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2517        3.6228        .41526E-01   -.99486E-01
   3  Normalizat    .96750E-01    .27784        .61379E-03   -1.3842    
   4  Prefactor     .55568        .31849        .27174E-03   -1.0949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36937e-09
Minuit parameter uncertainties:
  1  2.20719
  2  3.83471
  3  0.282176
  4  0.319521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948455': 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) = 1071.65936451
delta logL = 0.00228800201603

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.151e-01  2.207e+00  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  2.252e+00  3.835e+00  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:  5.557e-01  3.195e-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.675e-02  2.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 124.557 42.382

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/948455/cmap_HighResolution_695001601_695606401_4FGL_J0818.2+4222_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-04', job_status='DONE', photon_flux_upper_limit='3.95e-07', time_completed='2023-01-17 00:56:05.028014', job_id='948455', GAL2='0.56', fit_tolerance='1e-08', EG2='0.10', EG='0.10', time_epoch_completed='1673945765.03', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.29e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='754' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 00:56:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 948455: <4FGL_J0818.2+4222_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 17 00:45:23 2023
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:46:36 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:46:36 2023
Terminated at Tue Jan 17 00:56:05 2023
Results reported at Tue Jan 17 00:56:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin754 124.557 42.3819 695001601 695606401 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 :                                   455.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            642 sec.

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

