/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 82 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 = 7322
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin699
RA = 125.299, Dec = 10.1287
tmin = 420508801, tmax = 420768001
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='418478', job_status='RUN', time_executed='2021-08-29 17:39:41.390270', time_epoch_executed='1630283981.39' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418478/ft1_4FGL_J0821.1+1007_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418478/ft2_4FGL_J0821.1+1007_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418478/ft1_4FGL_J0821.1+1007_daily_bin699.fits outfile=/scratch/kocevski/418478/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin699.fits ra=125.299 dec=10.1287 rad=12.0 tmin=420508801.0 tmax=420768001.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 12.59
user 3.13
sys 9.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418478/ft1_filtered_4FGL_J0821.1+1007_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/418478/ft2_4FGL_J0821.1+1007_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/418478/ltcube_420508801_420768001_4FGL_J0821.1+1007_daily_bin699.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/418478/ft2_4FGL_J0821.1+1007_daily_bin699.fits
.....................!
real 22.86
user 12.09
sys 10.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418478/ft1_filtered_4FGL_J0821.1+1007_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/418478/ft2_4FGL_J0821.1+1007_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/418478/ltcube_420508801_420768001_4FGL_J0821.1+1007_daily_bin699.fits outfile=/scratch/kocevski/418478/expmap_420508801_420768001_4FGL_J0821.1+1007_daily_bin699.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/418478/ltcube_420508801_420768001_4FGL_J0821.1+1007_daily_bin699.fits
.....................!
real 204.13
user 187.18
sys 15.80

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/418478/ft1_filtered_4FGL_J0821.1+1007_daily_bin699.fits scfile=/scratch/kocevski/418478/ft2_4FGL_J0821.1+1007_daily_bin699.fits outfile=/scratch/kocevski/418478/cmap_420508801_420768001_4FGL_J0821.1+1007_daily_bin699.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 9.17
user 0.38
sys 8.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418478/ft1_filtered_4FGL_J0821.1+1007_daily_bin699.fits scfile=/scratch/kocevski/418478/ft2_4FGL_J0821.1+1007_daily_bin699.fits outfile=/scratch/kocevski/418478/cmap_HighResolution_420508801_420768001_4FGL_J0821.1+1007_daily_bin699.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 9.48
user 0.39
sys 9.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34601E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2701       1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2294       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7921       1.0000         .10000E-03   10000.    
     6 'norm      '    49.088       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.189       1.0000         .10000E-03   10000.    
     8 'norm      '    11.712       1.0000         .10000E-03   10000.    
     9 'norm      '    18.016       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2790       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.687       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0101       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5371       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96911       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0527       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=   5571.610     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     2175 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.226        .12751    ** at limit **
   2  Prefactor     4.2702        3.8596        .12861E-03   -.96709E-04
   3  norm          .10000E-03    5.3655        .16884E-02** at limit **
   4  Prefactor     4.2328        9.8567        .19594E-03   -.46069E-04
   5  Prefactor     4.0002        622.93        .20729E-03   -.32906E-05
   6  norm          49.218        85.717        .28618E-03    .15573E-04
   7  Prefactor     11.217        36.295        .11977E-03   -.37020E-05
   8  norm          11.736        17.828        .11705E-03    .12432E-04
   9  norm          18.035        22.246        .94360E-04   -.16867E-05
  10  norm          4.2788        3.4765        .12072E-03    .37765E-04
  11  Prefactor     .10000E-03    15.144        .18142E-02** at limit **
  12  Prefactor     19.681        16.468        .90269E-04   -.11335E-04
  13  norm          2.0101        1.0730        .14600E-03   -.24793E-03
  14  Prefactor     .10000E-03    2.9939        .12575E-02** at limit **
  15  norm          8.5338        7.5531        .13720E-03   -.82036E-05
  16  Prefactor     .10000E-03    21.302        .18142E-02** at limit **
  17  norm          .10000E-03    2.4694        .11453E-02** at limit **
  18  Normalizat    .96902        .23469        .27380E-03    .51819E-04
  19  Prefactor     1.0527        .18710        .21707E-03    .62639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.27024
  norm       = 0.0001
  Prefactor  = 4.23282
  Prefactor  = 4.00019
  norm       = 49.2175
  Prefactor  = 11.2167
  norm       = 11.7361
  norm       = 18.0347
  norm       = 4.27877
  Prefactor  = 0.0001
  Prefactor  = 19.6806
  norm       = 2.01014
  Prefactor  = 0.0001
  norm       = 8.53376
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.969023
  Prefactor  = 1.05272
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.610     FROM HESSE     STATUS=OK           258 CALLS     2433 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.511        .12939       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2702        3.8591        .51443E-05   -1.5295    
   3  norm          .10000E-03    5.3655        .33768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2328        9.8560        .78375E-05   -1.5296    
   5  Prefactor     4.0002        621.95        .82917E-05   -1.5308    
   6  norm          49.218        85.719        .11447E-04   -1.4304    
   7  Prefactor     11.217        36.292        .47907E-05   -1.5038    
   8  norm          11.736        17.828        .46822E-05   -1.5023    
   9  norm          18.035        22.246        .37744E-05   -1.4858    
  10  norm          4.2788        3.4764        .48286E-05   -1.5294    
  11  Prefactor     .10000E-03    15.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.681        16.467        .36108E-05   -1.4820    
  13  norm          2.0101        1.0729        .58401E-05   -1.5424    
  14  Prefactor     .10000E-03    2.9942        .25149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5338        7.5531        .54878E-05   -1.5124    
  16  Prefactor     .10000E-03    21.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4694        .22906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .96902        .23493        .10952E-04   -.94076    
  19  Prefactor     1.0527        .18729        .86827E-05   -.90992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20536e-11
