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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1274
RA = 125.299, Dec = 10.1287
tmin = 569548801, tmax = 569808001
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='420434', job_status='RUN', time_executed='2021-08-29 17:44:18.798980', time_epoch_executed='1630284258.8' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420434

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420434/ft1_4FGL_J0821.1+1007_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420434/ft2_4FGL_J0821.1+1007_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420434/ft1_4FGL_J0821.1+1007_daily_bin1274.fits outfile=/scratch/kocevski/420434/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1274.fits ra=125.299 dec=10.1287 rad=12.0 tmin=569548801.0 tmax=569808001.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.28
user 3.44
sys 1.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/420434/ft2_4FGL_J0821.1+1007_daily_bin1274.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/420434/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1274.fits evtable="EVENTS" outfile="/scratch/kocevski/420434/ft1_filtered_4FGL_J0821.1+1007_daily_bin1274.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 2.14
user 0.34
sys 1.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420434/ft1_filtered_4FGL_J0821.1+1007_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/420434/ft2_4FGL_J0821.1+1007_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/420434/ltcube_569548801_569808001_4FGL_J0821.1+1007_daily_bin1274.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/420434/ft2_4FGL_J0821.1+1007_daily_bin1274.fits
.....................!
real 13.66
user 11.53
sys 2.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420434/ft1_filtered_4FGL_J0821.1+1007_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/420434/ft2_4FGL_J0821.1+1007_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/420434/ltcube_569548801_569808001_4FGL_J0821.1+1007_daily_bin1274.fits outfile=/scratch/kocevski/420434/expmap_569548801_569808001_4FGL_J0821.1+1007_daily_bin1274.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/420434/ltcube_569548801_569808001_4FGL_J0821.1+1007_daily_bin1274.fits
.....................!
real 192.02
user 185.35
sys 6.15

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/420434/ft1_filtered_4FGL_J0821.1+1007_daily_bin1274.fits scfile=/scratch/kocevski/420434/ft2_4FGL_J0821.1+1007_daily_bin1274.fits outfile=/scratch/kocevski/420434/cmap_569548801_569808001_4FGL_J0821.1+1007_daily_bin1274.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 2.28
user 0.37
sys 1.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420434/ft1_filtered_4FGL_J0821.1+1007_daily_bin1274.fits scfile=/scratch/kocevski/420434/ft2_4FGL_J0821.1+1007_daily_bin1274.fits outfile=/scratch/kocevski/420434/cmap_HighResolution_569548801_569808001_4FGL_J0821.1+1007_daily_bin1274.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 2.20
user 0.36
sys 1.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6893       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4906       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    202.27       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    35.477       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.7205       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5898       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9980       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.779       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.646       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8187       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1277       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0024       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=   6874.625     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1861 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.972        .27706E-06** at limit **
   2  Prefactor     3.6892        2.9102        .62022E-07    .90058E-05
   3  norm          .10000E-03    10.559       -.19641E-05** at limit **
   4  Prefactor     2.4895        6.3148       -.34228E-05   -.20612E-03
   5  Prefactor     .10000E-03    96.115       -.13420E-05** at limit **
   6  norm          202.27        130.64       -.12940E-07   -.48371E-06
   7  Prefactor     .10000E-03    13.917       -.12399E-05** at limit **
   8  norm          35.478        18.761       -.67399E-07   -.87498E-05
   9  norm          .10000E-03    11.879        .27476E-05** at limit **
  10  norm          7.7210        3.9723        .12529E-07   -.33574E-04
  11  Prefactor     .10000E-03    8.9609        .39274E-06** at limit **
  12  Prefactor     3.5896        5.5495        .11087E-05   -.78923E-03
  13  norm          1.9980        .99076       -.28203E-07   -.88860E-04
  14  Prefactor     17.779        11.974        .12563E-06   -.20397E-03
  15  norm          .10000E-03    1.4228       -.93908E-07** at limit **
  16  Prefactor     35.647        32.520        .24481E-06    .37459E-05
  17  norm          5.8186        6.3757        .17599E-06    .18568E-04
  18  Normalizat    1.1277        .20133       -.36569E-06   -.58595E-05
  19  Prefactor     1.0024        .15332        .13349E-06   -.27891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.68918
  norm       = 0.0001
  Prefactor  = 2.48954
  Prefactor  = 0.0001
  norm       = 202.274
  Prefactor  = 0.0001
  norm       = 35.4778
  norm       = 0.0001
  norm       = 7.72097
  Prefactor  = 0.0001
  Prefactor  = 3.58959
  norm       = 1.99803
  Prefactor  = 17.7794
  norm       = 0.0001
  Prefactor  = 35.6467
  norm       = 5.81855
  Normalizat = 1.12768
  Prefactor  = 1.00244
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.625     FROM HESSE     STATUS=OK           270 CALLS     2131 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6892        2.9107        .12031E-03   -1.5324    
   3  norm          .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4895        6.3936        .25900E-03   -1.5392    
   5  Prefactor     .10000E-03    96.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          202.27        130.68        .28414E-04   -1.2854    
   7  Prefactor     .10000E-03    13.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          35.478        18.767        .67283E-04   -1.4516    
   9  norm          .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.7210        3.9713        .11436E-03   -1.5152    
  11  Prefactor     .10000E-03    8.9678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5896        10.505        .10664E-02   -1.5329    
  13  norm          1.9980        .98872        .55906E-04   -1.5425    
  14  Prefactor     17.779        12.175        .47494E-03   -1.4864    
  15  norm          .10000E-03    1.4233        .96586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.647        32.561        .67123E-04   -1.4513    
  17  norm          5.8186        6.3769        .16649E-03   -1.5225    
  18  Normalizat    1.1277        .24038        .28479E-03   -.88868    
  19  Prefactor     1.0024        .18191        .23415E-03   -.92648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02883e-09
