/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 125 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1133
RA = 125.299, Dec = 10.1287
tmin = 533001601, tmax = 533260801
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='420224', job_status='RUN', time_executed='2021-08-29 17:43:09.388835', time_epoch_executed='1630284189.39' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420224/ft1_4FGL_J0821.1+1007_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420224/ft2_4FGL_J0821.1+1007_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420224/ft1_4FGL_J0821.1+1007_daily_bin1133.fits outfile=/scratch/kocevski/420224/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1133.fits ra=125.299 dec=10.1287 rad=12.0 tmin=533001601.0 tmax=533260801.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.42
user 3.40
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/420224/ft2_4FGL_J0821.1+1007_daily_bin1133.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/420224/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1133.fits evtable="EVENTS" outfile="/scratch/kocevski/420224/ft1_filtered_4FGL_J0821.1+1007_daily_bin1133.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.45
user 0.31
sys 0.98

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420224/ft1_filtered_4FGL_J0821.1+1007_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/420224/ft2_4FGL_J0821.1+1007_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/420224/ltcube_533001601_533260801_4FGL_J0821.1+1007_daily_bin1133.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/420224/ft2_4FGL_J0821.1+1007_daily_bin1133.fits
.....................!
real 13.04
user 11.75
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420224/ft1_filtered_4FGL_J0821.1+1007_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/420224/ft2_4FGL_J0821.1+1007_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/420224/ltcube_533001601_533260801_4FGL_J0821.1+1007_daily_bin1133.fits outfile=/scratch/kocevski/420224/expmap_533001601_533260801_4FGL_J0821.1+1007_daily_bin1133.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/420224/ltcube_533001601_533260801_4FGL_J0821.1+1007_daily_bin1133.fits
.....................!
real 191.77
user 184.62
sys 6.21

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/420224/ft1_filtered_4FGL_J0821.1+1007_daily_bin1133.fits scfile=/scratch/kocevski/420224/ft2_4FGL_J0821.1+1007_daily_bin1133.fits outfile=/scratch/kocevski/420224/cmap_533001601_533260801_4FGL_J0821.1+1007_daily_bin1133.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.36
user 0.36
sys 0.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420224/ft1_filtered_4FGL_J0821.1+1007_daily_bin1133.fits scfile=/scratch/kocevski/420224/ft2_4FGL_J0821.1+1007_daily_bin1133.fits outfile=/scratch/kocevski/420224/cmap_HighResolution_533001601_533260801_4FGL_J0821.1+1007_daily_bin1133.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.39
user 0.37
sys 0.96

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88674       1.0000         .10000E-03   10000.    
     3 'norm      '    10.785       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10963E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7650       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97703E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0323       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2384       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.575       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5138       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79684       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0857       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=   7389.927     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1939 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.554        51.467       -.13875E-04    .30214E-03
   2  Prefactor     .88723        2.0097       -.32523E-06   -.93120E-03
   3  norm          10.785        10.090        .24106E-06    .58427E-05
   4  Prefactor     4.1535        6.5115       -.60296E-06   -.15929E-03
   5  Prefactor     .10000E-03    57.540        .15685E-04** at limit **
   6  norm          .10000E-03    54.712       -.16078E-04** at limit **
   7  Prefactor     .10000E-03    12.170       -.10219E-07** at limit **
   8  norm          .10000E-03    28.736       -.88998E-06** at limit **
   9  norm          .10000E-03    7.9026       -.34353E-07** at limit **
  10  norm          2.7654        3.3290       -.45115E-06   -.58714E-03
  11  Prefactor     .10000E-03    34.327        .18919E-05** at limit **
  12  Prefactor     .10001E-03    9.5126       -.64369E-06** at limit **
  13  norm          3.3829        1.0531       -.49050E-07    .10138E-03
  14  Prefactor     1.0314        3.5914       -.17694E-05   -.11991E-02
  15  norm          6.2377        6.0132       -.28939E-06   -.18992E-03
  16  Prefactor     36.558        34.738       -.22401E-06    .24137E-04
  17  norm          2.5139        4.5073       -.35820E-06   -.29614E-03
  18  Normalizat    .79719        .17338        .18064E-05    .10721E-03
  19  Prefactor     1.0855        .13545        .40940E-06    .20613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.5543
  Prefactor  = 0.887234
  norm       = 10.7846
  Prefactor  = 4.15352
  Prefactor  = 0.000100003
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.7654
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 3.3829
  Prefactor  = 1.03136
  norm       = 6.2377
  Prefactor  = 36.5576
  norm       = 2.51392
  Normalizat = 0.797194
  Prefactor  = 1.0855
 **********
 **   18 **HESSE 
 **********

 FCN=   7389.927     FROM HESSE     STATUS=OK           280 CALLS     2219 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.554        50.378        .47452E-04   -1.4014    
   2  Prefactor     .88723        1.9197        .17423E-02   -1.5520    
   3  norm          10.785        10.082        .12200E-03   -1.5051    
   4  Prefactor     4.1535        6.4955        .19775E-03   -1.5300    
   5  Prefactor     .10000E-03    57.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    54.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.9241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7654        3.3343        .16577E-03   -1.5375    
  11  Prefactor     .10000E-03    34.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    14.240        .73562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3829        1.0534        .21998E-04   -1.5340    
  14  Prefactor     1.0314        3.6615        .30555E-03   -1.5505    
  15  norm          6.2377        6.0163        .16072E-03   -1.5208    
  16  Prefactor     36.558        34.796        .66268E-04   -1.4498    
  17  norm          2.5139        4.4954        .23879E-03   -1.5391    
  18  Normalizat    .79719        .20211        .29008E-03   -1.0017    
  19  Prefactor     1.0855        .15876        .20408E-03   -.89931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93447e-09
