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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1530
RA = 125.299, Dec = 10.1287
tmin = 635904001, tmax = 636163201
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='421922', job_status='RUN', time_executed='2021-08-29 17:49:34.775312', time_epoch_executed='1630284574.78' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421922

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421922/ft1_4FGL_J0821.1+1007_daily_bin1530.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421922/ft2_4FGL_J0821.1+1007_daily_bin1530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421922/ft1_4FGL_J0821.1+1007_daily_bin1530.fits outfile=/scratch/kocevski/421922/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1530.fits ra=125.299 dec=10.1287 rad=12.0 tmin=635904001.0 tmax=636163201.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 8.55
user 3.89
sys 4.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421922/ft2_4FGL_J0821.1+1007_daily_bin1530.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/421922/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1530.fits evtable="EVENTS" outfile="/scratch/kocevski/421922/ft1_filtered_4FGL_J0821.1+1007_daily_bin1530.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 4.87
user 0.36
sys 4.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421922/ft1_filtered_4FGL_J0821.1+1007_daily_bin1530.fits" evtable="EVENTS" scfile=/scratch/kocevski/421922/ft2_4FGL_J0821.1+1007_daily_bin1530.fits sctable="SC_DATA" outfile=/scratch/kocevski/421922/ltcube_635904001_636163201_4FGL_J0821.1+1007_daily_bin1530.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/421922/ft2_4FGL_J0821.1+1007_daily_bin1530.fits
.....................!
real 17.74
user 12.43
sys 5.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421922/ft1_filtered_4FGL_J0821.1+1007_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/421922/ft2_4FGL_J0821.1+1007_daily_bin1530.fits sctable="SC_DATA" expcube=/scratch/kocevski/421922/ltcube_635904001_636163201_4FGL_J0821.1+1007_daily_bin1530.fits outfile=/scratch/kocevski/421922/expmap_635904001_636163201_4FGL_J0821.1+1007_daily_bin1530.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/421922/ltcube_635904001_636163201_4FGL_J0821.1+1007_daily_bin1530.fits
.....................!
real 198.67
user 186.26
sys 10.18

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/421922/ft1_filtered_4FGL_J0821.1+1007_daily_bin1530.fits scfile=/scratch/kocevski/421922/ft2_4FGL_J0821.1+1007_daily_bin1530.fits outfile=/scratch/kocevski/421922/cmap_635904001_636163201_4FGL_J0821.1+1007_daily_bin1530.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 4.85
user 0.38
sys 4.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421922/ft1_filtered_4FGL_J0821.1+1007_daily_bin1530.fits scfile=/scratch/kocevski/421922/ft2_4FGL_J0821.1+1007_daily_bin1530.fits outfile=/scratch/kocevski/421922/cmap_HighResolution_635904001_636163201_4FGL_J0821.1+1007_daily_bin1530.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 4.91
user 0.38
sys 4.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7239       1.0000         .10000E-03   10000.    
     3 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1349       1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.833       1.0000         .10000E-03   10000.    
     6 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53326E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10540E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.501       1.0000         .10000E-03   10000.    
    10 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8394       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    47.062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.072       1.0000         .10000E-03   10000.    
    17 'norm      '    .13541E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94773       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91159       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=   5377.302     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     2139 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.995        43.641        .58492E-04    .20991E-04
   2  Prefactor     5.7241        3.0443        .89374E-04    .11881E-03
   3  norm          .10000E-03    5.2168        .16355E-02** at limit **
   4  Prefactor     8.1373        8.3915        .14057E-03    .23373E-04
   5  Prefactor     67.837        89.794        .48734E-04    .35925E-05
   6  norm          .10000E-03    28.541        .18142E-02** at limit **
   7  Prefactor     .10000E-03    189.47        .69966E-02** at limit **
   8  norm          .10000E-03    17.405        .18142E-02** at limit **
   9  norm          13.536        16.575        .10901E-03   -.31286E-04
  10  norm          .10000E-03    1.7333        .94055E-03** at limit **
  11  Prefactor     18.431        35.237        .93330E-04    .22048E-04
  12  Prefactor     4.8430        16.475        .18286E-03    .53466E-04
  13  norm          .10000E-03    .39825        .88989E-04** at limit **
  14  Prefactor     .10000E-03    3.9466        .14159E-02** at limit **
  15  norm          47.061        13.934        .58449E-04    .12242E-03
  16  Prefactor     15.077        23.078        .10317E-03    .22480E-04
  17  norm          .10000E-03    7.7890        .36285E-03** at limit **
  18  Normalizat    .94778        .23398        .26439E-03    .20683E-04
  19  Prefactor     .91146        .18040        .21629E-03    .50010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.9947
  Prefactor  = 5.7241
  norm       = 0.0001
  Prefactor  = 8.13734
  Prefactor  = 67.8373
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 13.536
  norm       = 0.0001
  Prefactor  = 18.4309
  Prefactor  = 4.84303
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 47.0605
  Prefactor  = 15.0774
  norm       = 0.0001
  Normalizat = 0.947776
  Prefactor  = 0.911463
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.302     FROM HESSE     STATUS=OK           248 CALLS     2387 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.995        43.654        .23397E-05   -1.4336    
   2  Prefactor     5.7241        3.0443        .35750E-05   -1.5229    
   3  norm          .10000E-03    5.2169        .32709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1373        8.3914        .56227E-05   -1.5137    
   5  Prefactor     67.837        89.804        .97467E-05   -1.4059    
   6  norm          .10000E-03    28.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    194.35        .27986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.536        16.560        .43605E-05   -1.4972    
  10  norm          .10000E-03    1.7334        .18811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.431        35.253        .37332E-05   -1.4849    
  12  Prefactor     4.8430        16.472        .73146E-05   -1.5268    
  13  norm          .10000E-03    .39825        .17798E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9475        .28319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          47.061        13.934        .11690E-04   -1.4335    
  16  Prefactor     15.077        23.080        .41267E-05   -1.4931    
  17  norm          .10000E-03    7.7894        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94778        .23418        .10576E-04   -.94801    
  19  Prefactor     .91146        .18057        .43258E-04   -.95742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0821e-09
