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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1218
RA = 125.299, Dec = 10.1287
tmin = 555033601, tmax = 555292801
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='420359', job_status='RUN', time_executed='2021-08-29 17:44:25.016296', time_epoch_executed='1630284265.02' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420359/ft1_4FGL_J0821.1+1007_daily_bin1218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420359/ft2_4FGL_J0821.1+1007_daily_bin1218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420359/ft1_4FGL_J0821.1+1007_daily_bin1218.fits outfile=/scratch/kocevski/420359/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1218.fits ra=125.299 dec=10.1287 rad=12.0 tmin=555033601.0 tmax=555292801.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.47
user 3.36
sys 1.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420359/ft1_filtered_4FGL_J0821.1+1007_daily_bin1218.fits" evtable="EVENTS" scfile=/scratch/kocevski/420359/ft2_4FGL_J0821.1+1007_daily_bin1218.fits sctable="SC_DATA" outfile=/scratch/kocevski/420359/ltcube_555033601_555292801_4FGL_J0821.1+1007_daily_bin1218.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/420359/ft2_4FGL_J0821.1+1007_daily_bin1218.fits
.....................!
real 12.79
user 11.42
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420359/ft1_filtered_4FGL_J0821.1+1007_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/420359/ft2_4FGL_J0821.1+1007_daily_bin1218.fits sctable="SC_DATA" expcube=/scratch/kocevski/420359/ltcube_555033601_555292801_4FGL_J0821.1+1007_daily_bin1218.fits outfile=/scratch/kocevski/420359/expmap_555033601_555292801_4FGL_J0821.1+1007_daily_bin1218.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/420359/ltcube_555033601_555292801_4FGL_J0821.1+1007_daily_bin1218.fits
.....................!
real 192.04
user 185.23
sys 6.40

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/420359/ft1_filtered_4FGL_J0821.1+1007_daily_bin1218.fits scfile=/scratch/kocevski/420359/ft2_4FGL_J0821.1+1007_daily_bin1218.fits outfile=/scratch/kocevski/420359/cmap_555033601_555292801_4FGL_J0821.1+1007_daily_bin1218.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.88
user 0.38
sys 0.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420359/ft1_filtered_4FGL_J0821.1+1007_daily_bin1218.fits scfile=/scratch/kocevski/420359/ft2_4FGL_J0821.1+1007_daily_bin1218.fits outfile=/scratch/kocevski/420359/cmap_HighResolution_555033601_555292801_4FGL_J0821.1+1007_daily_bin1218.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.72
user 0.37
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.290       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3805       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10672E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4279       1.0000         .10000E-03   10000.    
    15 'norm      '    47.169       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    34.605       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .47457       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.5813       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=   3232.300     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1859 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.285        39.161       -.44728E-05   -.53881E-06
   2  Prefactor     5.3804        5.7794       -.17602E-06   -.20442E-03
   3  norm          .10000E-03    14.006       -.13706E-06** at limit **
   4  Prefactor     .10000E-03    10.446        .51471E-07** at limit **
   5  Prefactor     .10000E-03    55.306        .20028E-04** at limit **
   6  norm          .10000E-03    42.594       -.47693E-05** at limit **
   7  Prefactor     .10000E-03    78.179       -.11559E-04** at limit **
   8  norm          .10000E-03    68.453        .15360E-04** at limit **
   9  norm          .10000E-03    78.642       -.13873E-04** at limit **
  10  norm          .10000E-03    8.9705       -.28963E-07** at limit **
  11  Prefactor     .10000E-03    33.156        .84842E-05** at limit **
  12  Prefactor     .10000E-03    37.784       -.80572E-05** at limit **
  13  norm          .10000E-03    1.8877        .40447E-07** at limit **
  14  Prefactor     5.4286        10.697       -.88192E-06   -.11081E-03
  15  norm          47.165        50.387       -.40350E-05    .14531E-05
  16  Prefactor     .10000E-03    40.059       -.79641E-05** at limit **
  17  norm          34.606        22.223       -.42305E-07    .27275E-05
  18  Normalizat    .47437        .32201        .11347E-05    .32977E-04
  19  Prefactor     1.5813        .25423        .42783E-06    .76728E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2854
  Prefactor  = 5.38039
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.42856
  norm       = 47.1646
  Prefactor  = 0.0001
  norm       = 34.6062
  Normalizat = 0.474365
  Prefactor  = 1.58134
 **********
 **   18 **HESSE 
 **********

 FCN=   3232.300     FROM HESSE     STATUS=OK           260 CALLS     2119 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.285        39.156        .79657E-04   -1.4702    
   2  Prefactor     5.3804        5.7564        .13069E-03   -1.5244    
   3  norm          .10000E-03    14.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.459        .17946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    42.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    78.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    68.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    78.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.9910        .16631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9260        .76241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4286        10.672        .17248E-03   -1.5242    
  15  norm          47.165        50.416        .58383E-04   -1.4333    
  16  Prefactor     .10000E-03    40.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          34.606        22.234        .68122E-04   -1.4531    
  18  Normalizat    .47437        .34718        .43724E-03   -1.1362    
  19  Prefactor     1.5813        .27967        .20497E-03   -.75287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5896e-11
