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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin341
RA = 125.299, Dec = 10.1287
tmin = 327715201, tmax = 327974401
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='415563', job_status='RUN', time_executed='2021-08-29 17:26:28.065246', time_epoch_executed='1630283188.07' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415563

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415563/ft1_4FGL_J0821.1+1007_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415563/ft2_4FGL_J0821.1+1007_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415563/ft1_4FGL_J0821.1+1007_daily_bin341.fits outfile=/scratch/kocevski/415563/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin341.fits ra=125.299 dec=10.1287 rad=12.0 tmin=327715201.0 tmax=327974401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.52
user 3.04
sys 0.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415563/ft2_4FGL_J0821.1+1007_daily_bin341.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/415563/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin341.fits evtable="EVENTS" outfile="/scratch/kocevski/415563/ft1_filtered_4FGL_J0821.1+1007_daily_bin341.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.76
user 0.32
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415563/ft1_filtered_4FGL_J0821.1+1007_daily_bin341.fits" evtable="EVENTS" scfile=/scratch/kocevski/415563/ft2_4FGL_J0821.1+1007_daily_bin341.fits sctable="SC_DATA" outfile=/scratch/kocevski/415563/ltcube_327715201_327974401_4FGL_J0821.1+1007_daily_bin341.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/415563/ft2_4FGL_J0821.1+1007_daily_bin341.fits
.....................!
real 12.10
user 11.43
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415563/ft1_filtered_4FGL_J0821.1+1007_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/415563/ft2_4FGL_J0821.1+1007_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/415563/ltcube_327715201_327974401_4FGL_J0821.1+1007_daily_bin341.fits outfile=/scratch/kocevski/415563/expmap_327715201_327974401_4FGL_J0821.1+1007_daily_bin341.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/415563/ltcube_327715201_327974401_4FGL_J0821.1+1007_daily_bin341.fits
.....................!
real 192.07
user 185.80
sys 4.88

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/415563/ft1_filtered_4FGL_J0821.1+1007_daily_bin341.fits scfile=/scratch/kocevski/415563/ft2_4FGL_J0821.1+1007_daily_bin341.fits outfile=/scratch/kocevski/415563/cmap_327715201_327974401_4FGL_J0821.1+1007_daily_bin341.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.85
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415563/ft1_filtered_4FGL_J0821.1+1007_daily_bin341.fits scfile=/scratch/kocevski/415563/ft2_4FGL_J0821.1+1007_daily_bin341.fits outfile=/scratch/kocevski/415563/cmap_HighResolution_327715201_327974401_4FGL_J0821.1+1007_daily_bin341.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.96
user 0.37
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18769E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    73.534       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2407       1.0000         .10000E-03   10000.    
     8 'norm      '    8.7073       1.0000         .10000E-03   10000.    
     9 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.8947       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2663       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7674       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5298       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0558       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=   5695.139     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1859 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.935       -.77609E-06** at limit **
   2  Prefactor     .10000E-03    1.6424       -.26612E-06** at limit **
   3  norm          .10000E-03    10.921        .25413E-05** at limit **
   4  Prefactor     .10000E-03    6.9255       -.79998E-06** at limit **
   5  Prefactor     .10000E-03    50.848        .38797E-05** at limit **
   6  norm          73.529        87.371       -.48220E-05    .10298E-05
   7  Prefactor     6.2304        24.806       -.12497E-04   -.14670E-06
   8  norm          8.6798        20.804       -.16204E-04   -.15695E-04
   9  norm          .10000E-03    9.6558       -.29720E-05** at limit **
  10  norm          7.8960        4.7851       -.75144E-08    .12032E-03
  11  Prefactor     .10000E-03    25.194        .49649E-06** at limit **
  12  Prefactor     5.2639        18.147       -.32329E-05   -.37768E-04
  13  norm          2.3492        1.2727       -.13240E-06    .82784E-05
  14  Prefactor     3.7671        5.1880        .18984E-05   -.19991E-03
  15  norm          3.5298        5.1604        .11857E-05   -.97811E-04
  16  Prefactor     .10000E-03    9.0716        .26141E-06** at limit **
  17  norm          .10000E-03    3.3893        .27543E-06** at limit **
  18  Normalizat    1.0548        .20392        .18066E-05    .60471E-04
  19  Prefactor     1.0557        .15987        .37467E-06    .14033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 73.5294
  Prefactor  = 6.23036
  norm       = 8.67978
  norm       = 0.0001
  norm       = 7.89598
  Prefactor  = 0.0001
  Prefactor  = 5.26393
  norm       = 2.34924
  Prefactor  = 3.76708
  norm       = 3.52982
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05483
  Prefactor  = 1.05568
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.139     FROM HESSE     STATUS=OK           266 CALLS     2125 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.474        .18428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          73.529        87.397        .46820E-04   -1.3991    
   7  Prefactor     6.2304        24.822        .16069E-03   -1.5209    
   8  norm          8.6798        20.910        .13584E-03   -1.5119    
   9  norm          .10000E-03    9.6298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.8960        4.7808        .12300E-03   -1.5146    
  11  Prefactor     .10000E-03    25.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2639        18.236        .17515E-03   -1.5249    
  13  norm          2.3492        1.2740        .59839E-04   -1.5401    
  14  Prefactor     3.7671        5.1577        .19370E-03   -1.5320    
  15  norm          3.5298        5.1415        .20141E-03   -1.5332    
  16  Prefactor     .10000E-03    9.0760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3953        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0548        .23876        .27003E-03   -.91216    
  19  Prefactor     1.0557        .18830        .21837E-03   -.90896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86275e-11
