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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1325
RA = 125.299, Dec = 10.1287
tmin = 582768001, tmax = 583027201
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='420485', job_status='RUN', time_executed='2021-08-29 17:45:18.678057', time_epoch_executed='1630284318.68' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420485/ft1_4FGL_J0821.1+1007_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420485/ft2_4FGL_J0821.1+1007_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420485/ft1_4FGL_J0821.1+1007_daily_bin1325.fits outfile=/scratch/kocevski/420485/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1325.fits ra=125.299 dec=10.1287 rad=12.0 tmin=582768001.0 tmax=583027201.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.92
user 3.36
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420485/ft1_filtered_4FGL_J0821.1+1007_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/420485/ft2_4FGL_J0821.1+1007_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/420485/ltcube_582768001_583027201_4FGL_J0821.1+1007_daily_bin1325.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/420485/ft2_4FGL_J0821.1+1007_daily_bin1325.fits
.....................!
real 12.52
user 11.78
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420485/ft1_filtered_4FGL_J0821.1+1007_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/420485/ft2_4FGL_J0821.1+1007_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/420485/ltcube_582768001_583027201_4FGL_J0821.1+1007_daily_bin1325.fits outfile=/scratch/kocevski/420485/expmap_582768001_583027201_4FGL_J0821.1+1007_daily_bin1325.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/420485/ltcube_582768001_583027201_4FGL_J0821.1+1007_daily_bin1325.fits
.....................!
real 193.61
user 187.19
sys 5.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/420485/ft1_filtered_4FGL_J0821.1+1007_daily_bin1325.fits scfile=/scratch/kocevski/420485/ft2_4FGL_J0821.1+1007_daily_bin1325.fits outfile=/scratch/kocevski/420485/cmap_582768001_583027201_4FGL_J0821.1+1007_daily_bin1325.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.95
user 0.38
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420485/ft1_filtered_4FGL_J0821.1+1007_daily_bin1325.fits scfile=/scratch/kocevski/420485/ft2_4FGL_J0821.1+1007_daily_bin1325.fits outfile=/scratch/kocevski/420485/cmap_HighResolution_582768001_583027201_4FGL_J0821.1+1007_daily_bin1325.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.88
user 0.37
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9127       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4627       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.509       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.702       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.178       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1018       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15352E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1653       1.0000         .10000E-03   10000.    
    13 'norm      '    .67988       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3623       1.0000         .10000E-03   10000.    
    15 'norm      '    12.860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3656       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2200       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1554       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0192       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=   7171.098     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1966 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.029        .10909E-05** at limit **
   2  Prefactor     4.9129        3.2032        .12323E-06   -.14765E-04
   3  norm          .10000E-03    4.9930       -.26164E-08** at limit **
   4  Prefactor     5.4629        5.9226       -.42620E-07   -.39314E-04
   5  Prefactor     43.117        116.88       -.53384E-05   -.99060E-04
   6  norm          .10000E-03    97.338        .18698E-06** at limit **
   7  Prefactor     22.706        29.141       -.89497E-06   -.17791E-04
   8  norm          .10000E-03    10.009       -.97897E-08** at limit **
   9  norm          13.150        20.108       -.85025E-06   -.28240E-04
  10  norm          3.1022        3.5105        .46398E-05   -.86461E-04
  11  Prefactor     .10000E-03    55.483        .12032E-06** at limit **
  12  Prefactor     7.1668        14.578        .47957E-06   -.13863E-04
  13  norm          .67998        .57419        .31618E-08   -.35915E-04
  14  Prefactor     1.3624        3.3385        .69291E-06    .32736E-04
  15  norm          12.860        7.2440        .15419E-07   -.28616E-04
  16  Prefactor     9.3635        33.296        .92838E-06   -.66287E-05
  17  norm          5.2198        5.0504       -.74464E-07    .15577E-04
  18  Normalizat    1.1552        .19679       -.38742E-05    .10344E-03
  19  Prefactor     1.0193        .15077        .20308E-05   -.25449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.9129
  norm       = 0.0001
  Prefactor  = 5.46291
  Prefactor  = 43.1173
  norm       = 0.0001
  Prefactor  = 22.7062
  norm       = 0.0001
  norm       = 13.1503
  norm       = 3.10223
  Prefactor  = 0.0001
  Prefactor  = 7.16682
  norm       = 0.679979
  Prefactor  = 1.36236
  norm       = 12.8601
  Prefactor  = 9.36347
  norm       = 5.21985
  Normalizat = 1.15523
  Prefactor  = 1.01933
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.098     FROM HESSE     STATUS=OK           276 CALLS     2242 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9129        3.2009        .11655E-03   -1.5265    
   3  norm          .10000E-03    4.9978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4629        5.9242        .17192E-03   -1.5240    
   5  Prefactor     43.117        117.68        .30389E-03   -1.4394    
   6  norm          .10000E-03    97.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.706        29.135        .84068E-04   -1.4755    
   8  norm          .10000E-03    10.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.150        20.070        .11034E-03   -1.4983    
  10  norm          3.1022        3.5331        .81623E-03   -1.5356    
  11  Prefactor     .10000E-03    55.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1668        14.621        .14985E-03   -1.5172    
  13  norm          .67998        .59082        .57068E-03   -1.5543    
  14  Prefactor     1.3624        3.2823        .23580E-03   -1.5475    
  15  norm          12.860        7.2427        .11170E-03   -1.4991    
  16  Prefactor     9.3635        33.332        .13095E-03   -1.5096    
  17  norm          5.2198        5.0555        .17594E-03   -1.5251    
  18  Normalizat    1.1552        .23037        .27489E-03   -.87998    
  19  Prefactor     1.0193        .17708        .22883E-03   -.92088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71144e-10
