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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1091
RA = 125.299, Dec = 10.1287
tmin = 522115201, tmax = 522374401
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='420151', job_status='RUN', time_executed='2021-08-29 17:44:47.347835', time_epoch_executed='1630284287.35' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420151

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420151/ft1_4FGL_J0821.1+1007_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420151/ft2_4FGL_J0821.1+1007_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420151/ft1_4FGL_J0821.1+1007_daily_bin1091.fits outfile=/scratch/kocevski/420151/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1091.fits ra=125.299 dec=10.1287 rad=12.0 tmin=522115201.0 tmax=522374401.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.73
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/420151/ft2_4FGL_J0821.1+1007_daily_bin1091.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/420151/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1091.fits evtable="EVENTS" outfile="/scratch/kocevski/420151/ft1_filtered_4FGL_J0821.1+1007_daily_bin1091.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.51
user 0.30
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420151/ft1_filtered_4FGL_J0821.1+1007_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/420151/ft2_4FGL_J0821.1+1007_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/420151/ltcube_522115201_522374401_4FGL_J0821.1+1007_daily_bin1091.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/420151/ft2_4FGL_J0821.1+1007_daily_bin1091.fits
.....................!
real 12.25
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420151/ft1_filtered_4FGL_J0821.1+1007_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/420151/ft2_4FGL_J0821.1+1007_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/420151/ltcube_522115201_522374401_4FGL_J0821.1+1007_daily_bin1091.fits outfile=/scratch/kocevski/420151/expmap_522115201_522374401_4FGL_J0821.1+1007_daily_bin1091.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/420151/ltcube_522115201_522374401_4FGL_J0821.1+1007_daily_bin1091.fits
.....................!
real 191.35
user 185.21
sys 5.75

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/420151/ft1_filtered_4FGL_J0821.1+1007_daily_bin1091.fits scfile=/scratch/kocevski/420151/ft2_4FGL_J0821.1+1007_daily_bin1091.fits outfile=/scratch/kocevski/420151/cmap_522115201_522374401_4FGL_J0821.1+1007_daily_bin1091.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420151/ft1_filtered_4FGL_J0821.1+1007_daily_bin1091.fits scfile=/scratch/kocevski/420151/ft2_4FGL_J0821.1+1007_daily_bin1091.fits outfile=/scratch/kocevski/420151/cmap_HighResolution_522115201_522374401_4FGL_J0821.1+1007_daily_bin1091.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.74
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9448       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9579       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    413.96       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2201       1.0000         .10000E-03   10000.    
    11 'Prefactor '    87.196       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .41499E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14161E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .76360       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.4951       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=   6231.561     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1896 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.040        59.358        .86929E-06    .13232E-03
   2  Prefactor     4.9452        3.4485       -.35933E-06    .85959E-04
   3  norm          .10000E-03    14.365       -.18056E-06** at limit **
   4  Prefactor     5.9590        11.284       -.17895E-05    .36021E-04
   5  Prefactor     .10000E-03    52.168       -.44756E-05** at limit **
   6  norm          413.94        188.71        .61933E-07    .23763E-04
   7  Prefactor     .10000E-03    23.136       -.19237E-05** at limit **
   8  norm          .10000E-03    5.7947       -.11064E-06** at limit **
   9  norm          .10000E-03    14.626       -.44791E-05** at limit **
  10  norm          2.2196        3.7383       -.19594E-05   -.16678E-05
  11  Prefactor     87.233        52.451       -.79879E-06    .85703E-04
  12  Prefactor     .10000E-03    11.480       -.25134E-05** at limit **
  13  norm          .44680E-01    .58620        .59458E-06    .17378E-02
  14  Prefactor     .10002E-03    68.603       -.32597E-04** at limit **
  15  norm          .10000E-03    6.4727        .13288E-06** at limit **
  16  Prefactor     .10000E-03    12.262       -.37911E-06** at limit **
  17  norm          .10000E-03    6.7627       -.54329E-06** at limit **
  18  Normalizat    .76306        .23891        .28011E-05    .41720E-03
  19  Prefactor     1.4956        .18306        .75375E-06    .13899E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.0398
  Prefactor  = 4.94516
  norm       = 0.0001
  Prefactor  = 5.959
  Prefactor  = 0.000100002
  norm       = 413.935
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.21956
  Prefactor  = 87.2332
  Prefactor  = 0.0001
  norm       = 0.0446802
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.763055
  Prefactor  = 1.49562
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.561     FROM HESSE     STATUS=OK           268 CALLS     2164 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.040        59.515        .21054E-03   -1.3797    
   2  Prefactor     4.9452        3.4443        .11690E-03   -1.5263    
   3  norm          .10000E-03    14.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9590        11.270        .16451E-03   -1.5220    
   5  Prefactor     .10000E-03    52.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          413.94        188.73        .10040E-03   -1.1610    
   7  Prefactor     .10000E-03    23.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2196        3.7422        .19250E-03   -1.5410    
  11  Prefactor     87.233        52.541        .21512E-03   -1.3837    
  12  Prefactor     .10000E-03    11.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .44680E-01    1.6552        .11333E-02   -1.5666    
  14  Prefactor     .10002E-03    68.861        .32329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.5569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.8220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .76306        .27036        .35512E-03   -1.0145    
  19  Prefactor     1.4956        .21502        .21495E-03   -.77662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31914e-09
