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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin25
RA = 125.299, Dec = 10.1287
tmin = 245808001, tmax = 246067201
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='413878', job_status='RUN', time_executed='2021-08-29 17:24:09.609091', time_epoch_executed='1630283049.61' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413878

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413878/ft1_4FGL_J0821.1+1007_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413878/ft2_4FGL_J0821.1+1007_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413878/ft1_4FGL_J0821.1+1007_daily_bin25.fits outfile=/scratch/kocevski/413878/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin25.fits ra=125.299 dec=10.1287 rad=12.0 tmin=245808001.0 tmax=246067201.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 2.05
user 1.27
sys 0.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413878/ft1_filtered_4FGL_J0821.1+1007_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/413878/ft2_4FGL_J0821.1+1007_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/413878/ltcube_245808001_246067201_4FGL_J0821.1+1007_daily_bin25.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/413878/ft2_4FGL_J0821.1+1007_daily_bin25.fits
.....................!
real 13.45
user 12.52
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413878/ft1_filtered_4FGL_J0821.1+1007_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/413878/ft2_4FGL_J0821.1+1007_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/413878/ltcube_245808001_246067201_4FGL_J0821.1+1007_daily_bin25.fits outfile=/scratch/kocevski/413878/expmap_245808001_246067201_4FGL_J0821.1+1007_daily_bin25.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/413878/ltcube_245808001_246067201_4FGL_J0821.1+1007_daily_bin25.fits
.....................!
real 192.58
user 185.69
sys 5.53

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/413878/ft1_filtered_4FGL_J0821.1+1007_daily_bin25.fits scfile=/scratch/kocevski/413878/ft2_4FGL_J0821.1+1007_daily_bin25.fits outfile=/scratch/kocevski/413878/cmap_245808001_246067201_4FGL_J0821.1+1007_daily_bin25.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.26
user 0.37
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413878/ft1_filtered_4FGL_J0821.1+1007_daily_bin25.fits scfile=/scratch/kocevski/413878/ft2_4FGL_J0821.1+1007_daily_bin25.fits outfile=/scratch/kocevski/413878/cmap_HighResolution_245808001_246067201_4FGL_J0821.1+1007_daily_bin25.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.58
user 0.37
sys 0.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.201       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1909       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.761       1.0000         .10000E-03   10000.    
     8 'norm      '    26.420       1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7197       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4807       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9758       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9857       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .86282       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1695       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=   6054.093     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1850 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.173        36.019       -.59242E-05   -.50815E-03
   2  Prefactor     2.1911        2.8451        .26804E-06   -.86880E-04
   3  norm          .10000E-03    13.945        .18147E-07** at limit **
   4  Prefactor     15.032        11.051        .38832E-07    .64661E-05
   5  Prefactor     .10000E-03    46.754        .62942E-06** at limit **
   6  norm          .10000E-03    31.167       -.32710E-06** at limit **
   7  Prefactor     70.772        38.560        .17763E-05    .30368E-03
   8  norm          26.420        17.765       -.47956E-07   -.54307E-05
   9  norm          .10000E-03    11.104        .21955E-06** at limit **
  10  norm          .10000E-03    1.8071        .83681E-07** at limit **
  11  Prefactor     .10000E-03    14.085        .18443E-06** at limit **
  12  Prefactor     .10000E-03    4.6207        .34077E-07** at limit **
  13  norm          1.7198        .89926       -.47122E-07   -.15154E-03
  14  Prefactor     1.4853        6.8615        .13099E-05   -.19029E-03
  15  norm          4.9751        7.3083        .41316E-05   -.78696E-03
  16  Prefactor     .10000E-03    7.4155        .47886E-08** at limit **
  17  norm          5.9857        6.2303       -.59934E-09    .13606E-04
  18  Normalizat    .86270        .20224       -.61785E-06   -.31636E-04
  19  Prefactor     1.1696        .16154       -.33374E-06   -.34360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1733
  Prefactor  = 2.19114
  norm       = 0.0001
  Prefactor  = 15.0321
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.7717
  norm       = 26.4204
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71978
  Prefactor  = 1.48532
  norm       = 4.97507
  Prefactor  = 0.0001
  norm       = 5.98566
  Normalizat = 0.862702
  Prefactor  = 1.16961
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.093     FROM HESSE     STATUS=OK           264 CALLS     2114 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.173        38.799        .71731E-04   -1.4591    
   2  Prefactor     2.1911        2.8308        .14270E-03   -1.5412    
   3  norm          .10000E-03    14.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.032        11.045        .10331E-03   -1.4932    
   5  Prefactor     .10000E-03    46.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    31.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     70.772        38.936        .47722E-04   -1.4023    
   8  norm          26.420        17.765        .77937E-04   -1.4679    
   9  norm          .10000E-03    11.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.8246        .10209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6368        .16334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7198        .89757        .51440E-04   -1.5446    
  14  Prefactor     1.4853        6.9307        .35272E-03   -1.5464    
  15  norm          4.9751        7.6419        .90144E-03   -1.5262    
  16  Prefactor     .10000E-03    7.4171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9857        6.2326        .16412E-03   -1.5219    
  18  Normalizat    .86270        .23485        .29594E-03   -.97783    
  19  Prefactor     1.1696        .18832        .21136E-03   -.87272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26567e-09
Minuit parameter uncertainties:
  1  38.8305
  2  2.83101
  3  4.921e-06
  4  11.0469
  5  0.000172976
  6  6.12722e-05
  7  38.9495
  8  17.7687
  9  2.84821e-05
  10  3.35807e-06
  11  2.36135e-07
  12  5.29362e-07
  13  0.897581
  14  6.41796
  15  7.64336
  16  3.49908e-07
  17  6.23328
  18  0.235127
  19  0.188424
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  5.294e-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.170e+00  1.884e-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:  8.627e-01  2.351e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413878/likelihoodResults_245808001_246067201_4FGL_J0821.1+1007_daily_bin25.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) = 6054.09389464
delta logL = -0.0010237438737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6054.09287079
delta logL = 1.04717400973e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3904       1.0000          .0000       10.000    
     3 'Normalizat'    .86274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1696       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=   6054.093     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10238E-03    3.8264        .16590E-01** at limit **
   2  Index         2.3045        5.1132        .50000        .29789E-04
   3  Normalizat    .86270        .42576E-02    .29594E-03   -.23511E-04
   4  Prefactor     1.1696        .35063E-02    .21136E-03   -.39136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102382
  Index      = 2.30454
  Normalizat = 0.862702
  Prefactor  = 1.16961
 **********
 **   18 **HESSE 
 **********

 FCN=   6054.093     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10238E-03    62.606        .16943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3045        5.2396        .50000       -.56936    
   3  Normalizat    .86270        .17363E-01    .11837E-04   -.97783    
   4  Prefactor     1.1696        .14299E-01    .42272E-04   -.87272    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62877e-08
Minuit parameter uncertainties:
  1  0.0244469
  2  352.878
  3  0.0173628
  4  0.014299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413878': 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) = 6054.09287031
delta logL = 5.86286660109e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.024e-04  2.445e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.305e+00  3.529e+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.170e+00  1.430e-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:  8.627e-01  1.736e-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/413878/cmap_HighResolution_245808001_246067201_4FGL_J0821.1+1007_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-08-29 17:33:31.374900', job_id='413878', GAL2='1.17', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630283611.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='5.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='25' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:33:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 413878: <4FGL_J0821.1+1007_daily_bin25> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin25 125.299 10.1287 245808001 246067201 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 :                                   558.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

