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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin714
RA = 125.299, Dec = 10.1287
tmin = 670809601, tmax = 671414401
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='421737', job_status='RUN', time_executed='2022-04-12 01:01:48.230028', time_epoch_executed='1649750508.23' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421737

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421737/ft1_4FGL_J0821.1+1007_weekly_bin714.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421737/ft1_4FGL_J0821.1+1007_weekly_bin714.fits outfile=/scratch/kocevski/421737/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin714.fits ra=125.299 dec=10.1287 rad=12.0 tmin=670809601.0 tmax=671414401.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 11.70
user 11.30
sys 0.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.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/421737/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin714.fits evtable="EVENTS" outfile="/scratch/kocevski/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.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.53
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 1092

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/421737/ltcube_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.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/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits
.....................!
real 25.52
user 25.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/421737/ltcube_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.fits outfile=/scratch/kocevski/421737/expmap_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.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/421737/ltcube_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.fits
.....................!
real 191.11
user 185.12
sys 5.12

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0821.1+1007 @ 125.299 10.1287

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.fits scfile=/scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits outfile=/scratch/kocevski/421737/cmap_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.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=125.299 yref=10.1287 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.fits scfile=/scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits outfile=/scratch/kocevski/421737/cmap_HighResolution_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.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=125.299 yref=10.1287 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/421737/Model_4FGL_J0821.1+1007_weekly_bin714.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/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.fits.....................!
real 115.36
user 113.93
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.fits', '/scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits', expMap='/scratch/kocevski/421737/expmap_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.fits', expCube='/scratch/kocevski/421737/ltcube_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/421737/Model_4FGL_J0821.1+1007_weekly_bin714.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0821.1+1007'

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.731e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/421737/ft1_filtered_4FGL_J0821.1+1007_weekly_bin714.fits
Spacecraft file(s): /scratch/kocevski/421737/ft2_4FGL_J0821.1+1007_weekly_bin714.fits
Exposure map: /scratch/kocevski/421737/expmap_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.fits
Exposure cube: /scratch/kocevski/421737/ltcube_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/421737/Model_4FGL_J0821.1+1007_weekly_bin714.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) = 12106.5984591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5798       1.0000         .10000E-03   10000.    
     3 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5673       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11661E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    87.472       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.469       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2768       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28264E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1791       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94836       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12106.58     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1913 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.539        34.120        .16463E-05   -.38853E-04
   2  Prefactor     6.5774        2.8006        .12911E-07   -.61929E-04
   3  norm          .10000E-03    7.3502       -.13307E-06** at limit **
   4  Prefactor     4.5650        6.2248        .27876E-06   -.37452E-05
   5  Prefactor     .10000E-03    83.929       -.17488E-06** at limit **
   6  norm          .10000E-03    20.317       -.18634E-06** at limit **
   7  Prefactor     87.451        28.182        .97657E-06   -.37890E-04
   8  norm          .10000E-03    2.9164       -.52765E-07** at limit **
   9  norm          .10000E-03    13.247       -.73508E-06** at limit **
  10  norm          .10000E-03    .65502       -.55777E-07** at limit **
  11  Prefactor     10.472        12.860        .14435E-06   -.12368E-04
  12  Prefactor     .10000E-03    2.8857        .36085E-07** at limit **
  13  norm          1.2766        .78190        .55309E-07    .27916E-04
  14  Prefactor     .10000E-03    1.6892        .34944E-06** at limit **
  15  norm          5.6637        6.0463        .71024E-07   -.35319E-05
  16  Prefactor     2.1765        27.900        .96124E-05   -.18300E-05
  17  norm          .10000E-03    1.0361        .69146E-08** at limit **
  18  Normalizat    .94843        .14168       -.25920E-06   -.37756E-04
  19  Prefactor     1.0557        .11054       -.54775E-06   -.14599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.5388
  Prefactor  = 6.57738
  norm       = 0.0001
  Prefactor  = 4.565
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 87.4515
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4718
  Prefactor  = 0.0001
  norm       = 1.27659
  Prefactor  = 0.0001
  norm       = 5.66367
  Prefactor  = 2.17654
  norm       = 0.0001
  Normalizat = 0.94843
  Prefactor  = 1.05567
 **********
 **   18 **HESSE 
 **********

 FCN=   12106.58     FROM HESSE     STATUS=OK           266 CALLS     2179 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.539        34.117        .51141E-04   -1.4137    
   2  Prefactor     6.5774        2.8009        .11273E-03   -1.5195    
   3  norm          .10000E-03    7.4283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5650        6.2081        .18836E-03   -1.5281    
   5  Prefactor     .10000E-03    84.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     87.451        28.197        .42958E-04   -1.3835    
   8  norm          .10000E-03    2.9252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .66373        .86971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.472        12.857        .12383E-03   -1.5061    
  12  Prefactor     .10000E-03    2.9001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2766        .76957        .72443E-04   -1.5482    
  14  Prefactor     .10000E-03    3.8548        .27528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6637        6.0367        .16877E-03   -1.5232    
  16  Prefactor     2.1765        28.129        .13944E-02   -1.5413    
  17  norm          .10000E-03    1.0362        .10937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94843        .16304        .27968E-03   -.94779    
  19  Prefactor     1.0557        .12766        .21460E-03   -.90896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9672e-10
