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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin422
RA = 125.299, Dec = 10.1287
tmin = 348710401, tmax = 348969601
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='416735', job_status='RUN', time_executed='2021-08-29 17:31:08.917100', time_epoch_executed='1630283468.92' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416735/ft1_4FGL_J0821.1+1007_daily_bin422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416735/ft2_4FGL_J0821.1+1007_daily_bin422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416735/ft1_4FGL_J0821.1+1007_daily_bin422.fits outfile=/scratch/kocevski/416735/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin422.fits ra=125.299 dec=10.1287 rad=12.0 tmin=348710401.0 tmax=348969601.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.19
user 3.22
sys 0.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416735/ft1_filtered_4FGL_J0821.1+1007_daily_bin422.fits" evtable="EVENTS" scfile=/scratch/kocevski/416735/ft2_4FGL_J0821.1+1007_daily_bin422.fits sctable="SC_DATA" outfile=/scratch/kocevski/416735/ltcube_348710401_348969601_4FGL_J0821.1+1007_daily_bin422.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/416735/ft2_4FGL_J0821.1+1007_daily_bin422.fits
.....................!
real 13.31
user 11.44
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416735/ft1_filtered_4FGL_J0821.1+1007_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/416735/ft2_4FGL_J0821.1+1007_daily_bin422.fits sctable="SC_DATA" expcube=/scratch/kocevski/416735/ltcube_348710401_348969601_4FGL_J0821.1+1007_daily_bin422.fits outfile=/scratch/kocevski/416735/expmap_348710401_348969601_4FGL_J0821.1+1007_daily_bin422.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/416735/ltcube_348710401_348969601_4FGL_J0821.1+1007_daily_bin422.fits
.....................!
real 193.07
user 185.93
sys 5.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/416735/ft1_filtered_4FGL_J0821.1+1007_daily_bin422.fits scfile=/scratch/kocevski/416735/ft2_4FGL_J0821.1+1007_daily_bin422.fits outfile=/scratch/kocevski/416735/cmap_348710401_348969601_4FGL_J0821.1+1007_daily_bin422.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.07
user 0.36
sys 0.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416735/ft1_filtered_4FGL_J0821.1+1007_daily_bin422.fits scfile=/scratch/kocevski/416735/ft2_4FGL_J0821.1+1007_daily_bin422.fits outfile=/scratch/kocevski/416735/cmap_HighResolution_348710401_348969601_4FGL_J0821.1+1007_daily_bin422.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.12
user 0.37
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2835       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.992       1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.850       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.035       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14206       1.0000         .10000E-03   10000.    
    13 'norm      '    .81618       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.8364       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.270       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97768       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6569.696     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1575 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.779        .11381E-04** at limit **
   2  Prefactor     3.2816        4.4519       -.87315E-06    .45368E-04
   3  norm          .10000E-03    5.8335        .23048E-05** at limit **
   4  Prefactor     18.336        1.5026       -.19774E-06   -.44814E-03
   5  Prefactor     .10000E-03    46.295       -.17422E-04** at limit **
   6  norm          .10001E-03    49.847       -.38769E-05** at limit **
   7  Prefactor     .10000E-03    12.951        .62102E-05** at limit **
   8  norm          12.991        2.0683        .34569E-06    .89206E-03
   9  norm          .10000E-03    8.3832       -.30731E-05** at limit **
  10  norm          11.849        4.8229       -.10934E-06   -.13848E-03
  11  Prefactor     13.040        1.3914       -.36448E-06    .12500E-03
  12  Prefactor     .10001E-03    568.77        .33721E-04** at limit **
  13  norm          .81621        .78125       -.53711E-07   -.62323E-04
  14  Prefactor     .10000E-03    5.2875        .10793E-05** at limit **
  15  norm          8.8352        1.3955        .21495E-06    .33270E-02
  16  Prefactor     46.243        2.2204        .29781E-06   -.17421E-02
  17  norm          .10000E-03    2.3998       -.74404E-06** at limit **
  18  Normalizat    .97814        .22583       -.15981E-05   -.61555E-04
  19  Prefactor     .99351        .17340        .16024E-05   -.62419E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.28157
  norm       = 0.0001
  Prefactor  = 18.3356
  Prefactor  = 0.000100004
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 12.9905
  norm       = 0.0001
  norm       = 11.8489
  Prefactor  = 13.04
  Prefactor  = 0.000100009
  norm       = 0.816208
  Prefactor  = 0.0001
  norm       = 8.83524
  Prefactor  = 46.243
  norm       = 0.0001
  Normalizat = 0.978143
  Prefactor  = 0.993509
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.696     FROM HESSE     STATUS=OK           306 CALLS     1881 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2816        4.5823        .55864E-02   -1.5346    
   3  norm          .10000E-03    5.8361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.336        13.734        .23384E-02   -1.4851    
   5  Prefactor     .10000E-03    47.299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    51.139        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.991        12.633        .27782E-02   -1.4987    
   9  norm          .10000E-03    8.3418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.849        4.8581        .29093E-02   -1.5019    
  11  Prefactor     13.040        20.506        .27737E-02   -1.4986    
  12  Prefactor     .10001E-03    11.843        .97099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .81621        .80068        .12500E-01   -1.5527    
  14  Prefactor     .10000E-03    5.2237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.8352        6.9895        .33710E-02   -1.5113    
  16  Prefactor     46.243        36.140        .14736E-02   -1.4347    
  17  norm          .10000E-03    2.3993        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .97814        .19848        .45887E-01   -.93766    
  19  Prefactor     .99351        .14810        .46189E-01   -.92946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62776e-08
