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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1253
RA = 125.299, Dec = 10.1287
tmin = 564105601, tmax = 564364801
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='420412', job_status='RUN', time_executed='2021-08-29 17:43:49.937101', time_epoch_executed='1630284229.94' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420412

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420412/ft1_4FGL_J0821.1+1007_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420412/ft2_4FGL_J0821.1+1007_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420412/ft1_4FGL_J0821.1+1007_daily_bin1253.fits outfile=/scratch/kocevski/420412/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1253.fits ra=125.299 dec=10.1287 rad=12.0 tmin=564105601.0 tmax=564364801.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 3.67
user 3.04
sys 0.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420412/ft1_filtered_4FGL_J0821.1+1007_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/420412/ft2_4FGL_J0821.1+1007_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/420412/ltcube_564105601_564364801_4FGL_J0821.1+1007_daily_bin1253.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/420412/ft2_4FGL_J0821.1+1007_daily_bin1253.fits
.....................!
real 12.47
user 11.59
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420412/ft1_filtered_4FGL_J0821.1+1007_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/420412/ft2_4FGL_J0821.1+1007_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/420412/ltcube_564105601_564364801_4FGL_J0821.1+1007_daily_bin1253.fits outfile=/scratch/kocevski/420412/expmap_564105601_564364801_4FGL_J0821.1+1007_daily_bin1253.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/420412/ltcube_564105601_564364801_4FGL_J0821.1+1007_daily_bin1253.fits
.....................!
real 190.89
user 185.57
sys 4.86

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/420412/ft1_filtered_4FGL_J0821.1+1007_daily_bin1253.fits scfile=/scratch/kocevski/420412/ft2_4FGL_J0821.1+1007_daily_bin1253.fits outfile=/scratch/kocevski/420412/cmap_564105601_564364801_4FGL_J0821.1+1007_daily_bin1253.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.33
user 0.37
sys 0.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420412/ft1_filtered_4FGL_J0821.1+1007_daily_bin1253.fits scfile=/scratch/kocevski/420412/ft2_4FGL_J0821.1+1007_daily_bin1253.fits outfile=/scratch/kocevski/420412/cmap_HighResolution_564105601_564364801_4FGL_J0821.1+1007_daily_bin1253.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.43
user 0.37
sys 0.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3970       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9067       1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.221       1.0000         .10000E-03   10000.    
     6 'norm      '    .58860E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.980       1.0000         .10000E-03   10000.    
     8 'norm      '    33.348       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6646       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9504       1.0000         .10000E-03   10000.    
    11 'Prefactor '    97.400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41798       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2629       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85157       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=   5864.738     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1876 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.790        .78201E-06** at limit **
   2  Prefactor     2.3966        2.6449       -.21698E-07   -.69022E-04
   3  norm          .10000E-03    14.953       -.79270E-06** at limit **
   4  Prefactor     7.9065        8.7559       -.10742E-05    .59417E-04
   5  Prefactor     74.211        95.886       -.10459E-04    .15946E-04
   6  norm          .10000E-03    282.90       -.12515E-03** at limit **
   7  Prefactor     28.956        44.817       -.37433E-04   -.52248E-05
   8  norm          33.346        21.401       -.26124E-05    .15127E-04
   9  norm          5.6814        47.351        .18445E-04    .65786E-04
  10  norm          6.9496        4.0913        .23790E-07    .10228E-03
  11  Prefactor     97.436        55.314        .33788E-04    .40223E-03
  12  Prefactor     .32234        13.976       -.87064E-05   -.31040E-04
  13  norm          3.3537        1.4256       -.18965E-06    .24738E-03
  14  Prefactor     .10000E-03    4.0151        .17947E-07** at limit **
  15  norm          22.934        11.803       -.12390E-05    .14724E-04
  16  Prefactor     .10000E-03    9.9525       -.92980E-07** at limit **
  17  norm          .10000E-03    4.3661       -.82958E-08** at limit **
  18  Normalizat    1.2631        .21435       -.34455E-05    .10024E-02
  19  Prefactor     .85156        .16253        .29854E-05    .59745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.39657
  norm       = 0.0001
  Prefactor  = 7.90646
  Prefactor  = 74.2114
  norm       = 0.000100002
  Prefactor  = 28.9558
  norm       = 33.3464
  norm       = 5.6814
  norm       = 6.94957
  Prefactor  = 97.4362
  Prefactor  = 0.322335
  norm       = 3.35372
  Prefactor  = 0.0001
  norm       = 22.934
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.26306
  Prefactor  = 0.851564
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.738     FROM HESSE     STATUS=OK           268 CALLS     2144 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3966        2.6393        .12538E-03   -1.5398    
   3  norm          .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9065        8.7399        .14260E-03   -1.5146    
   5  Prefactor     74.211        95.877        .46604E-04   -1.3983    
   6  norm          .10000E-03    283.23        .21074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.956        44.282        .74423E-04   -1.4631    
   8  norm          33.346        21.409        .69391E-04   -1.4552    
   9  norm          5.6814        45.471        .16878E-03   -1.5231    
  10  norm          6.9496        4.0907        .11492E-03   -1.5181    
  11  Prefactor     97.436        55.651        .20365E-03   -1.3731    
  12  Prefactor     .32234        220.33        .52992E-02   -1.5594    
  13  norm          3.3537        1.4244        .57147E-04   -1.5342    
  14  Prefactor     .10000E-03    4.0384        .14982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.934        11.812        .83641E-04   -1.4750    
  16  Prefactor     .10000E-03    9.9582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3837        .15628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2631        .25334        .26814E-03   -.84676    
  19  Prefactor     .85156        .19202        .24673E-03   -.97855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61933e-08