Minuit parameter uncertainties:
  1  34.1279
  2  2.80091
  3  1.16741e-05
  4  6.20894
  5  3.12383e-05
  6  3.43438e-07
  7  28.2012
  8  6.18793e-07
  9  0.000140415
  10  1.42127e-06
  11  12.8606
  12  2.21205e-06
  13  0.769571
  14  1.64084e-05
  15  6.03736
  16  15.6579
  17  3.04032e-07
  18  0.163124
  19  0.1277
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.212e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.056e+00  1.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.484e-01  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 3.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/421737/likelihoodResults_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.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): 102
logL (Free Index) = 12106.5790144
delta logL = -0.00164196055994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12106.5773721
delta logL = 3.81689460482e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3867       1.0000          .0000       10.000    
     3 'Normalizat'    .94843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+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.

 FCN=   12106.58     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10177E-03    27.336        .18142E-02** at limit **
   2  Index         2.3195        7.2823        .50000        .56073E-04
   3  Normalizat    .94843        .10078E-01    .27968E-03   -.11365E-03
   4  Prefactor     1.0557        .81555E-02    .21460E-03    .20103E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010177
  Index      = 2.31947
  Normalizat = 0.948427
  Prefactor  = 1.05568
 **********
 **   18 **HESSE 
 **********

 FCN=   12106.58     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10177E-03    116.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3195        5.7921        .50000       -.56582    
   3  Normalizat    .94843        .21508E-01    .11187E-04   -.94779    
   4  Prefactor     1.0557        .17405E-01    .42920E-04   -.90896    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.65323e-08
Minuit parameter uncertainties:
  1  0.0287669
  2  354.696
  3  0.021508
  4  0.0174054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421737': 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): 102
logL (Free Index) = 12106.5773714
delta logL = 1.06620609586e-06

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.018e-04  2.877e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.319e+00  3.547e+02  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.056e+00  1.741e-02  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.484e-01  2.151e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.299 10.129

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/421737/cmap_HighResolution_670809601_671414401_4FGL_J0821.1+1007_weekly_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-03', job_status='DONE', photon_flux_upper_limit='3.27e-08', time_completed='2022-04-12 01:16:08.550487', job_id='421737', GAL2='1.06', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1649751368.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='714' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 12 01:16:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 421737: <4FGL_J0821.1+1007_weekly_bin714> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin714> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Apr 12 01:00:34 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 01:00:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 01:00:35 2022
Terminated at Tue Apr 12 01:16:09 2022
Results reported at Tue Apr 12 01:16:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin714 125.299 10.1287 670809601 671414401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0821.1+1007 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   860.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

