/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 210 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 = 7367
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1265
RA = 125.299, Dec = 10.1287
tmin = 567216001, tmax = 567475201
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='420424', job_status='RUN', time_executed='2021-08-29 17:45:44.299801', time_epoch_executed='1630284344.3' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420424/ft1_4FGL_J0821.1+1007_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420424/ft2_4FGL_J0821.1+1007_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420424/ft1_4FGL_J0821.1+1007_daily_bin1265.fits outfile=/scratch/kocevski/420424/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1265.fits ra=125.299 dec=10.1287 rad=12.0 tmin=567216001.0 tmax=567475201.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.11
user 2.61
sys 4.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420424/ft1_filtered_4FGL_J0821.1+1007_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/420424/ft2_4FGL_J0821.1+1007_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/420424/ltcube_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.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/420424/ft2_4FGL_J0821.1+1007_daily_bin1265.fits
.....................!
real 17.70
user 12.11
sys 5.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420424/ft1_filtered_4FGL_J0821.1+1007_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/420424/ft2_4FGL_J0821.1+1007_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/420424/ltcube_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.fits outfile=/scratch/kocevski/420424/expmap_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.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/420424/ltcube_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.fits
.....................!
real 196.66
user 185.45
sys 9.94

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/420424/ft1_filtered_4FGL_J0821.1+1007_daily_bin1265.fits scfile=/scratch/kocevski/420424/ft2_4FGL_J0821.1+1007_daily_bin1265.fits outfile=/scratch/kocevski/420424/cmap_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.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 5.00
user 0.37
sys 4.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420424/ft1_filtered_4FGL_J0821.1+1007_daily_bin1265.fits scfile=/scratch/kocevski/420424/ft2_4FGL_J0821.1+1007_daily_bin1265.fits outfile=/scratch/kocevski/420424/cmap_HighResolution_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.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 4.86
user 0.39
sys 4.37

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/420424/ft1_filtered_4FGL_J0821.1+1007_daily_bin1265.fits', '/scratch/kocevski/420424/ft2_4FGL_J0821.1+1007_daily_bin1265.fits', expMap='/scratch/kocevski/420424/expmap_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.fits', expCube='/scratch/kocevski/420424/ltcube_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/420424/Model_4FGL_J0821.1+1007_daily_bin1265.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/420424/ft1_filtered_4FGL_J0821.1+1007_daily_bin1265.fits
Spacecraft file(s): /scratch/kocevski/420424/ft2_4FGL_J0821.1+1007_daily_bin1265.fits
Exposure map: /scratch/kocevski/420424/expmap_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.fits
Exposure cube: /scratch/kocevski/420424/ltcube_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/420424/Model_4FGL_J0821.1+1007_daily_bin1265.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) = 2403.23929267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    293.87       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.391       1.0000         .10000E-03   10000.    
     6 'norm      '    76.870       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.229       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3314       1.0000         .10000E-03   10000.    
    13 'norm      '    .93767       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.678       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.5469       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8303       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .59502       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=   2402.566     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     2173 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     293.89        189.55        .10227E-04    .13784E-05
   2  Prefactor     .10000E-03    13.457       -.66703E-07** at limit **
   3  norm          .10000E-03    55.621       -.29608E-04** at limit **
   4  Prefactor     .10000E-03    34.337        .68301E-05** at limit **
   5  Prefactor     26.409        1614.2        .34092E-04    .74660E-06
   6  norm          76.982        281.20        .12766E-03   -.44887E-06
   7  Prefactor     .10000E-03    32.661       -.16332E-05** at limit **
   8  norm          31.230        39.237        .10198E-05    .16122E-04
   9  norm          .10000E-03    26.919       -.20049E-04** at limit **
  10  norm          3.3025        6.4232       -.59339E-05   -.12525E-03
  11  Prefactor     .10000E-03    49.233        .71350E-05** at limit **
  12  Prefactor     6.3274        36.386       -.75033E-05   -.14199E-04
  13  norm          .93768        1.2658       -.65094E-07   -.11436E-03
  14  Prefactor     13.677        16.779        .88271E-07   -.39213E-04
  15  norm          .10000E-03    23.169        .78187E-05** at limit **
  16  Prefactor     .10000E-03    39.545        .23084E-04** at limit **
  17  norm          6.5472        7.3204        .43640E-05    .37532E-04
  18  Normalizat    1.8303        .37254        .13870E-05   -.10057E-03
  19  Prefactor     .59502        .27400       -.46332E-05   -.12748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 293.89
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4086
  norm       = 76.9825
  Prefactor  = 0.0001
  norm       = 31.2299
  norm       = 0.0001
  norm       = 3.30248
  Prefactor  = 0.0001
  Prefactor  = 6.32742
  norm       = 0.937681
  Prefactor  = 13.6769
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.54723
  Normalizat = 1.83027
  Prefactor  = 0.595019
 **********
 **   18 **HESSE 
 **********

 FCN=   2402.566     FROM HESSE     STATUS=OK           264 CALLS     2437 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     293.89        189.59        .11842E-03   -1.2262    
   2  Prefactor     .10000E-03    13.685        .17533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    55.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.409        1610.9        .77980E-04   -1.4680    
   6  norm          76.982        280.99        .22900E-03   -1.3951    
   7  Prefactor     .10000E-03    32.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.230        39.216        .71700E-04   -1.4590    
   9  norm          .10000E-03    26.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3025        6.4152        .16706E-03   -1.5344    
  11  Prefactor     .10000E-03    49.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3274        36.660        .15952E-03   -1.5205    
  13  norm          .93768        1.2653        .51774E-04   -1.5514    
  14  Prefactor     13.677        16.853        .10830E-03   -1.4968    
  15  norm          .10000E-03    23.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5472        7.3248        .13698E-03   -1.5196    
  18  Normalizat    1.8303        .44976        .25028E-03   -.68876    
  19  Prefactor     .59502        .32624        .30371E-03   -1.0780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37658e-10
