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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1601
RA = 125.299, Dec = 10.1287
tmin = 654307201, tmax = 654566401
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='541077', job_status='RUN', time_executed='2021-09-29 00:12:54.971827', time_epoch_executed='1632899574.97' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541077

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541077/ft1_4FGL_J0821.1+1007_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541077/ft2_4FGL_J0821.1+1007_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541077/ft1_4FGL_J0821.1+1007_daily_bin1601.fits outfile=/scratch/kocevski/541077/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1601.fits ra=125.299 dec=10.1287 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.24
user 4.01
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541077/ft2_4FGL_J0821.1+1007_daily_bin1601.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/541077/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/541077/ft1_filtered_4FGL_J0821.1+1007_daily_bin1601.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/541077/ft1_filtered_4FGL_J0821.1+1007_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/541077/ft2_4FGL_J0821.1+1007_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/541077/ltcube_654307201_654566401_4FGL_J0821.1+1007_daily_bin1601.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/541077/ft2_4FGL_J0821.1+1007_daily_bin1601.fits
.....................!
real 11.78
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541077/ft1_filtered_4FGL_J0821.1+1007_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/541077/ft2_4FGL_J0821.1+1007_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/541077/ltcube_654307201_654566401_4FGL_J0821.1+1007_daily_bin1601.fits outfile=/scratch/kocevski/541077/expmap_654307201_654566401_4FGL_J0821.1+1007_daily_bin1601.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/541077/ltcube_654307201_654566401_4FGL_J0821.1+1007_daily_bin1601.fits
.....................!
real 193.53
user 187.53
sys 5.62

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/541077/ft1_filtered_4FGL_J0821.1+1007_daily_bin1601.fits scfile=/scratch/kocevski/541077/ft2_4FGL_J0821.1+1007_daily_bin1601.fits outfile=/scratch/kocevski/541077/cmap_654307201_654566401_4FGL_J0821.1+1007_daily_bin1601.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541077/ft1_filtered_4FGL_J0821.1+1007_daily_bin1601.fits scfile=/scratch/kocevski/541077/ft2_4FGL_J0821.1+1007_daily_bin1601.fits outfile=/scratch/kocevski/541077/cmap_HighResolution_654307201_654566401_4FGL_J0821.1+1007_daily_bin1601.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3035       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5524       1.0000         .10000E-03   10000.    
     3 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    152.51       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.196       1.0000         .10000E-03   10000.    
     8 'norm      '    14.157       1.0000         .10000E-03   10000.    
     9 'norm      '    27.336       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6850       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3374       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.269       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4141       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .68109       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2622       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=   6291.259     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1918 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2901        28.192       -.11015E-04   -.14648E-04
   2  Prefactor     3.5525        3.1013        .55521E-07   -.37660E-03
   3  norm          .10000E-03    15.279       -.63826E-06** at limit **
   4  Prefactor     27.589        16.250       -.97659E-06   -.69988E-04
   5  Prefactor     .10000E-03    113.97        .96055E-06** at limit **
   6  norm          152.50        109.60       -.39024E-05    .92147E-06
   7  Prefactor     14.192        45.185       -.25625E-05   -.15274E-04
   8  norm          14.154        16.293        .43993E-05    .38732E-04
   9  norm          27.332        31.371       -.27027E-05   -.76823E-04
  10  norm          1.0771        2.7579       -.13581E-05   -.15392E-02
  11  Prefactor     2.7005        139.63        .50304E-04   -.28011E-05
  12  Prefactor     .10000E-03    11.432       -.80962E-06** at limit **
  13  norm          2.3375        1.2250       -.12378E-06   -.44728E-03
  14  Prefactor     .10000E-03    5.3229       -.22841E-06** at limit **
  15  norm          .10000E-03    4.3765        .77061E-07** at limit **
  16  Prefactor     35.272        32.666        .16587E-05   -.92340E-05
  17  norm          5.4141        5.4648        .43212E-06    .10494E-03
  18  Normalizat    .68094        .20778       -.23607E-05   -.32079E-04
  19  Prefactor     1.2623        .16375        .79084E-06   -.12038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.29012
  Prefactor  = 3.55255
  norm       = 0.0001
  Prefactor  = 27.5888
  Prefactor  = 0.0001
  norm       = 152.503
  Prefactor  = 14.1924
  norm       = 14.1542
  norm       = 27.3319
  norm       = 1.07705
  Prefactor  = 2.70048
  Prefactor  = 0.0001
  norm       = 2.33748
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.2722
  norm       = 5.41415
  Normalizat = 0.680939
  Prefactor  = 1.26231
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.259     FROM HESSE     STATUS=OK           276 CALLS     2194 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2901        28.145        .14842E-03   -1.5168    
   2  Prefactor     3.5525        3.0897        .12255E-03   -1.5331    
   3  norm          .10000E-03    15.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.589        16.219        .76271E-04   -1.4657    
   5  Prefactor     .10000E-03    114.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          152.50        109.55        .16320E-03   -1.3232    
   7  Prefactor     14.192        44.686        .10631E-03   -1.4954    
   8  norm          14.154        16.301        .10645E-03   -1.4955    
   9  norm          27.332        30.977        .76623E-04   -1.4662    
  10  norm          1.0771        2.5215        .20698E-02   -1.5500    
  11  Prefactor     2.7005        132.27        .24866E-03   -1.5379    
  12  Prefactor     .10000E-03    11.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3375        1.2206        .60436E-04   -1.5402    
  14  Prefactor     .10000E-03    5.4346        .17860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4711        .16203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.272        32.691        .67480E-04   -1.4519    
  17  norm          5.4141        5.4705        .17270E-03   -1.5243    
  18  Normalizat    .68094        .23425        .32750E-03   -1.0465    
  19  Prefactor     1.2623        .18630        .20535E-03   -.84435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22436e-09
