/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 9 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 = 7341
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin336
RA = 125.299, Dec = 10.1287
tmin = 326419201, tmax = 326678401
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='415556', job_status='RUN', time_executed='2021-08-29 17:26:29.814193', time_epoch_executed='1630283189.81' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415556/ft1_4FGL_J0821.1+1007_daily_bin336.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415556/ft2_4FGL_J0821.1+1007_daily_bin336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415556/ft1_4FGL_J0821.1+1007_daily_bin336.fits outfile=/scratch/kocevski/415556/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin336.fits ra=125.299 dec=10.1287 rad=12.0 tmin=326419201.0 tmax=326678401.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.76
user 3.15
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415556/ft1_filtered_4FGL_J0821.1+1007_daily_bin336.fits" evtable="EVENTS" scfile=/scratch/kocevski/415556/ft2_4FGL_J0821.1+1007_daily_bin336.fits sctable="SC_DATA" outfile=/scratch/kocevski/415556/ltcube_326419201_326678401_4FGL_J0821.1+1007_daily_bin336.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/415556/ft2_4FGL_J0821.1+1007_daily_bin336.fits
.....................!
real 12.33
user 11.46
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415556/ft1_filtered_4FGL_J0821.1+1007_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/415556/ft2_4FGL_J0821.1+1007_daily_bin336.fits sctable="SC_DATA" expcube=/scratch/kocevski/415556/ltcube_326419201_326678401_4FGL_J0821.1+1007_daily_bin336.fits outfile=/scratch/kocevski/415556/expmap_326419201_326678401_4FGL_J0821.1+1007_daily_bin336.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/415556/ltcube_326419201_326678401_4FGL_J0821.1+1007_daily_bin336.fits
.....................!
real 193.16
user 185.10
sys 6.86

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/415556/ft1_filtered_4FGL_J0821.1+1007_daily_bin336.fits scfile=/scratch/kocevski/415556/ft2_4FGL_J0821.1+1007_daily_bin336.fits outfile=/scratch/kocevski/415556/cmap_326419201_326678401_4FGL_J0821.1+1007_daily_bin336.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.93
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415556/ft1_filtered_4FGL_J0821.1+1007_daily_bin336.fits scfile=/scratch/kocevski/415556/ft2_4FGL_J0821.1+1007_daily_bin336.fits outfile=/scratch/kocevski/415556/cmap_HighResolution_326419201_326678401_4FGL_J0821.1+1007_daily_bin336.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.05
user 0.39
sys 0.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1179       1.0000         .10000E-03   10000.    
     3 'norm      '    .13400E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2567       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11702       1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    81.869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.107       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9164       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.731       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4682       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .72028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6923.463     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1636 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.305        1.1251       -.29309E-06    .19853E-02
   2  Prefactor     1.1203        3.2737        .40397E-06   -.18611E-04
   3  norm          .10000E-03    34.201       -.46420E-04** at limit **
   4  Prefactor     2.2591        1.8543       -.50382E-05   -.11248E-02
   5  Prefactor     .10000E-03    38.701        .42899E-04** at limit **
   6  norm          .10000E-03    27.356        .10023E-04** at limit **
   7  Prefactor     .10008E-03    334.39       -.33030E-04** at limit **
   8  norm          .10000E-03    6.9233       -.80981E-06** at limit **
   9  norm          .10000E-03    9.0327        .45100E-06** at limit **
  10  norm          13.078        4.5498        .22184E-06    .13090E-02
  11  Prefactor     81.877        1.5198        .68396E-06   -.34242E-02
  12  Prefactor     19.115        2.6117       -.30178E-05    .18878E-02
  13  norm          .10000E-03    .91545        .26513E-06** at limit **
  14  Prefactor     .10000E-03    2.2539        .10027E-05** at limit **
  15  norm          4.9167        5.2187        .74290E-05    .27933E-03
  16  Prefactor     62.756        1.6732        .24763E-06   -.24105E-03
  17  norm          .10000E-03    5.2203       -.14086E-05** at limit **
  18  Normalizat    1.4674        .22937        .33405E-06    .90749E-03
  19  Prefactor     .72090        .17131       -.55340E-06    .91556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.305
  Prefactor  = 1.1203
  norm       = 0.0001
  Prefactor  = 2.25909
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100077
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.0783
  Prefactor  = 81.8774
  Prefactor  = 19.1146
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.9167
  Prefactor  = 62.7555
  norm       = 0.0001
  Normalizat = 1.46741
  Prefactor  = 0.720902
 **********
 **   18 **HESSE 
 **********

 FCN=   6923.463     FROM HESSE     STATUS=OK           320 CALLS     1956 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.305        66.481        .10239E-02   -1.3742    
   2  Prefactor     1.1203        3.3341        .11121E-01   -1.5496    
   3  norm          .10000E-03    34.587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2591        9.2068        .68369E-02   -1.5407    
   5  Prefactor     .10000E-03    39.638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    27.486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    17.206        .12184       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.9022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.0341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.078        4.5678        .27691E-02   -1.4985    
  11  Prefactor     81.877        38.380        .11098E-02   -1.3896    
  12  Prefactor     19.115        17.233        .22907E-02   -1.4833    
  13  norm          .10000E-03    .43787        .20617E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9167        5.2305        .45349E-02   -1.5264    
  16  Prefactor     62.756        41.435        .12666E-02   -1.4122    
  17  norm          .10000E-03    5.1842        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4674        .20396        .57224E-01   -.78698    
  19  Prefactor     .72090        .14640        .42671E-01   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07158e-08
