/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 173 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin13
RA = 125.299, Dec = 10.1287
tmin = 242697601, tmax = 242956801
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='413860', job_status='RUN', time_executed='2021-08-29 17:24:03.881815', time_epoch_executed='1630283043.88' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413860/ft1_4FGL_J0821.1+1007_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413860/ft2_4FGL_J0821.1+1007_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413860/ft1_4FGL_J0821.1+1007_daily_bin13.fits outfile=/scratch/kocevski/413860/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin13.fits ra=125.299 dec=10.1287 rad=12.0 tmin=242697601.0 tmax=242956801.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 1.73
user 1.24
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413860/ft1_filtered_4FGL_J0821.1+1007_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/413860/ft2_4FGL_J0821.1+1007_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/413860/ltcube_242697601_242956801_4FGL_J0821.1+1007_daily_bin13.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/413860/ft2_4FGL_J0821.1+1007_daily_bin13.fits
.....................!
real 13.47
user 12.80
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413860/ft1_filtered_4FGL_J0821.1+1007_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/413860/ft2_4FGL_J0821.1+1007_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/413860/ltcube_242697601_242956801_4FGL_J0821.1+1007_daily_bin13.fits outfile=/scratch/kocevski/413860/expmap_242697601_242956801_4FGL_J0821.1+1007_daily_bin13.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/413860/ltcube_242697601_242956801_4FGL_J0821.1+1007_daily_bin13.fits
.....................!
real 191.98
user 185.49
sys 6.10

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/413860/ft1_filtered_4FGL_J0821.1+1007_daily_bin13.fits scfile=/scratch/kocevski/413860/ft2_4FGL_J0821.1+1007_daily_bin13.fits outfile=/scratch/kocevski/413860/cmap_242697601_242956801_4FGL_J0821.1+1007_daily_bin13.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=125.299 yref=10.1287 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.89
user 0.36
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413860/ft1_filtered_4FGL_J0821.1+1007_daily_bin13.fits scfile=/scratch/kocevski/413860/ft2_4FGL_J0821.1+1007_daily_bin13.fits outfile=/scratch/kocevski/413860/cmap_HighResolution_242697601_242956801_4FGL_J0821.1+1007_daily_bin13.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 0.94
user 0.39
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2895       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .57666E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    38.931       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.682       1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11945E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.594       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0328       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.2432       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93647       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1402       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=   9355.470     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1865 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.307        37.381       -.58224E-05    .30066E-04
   2  Prefactor     3.2875        2.5400        .18969E-07    .26480E-03
   3  norm          .10000E-03    5.0344       -.12863E-05** at limit **
   4  Prefactor     .10000E-03    6.6454        .16150E-05** at limit **
   5  Prefactor     .10001E-03    187.91       -.26745E-03** at limit **
   6  norm          38.932        45.745        .17952E-05    .21803E-05
   7  Prefactor     .10000E-03    19.813        .88723E-05** at limit **
   8  norm          10.684        8.8110       -.24357E-06   -.29988E-03
   9  norm          .10000E-03    6.8812       -.29024E-06** at limit **
  10  norm          .10001E-03    1.4395        .12677E-05** at limit **
  11  Prefactor     51.597        30.846        .36355E-05   -.62899E-04
  12  Prefactor     .10000E-03    16.669        .49557E-05** at limit **
  13  norm          1.0328        .62765       -.58427E-07   -.34363E-03
  14  Prefactor     .10000E-03    2.4445       -.97234E-07** at limit **
  15  norm          .10000E-03    3.6627       -.30828E-05** at limit **
  16  Prefactor     .10000E-03    15.035       -.96125E-05** at limit **
  17  norm          6.2433        4.5049        .75439E-07    .20527E-03
  18  Normalizat    .93644        .16040       -.55003E-07    .16651E-03
  19  Prefactor     1.1401        .12838        .45919E-07    .22224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3069
  Prefactor  = 3.28747
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 38.9324
  Prefactor  = 0.0001
  norm       = 10.6839
  norm       = 0.0001
  norm       = 0.000100013
  Prefactor  = 51.597
  Prefactor  = 0.0001
  norm       = 1.03281
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24332
  Normalizat = 0.93644
  Prefactor  = 1.14014
 **********
 **   18 **HESSE 
 **********

 FCN=   9355.470     FROM HESSE     STATUS=OK           262 CALLS     2127 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.307        37.388        .76659E-04   -1.4662    
   2  Prefactor     3.2875        2.5331        .12904E-03   -1.5345    
   3  norm          .10000E-03    5.0497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    188.21        .21085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          38.932        45.756        .64238E-04   -1.4459    
   7  Prefactor     .10000E-03    19.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.684        8.8003        .61293E-03   -1.5054    
   9  norm          .10000E-03    6.8934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    3.8046        .22476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.597        30.887        .55835E-04   -1.4270    
  12  Prefactor     .10000E-03    17.309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0328        .62856        .57684E-04   -1.5505    
  14  Prefactor     .10000E-03    2.4648        .14764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7758        .36143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.2433        4.5077        .16066E-03   -1.5208    
  18  Normalizat    .93644        .18411        .28265E-03   -.95191    
  19  Prefactor     1.1401        .14758        .21110E-03   -.88194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60386e-09
Minuit parameter uncertainties:
  1  37.4205
  2  2.53323
  3  9.8218e-07
  4  2.66704e-06
  5  0.00222913
  6  45.7971
  7  8.72578e-05
  8  8.80133
  9  3.05185e-05
  10  0.00044724
  11  30.8961
  12  0.000131529
  13  0.628568
  14  8.12491e-07
  15  1.81821e-05
  16  1.03605e-05
  17  4.50789
  18  0.184236
  19  0.147634
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.315e-04  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.140e+00  1.476e-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:  9.364e-01  1.842e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413860/likelihoodResults_242697601_242956801_4FGL_J0821.1+1007_daily_bin13.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) = 9355.47019971
delta logL = -0.00027579640664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9355.46992393
delta logL = -1.60471245181e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4149       1.0000          .0000       10.000    
     3 'Normalizat'    .93645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1401       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.

 FCN=   9355.470     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.511        .90712E-02** at limit **
   2  Index         2.4189        5.7358        .50000       -.14848E-05
   3  Normalizat    .93644        .32244E-02    .45366E-01    .45574E-03
   4  Prefactor     1.1401        .26413E-02    .36228E-01    .53511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.41894
  Normalizat = 0.936441
  Prefactor  = 1.14014
 **********
 **   18 **HESSE 
 **********

 FCN=   9355.470     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    334.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4189        5.2453        .50000       -.54242    
   3  Normalizat    .93644        .17440E-01    .28265E-03   -.95191    
   4  Prefactor     1.1401        .14293E-01    .21110E-03   -.88194    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.90914e-08
Minuit parameter uncertainties:
  1  0.0025688
  2  278.348
  3  0.01744
  4  0.0142928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413860': 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) = 9355.46992391
delta logL = 4.12364897784e-09

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.569e-03  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.419e+00  2.783e+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.140e+00  1.429e-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:  9.364e-01  1.744e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/413860/cmap_HighResolution_242697601_242956801_4FGL_J0821.1+1007_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-08-29 17:35:24.491768', job_id='413860', GAL2='1.14', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630283724.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.12e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='13' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:35:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 413860: <4FGL_J0821.1+1007_daily_bin13> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin13> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:51 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:54 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:20:54 2021
Terminated at Sun Aug 29 17:35:24 2021
Results reported at Sun Aug 29 17:35:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin13 125.299 10.1287 242697601 242956801 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 :                                   679.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             255.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