Minuit parameter uncertainties:
  1  8.40693e-05
  2  3.85929
  3  5.60087e-06
  4  9.85981
  5  100.842
  6  85.9344
  7  36.3636
  8  17.8365
  9  22.256
  10  3.47655
  11  6.27302e-05
  12  16.4711
  13  1.07295
  14  9.06956e-07
  15  7.55396
  16  1.15508e-05
  17  8.51989e-08
  18  0.235178
  19  0.187407
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.968e+01  1.647e+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:  1.053e+00  1.874e-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.690e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/418478/likelihoodResults_420508801_420768001_4FGL_J0821.1+1007_daily_bin699.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) = 5571.6099276
delta logL = 1.66888494277e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5571.60990781
delta logL = 3.64750576409e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.806       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4025       1.0000          .0000       10.000    
     3 'Normalizat'    .96953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0525       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=   5571.610     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      265 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.809        24.902        .89997E-04    .14931E-03
   2  Index         2.4014        1.1263        .81632E-02    .24045E-04
   3  Normalizat    .96969        .24318        .27371E-03    .24501E-03
   4  Prefactor     1.0524        .19116        .21710E-03    .49396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8091
  Index      = 2.40145
  Normalizat = 0.969695
  Prefactor  = 1.05238
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.610     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.809        22.228        .35999E-05   -1.4818    
   2  Index         2.4014        1.0038        .32653E-03   -.54651    
   3  Normalizat    .96969        .24040        .10949E-04   -.94053    
   4  Prefactor     1.0524        .19011        .43420E-04   -.91003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97184e-10
Minuit parameter uncertainties:
  1  22.237
  2  1.01327
  3  0.240665
  4  0.190232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418478': 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) = 5571.60990679
delta logL = 3.74960372937e-05

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.981e+01  2.224e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.401e+00  1.013e+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:  1.052e+00  1.902e-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.697e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.40 +/- 1.01
Photon Flux (Free Index): 5.04e-08 +/- 6.60e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.48e-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/418478/cmap_HighResolution_420508801_420768001_4FGL_J0821.1+1007_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='1.65e-05', photon_flux_error='4.25e-08', dlogl='3.75e-05', energy_flux='1.64e-05', photon_flux2='5.04e-08', job_status='DONE', time_completed='2021-08-29 17:51:07.678951', photon_index_error2='1.01', photon_index2='2.40', ts='2.50', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.48e-05', EG='0.97', time_epoch_completed='1630284667.68', return_code='0', job_id='418478', GAL2='1.05', EG2='0.97', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.60e-08', ts2='2.50', photon_index='2.41' WHERE bin_id='699' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:51:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 418478: <4FGL_J0821.1+1007_daily_bin699> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin699> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 17:35:28 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:35:30 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:35:30 2021
Terminated at Sun Aug 29 17:51:09 2021
Results reported at Sun Aug 29 17:51:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin699 125.299 10.1287 420508801 420768001 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 :                                   827.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             215.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

