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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin681
RA = 125.299, Dec = 10.1287
tmin = 415843201, tmax = 416102401
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='417108', job_status='RUN', time_executed='2021-08-29 17:32:30.272429', time_epoch_executed='1630283550.27' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417108/ft1_4FGL_J0821.1+1007_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417108/ft2_4FGL_J0821.1+1007_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417108/ft1_4FGL_J0821.1+1007_daily_bin681.fits outfile=/scratch/kocevski/417108/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin681.fits ra=125.299 dec=10.1287 rad=12.0 tmin=415843201.0 tmax=416102401.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 9.53
user 5.76
sys 3.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417108/ft1_filtered_4FGL_J0821.1+1007_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/417108/ft2_4FGL_J0821.1+1007_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/417108/ltcube_415843201_416102401_4FGL_J0821.1+1007_daily_bin681.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/417108/ft2_4FGL_J0821.1+1007_daily_bin681.fits
.....................!
real 16.89
user 12.16
sys 4.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417108/ft1_filtered_4FGL_J0821.1+1007_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/417108/ft2_4FGL_J0821.1+1007_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/417108/ltcube_415843201_416102401_4FGL_J0821.1+1007_daily_bin681.fits outfile=/scratch/kocevski/417108/expmap_415843201_416102401_4FGL_J0821.1+1007_daily_bin681.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/417108/ltcube_415843201_416102401_4FGL_J0821.1+1007_daily_bin681.fits
.....................!
real 195.82
user 185.41
sys 8.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/417108/ft1_filtered_4FGL_J0821.1+1007_daily_bin681.fits scfile=/scratch/kocevski/417108/ft2_4FGL_J0821.1+1007_daily_bin681.fits outfile=/scratch/kocevski/417108/cmap_415843201_416102401_4FGL_J0821.1+1007_daily_bin681.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 4.34
user 0.38
sys 3.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417108/ft1_filtered_4FGL_J0821.1+1007_daily_bin681.fits scfile=/scratch/kocevski/417108/ft2_4FGL_J0821.1+1007_daily_bin681.fits outfile=/scratch/kocevski/417108/cmap_HighResolution_415843201_416102401_4FGL_J0821.1+1007_daily_bin681.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 4.34
user 0.38
sys 3.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.388       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.169       1.0000         .10000E-03   10000.    
    10 'norm      '    .61056       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .36598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.119       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48922E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98733       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0193       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=   4306.795     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     2154 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    89.094        .18142E-02** at limit **
   2  Prefactor     .10000E-03    .83599        .58475E-03** at limit **
   3  norm          .10000E-03    9.0409        .18142E-02** at limit **
   4  Prefactor     17.387        12.745        .48024E-03    .24700E-03
   5  Prefactor     .10000E-03    50.974        .18142E-02** at limit **
   6  norm          5.3263        413.80        .17440E-03   -.67233E-04
   7  Prefactor     .10000E-03    23.792        .18142E-02** at limit **
   8  norm          .10000E-03    8.7847        .18142E-02** at limit **
   9  norm          18.170        23.994        .93962E-04    .76588E-04
  10  norm          .60935        2.4133        .20186E-03    .36433E-03
  11  Prefactor     .10000E-03    14.470        .18142E-02** at limit **
  12  Prefactor     .10000E-03    3.4784        .11951E-02** at limit **
  13  norm          .36517        1.1751        .11948E-03    .81905E-03
  14  Prefactor     .10000E-03    7.5015        .34294E-03** at limit **
  15  norm          10.120        9.6247        .12596E-03    .13502E-03
  16  Prefactor     .10005E-03    273.22        .73158E-02** at limit **
  17  norm          .10000E-03    3.6400        .12225E-02** at limit **
  18  Normalizat    .98721        .25581        .25581E-03    .31109E-03
  19  Prefactor     1.0195        .20953        .20801E-03    .39570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.3872
  Prefactor  = 0.000100001
  norm       = 5.32627
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.1695
  norm       = 0.609347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.365167
  Prefactor  = 0.0001
  norm       = 10.12
  Prefactor  = 0.000100048
  norm       = 0.0001
  Normalizat = 0.987211
  Prefactor  = 1.01951
 **********
 **   18 **HESSE 
 **********

 FCN=   4306.795     FROM HESSE     STATUS=OK           248 CALLS     2402 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    89.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .83600        .11695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.0411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.387        12.744        .19210E-04   -1.4874    
   5  Prefactor     .10000E-03    50.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3263        413.74        .34881E-04   -1.5246    
   7  Prefactor     .10000E-03    23.794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.7856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.170        23.998        .37585E-05   -1.4855    
  10  norm          .60935        2.4132        .80744E-05   -1.5552    
  11  Prefactor     .10000E-03    14.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4784        .23902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .36517        1.1748        .47793E-05   -1.5587    
  14  Prefactor     .10000E-03    7.5019        .68589E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.120        9.6246        .50385E-05   -1.5072    
  16  Prefactor     .10005E-03    281.01        .29263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6400        .24449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .98721        .25576        .51163E-04   -.93460    
  19  Prefactor     1.0195        .20968        .83204E-05   -.92082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80705e-09
Minuit parameter uncertainties:
  1  0.00143084
  2  2.97198e-08
  3  1.10687e-05
  4  12.7455
  5  0.000365012
  6  94.5722
  7  2.70733e-05
  8  1.48431e-05
  9  24.0104
  10  2.4136
  11  8.12705e-06
  12  5.03453e-08
  13  1.17487
  14  2.03852e-05
  15  9.62606
  16  0.00737284
  17  1.11735e-06
  18  0.256078
  19  0.209852
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  5.035e-08  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.020e+00  2.099e-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.872e-01  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/417108/likelihoodResults_415843201_416102401_4FGL_J0821.1+1007_daily_bin681.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): 102
logL (Free Index) = 4306.79667122
delta logL = -0.00134614954095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4306.79532488
delta logL = 1.85551471077e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3813       1.0000          .0000       10.000    
     3 'Normalizat'    .98728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0195       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=   4306.795     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      255 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.474        .12380E-01** at limit **
   2  Index         1.6289        8.6672        .50000       -.11300E-07
   3  Normalizat    .98720        .97654E-02    .25581E-03    .30887E-04
   4  Prefactor     1.0195        .80981E-02    .20801E-03    .38204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.62887
  Normalizat = 0.987205
  Prefactor  = 1.01952
 **********
 **   18 **HESSE 
 **********

 FCN=   4306.795     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    155.94        .15766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6289        5.9408        .50000       -.73992    
   3  Normalizat    .98720        .27674E-01    .10233E-04   -.93460    
   4  Prefactor     1.0195        .22949E-01    .83204E-05   -.92082    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.47136e-12
Minuit parameter uncertainties:
  1  7.26647e-06
  2  624.824
  3  0.0276746
  4  0.0229494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417108': 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) = 4306.79531896
delta logL = 6.11167070019e-06

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  7.266e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  1.629e+00  6.248e+02  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.020e+00  2.295e-02  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.872e-01  2.767e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.299 10.129

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/417108/cmap_HighResolution_415843201_416102401_4FGL_J0821.1+1007_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-08-29 17:42:03.778521', job_id='417108', GAL2='1.02', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630284123.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='681' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:42:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 417108: <4FGL_J0821.1+1007_daily_bin681> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin681> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 17:31:04 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:31:06 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:31:06 2021
Terminated at Sun Aug 29 17:42:05 2021
Results reported at Sun Aug 29 17:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin681 125.299 10.1287 415843201 416102401 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            661 sec.

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

