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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1415
RA = 125.299, Dec = 10.1287
tmin = 606096001, tmax = 606355201
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='420673', job_status='RUN', time_executed='2021-08-29 17:45:47.138841', time_epoch_executed='1630284347.14' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420673

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420673/ft1_4FGL_J0821.1+1007_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420673/ft2_4FGL_J0821.1+1007_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420673/ft1_4FGL_J0821.1+1007_daily_bin1415.fits outfile=/scratch/kocevski/420673/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1415.fits ra=125.299 dec=10.1287 rad=12.0 tmin=606096001.0 tmax=606355201.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 10.73
user 3.46
sys 7.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/420673/ft2_4FGL_J0821.1+1007_daily_bin1415.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/420673/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1415.fits evtable="EVENTS" outfile="/scratch/kocevski/420673/ft1_filtered_4FGL_J0821.1+1007_daily_bin1415.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 7.40
user 0.34
sys 7.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420673/ft1_filtered_4FGL_J0821.1+1007_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/420673/ft2_4FGL_J0821.1+1007_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/420673/ltcube_606096001_606355201_4FGL_J0821.1+1007_daily_bin1415.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/420673/ft2_4FGL_J0821.1+1007_daily_bin1415.fits
.....................!
real 20.30
user 12.07
sys 8.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420673/ft1_filtered_4FGL_J0821.1+1007_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/420673/ft2_4FGL_J0821.1+1007_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/420673/ltcube_606096001_606355201_4FGL_J0821.1+1007_daily_bin1415.fits outfile=/scratch/kocevski/420673/expmap_606096001_606355201_4FGL_J0821.1+1007_daily_bin1415.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/420673/ltcube_606096001_606355201_4FGL_J0821.1+1007_daily_bin1415.fits
.....................!
real 204.16
user 184.99
sys 13.87

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/420673/ft1_filtered_4FGL_J0821.1+1007_daily_bin1415.fits scfile=/scratch/kocevski/420673/ft2_4FGL_J0821.1+1007_daily_bin1415.fits outfile=/scratch/kocevski/420673/cmap_606096001_606355201_4FGL_J0821.1+1007_daily_bin1415.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 7.67
user 0.39
sys 6.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420673/ft1_filtered_4FGL_J0821.1+1007_daily_bin1415.fits scfile=/scratch/kocevski/420673/ft2_4FGL_J0821.1+1007_daily_bin1415.fits outfile=/scratch/kocevski/420673/cmap_HighResolution_606096001_606355201_4FGL_J0821.1+1007_daily_bin1415.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 8.32
user 0.39
sys 6.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0381       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    201.69       1.0000         .10000E-03   10000.    
     6 'norm      '    .10854E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.737       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48648       1.0000         .10000E-03   10000.    
    15 'norm      '    10.640       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.719       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0538       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99958       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=   6748.862     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1864 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.198        .15594E-05** at limit **
   2  Prefactor     3.0385        3.3575        .18836E-06   -.49883E-03
   3  norm          .10000E-03    4.8837       -.26385E-06** at limit **
   4  Prefactor     .10000E-03    3.5217       -.21495E-06** at limit **
   5  Prefactor     201.67        164.86       -.13919E-04   -.28060E-06
   6  norm          .10000E-03    204.04       -.26241E-04** at limit **
   7  Prefactor     .10000E-03    35.216       -.45557E-04** at limit **
   8  norm          .10000E-03    10.361        .37460E-05** at limit **
   9  norm          .10000E-03    10.611       -.34686E-05** at limit **
  10  norm          .10000E-03    1.2226        .26158E-06** at limit **
  11  Prefactor     .10000E-03    37.594        .49256E-04** at limit **
  12  Prefactor     13.737        15.313       -.34900E-06   -.85149E-04
  13  norm          3.6559        1.4107       -.92945E-08   -.26636E-03
  14  Prefactor     .48679        4.4304       -.43662E-05    .60211E-03
  15  norm          10.640        8.2886       -.12268E-05   -.16632E-02
  16  Prefactor     37.718        38.325       -.10269E-05    .90343E-04
  17  norm          .10000E-03    2.0106       -.15094E-06** at limit **
  18  Normalizat    1.0539        .19884        .95256E-06    .32007E-03
  19  Prefactor     .99952        .15176        .99137E-06    .30430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.03847
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 201.669
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7368
  norm       = 3.65588
  Prefactor  = 0.486786
  norm       = 10.64
  Prefactor  = 37.7177
  norm       = 0.0001
  Normalizat = 1.05388
  Prefactor  = 0.999515
 **********
 **   18 **HESSE 
 **********

 FCN=   6748.862     FROM HESSE     STATUS=OK           262 CALLS     2126 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0385        3.3410        .14650E-03   -1.5359    
   3  norm          .10000E-03    4.8885        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5250        .15055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     201.67        164.57        .14227E-03   -1.2858    
   6  norm          .10000E-03    205.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2356        .88690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    37.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.737        15.346        .10807E-03   -1.4967    
  13  norm          3.6559        1.4094        .57006E-04   -1.5326    
  14  Prefactor     .48679        10.565        .33032E-02   -1.5568    
  15  norm          10.640        8.3587        .61414E-03   -1.5055    
  16  Prefactor     37.718        38.421        .65258E-04   -1.4479    
  17  norm          .10000E-03    2.0108        .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0539        .24120        .27988E-03   -.91247    
  19  Prefactor     .99952        .18437        .22429E-03   -.92746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34201e-09
