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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin749
RA = 125.299, Dec = 10.1287
tmin = 433468801, tmax = 433728001
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='418552', job_status='RUN', time_executed='2021-08-29 17:36:07.594077', time_epoch_executed='1630283767.59' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418552/ft1_4FGL_J0821.1+1007_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418552/ft2_4FGL_J0821.1+1007_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418552/ft1_4FGL_J0821.1+1007_daily_bin749.fits outfile=/scratch/kocevski/418552/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin749.fits ra=125.299 dec=10.1287 rad=12.0 tmin=433468801.0 tmax=433728001.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 6.85
user 5.72
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418552/ft2_4FGL_J0821.1+1007_daily_bin749.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/418552/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/418552/ft1_filtered_4FGL_J0821.1+1007_daily_bin749.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 1.33
user 0.32
sys 0.99

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418552/ft1_filtered_4FGL_J0821.1+1007_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/418552/ft2_4FGL_J0821.1+1007_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/418552/ltcube_433468801_433728001_4FGL_J0821.1+1007_daily_bin749.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/418552/ft2_4FGL_J0821.1+1007_daily_bin749.fits
.....................!
real 13.07
user 11.72
sys 1.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418552/ft1_filtered_4FGL_J0821.1+1007_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/418552/ft2_4FGL_J0821.1+1007_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/418552/ltcube_433468801_433728001_4FGL_J0821.1+1007_daily_bin749.fits outfile=/scratch/kocevski/418552/expmap_433468801_433728001_4FGL_J0821.1+1007_daily_bin749.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/418552/ltcube_433468801_433728001_4FGL_J0821.1+1007_daily_bin749.fits
.....................!
real 191.31
user 185.38
sys 5.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/418552/ft1_filtered_4FGL_J0821.1+1007_daily_bin749.fits scfile=/scratch/kocevski/418552/ft2_4FGL_J0821.1+1007_daily_bin749.fits outfile=/scratch/kocevski/418552/cmap_433468801_433728001_4FGL_J0821.1+1007_daily_bin749.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 1.50
user 0.37
sys 0.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418552/ft1_filtered_4FGL_J0821.1+1007_daily_bin749.fits scfile=/scratch/kocevski/418552/ft2_4FGL_J0821.1+1007_daily_bin749.fits outfile=/scratch/kocevski/418552/cmap_HighResolution_433468801_433728001_4FGL_J0821.1+1007_daily_bin749.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 1.52
user 0.36
sys 0.98

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15288E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91087       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10861E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.574       1.0000         .10000E-03   10000.    
     9 'norm      '    6.8063       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1310       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14036E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.064       1.0000         .10000E-03   10000.    
    13 'norm      '    .68620       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7728       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.2783       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0056       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95077       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=   4926.759     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     2221 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    385.60        .91968E-02** at limit **
   2  Prefactor     .91187        4.0920        .25300E-02    .24433E-03
   3  norm          .10000E-03    7.9759        .18142E-02** at limit **
   4  Prefactor     .10000E-03    15.404        .18142E-02** at limit **
   5  Prefactor     .10000E-03    62.910        .18142E-02** at limit **
   6  norm          .10001E-03    342.95        .18142E-02** at limit **
   7  Prefactor     .10000E-03    21.999        .18142E-02** at limit **
   8  norm          15.569        21.050        .10149E-03   -.16690E-04
   9  norm          6.7661        26.665        .15379E-03    .31195E-04
  10  norm          2.1312        3.3798        .15675E-03   -.27850E-04
  11  Prefactor     .10002E-03    51.836        .11725    ** at limit **
  12  Prefactor     11.055        13.638        .12045E-03    .15083E-03
  13  norm          .68619        .81819        .70338E-03    .49815E-03
  14  Prefactor     4.7727        6.4595        .18416E-03    .20186E-04
  15  norm          .10000E-03    2.9065        .11672E-02** at limit **
  16  Prefactor     .10000E-03    16.009        .18142E-02** at limit **
  17  norm          6.2779        6.3277        .16020E-03    .81964E-04
  18  Normalizat    1.0054        .25746        .25504E-03   -.12597E-03
  19  Prefactor     .95095        .19603        .21016E-03    .13774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100153
  Prefactor  = 0.911865
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 15.569
  norm       = 6.76605
  norm       = 2.13121
  Prefactor  = 0.000100019
  Prefactor  = 11.0552
  norm       = 0.686191
  Prefactor  = 4.77269
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.27795
  Normalizat = 1.00543
  Prefactor  = 0.95095
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.759     FROM HESSE     STATUS=OK           262 CALLS     2483 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    401.89        .36787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .91187        4.0444        .10120E-03   -1.5517    
   3  norm          .10000E-03    7.9763        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    62.910        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    343.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.569        21.048        .40597E-05   -1.4919    
   9  norm          6.7661        26.624        .61517E-05   -1.5188    
  10  norm          2.1312        3.3794        .62702E-05   -1.5416    
  11  Prefactor     .10002E-03    49.344        .12104       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.055        13.637        .48179E-05   -1.5043    
  13  norm          .68619        .81782        .28135E-04   -1.5542    
  14  Prefactor     4.7727        6.4572        .73665E-05   -1.5271    
  15  norm          .10000E-03    2.9066        .23345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.2779        6.3277        .64081E-05   -1.5207    
  18  Normalizat    1.0054        .25670        .10202E-04   -.92849    
  19  Prefactor     .95095        .19614        .42032E-04   -.94383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23428e-10
