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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1319
RA = 125.299, Dec = 10.1287
tmin = 581212801, tmax = 581472001
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='420479', job_status='RUN', time_executed='2021-08-29 17:45:15.550677', time_epoch_executed='1630284315.55' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420479

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420479/ft1_4FGL_J0821.1+1007_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420479/ft2_4FGL_J0821.1+1007_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420479/ft1_4FGL_J0821.1+1007_daily_bin1319.fits outfile=/scratch/kocevski/420479/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1319.fits ra=125.299 dec=10.1287 rad=12.0 tmin=581212801.0 tmax=581472001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.20
user 2.83
sys 1.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420479/ft1_filtered_4FGL_J0821.1+1007_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/420479/ft2_4FGL_J0821.1+1007_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/420479/ltcube_581212801_581472001_4FGL_J0821.1+1007_daily_bin1319.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/420479/ft2_4FGL_J0821.1+1007_daily_bin1319.fits
.....................!
real 14.14
user 11.92
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420479/ft1_filtered_4FGL_J0821.1+1007_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/420479/ft2_4FGL_J0821.1+1007_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/420479/ltcube_581212801_581472001_4FGL_J0821.1+1007_daily_bin1319.fits outfile=/scratch/kocevski/420479/expmap_581212801_581472001_4FGL_J0821.1+1007_daily_bin1319.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/420479/ltcube_581212801_581472001_4FGL_J0821.1+1007_daily_bin1319.fits
.....................!
real 191.81
user 185.50
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/420479/ft1_filtered_4FGL_J0821.1+1007_daily_bin1319.fits scfile=/scratch/kocevski/420479/ft2_4FGL_J0821.1+1007_daily_bin1319.fits outfile=/scratch/kocevski/420479/cmap_581212801_581472001_4FGL_J0821.1+1007_daily_bin1319.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.75
user 0.36
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420479/ft1_filtered_4FGL_J0821.1+1007_daily_bin1319.fits scfile=/scratch/kocevski/420479/ft2_4FGL_J0821.1+1007_daily_bin1319.fits outfile=/scratch/kocevski/420479/cmap_HighResolution_581212801_581472001_4FGL_J0821.1+1007_daily_bin1319.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.77
user 0.37
sys 1.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6250       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .51267E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.980       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5102       1.0000         .10000E-03   10000.    
     9 'norm      '    .99650E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13263E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7062       1.0000         .10000E-03   10000.    
    15 'norm      '    17.695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.753       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .49519       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.4562       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=   7926.999     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1920 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.263       -.24313E-07** at limit **
   2  Prefactor     2.6253        2.5570       -.20081E-06   -.63474E-03
   3  norm          .10000E-03    7.3021       -.16158E-07** at limit **
   4  Prefactor     .10000E-03    6.6102        .16285E-08** at limit **
   5  Prefactor     .10000E-03    32.744        .35756E-06** at limit **
   6  norm          .10000E-03    262.87       -.83695E-04** at limit **
   7  Prefactor     32.960        30.570       -.52371E-05   -.38363E-03
   8  norm          1.5158        30.009       -.19742E-05   -.20002E-03
   9  norm          .10010E-03    13.067        .36065E-05** at limit **
  10  norm          1.7406        3.7528       -.50483E-06   -.12155E-02
  11  Prefactor     .10000E-03    7.8823        .45781E-07** at limit **
  12  Prefactor     .10001E-03    5.7283       -.39505E-06** at limit **
  13  norm          3.4105        1.0964       -.25063E-07   -.44139E-03
  14  Prefactor     3.7075        6.1546       -.76098E-06   -.44015E-03
  15  norm          17.696        8.1893        .51888E-06   -.35292E-04
  16  Prefactor     35.757        26.974        .13127E-06    .45665E-05
  17  norm          .10000E-03    1.5854        .96773E-08** at limit **
  18  Normalizat    .49518        .18808        .94493E-06   -.13675E-03
  19  Prefactor     1.4561        .15094        .14702E-06   -.11764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.62527
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 32.9599
  norm       = 1.51577
  norm       = 0.000100102
  norm       = 1.74065
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 3.41055
  Prefactor  = 3.70747
  norm       = 17.696
  Prefactor  = 35.7575
  norm       = 0.0001
  Normalizat = 0.495183
  Prefactor  = 1.45612
 **********
 **   18 **HESSE 
 **********

 FCN=   7926.999     FROM HESSE     STATUS=OK           274 CALLS     2194 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6253        2.5474        .13397E-03   -1.5384    
   3  norm          .10000E-03    7.3183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    252.86        .21145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.960        29.232        .69775E-04   -1.4559    
   8  norm          1.5158        30.091        .34807E-03   -1.5462    
   9  norm          .10010E-03    97.579        .58124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7406        3.7383        .23846E-03   -1.5444    
  11  Prefactor     .10000E-03    7.8875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    53.103        .40866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4105        1.0946        .50538E-04   -1.5339    
  14  Prefactor     3.7075        6.1616        .20977E-03   -1.5323    
  15  norm          17.696        8.1812        .95213E-04   -1.4866    
  16  Prefactor     35.757        26.965        .67023E-04   -1.4511    
  17  norm          .10000E-03    1.5859        .10948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .49518        .20635        .37617E-03   -1.1264    
  19  Prefactor     1.4561        .17001        .19477E-03   -.78776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03317e-09