Minuit parameter uncertainties:
  1  1.44828e-05
  2  2.91079
  3  1.33509e-05
  4  6.39534
  5  5.90342e-05
  6  130.867
  7  2.63591e-05
  8  18.7698
  9  6.17502e-05
  10  3.97147
  11  9.0004e-06
  12  10.5109
  13  0.988732
  14  12.177
  15  6.10022e-07
  16  32.577
  17  6.37767
  18  0.240611
  19  0.182019
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.590e+00  1.051e+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.002e+00  1.820e-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.128e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420434/likelihoodResults_569548801_569808001_4FGL_J0821.1+1007_daily_bin1274.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) = 6874.62478682
delta logL = 8.56324541019e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6874.62475869
delta logL = 0.000113763878289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6697       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3896       1.0000          .0000       10.000    
     3 'Normalizat'    1.1280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0023       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6874.625     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      289 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6855        13.106        .10543E-02    .14192E-03
   2  Index         2.3857        1.6420        .72449E-02    .29281E-05
   3  Normalizat    1.1279        .23124        .28476E-03    .95818E-06
   4  Prefactor     1.0023        .18087        .23416E-03    .14565E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68553
  Index      = 2.38574
  Normalizat = 1.12792
  Prefactor  = 1.00229
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.625     FROM HESSE     STATUS=OK            27 CALLS      316 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6855        12.384        .21085E-03   -1.5324    
   2  Index         2.3857        1.5559        .28980E-03   -.55019    
   3  Normalizat    1.1279        .23144        .11390E-04   -.88860    
   4  Prefactor     1.0023        .18098        .93666E-05   -.92653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46714e-13
Minuit parameter uncertainties:
  1  12.3927
  2  1.59268
  3  0.231645
  4  0.181091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420434': 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) = 6874.62475518
delta logL = 0.000117272323223

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.686e+00  1.239e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.386e+00  1.593e+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.002e+00  1.811e-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.128e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 125.299 10.129

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/420434/cmap_HighResolution_569548801_569808001_4FGL_J0821.1+1007_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.16e-08', time_completed='2021-08-29 17:54:33.205784', job_id='420434', GAL2='1.00', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630284873.21', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.17e-04', ts2='0.14', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1274' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 420434: <4FGL_J0821.1+1007_daily_bin1274> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1274 125.299 10.1287 569548801 569808001 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 :                                   635.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