Minuit parameter uncertainties:
  1  66.5321
  2  3.33468
  3  0.000101704
  4  9.12342
  5  0.000363031
  6  0.000178123
  7  0.00229789
  8  7.48795e-05
  9  6.6362e-05
  10  4.56795
  11  38.3919
  12  17.2373
  13  5.06172e-06
  14  2.56429e-05
  15  5.23098
  16  41.4543
  17  5.63564e-05
  18  0.204076
  19  0.146479
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.911e+01  1.724e+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:  7.209e-01  1.465e-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:  1.467e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 4.45e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/415556/likelihoodResults_326419201_326678401_4FGL_J0821.1+1007_daily_bin336.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) = 6923.41574191
delta logL = 0.0469468177089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6923.41463522
delta logL = 0.048053510568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.239       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6142       1.0000          .0000       10.000    
     3 'Normalizat'    1.4581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72609       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=   6923.415     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      293 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.241        21.439        .10260E-03   -.28145E-03
   2  Index         2.6144        .76012        .69810E-02   -.13227E-03
   3  Normalizat    1.4581        .23067        .25369E-03    .48376E-03
   4  Prefactor     .72604        .17199        .26010E-03    .50448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2414
  Index      = 2.61439
  Normalizat = 1.45806
  Prefactor  = 0.726044
 **********
 **   18 **HESSE 
 **********

 FCN=   6923.415     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.241        19.270        .41040E-05   -1.4927    
   2  Index         2.6144        .68311        .27924E-03   -.49738    
   3  Normalizat    1.4581        .23070        .50739E-04   -.78964    
   4  Prefactor     .72604        .17193        .52021E-04   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42036e-10
Minuit parameter uncertainties:
  1  19.2775
  2  0.685891
  3  0.230865
  4  0.172051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415556': 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) = 6923.41463498
delta logL = 0.0480537490357

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.524e+01  1.928e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.614e+00  6.859e-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:  7.260e-01  1.721e-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:  1.458e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.61 +/- 0.69
Photon Flux (Free Index): 5.67e-08 +/- 5.27e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/415556/cmap_HighResolution_326419201_326678401_4FGL_J0821.1+1007_daily_bin336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='1.47e-05', photon_flux_error='4.45e-08', dlogl='4.81e-02', energy_flux='1.60e-05', photon_flux2='5.67e-08', job_status='DONE', time_completed='2021-08-29 17:36:28.142385', photon_index_error2='0.69', photon_index2='2.61', ts='1.65', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.34e-05', EG='1.47', time_epoch_completed='1630283788.14', return_code='0', job_id='415556', GAL2='0.73', EG2='1.46', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.27e-08', ts2='1.75', photon_index='2.41' WHERE bin_id='336' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:36:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 415556: <4FGL_J0821.1+1007_daily_bin336> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin336> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 17:26:05 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:26:07 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:26:07 2021
Terminated at Sun Aug 29 17:36:28 2021
Results reported at Sun Aug 29 17:36:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin336 125.299 10.1287 326419201 326678401 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 :                                   595.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