Minuit parameter uncertainties:
  1  0.0157851
  2  3.84102
  3  1.53281e-05
  4  6.95775e-05
  5  0.000112059
  6  0.00280525
  7  0.000110828
  8  21.0579
  9  26.6704
  10  3.37971
  11  0.00194331
  12  13.6412
  13  0.817835
  14  6.45819
  15  3.95499e-06
  16  4.50053e-05
  17  6.32837
  18  0.257011
  19  0.196283
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.106e+01  1.364e+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.509e-01  1.963e-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.005e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/418552/likelihoodResults_433468801_433728001_4FGL_J0821.1+1007_daily_bin749.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) = 4926.73470307
delta logL = 0.0244258378034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4926.71844631
delta logL = 0.040682600943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2894       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7070       1.0000          .0000       10.000    
     3 'Normalizat'    .99240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95814       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=   4926.718     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      273 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2904        17.835        .13924E-03    .63031E-04
   2  Index         2.7074        1.2731        .80895E-02    .41480E-03
   3  Normalizat    .99281        .24731        .25647E-03    .17700E-03
   4  Prefactor     .95780        .19628        .20950E-03    .24394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.29043
  Index      = 2.70742
  Normalizat = 0.992808
  Prefactor  = 0.957801
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.718     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2904        15.170        .55697E-05   -1.5132    
   2  Index         2.7074        1.0859        .16179E-02   -.47632    
   3  Normalizat    .99281        .24686        .10259E-04   -.93272    
   4  Prefactor     .95780        .19603        .41901E-04   -.94150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98411e-11
Minuit parameter uncertainties:
  1  15.1768
  2  1.09702
  3  0.247143
  4  0.196173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418552': 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) = 4926.7184442
delta logL = 0.0406847074037

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  8.290e+00  1.518e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.707e+00  1.097e+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:  9.578e-01  1.962e-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.928e-01  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.71 +/- 1.10
Photon Flux (Free Index): 3.66e-08 +/- 4.72e-08
Energy Flux (Free Index): 8.76e-06 +/- 1.02e-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/418552/cmap_HighResolution_433468801_433728001_4FGL_J0821.1+1007_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', comment='SUCCESS', energy_flux2='8.76e-06', dlogl='4.07e-02', photon_flux2='3.66e-08', job_status='DONE', time_completed='2021-08-29 17:45:22.000178', photon_index_error2='1.10', photon_index2='2.71', ts='0.99', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.02e-05', EG='1.01', time_epoch_completed='1630284322.0', return_code='0', job_id='418552', GAL2='0.96', EG2='0.99', return_code2='0', photon_flux_error2='4.72e-08', ts2='1.08', photon_index='2.41' WHERE bin_id='749' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:45:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 418552: <4FGL_J0821.1+1007_daily_bin749> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin749 125.299 10.1287 433468801 433728001 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 :                                   559.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            589 sec.

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

