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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1212
RA = 125.299, Dec = 10.1287
tmin = 553478401, tmax = 553737601
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='420349', job_status='RUN', time_executed='2021-08-29 17:41:11.516552', time_epoch_executed='1630284071.52' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1212'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420349/ft1_4FGL_J0821.1+1007_daily_bin1212.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420349/ft2_4FGL_J0821.1+1007_daily_bin1212.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420349/ft1_4FGL_J0821.1+1007_daily_bin1212.fits outfile=/scratch/kocevski/420349/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1212.fits ra=125.299 dec=10.1287 rad=12.0 tmin=553478401.0 tmax=553737601.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 3.01
user 2.42
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420349/ft1_filtered_4FGL_J0821.1+1007_daily_bin1212.fits" evtable="EVENTS" scfile=/scratch/kocevski/420349/ft2_4FGL_J0821.1+1007_daily_bin1212.fits sctable="SC_DATA" outfile=/scratch/kocevski/420349/ltcube_553478401_553737601_4FGL_J0821.1+1007_daily_bin1212.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/420349/ft2_4FGL_J0821.1+1007_daily_bin1212.fits
.....................!
real 13.60
user 12.59
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420349/ft1_filtered_4FGL_J0821.1+1007_daily_bin1212.fits evtable="EVENTS" scfile=/scratch/kocevski/420349/ft2_4FGL_J0821.1+1007_daily_bin1212.fits sctable="SC_DATA" expcube=/scratch/kocevski/420349/ltcube_553478401_553737601_4FGL_J0821.1+1007_daily_bin1212.fits outfile=/scratch/kocevski/420349/expmap_553478401_553737601_4FGL_J0821.1+1007_daily_bin1212.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/420349/ltcube_553478401_553737601_4FGL_J0821.1+1007_daily_bin1212.fits
.....................!
real 190.63
user 185.10
sys 4.55

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/420349/ft1_filtered_4FGL_J0821.1+1007_daily_bin1212.fits scfile=/scratch/kocevski/420349/ft2_4FGL_J0821.1+1007_daily_bin1212.fits outfile=/scratch/kocevski/420349/cmap_553478401_553737601_4FGL_J0821.1+1007_daily_bin1212.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 0.84
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420349/ft1_filtered_4FGL_J0821.1+1007_daily_bin1212.fits scfile=/scratch/kocevski/420349/ft2_4FGL_J0821.1+1007_daily_bin1212.fits outfile=/scratch/kocevski/420349/cmap_HighResolution_553478401_553737601_4FGL_J0821.1+1007_daily_bin1212.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 0.78
user 0.38
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.17       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12851E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12263E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10744E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    38.810       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    161.81       1.0000         .10000E-03   10000.    
    12 'Prefactor '    104.03       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0861       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.219       1.0000         .10000E-03   10000.    
    15 'norm      '    18.142       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.258       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .25564       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.4432       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=   1644.162     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1953 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        6435.9        .11467E-04** at limit **
   2  Prefactor     .10000E-03    30.237        .13108E-06** at limit **
   3  norm          14.968        495.29        .15419E-05   -.17653E-04
   4  Prefactor     100.40        157.11       -.11628E-05    .10965E-03
   5  Prefactor     .10004E-03    774.57        .44285E-05** at limit **
   6  norm          .10062E-03    2119.9       -.15841E-04** at limit **
   7  Prefactor     .10000E-03    84.481       -.50371E-06** at limit **
   8  norm          .10000E-03    23.998       -.20315E-06** at limit **
   9  norm          38.743        102.69       -.55154E-05   -.34798E-04
  10  norm          .10000E-03    3.8053       -.21085E-06** at limit **
  11  Prefactor     162.07        254.88       -.74633E-05    .51680E-04
  12  Prefactor     104.04        92.122       -.27102E-05   -.10311E-04
  13  norm          3.0864        2.1892       -.42974E-06   -.29714E-03
  14  Prefactor     26.220        24.637       -.23106E-05   -.42313E-04
  15  norm          18.145        18.224       -.27104E-05   -.43272E-04
  16  Prefactor     29.230        82.502       -.77682E-05   -.29971E-04
  17  norm          .10000E-03    5.1352       -.16551E-07** at limit **
  18  Normalizat    .25500        .54226        .88534E-04   -.17346E-04
  19  Prefactor     1.4437        .40536       -.24906E-04   -.39064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 14.9684
  Prefactor  = 100.405
  Prefactor  = 0.000100039
  norm       = 0.000100621
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 38.7432
  norm       = 0.0001
  Prefactor  = 162.07
  Prefactor  = 104.043
  norm       = 3.08637
  Prefactor  = 26.2199
  norm       = 18.1452
  Prefactor  = 29.2301
  norm       = 0.0001
  Normalizat = 0.255001
  Prefactor  = 1.44365
 **********
 **   18 **HESSE 
 **********

 FCN=   1644.162     FROM HESSE     STATUS=OK           254 CALLS     2207 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6434.0        .19226E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.968        494.84        .10308E-03   -1.4934    
   4  Prefactor     100.40        156.18        .20084E-03   -1.3701    
   5  Prefactor     .10004E-03    773.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10062E-03    2112.5        .18174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    84.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    24.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          38.743        102.79        .64338E-04   -1.4462    
  10  norm          .10000E-03    3.8092        .77238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     162.07        254.24        .15851E-03   -1.3155    
  12  Prefactor     104.04        92.398        .39424E-04   -1.3664    
  13  norm          3.0864        2.1932        .48144E-04   -1.5357    
  14  Prefactor     26.220        24.742        .78235E-04   -1.4683    
  15  norm          18.145        18.353        .94033E-04   -1.4856    
  16  Prefactor     29.230        82.956        .74070E-04   -1.4626    
  17  norm          .10000E-03    5.1363        .89754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .25500        .54474        .62011E-03   -1.2563    
  19  Prefactor     1.4437        .40933        .20693E-03   -.79130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17796e-09
