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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin532
RA = 125.299, Dec = 10.1287
tmin = 377222401, tmax = 377481601
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='416907', job_status='RUN', time_executed='2021-08-29 17:32:28.021235', time_epoch_executed='1630283548.02' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416907

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416907/ft1_4FGL_J0821.1+1007_daily_bin532.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416907/ft2_4FGL_J0821.1+1007_daily_bin532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416907/ft1_4FGL_J0821.1+1007_daily_bin532.fits outfile=/scratch/kocevski/416907/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin532.fits ra=125.299 dec=10.1287 rad=12.0 tmin=377222401.0 tmax=377481601.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 7.96
user 3.34
sys 4.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416907/ft1_filtered_4FGL_J0821.1+1007_daily_bin532.fits" evtable="EVENTS" scfile=/scratch/kocevski/416907/ft2_4FGL_J0821.1+1007_daily_bin532.fits sctable="SC_DATA" outfile=/scratch/kocevski/416907/ltcube_377222401_377481601_4FGL_J0821.1+1007_daily_bin532.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/416907/ft2_4FGL_J0821.1+1007_daily_bin532.fits
.....................!
real 17.85
user 11.49
sys 5.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416907/ft1_filtered_4FGL_J0821.1+1007_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/416907/ft2_4FGL_J0821.1+1007_daily_bin532.fits sctable="SC_DATA" expcube=/scratch/kocevski/416907/ltcube_377222401_377481601_4FGL_J0821.1+1007_daily_bin532.fits outfile=/scratch/kocevski/416907/expmap_377222401_377481601_4FGL_J0821.1+1007_daily_bin532.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/416907/ltcube_377222401_377481601_4FGL_J0821.1+1007_daily_bin532.fits
.....................!
real 196.91
user 186.54
sys 9.65

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/416907/ft1_filtered_4FGL_J0821.1+1007_daily_bin532.fits scfile=/scratch/kocevski/416907/ft2_4FGL_J0821.1+1007_daily_bin532.fits outfile=/scratch/kocevski/416907/cmap_377222401_377481601_4FGL_J0821.1+1007_daily_bin532.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 4.50
user 0.38
sys 3.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416907/ft1_filtered_4FGL_J0821.1+1007_daily_bin532.fits scfile=/scratch/kocevski/416907/ft2_4FGL_J0821.1+1007_daily_bin532.fits outfile=/scratch/kocevski/416907/cmap_HighResolution_377222401_377481601_4FGL_J0821.1+1007_daily_bin532.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 4.94
user 0.39
sys 4.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11323E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.267       1.0000         .10000E-03   10000.    
     5 'Prefactor '    136.12       1.0000         .10000E-03   10000.    
     6 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.7841       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5914       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.852       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8525       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8442       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2174       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14117       1.0000         .10000E-03   10000.    
    17 'norm      '    .30448E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0076       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=   7064.502     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     1960 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.286        49.722       -.10720E-03   -.27474E-04
   2  Prefactor     .10001E-03    2.0161        .22348E-05** at limit **
   3  norm          12.545        20.234       -.14506E-04   -.12511E-03
   4  Prefactor     14.245        18.637        .10676E-04   -.29208E-03
   5  Prefactor     135.78        116.57       -.57027E-04   -.78632E-04
   6  norm          .10000E-03    71.118        .22298E-07** at limit **
   7  Prefactor     .10000E-03    14.561       -.30715E-06** at limit **
   8  norm          .10000E-03    3.6864       -.17855E-07** at limit **
   9  norm          8.7603        15.623       -.12409E-05   -.22654E-04
  10  norm          1.5877        3.7429       -.20978E-05   -.11578E-02
  11  Prefactor     33.980        35.875        .11585E-04    .21679E-04
  12  Prefactor     8.8520        15.645       -.13691E-05    .13723E-04
  13  norm          1.8440        .87534       -.23063E-06   -.66750E-04
  14  Prefactor     3.2185        5.0020       -.84584E-06   -.22637E-03
  15  norm          3.3531        3.8535       -.24705E-06    .68472E-04
  16  Prefactor     .16759E-03    32.610       -.62279E-05** at limit **
  17  norm          .10000E-03    4.2570       -.42441E-06** at limit **
  18  Normalizat    1.0943        .19346        .58244E-05    .38526E-05
  19  Prefactor     1.0079        .14595        .17573E-05    .31754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2856
  Prefactor  = 0.000100013
  norm       = 12.5448
  Prefactor  = 14.245
  Prefactor  = 135.777
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.76028
  norm       = 1.58771
  Prefactor  = 33.9797
  Prefactor  = 8.85195
  norm       = 1.84399
  Prefactor  = 3.21853
  norm       = 3.35305
  Prefactor  = 0.000167589
  norm       = 0.0001
  Normalizat = 1.09435
  Prefactor  = 1.00789
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.502     FROM HESSE     STATUS=OK           286 CALLS     2246 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.286        49.860        .81389E-04   -1.4722    
   2  Prefactor     .10001E-03    4.2352        .22768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.545        20.231        .11315E-03   -1.4999    
   4  Prefactor     14.245        18.523        .10604E-03   -1.4953    
   5  Prefactor     135.78        116.50        .17260E-03   -1.3372    
   6  norm          .10000E-03    71.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.6904        .15760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.7603        15.593        .13524E-03   -1.5116    
  10  norm          1.5877        3.7308        .23792E-03   -1.5456    
  11  Prefactor     33.980        35.904        .68874E-04   -1.4541    
  12  Prefactor     8.8520        15.655        .13472E-03   -1.5113    
  13  norm          1.8440        .87221        .52299E-04   -1.5436    
  14  Prefactor     3.2185        4.9892        .22585E-03   -1.5349    
  15  norm          3.3531        3.8525        .17227E-03   -1.5342    
  16  Prefactor     .16759E-03    34.605        .12369       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    33.444        .33813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0943        .23094        .27702E-03   -.89933    
  19  Prefactor     1.0079        .17399        .22495E-03   -.92467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13408e-09