Minuit parameter uncertainties:
  1  2.28646e-06
  2  2.54749
  3  2.00499e-07
  4  5.15311e-07
  5  6.55565e-07
  6  0.0012881
  7  29.2447
  8  13.5146
  9  0.00633237
  10  3.73878
  11  3.15574e-06
  12  0.0015289
  13  1.09462
  14  6.16265
  15  8.18167
  16  26.9739
  17  2.10714e-07
  18  0.206668
  19  0.170075
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.529e-03  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.456e+00  1.701e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  4.952e-01  2.067e-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: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420479/likelihoodResults_581212801_581472001_4FGL_J0821.1+1007_daily_bin1319.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) = 7926.99880433
delta logL = -8.77026122907e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7926.99880431
delta logL = -8.76790445545e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96346E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4102       1.0000          .0000       10.000    
     3 'Normalizat'    .49518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4561       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=   7926.975     FROM MIGRAD    STATUS=CONVERGED    146 CALLS      313 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58738        28.604        .14981E-02   -.60269E-03
   2  Index         3.1742        6.5859        .60395E-02   -.67992E-04
   3  Normalizat    .48692        .20269        .37930E-03   -.27920E-03
   4  Prefactor     1.4594        .17003        .19460E-03   -.30827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.587379
  Index      = 3.17419
  Normalizat = 0.486922
  Prefactor  = 1.45942
 **********
 **   18 **HESSE 
 **********

 FCN=   7926.975     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58738        6.2041        .59926E-04   -1.5555    
   2  Index         3.1742        2.4071        .24158E-03   -.37381    
   3  Normalizat    .48692        .20202        .15172E-04   -1.1303    
   4  Prefactor     1.4594        .17010        .38920E-04   -.78683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55091e-10
Minuit parameter uncertainties:
  1  3.8181
  2  2.52978
  3  0.202325
  4  0.170169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420479': 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) = 7926.97489468
delta logL = 0.023821952771

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  5.874e-01  3.818e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.174e+00  2.530e+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.459e+00  1.702e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  4.869e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.299 10.129

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/420479/cmap_HighResolution_581212801_581472001_4FGL_J0821.1+1007_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-08-29 17:56:10.817321', job_id='420479', GAL2='1.46', fit_tolerance='1e-08', EG2='0.49', EG='0.50', time_epoch_completed='1630284970.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='2.38e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1319' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 420479: <4FGL_J0821.1+1007_daily_bin1319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1319 125.299 10.1287 581212801 581472001 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 :                                   668.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