Minuit parameter uncertainties:
  1  189.995
  2  7.92624e-05
  3  5.25096e-05
  4  2.63453e-05
  5  425.111
  6  286.065
  7  3.81934e-05
  8  39.2485
  9  6.00247e-05
  10  6.41652
  11  7.63354e-05
  12  30.4887
  13  1.26538
  14  16.8586
  15  5.43686e-05
  16  1.74124e-05
  17  7.32585
  18  0.450783
  19  0.327284
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  6.327e+00  3.049e+01  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:  5.950e-01  3.273e-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:  1.830e+00  4.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 2.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420424/likelihoodResults_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.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) = 2402.51137056
delta logL = 0.0546303110023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2402.50147513
delta logL = 0.064525738158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5793       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0645       1.0000          .0000       10.000    
     3 'Normalizat'    1.8068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60477       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=   2402.501     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      261 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5720        32.883        .18811E-03   -.11949E-03
   2  Index         3.0656        2.3550        .88433E-02   -.37322E-04
   3  Normalizat    1.8069        .44401        .25151E-03   -.30520E-04
   4  Prefactor     .60471        .32454        .30141E-03    .14280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.57201
  Index      = 3.06564
  Normalizat = 1.80693
  Prefactor  = 0.604711
 **********
 **   18 **HESSE 
 **********

 FCN=   2402.501     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5720        19.251        .75242E-05   -1.5280    
   2  Index         3.0656        1.8369        .35373E-03   -.39724    
   3  Normalizat    1.8069        .44464        .50302E-04   -.69483    
   4  Prefactor     .60471        .32474        .12057E-04   -1.0739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99256e-10
Minuit parameter uncertainties:
  1  18.7735
  2  1.88933
  3  0.445643
  4  0.325751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420424': 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) = 2402.50147475
delta logL = 0.0645261192776

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  4.572e+00  1.877e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.066e+00  1.889e+00  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:  6.047e-01  3.258e-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:  1.807e+00  4.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 125.299 10.129

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/420424/cmap_HighResolution_567216001_567475201_4FGL_J0821.1+1007_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-02', job_status='DONE', photon_flux_upper_limit='2.34e-07', time_completed='2021-08-29 17:53:43.476379', job_id='420424', GAL2='0.60', fit_tolerance='1e-08', EG2='1.81', EG='1.83', time_epoch_completed='1630284823.48', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='6.45e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1265' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:53:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 420424: <4FGL_J0821.1+1007_daily_bin1265> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1265> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:40:54 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:40:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:40:55 2021
Terminated at Sun Aug 29 17:53:44 2021
Results reported at Sun Aug 29 17:53:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1265 125.299 10.1287 567216001 567475201 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 :                                   540.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             249.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