Minuit parameter uncertainties:
  1  59.5542
  2  3.44439
  3  7.90448e-05
  4  11.2744
  5  0.000718523
  6  189.017
  7  0.000103614
  8  1.53036e-06
  9  1.05689e-05
  10  3.74262
  11  52.5693
  12  3.74874e-05
  13  0.543305
  14  0.00247403
  15  2.41017e-05
  16  5.22936e-05
  17  3.21022e-05
  18  0.270832
  19  0.21515
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.749e-05  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.496e+00  2.152e-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.631e-01  2.708e-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: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420151/likelihoodResults_522115201_522374401_4FGL_J0821.1+1007_daily_bin1091.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) = 6231.56135387
delta logL = -0.000411778282796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6231.5609421
delta logL = -1.00499164546e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4117       1.0000          .0000       10.000    
     3 'Normalizat'    .76306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4956       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=   6231.561     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.486        .90712E-02** at limit **
   2  Index         2.4132        8.1687        .50000       -.11078E-05
   3  Normalizat    .76306        .56588E-02    .80208E-01   -.25227E-04
   4  Prefactor     1.4956        .46316E-02    .48625E-01   -.59583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41317
  Normalizat = 0.763063
  Prefactor  = 1.49561
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.561     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      247 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    479.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4132        6.1715        .50000       -.54377    
   3  Normalizat    .76306        .36853E-01    .35512E-03   -1.0145    
   4  Prefactor     1.4956        .30214E-01    .21494E-03   -.77663    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8307e-07
Minuit parameter uncertainties:
  1  0.000281912
  2  2102.11
  3  0.0368545
  4  0.030214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420151': 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) = 6231.56094209
delta logL = 2.0500010578e-09

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.819e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.413e+00  2.102e+03  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.496e+00  3.021e-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.631e-01  3.685e-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/420151/cmap_HighResolution_522115201_522374401_4FGL_J0821.1+1007_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-08-29 17:54:10.848765', job_id='420151', GAL2='1.50', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630284850.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.50', dlogl='2.05e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1091' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:54:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 420151: <4FGL_J0821.1+1007_daily_bin1091> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1091> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:40:31 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:40:33 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:40:33 2021
Terminated at Sun Aug 29 17:54:11 2021
Results reported at Sun Aug 29 17:54:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1091 125.299 10.1287 522115201 522374401 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 :                                   561.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