Minuit parameter uncertainties:
  1  1.59313e-05
  2  4.58283
  3  5.44997e-08
  4  13.7362
  5  0.000864919
  6  0.00113186
  7  8.03111e-06
  8  12.6361
  9  1.64709e-06
  10  4.85827
  11  20.5171
  12  0.000643702
  13  0.800694
  14  8.00921e-07
  15  6.99017
  16  36.1575
  17  1.28685e-06
  18  0.198628
  19  0.148159
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  6.437e-04  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:  9.935e-01  1.482e-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.781e-01  1.986e-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/416735/likelihoodResults_348710401_348969601_4FGL_J0821.1+1007_daily_bin422.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) = 6569.69639362
delta logL = -8.41722976475e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6569.69639361
delta logL = -8.40974189487e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4102       1.0000          .0000       10.000    
     3 'Normalizat'    .97812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99352       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=   6569.676     FROM MIGRAD    STATUS=CONVERGED    191 CALLS      359 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85049        23.469        .33633E-03    .61182E-05
   2  Index         3.2770        6.6032        .39005E-02    .74032E-06
   3  Normalizat    .96471        .22983        .28288E-03    .21903E-04
   4  Prefactor     .99876        .17583        .21869E-03    .35869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.85049
  Index      = 3.27698
  Normalizat = 0.964711
  Prefactor  = 0.998763
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.676     FROM HESSE     STATUS=OK            25 CALLS      384 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85049        14.077        .13453E-04   -1.5524    
   2  Index         3.2770        3.4091        .15602E-03   -.35182    
   3  Normalizat    .96471        .23027        .11315E-04   -.94222    
   4  Prefactor     .99876        .17591        .87477E-05   -.92771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02097e-12
Minuit parameter uncertainties:
  1  6.92174
  2  3.81575
  3  0.230509
  4  0.176011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416735': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6569.67550134
delta logL = 0.0208838626195

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  8.505e-01  6.922e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.277e+00  3.816e+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:  9.988e-01  1.760e-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.647e-01  2.305e-01  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/416735/cmap_HighResolution_348710401_348969601_4FGL_J0821.1+1007_daily_bin422.png

Cleaning up...

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

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:40:44.129597', job_id='416735', GAL2='1.00', fit_tolerance='1e-08', EG2='0.96', EG='0.98', time_epoch_completed='1630284044.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.09e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='422' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 416735: <4FGL_J0821.1+1007_daily_bin422> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin422 125.299 10.1287 348710401 348969601 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            611 sec.

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

