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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1400
RA = 125.299, Dec = 10.1287
tmin = 602208001, tmax = 602467201
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='420643', job_status='RUN', time_executed='2021-08-29 17:44:47.158713', time_epoch_executed='1630284287.16' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420643

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420643/ft1_4FGL_J0821.1+1007_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420643/ft2_4FGL_J0821.1+1007_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420643/ft1_4FGL_J0821.1+1007_daily_bin1400.fits outfile=/scratch/kocevski/420643/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1400.fits ra=125.299 dec=10.1287 rad=12.0 tmin=602208001.0 tmax=602467201.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 6.78
user 4.93
sys 1.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420643/ft1_filtered_4FGL_J0821.1+1007_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/420643/ft2_4FGL_J0821.1+1007_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/420643/ltcube_602208001_602467201_4FGL_J0821.1+1007_daily_bin1400.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/420643/ft2_4FGL_J0821.1+1007_daily_bin1400.fits
.....................!
real 13.25
user 11.16
sys 2.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420643/ft1_filtered_4FGL_J0821.1+1007_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/420643/ft2_4FGL_J0821.1+1007_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/420643/ltcube_602208001_602467201_4FGL_J0821.1+1007_daily_bin1400.fits outfile=/scratch/kocevski/420643/expmap_602208001_602467201_4FGL_J0821.1+1007_daily_bin1400.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/420643/ltcube_602208001_602467201_4FGL_J0821.1+1007_daily_bin1400.fits
.....................!
real 193.70
user 186.23
sys 6.53

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/420643/ft1_filtered_4FGL_J0821.1+1007_daily_bin1400.fits scfile=/scratch/kocevski/420643/ft2_4FGL_J0821.1+1007_daily_bin1400.fits outfile=/scratch/kocevski/420643/cmap_602208001_602467201_4FGL_J0821.1+1007_daily_bin1400.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 2.09
user 0.37
sys 1.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420643/ft1_filtered_4FGL_J0821.1+1007_daily_bin1400.fits scfile=/scratch/kocevski/420643/ft2_4FGL_J0821.1+1007_daily_bin1400.fits outfile=/scratch/kocevski/420643/cmap_HighResolution_602208001_602467201_4FGL_J0821.1+1007_daily_bin1400.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 2.10
user 0.38
sys 1.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .87681E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    36.215       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1547       1.0000         .10000E-03   10000.    
     5 'Prefactor '    93.797       1.0000         .10000E-03   10000.    
     6 'norm      '    .11760E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.492       1.0000         .10000E-03   10000.    
     9 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.4546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2762       1.0000         .10000E-03   10000.    
    15 'norm      '    31.850       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36367E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94995       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93606       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4654.076     FROM MIGRAD    STATUS=FAILED       687 CALLS     2197 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.078        .18142E-02** at limit **
   2  Prefactor     .10025E-03    27.567        .18766E-02** at limit **
   3  norm          36.211        26.283        .66596E-04   -.14719E-03
   4  Prefactor     1.1475        85.796        .42989E-02    .64157E-03
   5  Prefactor     93.816        122.01        .20749E-03    .44930E-05
   6  norm          .10000E-03    63.933        .18142E-02** at limit **
   7  Prefactor     .10000E-03    48.538        .18142E-02** at limit **
   8  norm          17.503        21.394        .95763E-04   -.62326E-04
   9  norm          .10000E-03    87.554        .18142E-02** at limit **
  10  norm          7.4539        5.4654        .12985E-03   -.39881E-03
  11  Prefactor     .10000E-03    23.276        .18142E-02** at limit **
  12  Prefactor     .10000E-03    9.4136        .18142E-02** at limit **
  13  norm          .10000E-03    .98268        .10503E-02** at limit **
  14  Prefactor     2.2800        5.6843        .12359E-02   -.10845E-03
  15  norm          31.850        13.703        .70999E-04    .14562E-03
  16  Prefactor     .10017E-03    43.276        .11187    ** at limit **
  17  norm          .10000E-03    2.5492        .10636E-02** at limit **
  18  Normalizat    .94946        .25654        .26705E-03    .22292E-03
  19  Prefactor     .93615        .19543        .21185E-03    .11963E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4654.076     FROM SIMPLEX   STATUS=UNCHANGED   1095 CALLS     3292 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.078        .46999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10025E-03    27.567        .67563E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.211        26.283        .20580E-06   -1.4504    
   4  Prefactor     1.1475        85.796        .21731E-06   -1.5494    
   5  Prefactor     93.816        122.01        .19502E-06   -1.3768    
   6  norm          .10000E-03    63.933        .82079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.538        .76234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.503        21.394        .21087E-06   -1.4871    
   9  norm          .10000E-03    87.554        .88924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4539        5.4654        .21589E-06   -1.5162    
  11  Prefactor     .10000E-03    23.276        .52928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4136        .35606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .98268        .26665E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2800        5.6843        .21861E-06   -1.5406    
  15  norm          31.850        13.703        .20661E-06   -1.4579    
  16  Prefactor     .10017E-03    43.276        .19209E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5492        .20931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94946        .25654        .13425E-06   -.94743    
  19  Prefactor     .93615        .19543        .13440E-06   -.94889    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4654.076     FROM MIGRAD    STATUS=CONVERGED    265 CALLS     3557 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.079        .36285E-03** at limit **
   2  Prefactor     .10000E-03    27.870        .37532E-03** at limit **
   3  norm          36.211        25.872        .13319E-04    .44385E-04
   4  Prefactor     1.1477        82.534        .85979E-03    .26789E-04
   5  Prefactor     93.817        121.93        .82994E-05    .15068E-04
   6  norm          .10000E-03    63.935        .36285E-03** at limit **
   7  Prefactor     .10000E-03    48.549        .36285E-03** at limit **
   8  norm          17.503        21.391        .38305E-05    .47487E-06
   9  norm          .10000E-03    87.630        .36285E-03** at limit **
  10  norm          7.4540        5.4649        .51939E-05    .87555E-07
  11  Prefactor     .10000E-03    23.278        .36285E-03** at limit **
  12  Prefactor     .10000E-03    9.4146        .36285E-03** at limit **
  13  norm          .10000E-03    .98346        .21006E-03** at limit **
  14  Prefactor     2.2800        5.6806        .49435E-04    .20697E-05
  15  norm          31.850        13.701        .14200E-04    .19215E-06
  16  Prefactor     .10017E-03    41.131        .11560    ** at limit **
  17  norm          .10000E-03    2.5492        .21273E-03** at limit **
  18  Normalizat    .94946        .25582        .53409E-04    .74075E-04
  19  Prefactor     .93615        .19550        .42370E-04    .77812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.2107
  Prefactor  = 1.14769
  Prefactor  = 93.8165
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5032
  norm       = 0.0001
  norm       = 7.45397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.28005
  norm       = 31.8498
  Prefactor  = 0.000100166
  norm       = 0.0001
  Normalizat = 0.949457
  Prefactor  = 0.93615
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.076     FROM HESSE     STATUS=OK           258 CALLS     3815 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.079        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.883        .75064E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.211        25.775        .26638E-05   -1.4504    
   4  Prefactor     1.1477        81.663        .34391E-04   -1.5494    
   5  Prefactor     93.817        121.43        .16599E-05   -1.3768    
   6  norm          .10000E-03    63.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.549        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.503        21.391        .38305E-05   -1.4871    
   9  norm          .10000E-03    87.632        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4540        5.4649        .51939E-05   -1.5162    
  11  Prefactor     .10000E-03    23.278        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4146        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .98349        .42013E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2800        5.6810        .19774E-05   -1.5406    
  15  norm          31.850        13.701        .14200E-04   -1.4579    
  16  Prefactor     .10017E-03    41.815        .11434       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5492        .42546E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94946        .25565        .10682E-04   -.94743    
  19  Prefactor     .93615        .19550        .84741E-05   -.94889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01381e-11
