/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 102 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin77
RA = 125.299, Dec = 10.1287
tmin = 259286401, tmax = 259545601
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='415189', job_status='RUN', time_executed='2021-08-29 17:28:14.565319', time_epoch_executed='1630283294.57' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415189/ft1_4FGL_J0821.1+1007_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415189/ft2_4FGL_J0821.1+1007_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415189/ft1_4FGL_J0821.1+1007_daily_bin77.fits outfile=/scratch/kocevski/415189/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin77.fits ra=125.299 dec=10.1287 rad=12.0 tmin=259286401.0 tmax=259545601.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 17.92
user 2.06
sys 1.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415189/ft1_filtered_4FGL_J0821.1+1007_daily_bin77.fits" evtable="EVENTS" scfile=/scratch/kocevski/415189/ft2_4FGL_J0821.1+1007_daily_bin77.fits sctable="SC_DATA" outfile=/scratch/kocevski/415189/ltcube_259286401_259545601_4FGL_J0821.1+1007_daily_bin77.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/415189/ft2_4FGL_J0821.1+1007_daily_bin77.fits
.....................!
real 14.59
user 12.92
sys 1.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415189/ft1_filtered_4FGL_J0821.1+1007_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/415189/ft2_4FGL_J0821.1+1007_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/415189/ltcube_259286401_259545601_4FGL_J0821.1+1007_daily_bin77.fits outfile=/scratch/kocevski/415189/expmap_259286401_259545601_4FGL_J0821.1+1007_daily_bin77.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/415189/ltcube_259286401_259545601_4FGL_J0821.1+1007_daily_bin77.fits
.....................!
real 193.19
user 186.39
sys 6.19

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/415189/ft1_filtered_4FGL_J0821.1+1007_daily_bin77.fits scfile=/scratch/kocevski/415189/ft2_4FGL_J0821.1+1007_daily_bin77.fits outfile=/scratch/kocevski/415189/cmap_259286401_259545601_4FGL_J0821.1+1007_daily_bin77.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.66
user 0.37
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415189/ft1_filtered_4FGL_J0821.1+1007_daily_bin77.fits scfile=/scratch/kocevski/415189/ft2_4FGL_J0821.1+1007_daily_bin77.fits outfile=/scratch/kocevski/415189/cmap_HighResolution_259286401_259545601_4FGL_J0821.1+1007_daily_bin77.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.64
user 0.38
sys 1.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.015       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1815       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2615       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.668       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.552       1.0000         .10000E-03   10000.    
     8 'norm      '    16.705       1.0000         .10000E-03   10000.    
     9 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13313E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.477       1.0000         .10000E-03   10000.    
    13 'norm      '    .95652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .92359       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1019       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=   5927.885     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1851 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.017        48.153        .28904E-05   -.14489E-05
   2  Prefactor     4.1819        3.4999       -.22880E-06   -.38968E-03
   3  norm          .10000E-03    6.8815        .35816E-07** at limit **
   4  Prefactor     8.2636        10.163       -.37419E-06   -.45088E-04
   5  Prefactor     .10000E-03    41.913        .53546E-06** at limit **
   6  norm          24.668        69.033       -.21630E-06   -.10394E-05
   7  Prefactor     10.541        23.412       -.13694E-04   -.70123E-04
   8  norm          16.700        14.689       -.19350E-06   -.31923E-03
   9  norm          .10000E-03    4.5602        .22973E-06** at limit **
  10  norm          .10002E-03    1.9620        .88551E-06** at limit **
  11  Prefactor     .10000E-03    9.8200        .46178E-06** at limit **
  12  Prefactor     20.479        15.751        .12202E-06   -.11630E-04
  13  norm          .95664        .94968       -.20963E-06   -.97418E-03
  14  Prefactor     .10000E-03    3.0486       -.19856E-07** at limit **
  15  norm          .10000E-03    3.5117        .71894E-07** at limit **
  16  Prefactor     .10000E-03    14.878       -.10147E-05** at limit **
  17  norm          .10000E-03    2.2133        .11389E-06** at limit **
  18  Normalizat    .92343        .20060        .14250E-05   -.13222E-03
  19  Prefactor     1.1020        .15940       -.12149E-06   -.11670E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0173
  Prefactor  = 4.18191
  norm       = 0.0001
  Prefactor  = 8.2636
  Prefactor  = 0.0001
  norm       = 24.6677
  Prefactor  = 10.5409
  norm       = 16.7004
  norm       = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 20.4789
  norm       = 0.956641
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.923426
  Prefactor  = 1.10198
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.885     FROM HESSE     STATUS=OK           270 CALLS     2121 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.017        48.122        .80092E-04   -1.4707    
   2  Prefactor     4.1819        3.5012        .12425E-03   -1.5299    
   3  norm          .10000E-03    6.8900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2636        10.154        .13948E-03   -1.5133    
   5  Prefactor     .10000E-03    41.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.668        69.059        .80653E-04   -1.4714    
   7  Prefactor     10.541        23.378        .12334E-03   -1.5059    
   8  norm          16.700        14.685        .48997E-03   -1.4890    
   9  norm          .10000E-03    4.5670        .16064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    20.042        .20526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.8273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.479        15.784        .88513E-04   -1.4803    
  13  norm          .95664        .91632        .71595E-03   -1.5512    
  14  Prefactor     .10000E-03    3.0643        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.5320        .14089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2134        .11187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .92343        .23132        .27799E-03   -.95642    
  19  Prefactor     1.1020        .18421        .20991E-03   -.89403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33365e-09
