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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin900
RA = 125.299, Dec = 10.1287
tmin = 472608001, tmax = 472867201
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='418774', job_status='RUN', time_executed='2021-08-29 17:35:59.904446', time_epoch_executed='1630283759.9' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='900'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418774

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418774/ft1_4FGL_J0821.1+1007_daily_bin900.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418774/ft2_4FGL_J0821.1+1007_daily_bin900.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418774/ft1_4FGL_J0821.1+1007_daily_bin900.fits outfile=/scratch/kocevski/418774/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin900.fits ra=125.299 dec=10.1287 rad=12.0 tmin=472608001.0 tmax=472867201.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 3.51
user 3.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418774/ft2_4FGL_J0821.1+1007_daily_bin900.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/418774/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin900.fits evtable="EVENTS" outfile="/scratch/kocevski/418774/ft1_filtered_4FGL_J0821.1+1007_daily_bin900.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.49
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418774/ft1_filtered_4FGL_J0821.1+1007_daily_bin900.fits" evtable="EVENTS" scfile=/scratch/kocevski/418774/ft2_4FGL_J0821.1+1007_daily_bin900.fits sctable="SC_DATA" outfile=/scratch/kocevski/418774/ltcube_472608001_472867201_4FGL_J0821.1+1007_daily_bin900.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/418774/ft2_4FGL_J0821.1+1007_daily_bin900.fits
.....................!
real 11.67
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418774/ft1_filtered_4FGL_J0821.1+1007_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/418774/ft2_4FGL_J0821.1+1007_daily_bin900.fits sctable="SC_DATA" expcube=/scratch/kocevski/418774/ltcube_472608001_472867201_4FGL_J0821.1+1007_daily_bin900.fits outfile=/scratch/kocevski/418774/expmap_472608001_472867201_4FGL_J0821.1+1007_daily_bin900.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/418774/ltcube_472608001_472867201_4FGL_J0821.1+1007_daily_bin900.fits
.....................!
real 189.60
user 184.72
sys 4.47

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/418774/ft1_filtered_4FGL_J0821.1+1007_daily_bin900.fits scfile=/scratch/kocevski/418774/ft2_4FGL_J0821.1+1007_daily_bin900.fits outfile=/scratch/kocevski/418774/cmap_472608001_472867201_4FGL_J0821.1+1007_daily_bin900.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418774/ft1_filtered_4FGL_J0821.1+1007_daily_bin900.fits scfile=/scratch/kocevski/418774/ft2_4FGL_J0821.1+1007_daily_bin900.fits outfile=/scratch/kocevski/418774/cmap_HighResolution_472608001_472867201_4FGL_J0821.1+1007_daily_bin900.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.025       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9055       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.392       1.0000         .10000E-03   10000.    
     6 'norm      '    .11065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    29.105       1.0000         .10000E-03   10000.    
    10 'norm      '    10.405       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8777       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9118       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8501       1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10650E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .78927       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2595       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=   7015.035     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     2214 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.989        45.307        .80077E-04    .14197E-06
   2  Prefactor     3.9054        3.0966        .12541E-03    .46960E-04
   3  norm          .10000E-03    12.245        .18142E-02** at limit **
   4  Prefactor     .10000E-03    13.167        .18142E-02** at limit **
   5  Prefactor     65.959        98.455        .24628E-03   -.35544E-05
   6  norm          .10000E-03    169.20        .18142E-02** at limit **
   7  Prefactor     .10000E-03    21.161        .18142E-02** at limit **
   8  norm          .10000E-03    3.9123        .16174E-02** at limit **
   9  norm          29.124        26.821        .74263E-04   -.84044E-04
  10  norm          10.405        4.4696        .11170E-03   -.55061E-04
  11  Prefactor     .10000E-03    99.166        .21432E-02** at limit **
  12  Prefactor     6.8780        9.0201        .15299E-03   -.21848E-04
  13  norm          1.9120        .99727        .58134E-04   -.62188E-04
  14  Prefactor     6.8490        7.2043        .15330E-03   -.14832E-05
  15  norm          .10000E-03    4.3482        .16985E-02** at limit **
  16  Prefactor     .10000E-03    32.842        .12575    ** at limit **
  17  norm          .10000E-03    2.8826        .13878E-02** at limit **
  18  Normalizat    .78901        .22639        .32186E-03   -.56338E-04
  19  Prefactor     1.2597        .17698        .21042E-03   -.61572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9885
  Prefactor  = 3.90545
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.9592
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 29.1245
  norm       = 10.4053
  Prefactor  = 0.0001
  Prefactor  = 6.87799
  norm       = 1.91199
  Prefactor  = 6.849
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.789013
  Prefactor  = 1.2597
 **********
 **   18 **HESSE 
 **********

 FCN=   7015.035     FROM HESSE     STATUS=OK           258 CALLS     2472 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.989        45.302        .32031E-05   -1.4708    
   2  Prefactor     3.9054        3.0965        .50162E-05   -1.5313    
   3  norm          .10000E-03    12.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.959        98.446        .98512E-05   -1.4082    
   6  norm          .10000E-03    169.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9124        .32347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          29.124        26.813        .29705E-05   -1.4628    
  10  norm          10.405        4.4695        .44681E-05   -1.5063    
  11  Prefactor     .10000E-03    99.227        .42864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8780        9.0200        .61194E-05   -1.5183    
  13  norm          1.9120        .99726        .23254E-05   -1.5431    
  14  Prefactor     6.8490        7.2040        .61318E-05   -1.5184    
  15  norm          .10000E-03    4.3495        .33971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.784        .12590       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8826        .27757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .78901        .22657        .12875E-04   -1.0048    
  19  Prefactor     1.2597        .17713        .42083E-04   -.84513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12833e-11