Minuit parameter uncertainties:
  1  0.000394058
  2  3.20096
  3  2.25095e-06
  4  5.92484
  5  118.325
  6  0.000176571
  7  29.1527
  8  6.16252e-05
  9  20.0802
  10  3.53331
  11  4.32582e-06
  12  14.6287
  13  0.590824
  14  3.28276
  15  7.2432
  16  33.3982
  17  5.05595
  18  0.230568
  19  0.177179
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  7.167e+00  1.463e+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.019e+00  1.772e-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.155e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/420485/likelihoodResults_582768001_583027201_4FGL_J0821.1+1007_daily_bin1325.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) = 7170.40677871
delta logL = 0.691219552551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7170.35773295
delta logL = 0.740265310716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8199       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9082       1.0000          .0000       10.000    
     3 'Normalizat'    1.0590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0680       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=   7170.358     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      270 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8189        25.793        .77386E-02    .94977E-03
   2  Index         3.9084        2.8580        .10160        .21042E-03
   3  Normalizat    1.0590        .55821E-01    .64543E-01    .46715E-04
   4  Prefactor     1.0679        .42883E-01    .38956E-01    .36558E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81894
  Index      = 3.90842
  Normalizat = 1.05904
  Prefactor  = 1.06793
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.358     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8189        50.992        .84944E-04   -1.5438    
   2  Index         3.9084        6.8638        .52235E-02   -.22009    
   3  Normalizat    1.0590        .22512        .28550E-03   -.91078    
   4  Prefactor     1.0679        .17099        .22415E-03   -.90498    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.26555e-10
Minuit parameter uncertainties:
  1  19.2792
  2  5.27405
  3  0.225319
  4  0.17108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420485': 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) = 7170.35773291
delta logL = 0.740265354942

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.819e+00  1.928e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.908e+00  5.274e+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.068e+00  1.711e-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.059e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 125.299 10.129
Photon Index (Free Index): 3.91 +/- 5.27
Photon Flux (Free Index): 8.92e-08 +/- 8.52e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.24e-05

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/420485/cmap_HighResolution_582768001_583027201_4FGL_J0821.1+1007_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='7.40e-01', photon_flux2='8.92e-08', job_status='DONE', time_completed='2021-08-29 17:55:38.829267', photon_index_error2='5.27', photon_index2='3.91', ts='0.30', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.24e-05', EG='1.16', time_epoch_completed='1630284938.83', return_code='0', job_id='420485', GAL2='1.07', EG2='1.06', return_code2='102', photon_flux_error2='8.52e-08', ts2='1.97', photon_index='2.41' WHERE bin_id='1325' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:55:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 420485: <4FGL_J0821.1+1007_daily_bin1325> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1325> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:41:01 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:41:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:41:03 2021
Terminated at Sun Aug 29 17:55:39 2021
Results reported at Sun Aug 29 17:55:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1325 125.299 10.1287 582768001 583027201 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 :                                   621.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