Minuit parameter uncertainties:
  1  48.1969
  2  3.50135
  3  3.6526e-06
  4  10.1563
  5  1.34857e-06
  6  69.2841
  7  23.3981
  8  14.6882
  9  2.78479e-05
  10  0.001338
  11  1.17679e-05
  12  15.7876
  13  0.916331
  14  3.87981e-06
  15  1.57867e-06
  16  1.04481e-05
  17  2.82369e-07
  18  0.231573
  19  0.184312
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.048e+01  1.579e+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.102e+00  1.843e-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.234e-01  2.316e-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.29e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/415189/likelihoodResults_259286401_259545601_4FGL_J0821.1+1007_daily_bin77.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) = 5927.55030248
delta logL = 0.334551275825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5927.53805695
delta logL = 0.346796804981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6953       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1332       1.0000          .0000       10.000    
     3 'Normalizat'    .88142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1278       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.

 FCN=   5927.538     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      247 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6953        99.096        .36139E-02   -.20897E-03
   2  Index         3.1333        2.8748        .12482        .13627E-03
   3  Normalizat    .88145        .68945E-01    .64207E-01    .17772E-04
   4  Prefactor     1.1278        .52968E-01    .36613E-01    .34484E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.69526
  Index      = 3.13326
  Normalizat = 0.881447
  Prefactor  = 1.12781
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.538     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6953        67.754        .13533E-03   -1.5153    
   2  Index         3.1333        2.9303        .45238E-02   -.38262    
   3  Normalizat    .88145        .25138        .28400E-03   -.97115    
   4  Prefactor     1.1278        .20293        .20783E-03   -.88582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60945e-09
Minuit parameter uncertainties:
  1  45.7368
  2  3.1718
  3  0.251713
  4  0.203074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415189': 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) = 5927.53805689
delta logL = 0.346796861643

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  7.695e+00  4.574e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.133e+00  3.172e+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.128e+00  2.031e-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.814e-01  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.29
Ra Dec: 125.299 10.129
Photon Index (Free Index): 3.13 +/- 3.17
Photon Flux (Free Index): 7.71e-08 +/- 5.93e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.67e-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/415189/cmap_HighResolution_259286401_259545601_4FGL_J0821.1+1007_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.29e-08', energy_flux2='1.45e-05', photon_flux_error='4.07e-08', dlogl='3.47e-01', energy_flux='1.71e-05', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-08-29 17:38:01.910751', photon_index_error2='3.17', photon_index2='3.13', ts='2.50', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.67e-05', EG='0.92', time_epoch_completed='1630283881.91', return_code='0', job_id='415189', GAL2='1.13', EG2='0.88', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.93e-08', ts2='3.29', photon_index='2.41' WHERE bin_id='77' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:38:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 415189: <4FGL_J0821.1+1007_daily_bin77> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin77> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 17:25:35 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:25:36 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:25:36 2021
Terminated at Sun Aug 29 17:38:03 2021
Results reported at Sun Aug 29 17:38:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin77 125.299 10.1287 259286401 259545601 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 :                                   581.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            748 sec.

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