Minuit parameter uncertainties:
  1  28.1966
  2  3.08988
  3  3.88256e-05
  4  16.222
  5  3.30742e-05
  6  109.698
  7  44.7914
  8  16.3061
  9  30.995
  10  2.5218
  11  37.8867
  12  7.25814e-05
  13  1.22059
  14  8.44208e-06
  15  2.50907e-06
  16  32.7074
  17  5.47097
  18  0.234594
  19  0.186402
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  7.258e-05  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.262e+00  1.864e-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:  6.809e-01  2.346e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541077/likelihoodResults_654307201_654566401_4FGL_J0821.1+1007_daily_bin1601.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) = 6291.2597399
delta logL = -0.000413482091062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6291.25932707
delta logL = -6.57189957565e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6291.259     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    105.24        .18142E-02** at limit **
   2  Index         2.3682        8.8049        .50000        .67561E-05
   3  Normalizat    .68094        .14270E-01    .32750E-03    .68732E-05
   4  Prefactor     1.2623        .11909E-01    .20535E-03    .10242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100353
  Index      = 2.3682
  Normalizat = 0.680938
  Prefactor  = 1.26231
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.259     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    472.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3682        5.4153        .50000       -.55431    
   3  Normalizat    .68094        .31564E-01    .13100E-04   -1.0465    
   4  Prefactor     1.2623        .26341E-01    .82139E-05   -.84435    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27034e-09
Minuit parameter uncertainties:
  1  0.026033
  2  722.113
  3  0.0315645
  4  0.026341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541077': 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) = 6291.25932635
delta logL = 6.08542904956e-08

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.004e-04  2.603e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.368e+00  7.221e+02  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.262e+00  2.634e-02  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  6.809e-01  3.156e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.299 10.129

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/541077/cmap_HighResolution_654307201_654566401_4FGL_J0821.1+1007_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-29 00:22:26.065476', job_id='541077', GAL2='1.26', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632900146.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='6.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1601' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 541077: <4FGL_J0821.1+1007_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 00:10:45 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:10:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:10:46 2021
Terminated at Wed Sep 29 00:22:26 2021
Results reported at Wed Sep 29 00:22:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1601 125.299 10.1287 654307201 654566401 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 :                                   573.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

