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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin466
RA = 125.299, Dec = 10.1287
tmin = 360115201, tmax = 360374401
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='416802', job_status='RUN', time_executed='2021-08-29 17:31:24.669319', time_epoch_executed='1630283484.67' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416802/ft1_4FGL_J0821.1+1007_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416802/ft2_4FGL_J0821.1+1007_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416802/ft1_4FGL_J0821.1+1007_daily_bin466.fits outfile=/scratch/kocevski/416802/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin466.fits ra=125.299 dec=10.1287 rad=12.0 tmin=360115201.0 tmax=360374401.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 4.82
user 3.16
sys 1.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/416802/ft2_4FGL_J0821.1+1007_daily_bin466.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/416802/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin466.fits evtable="EVENTS" outfile="/scratch/kocevski/416802/ft1_filtered_4FGL_J0821.1+1007_daily_bin466.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.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416802/ft1_filtered_4FGL_J0821.1+1007_daily_bin466.fits" evtable="EVENTS" scfile=/scratch/kocevski/416802/ft2_4FGL_J0821.1+1007_daily_bin466.fits sctable="SC_DATA" outfile=/scratch/kocevski/416802/ltcube_360115201_360374401_4FGL_J0821.1+1007_daily_bin466.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/416802/ft2_4FGL_J0821.1+1007_daily_bin466.fits
.....................!
real 13.20
user 11.45
sys 1.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416802/ft1_filtered_4FGL_J0821.1+1007_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/416802/ft2_4FGL_J0821.1+1007_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/416802/ltcube_360115201_360374401_4FGL_J0821.1+1007_daily_bin466.fits outfile=/scratch/kocevski/416802/expmap_360115201_360374401_4FGL_J0821.1+1007_daily_bin466.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/416802/ltcube_360115201_360374401_4FGL_J0821.1+1007_daily_bin466.fits
.....................!
real 191.84
user 185.19
sys 5.76

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/416802/ft1_filtered_4FGL_J0821.1+1007_daily_bin466.fits scfile=/scratch/kocevski/416802/ft2_4FGL_J0821.1+1007_daily_bin466.fits outfile=/scratch/kocevski/416802/cmap_360115201_360374401_4FGL_J0821.1+1007_daily_bin466.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.65
user 0.38
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416802/ft1_filtered_4FGL_J0821.1+1007_daily_bin466.fits scfile=/scratch/kocevski/416802/ft2_4FGL_J0821.1+1007_daily_bin466.fits outfile=/scratch/kocevski/416802/cmap_HighResolution_360115201_360374401_4FGL_J0821.1+1007_daily_bin466.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.73
user 0.37
sys 1.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.468       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7021       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.821       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    47.565       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.039       1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11192E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13625E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .74172       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2899       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=   5641.129     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1859 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.470        52.876       -.42172E-06   -.37717E-05
   2  Prefactor     2.7019        2.7337        .63990E-07   -.12437E-04
   3  norm          1.1579        71.954        .16186E-04    .13024E-04
   4  Prefactor     20.808        15.487        .68150E-06    .99385E-04
   5  Prefactor     .10000E-03    56.966       -.88199E-06** at limit **
   6  norm          47.088        102.30        .19017E-04   -.14349E-04
   7  Prefactor     31.988        39.965        .20398E-05    .20749E-05
   8  norm          .10000E-03    7.6700        .36175E-07** at limit **
   9  norm          .10000E-03    9.0839       -.46125E-06** at limit **
  10  norm          1.2857        3.6228       -.65683E-07   -.21690E-04
  11  Prefactor     .10000E-03    19.908       -.54404E-07** at limit **
  12  Prefactor     .10000E-03    3.5544        .96714E-08** at limit **
  13  norm          .10000E-03    .45057        .10226E-06** at limit **
  14  Prefactor     .10000E-03    2.5164        .88031E-07** at limit **
  15  norm          .10000E-03    1.8479        .23244E-07** at limit **
  16  Prefactor     .10000E-03    58.656        .84325E-06** at limit **
  17  norm          .10000E-03    5.3163        .88754E-07** at limit **
  18  Normalizat    .74178        .20450       -.15102E-05    .20363E-04
  19  Prefactor     1.2899        .16960        .51191E-06    .69594E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4697
  Prefactor  = 2.70188
  norm       = 1.15789
  Prefactor  = 20.808
  Prefactor  = 0.0001
  norm       = 47.0875
  Prefactor  = 31.9877
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.28566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.741776
  Prefactor  = 1.28994
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.129     FROM HESSE     STATUS=OK           266 CALLS     2125 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.470        52.889        .84503E-04   -1.4760    
   2  Prefactor     2.7019        2.7243        .11962E-03   -1.5379    
   3  norm          1.1579        74.510        .21742E-02   -1.5493    
   4  Prefactor     20.808        15.828        .87779E-04   -1.4795    
   5  Prefactor     .10000E-03    56.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          47.088        102.46        .29070E-03   -1.4334    
   7  Prefactor     31.988        39.930        .70790E-04   -1.4576    
   8  norm          .10000E-03    7.6778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.0957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2857        3.5709        .22951E-03   -1.5481    
  11  Prefactor     .10000E-03    19.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5595        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .46990        .98334E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5257        .11634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8485        .99711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    59.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.3747        .16913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .74178        .23521        .30624E-03   -1.0227    
  19  Prefactor     1.2899        .19592        .20009E-03   -.83607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17068e-11