Minuit parameter uncertainties:
  1  43.6833
  2  3.04433
  3  7.37885e-06
  4  8.39258
  5  89.9839
  6  5.49521e-05
  7  0.000858013
  8  0.000142214
  9  16.5656
  10  9.44139e-06
  11  35.2925
  12  16.4871
  13  5.22591e-06
  14  5.38932e-05
  15  13.9346
  16  23.0937
  17  4.39091e-05
  18  0.234434
  19  0.180691
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  4.843e+00  1.649e+01  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.115e-01  1.807e-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.478e-01  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/421922/likelihoodResults_635904001_636163201_4FGL_J0821.1+1007_daily_bin1530.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) = 5376.8874747
delta logL = 0.414804123564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5376.68189944
delta logL = 0.62037939244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.1690       1.0000          .0000       10.000    
     3 'Normalizat'    .85938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96490       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=   5376.682     FROM MIGRAD    STATUS=CONVERGED    278 CALLS      648 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28856E-02    .34741E-03** at limit **
   2  Index         8.1689        2.4706        .16040        .11135E-03
   3  Normalizat    .85939        .44528E-01    .44380E-01    .86773E-04
   4  Prefactor     .96474        .35339E-01    .45827E-01    .55963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.16887
  Normalizat = 0.859388
  Prefactor  = 0.964738
 **********
 **   18 **HESSE 
 **********

 FCN=   5376.682     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      689 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .27703E-01    .15296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1689        8.1522        .59647E-02    .68642    
   3  Normalizat    .85939        .11395        .27624E-03   -.97902    
   4  Prefactor     .96474        .90020E-01    .21100E-03   -.93914    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.8658e-07
Minuit parameter uncertainties:
  1  4.89861e-08
  2  5.27636
  3  0.113986
  4  0.0900341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421922': 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) = 5376.68188889
delta logL = 0.62038993346

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  4.899e-08  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  8.169e+00  5.276e+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.647e-01  9.003e-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.594e-01  1.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 125.299 10.129
Photon Index (Free Index): 8.17 +/- 5.28
Photon Flux (Free Index): 6.81e-08 +/- 8.12e-07
Energy Flux (Free Index): 7.87e-06 +/- 9.34e-05

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/421922/cmap_HighResolution_635904001_636163201_4FGL_J0821.1+1007_daily_bin1530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', comment='SUCCESS', energy_flux2='7.87e-06', dlogl='6.20e-01', photon_flux2='6.81e-08', job_status='DONE', time_completed='2021-08-29 18:00:07.271944', photon_index_error2='5.28', photon_index2='8.17', ts='0.10', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='9.34e-05', EG='0.95', time_epoch_completed='1630285207.27', return_code='0', job_id='421922', GAL2='0.96', EG2='0.86', return_code2='102', photon_flux_error2='8.12e-07', ts2='1.51', photon_index='2.41' WHERE bin_id='1530' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:00:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 421922: <4FGL_J0821.1+1007_daily_bin1530> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1530> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:45:26 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:45:27 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:45:27 2021
Terminated at Sun Aug 29 18:00:08 2021
Results reported at Sun Aug 29 18:00:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1530 125.299 10.1287 635904001 636163201 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 :                                   688.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            882 sec.

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