Minuit parameter uncertainties:
  1  6.23119e-06
  2  3.23909e-05
  3  7.94225e-06
  4  3.55846e-06
  5  8.97887e-06
  6  87.5501
  7  24.863
  8  20.9279
  9  6.08585e-05
  10  4.78099
  11  4.64187e-05
  12  18.2549
  13  1.27405
  14  5.15829
  15  5.14211
  16  8.57033e-06
  17  2.16398e-06
  18  0.239002
  19  0.188421
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.056e+00  1.884e-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.055e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/415563/likelihoodResults_327715201_327974401_4FGL_J0821.1+1007_daily_bin341.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5694.92255352
delta logL = 0.216541695275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5694.87869914
delta logL = 0.26039607987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2697       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3007       1.0000          .0000       10.000    
     3 'Normalizat'    1.0142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0738       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=   5694.879     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2673        100.06        .55988E-02    .53835E-03
   2  Index         3.3025        3.0941        .17310        .89533E-04
   3  Normalizat    1.0139        .48028E-01    .44390E-01    .10615E-04
   4  Prefactor     1.0739        .38538E-01    .38678E-01    .53300E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.26729
  Index      = 3.30252
  Normalizat = 1.01393
  Prefactor  = 1.07393
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.879     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2673        17.976        .17193E-03   -1.5346    
   2  Index         3.3025        2.1338        .61553E-02   -.34638    
   3  Normalizat    1.0139        .24066        .27461E-03   -.92565    
   4  Prefactor     1.0739        .19009        .21671E-03   -.90304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88213e-08
Minuit parameter uncertainties:
  1  15.3343
  2  2.21473
  3  0.240921
  4  0.19021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415563': 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): 0
logL (Free Index) = 5694.87869601
delta logL = 0.260399208892

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.267e+00  1.533e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.303e+00  2.215e+00  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.074e+00  1.902e-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.014e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/415563/cmap_HighResolution_327715201_327974401_4FGL_J0821.1+1007_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-08-29 17:35:29.946457', job_id='415563', GAL2='1.07', fit_tolerance='1e-08', EG2='1.01', EG='1.05', time_epoch_completed='1630283729.95', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.60e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='341' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:35:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 415563: <4FGL_J0821.1+1007_daily_bin341> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin341> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 17:26:06 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:26:07 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:26:07 2021
Terminated at Sun Aug 29 17:35:30 2021
Results reported at Sun Aug 29 17:35:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin341 125.299 10.1287 327715201 327974401 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 :                                   541.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            564 sec.

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

