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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1559
RA = 125.299, Dec = 10.1287
tmin = 643420801, tmax = 643680001
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='421965', job_status='RUN', time_executed='2021-08-29 17:45:53.331889', time_epoch_executed='1630284353.33' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421965

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421965/ft1_4FGL_J0821.1+1007_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421965/ft2_4FGL_J0821.1+1007_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421965/ft1_4FGL_J0821.1+1007_daily_bin1559.fits outfile=/scratch/kocevski/421965/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1559.fits ra=125.299 dec=10.1287 rad=12.0 tmin=643420801.0 tmax=643680001.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.79
user 3.21
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421965/ft1_filtered_4FGL_J0821.1+1007_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/421965/ft2_4FGL_J0821.1+1007_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/421965/ltcube_643420801_643680001_4FGL_J0821.1+1007_daily_bin1559.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/421965/ft2_4FGL_J0821.1+1007_daily_bin1559.fits
.....................!
real 12.32
user 11.57
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421965/ft1_filtered_4FGL_J0821.1+1007_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/421965/ft2_4FGL_J0821.1+1007_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/421965/ltcube_643420801_643680001_4FGL_J0821.1+1007_daily_bin1559.fits outfile=/scratch/kocevski/421965/expmap_643420801_643680001_4FGL_J0821.1+1007_daily_bin1559.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/421965/ltcube_643420801_643680001_4FGL_J0821.1+1007_daily_bin1559.fits
.....................!
real 190.95
user 185.89
sys 4.67

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/421965/ft1_filtered_4FGL_J0821.1+1007_daily_bin1559.fits scfile=/scratch/kocevski/421965/ft2_4FGL_J0821.1+1007_daily_bin1559.fits outfile=/scratch/kocevski/421965/cmap_643420801_643680001_4FGL_J0821.1+1007_daily_bin1559.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.85
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421965/ft1_filtered_4FGL_J0821.1+1007_daily_bin1559.fits scfile=/scratch/kocevski/421965/ft2_4FGL_J0821.1+1007_daily_bin1559.fits outfile=/scratch/kocevski/421965/cmap_HighResolution_643420801_643680001_4FGL_J0821.1+1007_daily_bin1559.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.87
user 0.38
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0279       1.0000         .10000E-03   10000.    
     3 'norm      '    .10527E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.087       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    74.624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10357E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.718       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5361       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26413E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    14.039       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.694       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0270       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0453       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=   5856.387     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1966 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.704        .65275E-05** at limit **
   2  Prefactor     4.0279        4.4300       -.49173E-06   -.51485E-03
   3  norm          .10000E-03    12.539       -.28265E-05** at limit **
   4  Prefactor     35.089        17.697       -.13030E-06    .83857E-04
   5  Prefactor     .10000E-03    42.634        .33804E-04** at limit **
   6  norm          74.624        84.759       -.10896E-05   -.72703E-07
   7  Prefactor     .10000E-03    27.029       -.16186E-04** at limit **
   8  norm          .10000E-03    6.7737        .66404E-05** at limit **
   9  norm          .10000E-03    6.7467       -.63619E-05** at limit **
  10  norm          .10252E-03    2.3260       -.11561E-05** at limit **
  11  Prefactor     .10000E-03    13.067        .20876E-05** at limit **
  12  Prefactor     11.721        15.535       -.26596E-06    .60952E-05
  13  norm          1.5363        1.2856       -.15675E-06   -.33222E-03
  14  Prefactor     .10006E-03    5.9697       -.77013E-06** at limit **
  15  norm          14.040        10.675       -.28595E-06   -.10659E-04
  16  Prefactor     21.684        44.099       -.14368E-04    .24267E-04
  17  norm          .10000E-03    5.7900        .14384E-06** at limit **
  18  Normalizat    1.0269        .21772        .28562E-05    .12606E-03
  19  Prefactor     1.0453        .16240       -.34420E-06    .34210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.02795
  norm       = 0.0001
  Prefactor  = 35.0886
  Prefactor  = 0.0001
  norm       = 74.6236
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000102522
  Prefactor  = 0.0001
  Prefactor  = 11.7207
  norm       = 1.53629
  Prefactor  = 0.000100064
  norm       = 14.0404
  Prefactor  = 21.684
  norm       = 0.0001
  Normalizat = 1.02693
  Prefactor  = 1.04529
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.387     FROM HESSE     STATUS=OK           274 CALLS     2240 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0279        4.4262        .15456E-03   -1.5307    
   3  norm          .10000E-03    12.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.089        17.669        .67654E-04   -1.4523    
   5  Prefactor     .10000E-03    42.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          74.624        84.786        .46479E-04   -1.3978    
   7  Prefactor     .10000E-03    27.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.7524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10252E-03    2.1103        .39042E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.721        15.565        .11702E-03   -1.5023    
  13  norm          1.5363        1.2727        .74886E-04   -1.5460    
  14  Prefactor     .10006E-03    34.647        .35739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.040        10.668        .10690E-03   -1.4958    
  16  Prefactor     21.684        44.403        .85997E-04   -1.4776    
  17  norm          .10000E-03    5.8770        .17984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0269        .25813        .28296E-03   -.92134    
  19  Prefactor     1.0453        .19345        .22068E-03   -.91235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11552e-09