Minuit parameter uncertainties:
  1  50.4084
  2  1.91985
  3  10.0837
  4  6.49661
  5  0.00085208
  6  0.000906157
  7  1.29003e-05
  8  2.92778e-05
  9  8.7855e-06
  10  3.33452
  11  0.000158497
  12  0.000627365
  13  1.05343
  14  3.66228
  15  6.01691
  16  34.8154
  17  4.49603
  18  0.202301
  19  0.158833
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  6.274e-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:  1.085e+00  1.588e-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.972e-01  2.023e-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: 7.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420224/likelihoodResults_533001601_533260801_4FGL_J0821.1+1007_daily_bin1133.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) = 7389.92727777
delta logL = -1.32166933327e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7389.92727763
delta logL = -1.30765101858e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96338E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4105       1.0000          .0000       10.000    
     3 'Normalizat'    .79708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0856       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=   7389.709     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      302 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76305        26.420        .90715E-02    .17058E-02
   2  Index         3.8027        3.3895        .14456        .17671E-03
   3  Normalizat    .75640        .34522E-01    .67199E-01    .63907E-04
   4  Prefactor     1.1043        .28028E-01    .38162E-01    .88574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.763046
  Index      = 3.80266
  Normalizat = 0.756397
  Prefactor  = 1.10434
 **********
 **   18 **HESSE 
 **********

 FCN=   7389.709     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      333 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76305        89.361        .11203E-03   -1.5533    
   2  Index         3.8027        6.2458        .84182E-02   -.24182    
   3  Normalizat    .75640        .16305        .29732E-03   -1.0171    
   4  Prefactor     1.1043        .13154        .20257E-03   -.89328    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.78515e-09
Minuit parameter uncertainties:
  1  16.5392
  2  10.0489
  3  0.163155
  4  0.131574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420224': 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) = 7389.70864624
delta logL = 0.218618318639

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  7.630e-01  1.654e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.803e+00  1.005e+01  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.104e+00  1.316e-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.564e-01  1.632e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/420224/cmap_HighResolution_533001601_533260801_4FGL_J0821.1+1007_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-08-29 17:53:40.938433', job_id='420224', GAL2='1.10', fit_tolerance='1e-08', EG2='0.76', EG='0.80', time_epoch_completed='1630284820.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.19e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1133' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:53:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 420224: <4FGL_J0821.1+1007_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1133 125.299 10.1287 533001601 533260801 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 :                                   638.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