Minuit parameter uncertainties:
  1  45.3642
  2  3.09662
  3  1.46165e-05
  4  2.43726e-05
  5  98.69
  6  1.26979e-05
  7  5.3718e-06
  8  4.1516e-07
  9  26.8236
  10  4.46965
  11  7.72977e-05
  12  9.02175
  13  0.99727
  14  7.20489
  15  3.4039e-08
  16  2.23817e-05
  17  2.94886e-07
  18  0.226838
  19  0.177211
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  6.878e+00  9.022e+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

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.260e+00  1.772e-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:  7.890e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 5.74e-06 +/- 7.53e-06

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

Saving results to:
/scratch/kocevski/418774/likelihoodResults_472608001_472867201_4FGL_J0821.1+1007_daily_bin900.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) = 7014.86056888
delta logL = 0.17440454555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7014.8517588
delta logL = 0.183214620003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.272       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8329       1.0000          .0000       10.000    
     3 'Normalizat'    .80031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2531       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=   7014.852     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      274 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.271        12.638        .12502E-03    .68655E-03
   2  Index         1.8331        .81191        .13270E-01    .17121E-03
   3  Normalizat    .80021        .21751        .31973E-03   -.11802E-03
   4  Prefactor     1.2532        .17639        .21084E-03   -.19579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2708
  Index      = 1.8331
  Normalizat = 0.800208
  Prefactor  = 1.25318
 **********
 **   18 **HESSE 
 **********

 FCN=   7014.852     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.271        12.587        .25004E-04   -1.5067    
   2  Index         1.8331        .80891        .53080E-03   -.68591    
   3  Normalizat    .80021        .21765        .12789E-04   -1.0006    
   4  Prefactor     1.2532        .17651        .42169E-04   -.84710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96563e-09
Minuit parameter uncertainties:
  1  12.5899
  2  0.81492
  3  0.217883
  4  0.176597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418774': 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) = 7014.85175866
delta logL = 0.183214761668

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.027e+01  1.259e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  1.833e+00  8.149e-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:  1.253e+00  1.766e-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:  8.002e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 125.299 10.129
Photon Index (Free Index): 1.83 +/- 0.81
Photon Flux (Free Index): 1.09e-08 +/- 1.68e-08
Energy Flux (Free Index): 1.18e-05 +/- 2.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/418774/cmap_HighResolution_472608001_472867201_4FGL_J0821.1+1007_daily_bin900.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='1.18e-05', photon_flux_error='2.33e-08', dlogl='1.83e-01', energy_flux='5.74e-06', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-08-29 17:46:06.512558', photon_index_error2='0.81', photon_index2='1.83', ts='1.13', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='8.68e-08', energy_flux_error2='2.24e-05', EG='0.79', time_epoch_completed='1630284366.51', return_code='0', job_id='418774', GAL2='1.25', EG2='0.80', return_code2='0', energy_flux_error='7.53e-06', photon_flux_error2='1.68e-08', ts2='1.49', photon_index='2.41' WHERE bin_id='900' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:46:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 418774: <4FGL_J0821.1+1007_daily_bin900> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin900 125.299 10.1287 472608001 472867201 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 :                                   603.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            619 sec.

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

