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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin87
RA = 125.299, Dec = 10.1287
tmin = 261878401, tmax = 262137601
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='415203', job_status='RUN', time_executed='2021-08-29 17:28:56.639559', time_epoch_executed='1630283336.64' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415203/ft1_4FGL_J0821.1+1007_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415203/ft2_4FGL_J0821.1+1007_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415203/ft1_4FGL_J0821.1+1007_daily_bin87.fits outfile=/scratch/kocevski/415203/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin87.fits ra=125.299 dec=10.1287 rad=12.0 tmin=261878401.0 tmax=262137601.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.42
user 1.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415203/ft1_filtered_4FGL_J0821.1+1007_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/415203/ft2_4FGL_J0821.1+1007_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/415203/ltcube_261878401_262137601_4FGL_J0821.1+1007_daily_bin87.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/415203/ft2_4FGL_J0821.1+1007_daily_bin87.fits
.....................!
real 12.83
user 12.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415203/ft1_filtered_4FGL_J0821.1+1007_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/415203/ft2_4FGL_J0821.1+1007_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/415203/ltcube_261878401_262137601_4FGL_J0821.1+1007_daily_bin87.fits outfile=/scratch/kocevski/415203/expmap_261878401_262137601_4FGL_J0821.1+1007_daily_bin87.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/415203/ltcube_261878401_262137601_4FGL_J0821.1+1007_daily_bin87.fits
.....................!
real 192.98
user 188.55
sys 4.06

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/415203/ft1_filtered_4FGL_J0821.1+1007_daily_bin87.fits scfile=/scratch/kocevski/415203/ft2_4FGL_J0821.1+1007_daily_bin87.fits outfile=/scratch/kocevski/415203/cmap_261878401_262137601_4FGL_J0821.1+1007_daily_bin87.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415203/ft1_filtered_4FGL_J0821.1+1007_daily_bin87.fits scfile=/scratch/kocevski/415203/ft2_4FGL_J0821.1+1007_daily_bin87.fits outfile=/scratch/kocevski/415203/cmap_HighResolution_261878401_262137601_4FGL_J0821.1+1007_daily_bin87.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.357       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6441       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.629       1.0000         .10000E-03   10000.    
     6 'norm      '    53.778       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.783       1.0000         .10000E-03   10000.    
     8 'norm      '    8.2915       1.0000         .10000E-03   10000.    
     9 'norm      '    .58998E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .57663E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37425E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3754       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.3194       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0685       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8799.676     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     1623 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.334        2.0209       -.22687E-06    .12670E-02
   2  Prefactor     4.6436        2.5516       -.10952E-06   -.11484E-02
   3  norm          .10000E-03    3.7097        .15970E-06** at limit **
   4  Prefactor     6.5120        1.1276        .79481E-06    .10075E-02
   5  Prefactor     47.634        1.2841        .44671E-06   -.17056E-02
   6  norm          53.750        4.1692       -.20860E-05    .85841E-02
   7  Prefactor     31.820        3.6461       -.19949E-05    .35111E-02
   8  norm          8.2990        10.991        .15568E-04    .17526E-02
   9  norm          .10050E-03    278.29        .96446E-05** at limit **
  10  norm          .41950E-01    19.406       -.93286E-05   -.33463E-04
  11  Prefactor     85.096        3.3928        .15101E-05   -.88055E-02
  12  Prefactor     .10012E-03    51.509        .31901E-04** at limit **
  13  norm          1.3754        .71272        .19076E-07    .15083E-03
  14  Prefactor     .10000E-03    1.6315       -.79884E-07** at limit **
  15  norm          .10000E-03    4.4565        .26127E-06** at limit **
  16  Prefactor     .10000E-03    8.0794       -.57355E-06** at limit **
  17  norm          5.3185        4.6684       -.42037E-05   -.19402E-03
  18  Normalizat    1.0685        .17199       -.32301E-06    .28962E-03
  19  Prefactor     .77288        .13449        .19635E-05    .36311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.334
  Prefactor  = 4.64357
  norm       = 0.0001
  Prefactor  = 6.512
  Prefactor  = 47.6339
  norm       = 53.7504
  Prefactor  = 31.82
  norm       = 8.29902
  norm       = 0.000100496
  norm       = 0.0419504
  Prefactor  = 85.0959
  Prefactor  = 0.000100119
  norm       = 1.37541
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 5.31848
  Normalizat = 1.06846
  Prefactor  = 0.772883
 **********
 **   18 **HESSE 
 **********

 FCN=   8799.676     FROM HESSE     STATUS=OK           324 CALLS     1947 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.334        36.464        .11271E-02   -1.3924    
   2  Prefactor     4.6436        2.5925        .46689E-02   -1.5277    
   3  norm          .10000E-03    3.7130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5120        6.7483        .39317E-02   -1.5198    
   5  Prefactor     47.634        97.376        .14525E-02   -1.4327    
   6  norm          53.750        68.736        .13674E-02   -1.4240    
   7  Prefactor     31.820        21.934        .17768E-02   -1.4579    
   8  norm          8.2990        11.088        .34807E-02   -1.5132    
   9  norm          .10050E-03    11.072        .10919       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .41950E-01    1.1364        .55161E-01   -1.5667    
  11  Prefactor     85.096        36.615        .10888E-02   -1.3860    
  12  Prefactor     .10012E-03    6.6330        .10647       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3754        .71930        .92862E-02   -1.5473    
  14  Prefactor     .10000E-03    1.6241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.3185        4.6696        .43564E-02   -1.5247    
  18  Normalizat    1.0685        .15412        .39460E-01   -.90771    
  19  Prefactor     .77288        .11698        .43360E-01   -1.0074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61779e-07
