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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1324
RA = 125.299, Dec = 10.1287
tmin = 582508801, tmax = 582768001
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='420484', job_status='RUN', time_executed='2021-08-29 17:44:39.707173', time_epoch_executed='1630284279.71' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420484

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420484/ft1_4FGL_J0821.1+1007_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420484/ft2_4FGL_J0821.1+1007_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420484/ft1_4FGL_J0821.1+1007_daily_bin1324.fits outfile=/scratch/kocevski/420484/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1324.fits ra=125.299 dec=10.1287 rad=12.0 tmin=582508801.0 tmax=582768001.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 7.76
user 3.25
sys 3.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420484/ft1_filtered_4FGL_J0821.1+1007_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/420484/ft2_4FGL_J0821.1+1007_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/420484/ltcube_582508801_582768001_4FGL_J0821.1+1007_daily_bin1324.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/420484/ft2_4FGL_J0821.1+1007_daily_bin1324.fits
.....................!
real 17.36
user 12.13
sys 4.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420484/ft1_filtered_4FGL_J0821.1+1007_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/420484/ft2_4FGL_J0821.1+1007_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/420484/ltcube_582508801_582768001_4FGL_J0821.1+1007_daily_bin1324.fits outfile=/scratch/kocevski/420484/expmap_582508801_582768001_4FGL_J0821.1+1007_daily_bin1324.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/420484/ltcube_582508801_582768001_4FGL_J0821.1+1007_daily_bin1324.fits
.....................!
real 199.20
user 186.08
sys 11.15

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/420484/ft1_filtered_4FGL_J0821.1+1007_daily_bin1324.fits scfile=/scratch/kocevski/420484/ft2_4FGL_J0821.1+1007_daily_bin1324.fits outfile=/scratch/kocevski/420484/cmap_582508801_582768001_4FGL_J0821.1+1007_daily_bin1324.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 4.39
user 0.36
sys 3.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420484/ft1_filtered_4FGL_J0821.1+1007_daily_bin1324.fits scfile=/scratch/kocevski/420484/ft2_4FGL_J0821.1+1007_daily_bin1324.fits outfile=/scratch/kocevski/420484/cmap_HighResolution_582508801_582768001_4FGL_J0821.1+1007_daily_bin1324.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 4.61
user 0.35
sys 3.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5088       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.160       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.838       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.1908       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.623       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91580       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4859       1.0000         .10000E-03   10000.    
    15 'norm      '    .63897       1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.306       1.0000         .10000E-03   10000.    
    17 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79678       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1568       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=   6648.647     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1988 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.228        .39894E-06** at limit **
   2  Prefactor     5.5070        3.8253        .11153E-06   -.63487E-04
   3  norm          .10000E-03    6.4172        .21331E-07** at limit **
   4  Prefactor     20.154        13.527        .25340E-06    .53513E-05
   5  Prefactor     .10000E-03    49.331        .14031E-05** at limit **
   6  norm          .10000E-03    59.506       -.20598E-05** at limit **
   7  Prefactor     32.830        25.792        .52282E-06    .22474E-04
   8  norm          .10000E-03    4.9897        .33400E-07** at limit **
   9  norm          .10000E-03    6.5599       -.36449E-06** at limit **
  10  norm          8.1903        3.8136        .29540E-07   -.50189E-04
  11  Prefactor     22.604        32.796        .25564E-05    .72181E-04
  12  Prefactor     .10000E-03    4.3677       -.14840E-06** at limit **
  13  norm          .91594        .68220       -.21356E-08   -.32946E-03
  14  Prefactor     2.4840        6.5419        .56551E-05   -.20765E-03
  15  norm          .53038        4.5891       -.54520E-06    .90823E-04
  16  Prefactor     71.276        38.745        .28500E-05    .22597E-03
  17  norm          .10000E-03    9.3471        .12377E-06** at limit **
  18  Normalizat    .79699        .20187        .19846E-09    .93403E-05
  19  Prefactor     1.1568        .15403       -.15309E-05   -.20203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.50702
  norm       = 0.0001
  Prefactor  = 20.1537
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.8298
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.1903
  Prefactor  = 22.6044
  Prefactor  = 0.0001
  norm       = 0.915945
  Prefactor  = 2.48402
  norm       = 0.530384
  Prefactor  = 71.2764
  norm       = 0.0001
  Normalizat = 0.796995
  Prefactor  = 1.15682
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.647     FROM HESSE     STATUS=OK           268 CALLS     2256 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5070        3.8229        .12404E-03   -1.5239    
   3  norm          .10000E-03    6.4204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.154        13.516        .89204E-04   -1.4810    
   5  Prefactor     .10000E-03    49.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    59.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.830        25.798        .69926E-04   -1.4561    
   8  norm          .10000E-03    4.9943        .17788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.5726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.1903        3.8139        .10501E-03   -1.5136    
  11  Prefactor     22.604        32.964        .84215E-04   -1.4757    
  12  Prefactor     .10000E-03    4.3746        .16644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .91594        .68753        .55998E-04   -1.5517    
  14  Prefactor     2.4840        6.6104        .12964E-02   -1.5393    
  15  norm          .53038        30.233        .32726E-02   -1.5562    
  16  Prefactor     71.276        38.927        .47540E-04   -1.4017    
  17  norm          .10000E-03    9.6290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .79699        .23409        .31100E-03   -1.0018    
  19  Prefactor     1.1568        .17873        .20986E-03   -.87671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12539e-10
