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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin606
RA = 125.299, Dec = 10.1287
tmin = 396403201, tmax = 396662401
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='417003', job_status='RUN', time_executed='2021-08-29 17:31:35.946413', time_epoch_executed='1630283495.95' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417003/ft1_4FGL_J0821.1+1007_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417003/ft2_4FGL_J0821.1+1007_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417003/ft1_4FGL_J0821.1+1007_daily_bin606.fits outfile=/scratch/kocevski/417003/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin606.fits ra=125.299 dec=10.1287 rad=12.0 tmin=396403201.0 tmax=396662401.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 5.42
user 4.32
sys 1.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/417003/ft2_4FGL_J0821.1+1007_daily_bin606.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/417003/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin606.fits evtable="EVENTS" outfile="/scratch/kocevski/417003/ft1_filtered_4FGL_J0821.1+1007_daily_bin606.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.55
user 0.33
sys 0.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417003/ft1_filtered_4FGL_J0821.1+1007_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/417003/ft2_4FGL_J0821.1+1007_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/417003/ltcube_396403201_396662401_4FGL_J0821.1+1007_daily_bin606.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/417003/ft2_4FGL_J0821.1+1007_daily_bin606.fits
.....................!
real 13.24
user 11.43
sys 1.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417003/ft1_filtered_4FGL_J0821.1+1007_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/417003/ft2_4FGL_J0821.1+1007_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/417003/ltcube_396403201_396662401_4FGL_J0821.1+1007_daily_bin606.fits outfile=/scratch/kocevski/417003/expmap_396403201_396662401_4FGL_J0821.1+1007_daily_bin606.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/417003/ltcube_396403201_396662401_4FGL_J0821.1+1007_daily_bin606.fits
.....................!
real 192.47
user 185.89
sys 5.92

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/417003/ft1_filtered_4FGL_J0821.1+1007_daily_bin606.fits scfile=/scratch/kocevski/417003/ft2_4FGL_J0821.1+1007_daily_bin606.fits outfile=/scratch/kocevski/417003/cmap_396403201_396662401_4FGL_J0821.1+1007_daily_bin606.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.40
user 0.38
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417003/ft1_filtered_4FGL_J0821.1+1007_daily_bin606.fits scfile=/scratch/kocevski/417003/ft2_4FGL_J0821.1+1007_daily_bin606.fits outfile=/scratch/kocevski/417003/cmap_HighResolution_396403201_396662401_4FGL_J0821.1+1007_daily_bin606.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.51
user 0.35
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16318E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1189       1.0000         .10000E-03   10000.    
     5 'Prefactor '    165.50       1.0000         .10000E-03   10000.    
     6 'norm      '    31.184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3131       1.0000         .10000E-03   10000.    
     8 'norm      '    24.074       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.776       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.561       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2201       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2770       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=   6483.053     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1866 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.890       -.11662E-05** at limit **
   2  Prefactor     .10000E-03    3.3144        .96506E-06** at limit **
   3  norm          .10000E-03    5.6447        .84871E-07** at limit **
   4  Prefactor     3.1202        6.7139        .45629E-06    .75267E-04
   5  Prefactor     165.54        112.09       -.63514E-07   -.12750E-04
   6  norm          30.898        94.243       -.37554E-05   -.34594E-04
   7  Prefactor     8.3137        32.071        .37358E-06   -.46326E-05
   8  norm          24.070        20.148        .52959E-07   -.18393E-04
   9  norm          .10000E-03    11.704        .22018E-06** at limit **
  10  norm          .10000E-03    .98476        .42905E-07** at limit **
  11  Prefactor     .10000E-03    19.174        .28529E-06** at limit **
  12  Prefactor     .10000E-03    5.8064        .14902E-06** at limit **
  13  norm          .10000E-03    .43406        .22560E-06** at limit **
  14  Prefactor     14.769        12.297        .38495E-06   -.26261E-04
  15  norm          .10000E-03    2.9929        .13567E-06** at limit **
  16  Prefactor     41.545        42.584        .17502E-06   -.20679E-04
  17  norm          .10000E-03    3.4356        .70246E-07** at limit **
  18  Normalizat    1.2206        .26190       -.57744E-05   -.34759E-04
  19  Prefactor     1.2767        .20338        .42376E-05   -.14597E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.12024
  Prefactor  = 165.543
  norm       = 30.8978
  Prefactor  = 8.31369
  norm       = 24.0702
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7688
  norm       = 0.0001
  Prefactor  = 41.5447
  norm       = 0.0001
  Normalizat = 1.22059
  Prefactor  = 1.27674
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.053     FROM HESSE     STATUS=OK           266 CALLS     2132 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    88.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5370        .28910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.6479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1202        6.7067        .22958E-03   -1.5355    
   5  Prefactor     165.54        112.11        .15677E-03   -1.3128    
   6  norm          30.898        95.144        .35875E-03   -1.4596    
   7  Prefactor     8.3137        32.065        .13904E-03   -1.5131    
   8  norm          24.070        20.152        .81640E-04   -1.4726    
   9  norm          .10000E-03    11.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .98584        .78032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.8211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .45708        .10395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.769        12.317        .10420E-03   -1.4939    
  15  norm          .10000E-03    3.0064        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     41.545        42.639        .62180E-04   -1.4418    
  17  norm          .10000E-03    3.4424        .14576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2206        .26550        .30189E-03   -.85969    
  19  Prefactor     1.2767        .20364        .23397E-03   -.84001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55285e-10
Minuit parameter uncertainties:
  1  0.000222278
  2  4.86647e-05
  3  5.12594e-06
  4  6.70829
  5  112.256
  6  95.6168
  7  32.1313
  8  20.1577
  9  2.33217e-05
  10  1.49344e-06
  11  3.79979e-05
  12  1.26216e-05
  13  3.80333e-06
  14  12.3189
  15  6.39418e-06
  16  42.6707
  17  2.61252e-06
  18  0.265792
  19  0.203765
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.262e-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.277e+00  2.038e-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.221e+00  2.658e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/417003/likelihoodResults_396403201_396662401_4FGL_J0821.1+1007_daily_bin606.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) = 6483.05420315
delta logL = -0.000813813485365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6483.05338984
delta logL = -5.09654455527e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3861       1.0000          .0000       10.000    
     3 'Normalizat'    1.2207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2766       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=   6483.053     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10341E-03    4.7148        .18142E-01** at limit **
   2  Index         2.2835        8.7752        .50000        .26519E-04
   3  Normalizat    1.2206        .47722E-02    .30190E-03    .42026E-04
   4  Prefactor     1.2767        .37889E-02    .23396E-03    .41789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103411
  Index      = 2.28346
  Normalizat = 1.22058
  Prefactor  = 1.27674
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.053     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10341E-03    74.063        .19998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2835        8.8162        .50000       -.57437    
   3  Normalizat    1.2206        .19079E-01    .12076E-04   -.85969    
   4  Prefactor     1.2767        .15148E-01    .93586E-05   -.84001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22046e-08
Minuit parameter uncertainties:
  1  0.0318271
  2  385.845
  3  0.0190787
  4  0.0151476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417003': 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) = 6483.05338868
delta logL = 6.49558387522e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.034e-04  3.183e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.283e+00  3.858e+02  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.277e+00  1.515e-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:  1.221e+00  1.908e-02  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/417003/cmap_HighResolution_396403201_396662401_4FGL_J0821.1+1007_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-08-29 17:41:23.775962', job_id='417003', GAL2='1.28', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630284083.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='6.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='606' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:41:23 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin606 125.299 10.1287 396403201 396662401 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            628 sec.

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

