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 15 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin715
RA = 124.557, Dec = 42.3819
tmin = 671414401, tmax = 672019201
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='934293', job_status='RUN', time_executed='2022-04-19 02:25:30.465987', time_epoch_executed='1650360330.47' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934293

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934293/ft1_4FGL_J0818.2+4222_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934293/ft1_4FGL_J0818.2+4222_weekly_bin715.fits outfile=/scratch/kocevski/934293/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin715.fits ra=124.557 dec=42.3819 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.58
user 7.21
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.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/934293/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin715.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.55
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 1460

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934293/ltcube_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.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/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.fits
.....................!
real 27.93
user 27.39
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934293/ltcube_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.fits outfile=/scratch/kocevski/934293/expmap_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.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/934293/ltcube_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.fits
.....................!
real 193.21
user 187.14
sys 5.57

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/934293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin715.fits scfile=/scratch/kocevski/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.fits outfile=/scratch/kocevski/934293/cmap_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin715.fits scfile=/scratch/kocevski/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.fits outfile=/scratch/kocevski/934293/cmap_HighResolution_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.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.58
user 0.40
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin715.fits', '/scratch/kocevski/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.fits', expMap='/scratch/kocevski/934293/expmap_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.fits', expCube='/scratch/kocevski/934293/ltcube_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934293/Model_4FGL_J0818.2+4222_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.2+4222'

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


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934293/ft2_4FGL_J0818.2+4222_weekly_bin715.fits
Exposure map: /scratch/kocevski/934293/expmap_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934293/ltcube_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934293/Model_4FGL_J0818.2+4222_weekly_bin715.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) = 15605.4018032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27514       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.508       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39716E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9710       1.0000         .10000E-03   10000.    
     6 'norm      '    4.6752       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3154       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67410E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2168       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12601E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.149       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.686       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3907       1.0000         .10000E-03   10000.    
    20 'norm      '    .79937       1.0000         .10000E-03   10000.    
    21 'norm      '    .66811       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4335       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.033       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15183E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .44600E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .34579E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .19967       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .19422       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98478       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15605.40     FROM MIGRAD    STATUS=FAILED      1468 CALLS     5368 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27887        4.4774        .30689E-02   -.36267E-03
   2  Prefactor     .10000E-03    11.138        .36285E-03** at limit **
   3  Prefactor     16.500        15.404        .98576E-04    .72657E-04
   4  Prefactor     .10004E-03    18.888        .41969E-02** at limit **
   5  Prefactor     7.9737        8.1283        .14202E-03    .40026E-05
   6  norm          4.6760        5.5792        .93060E-03   -.30688E-04
   7  norm          1.3152        .92040        .95933E-04    .97531E-03
   8  Prefactor     .10000E-03    1.0795        .12661E-02** at limit **
   9  Prefactor     .10011E-03    14.863        .12900    ** at limit **
  10  Prefactor     .10000E-03    2.3370        .25664E-02** at limit **
  11  norm          .10000E-03    1.1365        .12855E-02** at limit **
  12  norm          1.2161        .92925        .10369E-03    .24297E-03
  13  norm          1.5394        .42129        .40344E-04   -.23451E-02
  14  Prefactor     .10000E-03    4.4703        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.0467        .18142E-02** at limit **
  16  Prefactor     3.9532        1.8338        .10938E-03   -.52968E-03
  17  Prefactor     39.148        21.178        .64060E-04   -.15617E-03
  18  Prefactor     10.686        7.0431        .12256E-03   -.10667E-03
  19  Prefactor     5.3917        3.8966        .17308E-03   -.54649E-04
  20  norm          .79990        1.8624        .24073E-02    .89546E-02
  21  norm          .66518        3.0077        .40853E-03    .14192E-04
  22  Prefactor     1.4328        1.0590        .10631E-03   -.16062E-03
  23  Prefactor     21.026        27.968        .87335E-04   -.70815E-04
  24  Prefactor     .10019E-03    13.300        .13960    ** at limit **
  25  Prefactor     .10001E-03    15.643        .17166E-02** at limit **
  26  Prefactor     .10001E-03    29.562        .56575E-02** at limit **
  27  norm          .20023        .49661        .68888E-03    .19508E-01
  28  Prefactor     .19365        25.089        .19771E-02    .43716E-02
  29  Normalizat    .98479        .13316        .25804E-03   -.21342E-03
  30  Prefactor     .94112        .10059        .21038E-03   -.16536E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15605.40     FROM SIMPLEX   STATUS=UNCHANGED   1566 CALLS     6934 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27887        4.4774        .88923E-05   -1.5602    
   2  Prefactor     .10000E-03    11.138        .29777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.500        15.404        .11707E-05   -1.4895    
   4  Prefactor     .10004E-03    18.888        .20474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9737        8.1283        .11863E-05   -1.5143    
   6  norm          4.6760        5.5792        .11995E-05   -1.5275    
   7  norm          1.3152        .92040        .12116E-05   -1.5479    
   8  Prefactor     .10000E-03    1.0795        .11136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10011E-03    14.863        .18478E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3370        .15217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1365        .11923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2161        .92925        .12118E-05   -1.5487    
  13  norm          1.5394        .42129        .12096E-05   -1.5460    
  14  Prefactor     .10000E-03    4.4703        .30468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0467        .27601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9532        1.8338        .11986E-05   -1.5310    
  17  Prefactor     39.148        21.178        .11423E-05   -1.4456    
  18  Prefactor     10.686        7.0431        .11856E-05   -1.5054    
  19  Prefactor     5.3917        3.8966        .11989E-05   -1.5244    
  20  norm          .79990        1.8624        .12219E-05   -1.5529    
  21  norm          .66518        3.0077        .12368E-05   -1.5545    
  22  Prefactor     1.4328        1.0590        .12183E-05   -1.5469    
  23  Prefactor     21.026        27.968        .12468E-05   -1.4791    
  24  Prefactor     .10019E-03    13.300        .99194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    15.643        .17682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    29.562        .54213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .20023        .49661        .12240E-05   -1.5618    
  28  Prefactor     .19365        25.089        .12426E-05   -1.5620    
  29  Normalizat    .98479        .13316        .75268E-06   -.93542    
  30  Prefactor     .94112        .10059        .74257E-06   -.94719    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15605.40     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     7523 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27893        4.4880        .12276E-03   -.55567E-06
   2  Prefactor     .10000E-03    11.139        .72569E-04** at limit **
   3  Prefactor     16.500        15.396        .39430E-05    .32292E-04
   4  Prefactor     .10000E-03    19.261        .83939E-03** at limit **
   5  Prefactor     7.9737        8.1264        .56806E-05    .26417E-04
   6  norm          4.6760        5.5770        .37224E-04    .61083E-06
   7  norm          1.3152        .92020        .38373E-05    .13628E-03
   8  Prefactor     .10000E-03    1.0795        .25322E-03** at limit **
   9  Prefactor     .10010E-03    14.737        .12971    ** at limit **
  10  Prefactor     .10000E-03    2.3469        .51328E-03** at limit **
  11  norm          .10000E-03    1.1370        .25709E-03** at limit **
  12  norm          1.2161        .92916        .41475E-05    .27411E-04
  13  norm          1.5394        .42122        .16137E-05    .15052E-03
  14  Prefactor     .10000E-03    4.4706        .36285E-03** at limit **
  15  Prefactor     .10000E-03    6.0494        .36285E-03** at limit **
  16  Prefactor     3.9532        1.8332        .43751E-05    .19749E-04
  17  Prefactor     39.148        21.174        .12812E-04    .60340E-05
  18  Prefactor     10.686        7.0424        .49025E-05    .83482E-05
  19  Prefactor     5.3917        3.8961        .69233E-05    .13137E-05
  20  norm          .79990        1.8587        .48147E-03    .36021E-03
  21  norm          .66518        3.0037        .16341E-04    .27828E-06
  22  Prefactor     1.4328        1.0564        .42525E-05   -.24595E-04
  23  Prefactor     21.026        27.963        .34934E-05   -.10414E-05
  24  Prefactor     .10017E-03    13.188        .13993    ** at limit **
  25  Prefactor     .10000E-03    16.343        .68664E-04** at limit **
  26  Prefactor     .10000E-03    30.094        .11315E-02** at limit **
  27  norm          .20023        .40843        .13778E-03   -.29260E-03
  28  Prefactor     .19369        16.999        .39542E-03    .18113E-04
  29  Normalizat    .98479        .13113        .10321E-04    .61682E-04
  30  Prefactor     .94112        .99856E-01    .84150E-05    .79979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.278935
  Prefactor  = 0.0001
  Prefactor  = 16.5
  Prefactor  = 0.0001
  Prefactor  = 7.97367
  norm       = 4.67598
  norm       = 1.31521
  Prefactor  = 0.0001
  Prefactor  = 0.000100104
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.21607
  norm       = 1.53943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95318
  Prefactor  = 39.1476
  Prefactor  = 10.6863
  Prefactor  = 5.3917
  norm       = 0.799899
  norm       = 0.665179
  Prefactor  = 1.4328
  Prefactor  = 21.0264
  Prefactor  = 0.000100171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.200227
  Prefactor  = 0.19369
  Normalizat = 0.984786
  Prefactor  = 0.941122
 **********
 **   18 **HESSE 
 **********

 FCN=   15605.40     FROM HESSE     STATUS=OK           580 CALLS     8103 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27893        4.4876        .49103E-05   -1.5602    
   2  Prefactor     .10000E-03    11.139        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.500        15.394        .78861E-06   -1.4895    
   4  Prefactor     .10000E-03    19.277        .16788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9737        8.1301        .11361E-05   -1.5143    
   6  norm          4.6760        5.5766        .14890E-05   -1.5275    
   7  norm          1.3152        .92001        .76746E-06   -1.5479    
   8  Prefactor     .10000E-03    1.0795        .50644E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10010E-03    14.771        .12950       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3473        .10266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1370        .51419E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2161        .92899        .82951E-06   -1.5487    
  13  norm          1.5394        .42123        .36859E-06   -1.5460    
  14  Prefactor     .10000E-03    4.4706        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.0495        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9532        1.8331        .87502E-06   -1.5310    
  17  Prefactor     39.148        21.161        .25624E-05   -1.4456    
  18  Prefactor     10.686        7.0432        .98051E-06   -1.5054    
  19  Prefactor     5.3917        3.8954        .13847E-05   -1.5244    
  20  norm          .79990        1.8584        .96294E-04   -1.5529    
  21  norm          .66518        3.0015        .32683E-05   -1.5545    
  22  Prefactor     1.4328        1.0560        .85051E-06   -1.5469    
  23  Prefactor     21.026        27.961        .34934E-05   -1.4791    
  24  Prefactor     .10017E-03    13.192        .13987       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.344        .13733E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    30.116        .22630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .20023        .39266        .55110E-05   -1.5618    
  28  Prefactor     .19369        15.687        .15817E-04   -1.5620    
  29  Normalizat    .98479        .13063        .20643E-05   -.93542    
  30  Prefactor     .94112        .99637E-01    .16830E-05   -.94719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81545e-11
