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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin49
RA = 125.299, Dec = 10.1287
tmin = 252028801, tmax = 252288001
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='415147', job_status='RUN', time_executed='2021-08-29 17:29:37.220067', time_epoch_executed='1630283377.22' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415147/ft1_4FGL_J0821.1+1007_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415147/ft2_4FGL_J0821.1+1007_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415147/ft1_4FGL_J0821.1+1007_daily_bin49.fits outfile=/scratch/kocevski/415147/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin49.fits ra=125.299 dec=10.1287 rad=12.0 tmin=252028801.0 tmax=252288001.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 2.07
user 1.23
sys 0.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415147/ft1_filtered_4FGL_J0821.1+1007_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/415147/ft2_4FGL_J0821.1+1007_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/415147/ltcube_252028801_252288001_4FGL_J0821.1+1007_daily_bin49.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/415147/ft2_4FGL_J0821.1+1007_daily_bin49.fits
.....................!
real 14.92
user 12.96
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415147/ft1_filtered_4FGL_J0821.1+1007_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/415147/ft2_4FGL_J0821.1+1007_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/415147/ltcube_252028801_252288001_4FGL_J0821.1+1007_daily_bin49.fits outfile=/scratch/kocevski/415147/expmap_252028801_252288001_4FGL_J0821.1+1007_daily_bin49.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/415147/ltcube_252028801_252288001_4FGL_J0821.1+1007_daily_bin49.fits
.....................!
real 190.41
user 184.92
sys 5.00

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/415147/ft1_filtered_4FGL_J0821.1+1007_daily_bin49.fits scfile=/scratch/kocevski/415147/ft2_4FGL_J0821.1+1007_daily_bin49.fits outfile=/scratch/kocevski/415147/cmap_252028801_252288001_4FGL_J0821.1+1007_daily_bin49.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.17
user 0.37
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415147/ft1_filtered_4FGL_J0821.1+1007_daily_bin49.fits scfile=/scratch/kocevski/415147/ft2_4FGL_J0821.1+1007_daily_bin49.fits outfile=/scratch/kocevski/415147/cmap_HighResolution_252028801_252288001_4FGL_J0821.1+1007_daily_bin49.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.14
user 0.36
sys 0.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.459       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7292       1.0000         .10000E-03   10000.    
     3 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.747       1.0000         .10000E-03   10000.    
     6 'norm      '    .15548E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.323       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18764E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6750       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7037       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.102       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .78352       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0625       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=   8886.528     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1853 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.455        33.081       -.29388E-05   -.44160E-05
   2  Prefactor     2.7294        2.1235       -.29910E-06   -.46571E-03
   3  norm          .10000E-03    7.8907       -.13885E-08** at limit **
   4  Prefactor     38.158        12.629        .35465E-05   -.90374E-05
   5  Prefactor     18.746        76.544       -.16213E-05   -.15638E-05
   6  norm          .10000E-03    117.63       -.57625E-05** at limit **
   7  Prefactor     .10000E-03    7.7936        .54107E-06** at limit **
   8  norm          .10000E-03    6.0509       -.99636E-07** at limit **
   9  norm          .10000E-03    7.8355       -.39540E-06** at limit **
  10  norm          .10000E-03    .98470        .34377E-08** at limit **
  11  Prefactor     11.314        26.093       -.35352E-06   -.27557E-04
  12  Prefactor     .10003E-03    7.7079        .24018E-06** at limit **
  13  norm          2.6750        .93870        .19240E-07   -.22862E-03
  14  Prefactor     .10000E-03    2.2747       -.27110E-07** at limit **
  15  norm          3.7039        3.8624        .41536E-07    .18696E-05
  16  Prefactor     .10000E-03    15.482       -.17443E-06** at limit **
  17  norm          18.102        8.8682       -.68456E-06   -.11758E-04
  18  Normalizat    .78346        .15355       -.85366E-06   -.29263E-04
  19  Prefactor     1.0625        .12079        .16162E-06   -.79744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4546
  Prefactor  = 2.72937
  norm       = 0.0001
  Prefactor  = 38.1581
  Prefactor  = 18.746
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3142
  Prefactor  = 0.000100032
  norm       = 2.67502
  Prefactor  = 0.0001
  norm       = 3.70386
  Prefactor  = 0.0001
  norm       = 18.1022
  Normalizat = 0.78346
  Prefactor  = 1.06252
 **********
 **   18 **HESSE 
 **********

 FCN=   8886.528     FROM HESSE     STATUS=OK           270 CALLS     2123 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.455        33.083        .77880E-04   -1.4679    
   2  Prefactor     2.7294        2.1261        .11577E-03   -1.5378    
   3  norm          .10000E-03    7.9149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.158        12.645        .64885E-04   -1.4472    
   5  Prefactor     18.746        76.548        .92504E-04   -1.4842    
   6  norm          .10000E-03    118.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.0770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.8642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .99375        .91336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.314        26.000        .11905E-03   -1.5035    
  12  Prefactor     .10003E-03    86.352        .49450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6750        .93908        .51618E-04   -1.5381    
  14  Prefactor     .10000E-03    2.2910        .13881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7039        3.8616        .18394E-03   -1.5323    
  16  Prefactor     .10000E-03    15.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.102        8.8695        .94137E-04   -1.4857    
  18  Normalizat    .78346        .17856        .28628E-03   -1.0069    
  19  Prefactor     1.0625        .14176        .20260E-03   -.90674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28642e-10