Minuit parameter uncertainties:
  1  0.0636501
  2  8.30777e-05
  3  173.714
  4  156.825
  5  0.0111089
  6  0.0752866
  7  0.000338261
  8  5.19821e-05
  9  103.26
  10  1.99923e-05
  11  255.991
  12  92.5263
  13  2.19326
  14  24.7512
  15  18.3588
  16  83.2858
  17  2.69861e-06
  18  0.556709
  19  0.410259
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.040e+02  9.253e+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:  1.444e+00  4.103e-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:  2.550e-01  5.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.14
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.69e-07 +/- 2.39e-07
Energy Flux (Fixed Index): 8.68e-05 +/- 7.72e-05

TS (Fixed Index): 2.14
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 7.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420349/likelihoodResults_553478401_553737601_4FGL_J0821.1+1007_daily_bin1212.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): 0
logL (Free Index) = 1644.16235755
delta logL = 0.000137434495628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1644.16227881
delta logL = 0.000216177057155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.21       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3919       1.0000          .0000       10.000    
     3 'Normalizat'    .25698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4431       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=   1644.162     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      257 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.44        112.78        .19602E-03    .80413E-04
   2  Index         2.3937        .78426        .48788E-02   -.13679E-04
   3  Normalizat    .25721        .53586        .61778E-03    .58198E-05
   4  Prefactor     1.4424        .40874        .20700E-03    .49010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 105.444
  Index      = 2.39372
  Normalizat = 0.257211
  Prefactor  = 1.44244
 **********
 **   18 **HESSE 
 **********

 FCN=   1644.162     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.44        109.67        .78409E-05   -1.3651    
   2  Index         2.3937        .76204        .19515E-03   -.54832    
   3  Normalizat    .25721        .53445        .24711E-04   -1.2549    
   4  Prefactor     1.4424        .40774        .41399E-04   -.79165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22111e-10
Minuit parameter uncertainties:
  1  109.884
  2  0.766146
  3  0.545622
  4  0.408659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420349': 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) = 1644.16226481
delta logL = 0.000230172495321

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.054e+02  1.099e+02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.394e+00  7.661e-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.442e+00  4.087e-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:  2.572e-01  5.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.39 +/- 0.77
Photon Flux (Free Index): 2.65e-07 +/- 2.92e-07
Energy Flux (Free Index): 8.74e-05 +/- 7.86e-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/420349/cmap_HighResolution_553478401_553737601_4FGL_J0821.1+1007_daily_bin1212.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-02', comment='SUCCESS', photon_flux='2.69e-07', energy_flux2='8.74e-05', photon_flux_error='2.39e-07', dlogl='2.30e-04', energy_flux='8.68e-05', photon_flux2='2.65e-07', job_status='DONE', time_completed='2021-08-29 17:47:30.968005', photon_index_error2='0.77', photon_index2='2.39', ts='2.14', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', photon_flux_upper_limit='7.77e-07', energy_flux_error2='7.86e-05', EG='0.26', time_epoch_completed='1630284450.97', return_code='0', job_id='420349', GAL2='1.44', EG2='0.26', return_code2='0', energy_flux_error='7.72e-05', photon_flux_error2='2.92e-07', ts2='2.17', photon_index='2.41' WHERE bin_id='1212' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 420349: <4FGL_J0821.1+1007_daily_bin1212> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1212 125.299 10.1287 553478401 553737601 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 :                                   381.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   403 sec.
    Turnaround time :                            404 sec.

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