Minuit parameter uncertainties:
  1  3.10711e-06
  2  2.63947
  3  2.0205e-05
  4  8.74135
  5  96.078
  6  0.00139642
  7  44.3326
  8  21.4139
  9  32.179
  10  4.09086
  11  55.6804
  12  16.9149
  13  1.4244
  14  4.779e-06
  15  11.8135
  16  1.98539e-06
  17  1.04312e-06
  18  0.253592
  19  0.192172
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.223e-01  1.691e+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:  8.516e-01  1.922e-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.263e+00  2.536e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420412/likelihoodResults_564105601_564364801_4FGL_J0821.1+1007_daily_bin1253.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) = 5864.73839806
delta logL = 1.50494633999e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5864.73793117
delta logL = 0.000468398538942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32328       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1444       1.0000          .0000       10.000    
     3 'Normalizat'    1.2634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85144       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=   5864.737     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      253 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95854        45.461        .10527        .25682E-03
   2  Index         2.1322        2.0843        .50000       -.16007E-05
   3  Normalizat    1.2631        .83235E-02    .60626E-01    .31096E-04
   4  Prefactor     .85102        .64606E-02    .44383E-01    .29431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.958545
  Index      = 2.13218
  Normalizat = 1.2631
  Prefactor  = 0.851016
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.737     FROM HESSE     STATUS=OK            35 CALLS      288 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95854        137.44        .64450E-02   -1.5512    
   2  Index         2.1322        5.9512        .25495E-01   -.61085    
   3  Normalizat    1.2631        .24492        .26813E-03   -.84675    
   4  Prefactor     .85102        .19091        .24681E-03   -.97874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37982e-11
Minuit parameter uncertainties:
  1  23.0084
  2  5.17834
  3  0.245142
  4  0.191056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420412': 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) = 5864.73742599
delta logL = 0.000973575414719

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  9.585e-01  2.301e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.132e+00  5.178e+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:  8.510e-01  1.911e-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.263e+00  2.451e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/420412/cmap_HighResolution_564105601_564364801_4FGL_J0821.1+1007_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-08-29 17:53:04.890281', job_id='420412', GAL2='0.85', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630284784.89', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='9.74e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1253' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:53:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 420412: <4FGL_J0821.1+1007_daily_bin1253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1253 125.299 10.1287 564105601 564364801 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 :                                   556.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            732 sec.

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