Minuit parameter uncertainties:
  1  33.106
  2  2.12613
  3  9.88889e-05
  4  12.6456
  5  75.9306
  6  0.00010451
  7  2.78092e-06
  8  2.18816e-06
  9  2.60497e-06
  10  3.67091e-07
  11  26.0255
  12  0.00335322
  13  0.939088
  14  2.35874e-06
  15  3.86181
  16  1.06617e-05
  17  8.8701
  18  0.178698
  19  0.141811
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.353e-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.063e+00  1.418e-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:  7.835e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/415147/likelihoodResults_252028801_252288001_4FGL_J0821.1+1007_daily_bin49.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) = 8886.52767076
delta logL = -5.31896203029e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8886.52767072
delta logL = -5.31485620741e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96306E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4103       1.0000          .0000       10.000    
     3 'Normalizat'    .78340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0626       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=   8886.524     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      298 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38745        3.9185        .72256E-01    .56277E-03
   2  Index         3.0488        .54754        .50000        .31032E-05
   3  Normalizat    .77968        .53535E-02    .64862E-01    .27915E-04
   4  Prefactor     1.0638        .43727E-02    .39225E-01    .65395E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.387451
  Index      = 3.04883
  Normalizat = 0.779681
  Prefactor  = 1.06385
 **********
 **   18 **HESSE 
 **********

 FCN=   8886.524     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      333 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38745        2103.9        .25317E-02   -1.5583    
   2  Index         3.0488        5.8854        .76231E-02   -.40089    
   3  Normalizat    .77968        .15267        .28694E-03   -1.0083    
   4  Prefactor     1.0638        .10162        .20250E-03   -.90631    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.10269e-09
Minuit parameter uncertainties:
  1  59.3146
  2  56.1709
  3  0.152749
  4  0.101642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415147': 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) = 8886.52364863
delta logL = 0.00396893984907

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.875e-01  5.931e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.049e+00  5.617e+01  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.064e+00  1.016e-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:  7.797e-01  1.527e-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/415147/cmap_HighResolution_252028801_252288001_4FGL_J0821.1+1007_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-08-29 17:40:45.252145', job_id='415147', GAL2='1.06', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630284045.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.97e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='49' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:40:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 415147: <4FGL_J0821.1+1007_daily_bin49> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin49> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 17:25:31 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:25:33 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:25:33 2021
Terminated at Sun Aug 29 17:40:46 2021
Results reported at Sun Aug 29 17:40:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin49 125.299 10.1287 252028801 252288001 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 :                                   669.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