Minuit parameter uncertainties:
  1  52.9992
  2  2.72443
  3  18.6003
  4  15.8311
  5  1.46347e-05
  6  102.851
  7  39.9631
  8  1.96073e-06
  9  2.45934e-05
  10  3.57145
  11  2.22006e-05
  12  1.66392e-07
  13  8.51152e-07
  14  3.02787e-06
  15  5.52919e-07
  16  9.05316e-05
  17  2.59217e-06
  18  0.235531
  19  0.196036
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.664e-07  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.290e+00  1.960e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  7.418e-01  2.355e-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: 4.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/416802/likelihoodResults_360115201_360374401_4FGL_J0821.1+1007_daily_bin466.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) = 5641.13040659
delta logL = -0.00131764674188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5641.1290887
delta logL = 2.42872374656e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3885       1.0000          .0000       10.000    
     3 'Normalizat'    .74182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2899       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=   5641.129     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10272E-03    4.1657        .14099E-01** at limit **
   2  Index         2.3013        6.1463        .50000        .44400E-04
   3  Normalizat    .74178        .50161E-02    .30624E-03    .20121E-04
   4  Prefactor     1.2899        .42285E-02    .20009E-03    .45057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102715
  Index      = 2.30128
  Normalizat = 0.741775
  Prefactor  = 1.28994
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.129     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10272E-03    52.188        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3013        6.0321        .50000       -.57013    
   3  Normalizat    .74178        .17971E-01    .12250E-04   -1.0227    
   4  Prefactor     1.2899        .15150E-01    .40018E-04   -.83607    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5703e-08
Minuit parameter uncertainties:
  1  0.0238283
  2  296.429
  3  0.0179716
  4  0.0151497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416802': 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) = 5641.12908804
delta logL = 9.0341836767e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.027e-04  2.383e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.301e+00  2.964e+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.290e+00  1.515e-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:  7.418e-01  1.797e-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/416802/cmap_HighResolution_360115201_360374401_4FGL_J0821.1+1007_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-08-29 17:40:37.636679', job_id='416802', GAL2='1.29', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630284037.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='9.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='466' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:40:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 416802: <4FGL_J0821.1+1007_daily_bin466> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin466 125.299 10.1287 360115201 360374401 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 :                                   567.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            598 sec.

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