Minuit parameter uncertainties:
  1  5.11878e-07
  2  6.94889e-05
  3  25.7826
  4  19.3888
  5  121.756
  6  2.77574e-09
  7  5.57987e-07
  8  21.3999
  9  3.69489e-07
  10  5.46525
  11  9.2117e-07
  12  8.0048e-07
  13  1.93928e-07
  14  5.6823
  15  13.7021
  16  0.0052753
  17  7.5858e-09
  18  0.255975
  19  0.19565
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  8.005e-07  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:  9.362e-01  1.957e-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:  9.495e-01  2.560e-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: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420643/likelihoodResults_602208001_602467201_4FGL_J0821.1+1007_daily_bin1400.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) = 4654.0767969
delta logL = -0.000506181125274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4654.07629236
delta logL = -1.6333815438e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11543E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3912       1.0000          .0000       10.000    
     3 'Normalizat'    .94914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93640       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=   4654.076     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      236 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    111.64        .18142E-02** at limit **
   2  Index         2.3239        6.1614        .50000        .13999E-04
   3  Normalizat    .94946        .17668E-01    .26705E-03    .88124E-04
   4  Prefactor     .93615        .14004E-01    .21185E-03    .90261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101711
  Index      = 2.32388
  Normalizat = 0.949457
  Prefactor  = 0.93615
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.076     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    465.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3239        6.1091        .50000       -.56477    
   3  Normalizat    .94946        .37868E-01    .10682E-04   -.94743    
   4  Prefactor     .93615        .30012E-01    .84741E-05   -.94889    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40973e-08
Minuit parameter uncertainties:
  1  0.0568993
  2  880.852
  3  0.0378688
  4  0.0300121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420643': 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) = 4654.0762905
delta logL = 2.2617768991e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.017e-04  5.690e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.324e+00  8.809e+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:  9.362e-01  3.001e-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:  9.495e-01  3.787e-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/420643/cmap_HighResolution_602208001_602467201_4FGL_J0821.1+1007_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2021-08-29 17:54:57.909170', job_id='420643', GAL2='0.94', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630284897.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1400' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 420643: <4FGL_J0821.1+1007_daily_bin1400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1400 125.299 10.1287 602208001 602467201 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 :                                   628.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