Minuit parameter uncertainties:
  1  39.1955
  2  5.757
  3  1.93175e-06
  4  1.63041e-06
  5  1.24122e-06
  6  1.03728e-06
  7  1.52065e-05
  8  2.43373e-06
  9  2.72832e-05
  10  2.48107e-06
  11  2.11826e-06
  12  1.89525e-05
  13  3.63018e-06
  14  10.6754
  15  50.4614
  16  5.63903e-06
  17  22.2392
  18  0.348779
  19  0.279941
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.895e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.581e+00  2.799e-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:  4.744e-01  3.488e-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: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420359/likelihoodResults_555033601_555292801_4FGL_J0821.1+1007_daily_bin1218.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) = 3232.30026892
delta logL = -0.000124847101688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3232.30014431
delta logL = -2.3208122002e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4696       1.0000          .0000       10.000    
     3 'Normalizat'    .47436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5813       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3232.283     FROM MIGRAD    STATUS=FAILED       174 CALLS      371 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7216        7253.6        .18142E-01    .34536E-03
   2  Index         1.5242        8.4932        .36339       -.20287E-04
   3  Normalizat    .47754        .15988        .43724E-03    .18222E-03
   4  Prefactor     1.5764        .15289        .20497E-03    .28624E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3232.283     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      466 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7216        7253.6        .64128E-03    .34536E-03
   2  Index         1.5242        8.4932        .21507E-02   -.20287E-04
   3  Normalizat    .47754        .15988        .71387E-04    .18222E-03
   4  Prefactor     1.5764        .15289        .55755E-04    .28624E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3232.283     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      502 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7215        31.499        .61941E-03    .14802E-04
   2  Index         1.5242        1.6609        .19432E-01   -.80104E-04
   3  Normalizat    .47754        .34043        .17490E-04    .18077E-03
   4  Prefactor     1.5764        .27945        .40994E-04    .28179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72151
  Index      = 1.52422
  Normalizat = 0.477538
  Prefactor  = 1.57642
 **********
 **   18 **HESSE 
 **********

 FCN=   3232.283     FROM HESSE     STATUS=OK            25 CALLS      527 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7215        32.268        .24777E-04   -1.5322    
   2  Index         1.5242        1.6813        .38864E-02   -.76864    
   3  Normalizat    .47754        .34071        .34979E-05   -1.1347    
   4  Prefactor     1.5764        .27963        .81989E-05   -.75421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22024e-10
Minuit parameter uncertainties:
  1  21.9323
  2  1.74957
  3  0.342208
  4  0.279903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420359': 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) = 3232.28338064
delta logL = 0.0167634334489

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.722e+00  2.193e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  1.524e+00  1.750e+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:  1.576e+00  2.799e-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:  4.775e-01  3.422e-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/420359/cmap_HighResolution_555033601_555292801_4FGL_J0821.1+1007_daily_bin1218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-08-29 17:52:00.260408', job_id='420359', GAL2='1.58', fit_tolerance='1e-08', EG2='0.48', EG='0.47', time_epoch_completed='1630284720.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.58', dlogl='1.68e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1218' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:52:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 420359: <4FGL_J0821.1+1007_daily_bin1218> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1218 125.299 10.1287 555033601 555292801 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 :                                   464.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