Minuit parameter uncertainties:
  1  2.23742
  2  3.10351e-09
  3  15.3981
  4  4.52409e-05
  5  8.13119
  6  5.57719
  7  0.920023
  8  8.85722e-09
  9  0.00247771
  10  6.22855e-07
  11  4.57015e-08
  12  0.928999
  13  0.421232
  14  8.23842e-09
  15  1.2769e-06
  16  1.83315
  17  21.1649
  18  7.04375
  19  3.89562
  20  1.85852
  21  2.82598
  22  1.05599
  23  27.9785
  24  0.0030031
  25  4.29722e-05
  26  3.19268e-05
  27  0.392665
  28  3.48626
  29  0.130668
  30  0.0996568
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.539e+00  4.212e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.411e-01  9.966e-02  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.848e-01  1.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 52.34
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.68e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 1.18e-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) = 15605.3167949
delta logL = 0.0807664407639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15605.3125529
delta logL = 0.0850083892637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5255       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8944       1.0000          .0000       5.0000    
     3 'Normalizat'    .99119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93951       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=   15605.31     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5255        1.1616        .86435E-02    .17415E-03
   2  alpha         1.8944        .60123        .27379        .10001E-05
   3  Normalizat    .99121        .11029        .46056E-01    .31587E-04
   4  Prefactor     .93950        .86813E-01    .45507E-01    .17266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52547
  alpha      = 1.89441
  Normalizat = 0.99121
  Prefactor  = 0.939496
 **********
 **   18 **HESSE 
 **********

 FCN=   15605.31     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5255        .42786        .41314E-04   -1.5461    
   2  alpha         1.8944        .24672        .10877E-01   -.24467    
   3  Normalizat    .99121        .12226        .25738E-03   -.93325    
   4  Prefactor     .93950        .97464E-01    .21060E-03   -.94774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76299e-13