Minuit parameter uncertainties:
  1  3.75303e-06
  2  3.34118
  3  9.37896e-07
  4  4.25945e-07
  5  164.947
  6  2.15786e-05
  7  0.000178539
  8  2.49044e-05
  9  2.00772e-06
  10  1.13826e-06
  11  0.000147588
  12  15.3501
  13  1.40945
  14  4.53604
  15  8.35957
  16  38.4465
  17  2.19431e-07
  18  0.241448
  19  0.184482
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.374e+01  1.535e+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:  9.995e-01  1.845e-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.054e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.28e-05

TS (Fixed Index): 1.08
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420673/likelihoodResults_606096001_606355201_4FGL_J0821.1+1007_daily_bin1415.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) = 6748.82360287
delta logL = 0.037940568589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6748.82147741
delta logL = 0.0400660291343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.007       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1253       1.0000          .0000       10.000    
     3 'Normalizat'    1.0619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99505       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=   6748.821     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      285 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.016        22.873        .94384E-04   -.33950E-03
   2  Index         2.1272        .96812        .87265E-02   -.13425E-03
   3  Normalizat    1.0619        .23607        .27892E-03    .16259E-02
   4  Prefactor     .99507        .18397        .22471E-03    .19941E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0157
  Index      = 2.12722
  Normalizat = 1.06186
  Prefactor  = 0.995067
 **********
 **   18 **HESSE 
 **********

 FCN=   6748.821     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.016        22.064        .18877E-04   -1.4859    
   2  Index         2.1272        .93376        .34906E-03   -.61206    
   3  Normalizat    1.0619        .23614        .55784E-04   -.90986    
   4  Prefactor     .99507        .18407        .44943E-04   -.92894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06033e-09
Minuit parameter uncertainties:
  1  22.0735
  2  0.942059
  3  0.236372
  4  0.184182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420673': 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) = 6748.82147401
delta logL = 0.0400694303144

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.802e+01  2.207e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.127e+00  9.421e-01  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:  9.951e-01  1.842e-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.062e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.13 +/- 0.94
Photon Flux (Free Index): 2.91e-08 +/- 4.16e-08
Energy Flux (Free Index): 1.51e-05 +/- 2.26e-05

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/420673/cmap_HighResolution_606096001_606355201_4FGL_J0821.1+1007_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.51e-05', photon_flux_error='3.96e-08', dlogl='4.01e-02', energy_flux='1.15e-05', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-08-29 17:57:20.624900', photon_index_error2='0.94', photon_index2='2.13', ts='1.08', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='2.26e-05', EG='1.05', time_epoch_completed='1630285040.62', return_code='0', job_id='420673', GAL2='1.00', EG2='1.06', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.16e-08', ts2='1.15', photon_index='2.41' WHERE bin_id='1415' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:57:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 420673: <4FGL_J0821.1+1007_daily_bin1415> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1415> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:41:12 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:41:13 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:41:13 2021
Terminated at Sun Aug 29 17:57:22 2021
Results reported at Sun Aug 29 17:57:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1415 125.299 10.1287 606096001 606355201 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 :                                   786.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