Minuit parameter uncertainties:
  1  1.73846e-05
  2  4.42657
  3  1.00409e-06
  4  17.6712
  5  1.65123e-06
  6  84.924
  7  1.13791e-05
  8  6.1559e-06
  9  1.22638e-07
  10  0.00461408
  11  3.11815e-06
  12  15.5704
  13  1.27268
  14  0.00298396
  15  10.6697
  16  44.4705
  17  2.77216e-06
  18  0.25845
  19  0.193584
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.172e+01  1.557e+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.045e+00  1.936e-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.027e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/421965/likelihoodResults_643420801_643680001_4FGL_J0821.1+1007_daily_bin1559.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) = 5856.11032235
delta logL = 0.276981763488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5856.08634885
delta logL = 0.300955265576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6761       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3792       1.0000          .0000       10.000    
     3 'Normalizat'    .98186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0706       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=   5856.086     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      251 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6703        93.402        .52665E-02    .90018E-03
   2  Index         3.3798        3.7226        .11558        .23083E-03
   3  Normalizat    .98183        .69301E-01    .45939E-01   -.81164E-04
   4  Prefactor     1.0706        .51327E-01    .38830E-01   -.74813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67033
  Index      = 3.37981
  Normalizat = 0.981833
  Prefactor  = 1.0706
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.086     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6703        166.98        .13610E-03   -1.5325    
   2  Index         3.3798        6.6023        .63541E-02   -.32999    
   3  Normalizat    .98183        .27236        .28841E-03   -.93642    
   4  Prefactor     1.0706        .21004        .21837E-03   -.90412    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77286e-09
Minuit parameter uncertainties:
  1  49.6595
  2  7.12551
  3  0.272747
  4  0.210201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421965': 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): 102
logL (Free Index) = 5856.08634856
delta logL = 0.300955556219

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.670e+00  4.966e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.380e+00  7.126e+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.071e+00  2.102e-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.818e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 125.299 10.129
Photon Index (Free Index): 3.38 +/- 7.13
Photon Flux (Free Index): 6.03e-08 +/- 8.21e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.63e-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/421965/cmap_HighResolution_643420801_643680001_4FGL_J0821.1+1007_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='3.01e-01', photon_flux2='6.03e-08', job_status='DONE', time_completed='2021-08-29 17:55:13.302042', photon_index_error2='7.13', photon_index2='3.38', ts='0.75', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.63e-05', EG='1.03', time_epoch_completed='1630284913.3', return_code='0', job_id='421965', GAL2='1.07', EG2='0.98', return_code2='102', photon_flux_error2='8.21e-08', ts2='1.41', photon_index='2.41' WHERE bin_id='1559' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:55:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 421965: <4FGL_J0821.1+1007_daily_bin1559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1559 125.299 10.1287 643420801 643680001 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 :                                   563.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             398.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            588 sec.

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