Minuit parameter uncertainties:
  1  0.427864
  2  0.247149
  3  0.12229
  4  0.097482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934293': 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) = 15605.3125528
delta logL = 0.085008453123

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.525e+00  4.279e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.894e+00  2.471e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.395e-01  9.748e-02  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.912e-01  1.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.57
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.89 +/- 0.25
Photon Flux (Free Index): 6.91e-08 +/- 2.66e-08
Energy Flux (Free Index): 4.69e-05 +/- 1.64e-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/934293/cmap_HighResolution_671414401_672019201_4FGL_J0818.2+4222_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.68e-08', energy_flux2='4.69e-05', photon_flux_error='2.10e-08', dlogl='8.50e-02', energy_flux='4.33e-05', photon_flux2='6.91e-08', job_status='DONE', time_completed='2022-04-19 03:05:18.809339', photon_index_error2='0.25', photon_index2='1.89', ts='52.34', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.98', time_epoch_completed='1650362718.81', return_code='0', job_id='934293', GAL2='0.94', EG2='0.99', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.66e-08', ts2='52.57', photon_index='2.00' WHERE bin_id='715' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:05:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 930559: <4FGL_J0818.2+4222_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:17 2022
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:12:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:12:33 2022
Terminated at Tue Apr 19 02:53:37 2022
Results reported at Tue Apr 19 02:53:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin715 124.557 42.3819 671414401 672019201 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 :                                   2388.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             320.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2463 sec.
    Turnaround time :                            10040 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 934293: <4FGL_J0818.2+4222_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:21 2022
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:25:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:25:06 2022
Terminated at Tue Apr 19 03:05:19 2022
Results reported at Tue Apr 19 03:05:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin715 124.557 42.3819 671414401 672019201 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 :                                   2386.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             337.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2413 sec.
    Turnaround time :                            10078 sec.

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