Minuit parameter uncertainties:
  1  49.9459
  2  0.000475857
  3  20.2424
  4  18.5301
  5  116.702
  6  0.00018232
  7  8.20765e-05
  8  5.98972e-06
  9  15.6003
  10  3.73131
  11  35.9272
  12  15.6618
  13  0.872217
  14  4.98981
  15  3.85283
  16  0.0967799
  17  9.93134e-05
  18  0.231155
  19  0.174084
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  8.852e+00  1.566e+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.008e+00  1.741e-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.094e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/416907/likelihoodResults_377222401_377481601_4FGL_J0821.1+1007_daily_bin532.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) = 7064.39591351
delta logL = 0.106441889614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7064.3917688
delta logL = 0.110586592445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6771       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9467       1.0000          .0000       10.000    
     3 'Normalizat'    1.0723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0190       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7064.392     FROM MIGRAD    STATUS=FAILED       102 CALLS      318 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6679        28.043        .84294E-03   -.20365E-04
   2  Index         2.9481        2.2861        .90048E-02    .50155E-03
   3  Normalizat    1.0725        .23147        .27948E-03   -.24366E-04
   4  Prefactor     1.0187        .17820        .22389E-03    .55349E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7064.392     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      397 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6679        28.043        .30701E-03   -1.5232    
   2  Index         2.9481        2.2861        .17774E-02   -.42288    
   3  Normalizat    1.0725        .23147        .34568E-03   -.90638    
   4  Prefactor     1.0187        .17820        .26458E-03   -.92108    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7064.392     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      428 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6680        13.989        .33718E-04   -.43833E-05
   2  Index         2.9481        1.3075        .18010E-02   -.33393E-05
   3  Normalizat    1.0725        .22889        .11179E-04   -.11593E-04
   4  Prefactor     1.0187        .17559        .89554E-05    .33006E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66797
  Index      = 2.94808
  Normalizat = 1.07255
  Prefactor  = 1.01871
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.392     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6680        13.276        .13487E-05   -1.5232    
   2  Index         2.9481        1.2420        .72039E-04   -.42288    
   3  Normalizat    1.0725        .22889        .22358E-05   -.90638    
   4  Prefactor     1.0187        .17556        .17911E-05   -.92108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57304e-12
Minuit parameter uncertainties:
  1  13.2831
  2  1.25786
  3  0.229099
  4  0.175659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416907': 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) = 7064.39176657
delta logL = 0.110588822686

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  5.668e+00  1.328e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.948e+00  1.258e+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.019e+00  1.757e-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.073e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/416907/cmap_HighResolution_377222401_377481601_4FGL_J0821.1+1007_daily_bin532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.70e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-29 17:43:50.272087', job_id='416907', GAL2='1.02', fit_tolerance='1e-08', EG2='1.07', EG='1.09', time_epoch_completed='1630284230.27', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.11e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='532' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:43:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 416907: <4FGL_J0821.1+1007_daily_bin532> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin532> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 17:30:47 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:30:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:30:48 2021
Terminated at Sun Aug 29 17:43:52 2021
Results reported at Sun Aug 29 17:43:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin532 125.299 10.1287 377222401 377481601 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 :                                   740.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            785 sec.

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