Minuit parameter uncertainties:
  1  36.4745
  2  2.59252
  3  7.40471e-05
  4  6.7491
  5  97.704
  6  68.8381
  7  21.9399
  8  11.0906
  9  0.00468569
  10  0.436172
  11  36.6243
  12  0.00177783
  13  0.719306
  14  1.13268e-05
  15  0.000158998
  16  0.000159922
  17  4.66987
  18  0.154184
  19  0.117015
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.001e-04  1.778e-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:  7.729e-01  1.170e-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.068e+00  1.542e-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: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415203/likelihoodResults_261878401_262137601_4FGL_J0821.1+1007_daily_bin87.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) = 8799.67565118
delta logL = -9.10759226826e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8799.67565095
delta logL = -9.08456895559e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96214E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4104       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77296       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=   8799.165     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      265 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24125        3.5088        .90727E-02    .25264E-02
   2  Index         4.5417        2.5671        .10784        .21717E-03
   3  Normalizat    1.0079        .29199E-01    .57159E-01    .14745E-03
   4  Prefactor     .80265        .23081E-01    .43364E-01    .20170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.241251
  Index      = 4.54165
  Normalizat = 1.00788
  Prefactor  = 0.802645
 **********
 **   18 **HESSE 
 **********

 FCN=   8799.165     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24125        12.484        .46397E-04   -1.5610    
   2  Index         4.5417        7.2382        .67084E-02   -.91798E-01
   3  Normalizat    1.0079        .13794        .25277E-03   -.92767    
   4  Prefactor     .80265        .10679        .22030E-03   -.99631    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6664e-06
Minuit parameter uncertainties:
  1  3.47094
  2  6.55881
  3  0.137993
  4  0.106819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415203': 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) = 8799.16515375
delta logL = 0.5104063495

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.413e-01  3.471e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  4.542e+00  6.559e+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.026e-01  1.068e-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.008e+00  1.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 125.299 10.129
Photon Index (Free Index): 4.54 +/- 6.56
Photon Flux (Free Index): 4.58e-08 +/- 4.67e-08
Energy Flux (Free Index): 6.37e-06 +/- 8.55e-06

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/415203/cmap_HighResolution_261878401_262137601_4FGL_J0821.1+1007_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', comment='SUCCESS', energy_flux2='6.37e-06', dlogl='5.10e-01', photon_flux2='4.58e-08', job_status='DONE', time_completed='2021-08-29 17:39:40.076806', photon_index_error2='6.56', photon_index2='4.54', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='7.01e-08', energy_flux_error2='8.55e-06', EG='1.07', time_epoch_completed='1630283980.08', return_code='0', job_id='415203', GAL2='0.80', EG2='1.01', return_code2='102', photon_flux_error2='4.67e-08', ts2='1.13', photon_index='2.41' WHERE bin_id='87' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:39:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 415203: <4FGL_J0821.1+1007_daily_bin87> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin87 125.299 10.1287 261878401 262137601 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 :                                   642.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