Minuit parameter uncertainties:
  1  0.000159068
  2  3.82311
  3  3.78704e-06
  4  13.5177
  5  0.000181268
  6  0.000236827
  7  25.8063
  8  5.32644e-06
  9  4.26723e-05
  10  3.81397
  11  32.9909
  12  1.71797e-05
  13  0.687539
  14  6.61229
  15  8.01231
  16  38.941
  17  2.51471e-05
  18  0.234382
  19  0.178825
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.718e-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.157e+00  1.788e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  7.970e-01  2.344e-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: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420484/likelihoodResults_582508801_582768001_4FGL_J0821.1+1007_daily_bin1324.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) = 6648.64827805
delta logL = -0.00108443184217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6648.6471935
delta logL = 1.14372596727e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3930       1.0000          .0000       10.000    
     3 'Normalizat'    .79702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1568       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=   6648.647     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10153E-03    54.191        .16840E-02** at limit **
   2  Index         2.3272        5.5801        .50000        .28380E-04
   3  Normalizat    .79699        .16261E-01    .31100E-03   -.10089E-04
   4  Prefactor     1.1568        .13064E-01    .20986E-03   -.19231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101531
  Index      = 2.32716
  Normalizat = 0.796992
  Prefactor  = 1.15682
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.647     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10153E-03    224.89        .33679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3272        6.0391        .50000       -.56400    
   3  Normalizat    .79699        .34716E-01    .12440E-04   -1.0018    
   4  Prefactor     1.1568        .27890E-01    .83944E-05   -.87671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.8758e-08
Minuit parameter uncertainties:
  1  0.037248
  2  616.253
  3  0.0347175
  4  0.0278901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420484': 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) = 6648.64719317
delta logL = 4.42068085249e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.015e-04  3.725e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.327e+00  6.163e+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.157e+00  2.789e-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:  7.970e-01  3.472e-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/420484/cmap_HighResolution_582508801_582768001_4FGL_J0821.1+1007_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-08-29 17:55:42.222501', job_id='420484', GAL2='1.16', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630284942.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1324' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 420484: <4FGL_J0821.1+1007_daily_bin1324> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1324> 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) <bullet0288>, 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:43 2021
Results reported at Sun Aug 29 17:55:43 2021

Your job looked like:

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

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

