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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin228
RA = 125.299, Dec = 10.1287
tmin = 298425601, tmax = 298684801
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='415418', job_status='RUN', time_executed='2021-08-29 17:26:04.843230', time_epoch_executed='1630283164.84' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415418

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415418/ft1_4FGL_J0821.1+1007_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415418/ft2_4FGL_J0821.1+1007_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415418/ft1_4FGL_J0821.1+1007_daily_bin228.fits outfile=/scratch/kocevski/415418/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin228.fits ra=125.299 dec=10.1287 rad=12.0 tmin=298425601.0 tmax=298684801.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.35
user 3.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415418/ft2_4FGL_J0821.1+1007_daily_bin228.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/415418/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/415418/ft1_filtered_4FGL_J0821.1+1007_daily_bin228.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415418/ft1_filtered_4FGL_J0821.1+1007_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/415418/ft2_4FGL_J0821.1+1007_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/415418/ltcube_298425601_298684801_4FGL_J0821.1+1007_daily_bin228.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/415418/ft2_4FGL_J0821.1+1007_daily_bin228.fits
.....................!
real 11.92
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415418/ft1_filtered_4FGL_J0821.1+1007_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/415418/ft2_4FGL_J0821.1+1007_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/415418/ltcube_298425601_298684801_4FGL_J0821.1+1007_daily_bin228.fits outfile=/scratch/kocevski/415418/expmap_298425601_298684801_4FGL_J0821.1+1007_daily_bin228.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/415418/ltcube_298425601_298684801_4FGL_J0821.1+1007_daily_bin228.fits
.....................!
real 189.54
user 185.18
sys 3.94

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/415418/ft1_filtered_4FGL_J0821.1+1007_daily_bin228.fits scfile=/scratch/kocevski/415418/ft2_4FGL_J0821.1+1007_daily_bin228.fits outfile=/scratch/kocevski/415418/cmap_298425601_298684801_4FGL_J0821.1+1007_daily_bin228.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415418/ft1_filtered_4FGL_J0821.1+1007_daily_bin228.fits scfile=/scratch/kocevski/415418/ft2_4FGL_J0821.1+1007_daily_bin228.fits outfile=/scratch/kocevski/415418/cmap_HighResolution_298425601_298684801_4FGL_J0821.1+1007_daily_bin228.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.908       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7101       1.0000         .10000E-03   10000.    
     3 'norm      '    19.662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13968E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    85.816       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.901       1.0000         .10000E-03   10000.    
     8 'norm      '    11.590       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0757       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4134       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1926       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1533       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9050       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87451       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=   6809.264     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1920 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.907        48.527       -.57336E-06   -.52334E-05
   2  Prefactor     1.7095        2.9673       -.13541E-06   -.24839E-03
   3  norm          19.656        19.305        .28191E-06    .12947E-03
   4  Prefactor     .10000E-03    43.792       -.28266E-05** at limit **
   5  Prefactor     85.829        111.93        .74944E-05    .91925E-04
   6  norm          .10000E-03    30.874        .35044E-05** at limit **
   7  Prefactor     21.900        22.503       -.57480E-06   -.17610E-04
   8  norm          11.590        11.742       -.74247E-07    .16597E-05
   9  norm          .10000E-03    7.6558       -.14964E-06** at limit **
  10  norm          4.0755        2.9850        .75752E-06   -.27583E-02
  11  Prefactor     .10000E-03    21.181       -.13478E-05** at limit **
  12  Prefactor     5.4121        13.511        .16010E-05   -.51342E-03
  13  norm          2.1926        1.0889        .19047E-07   -.48560E-05
  14  Prefactor     6.1532        5.1312       -.16542E-05   -.66282E-03
  15  norm          5.9049        5.2253       -.15393E-05   -.57832E-03
  16  Prefactor     .10000E-03    11.297        .21080E-06** at limit **
  17  norm          .10000E-03    2.8460        .66108E-07** at limit **
  18  Normalizat    1.1257        .18395        .20916E-06    .38129E-04
  19  Prefactor     .87450        .13993       -.25091E-06    .69628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9071
  Prefactor  = 1.7095
  norm       = 19.6558
  Prefactor  = 0.000100001
  Prefactor  = 85.8293
  norm       = 0.000100001
  Prefactor  = 21.8997
  norm       = 11.5898
  norm       = 0.0001
  norm       = 4.07552
  Prefactor  = 0.0001
  Prefactor  = 5.41212
  norm       = 2.1926
  Prefactor  = 6.15322
  norm       = 5.90493
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.1257
  Prefactor  = 0.8745
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.264     FROM HESSE     STATUS=OK           272 CALLS     2192 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.907        48.635        .80264E-04   -1.4709    
   2  Prefactor     1.7095        2.9560        .17637E-03   -1.5446    
   3  norm          19.656        19.094        .90327E-04   -1.4821    
   4  Prefactor     .10000E-03    44.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     85.829        112.52        .43367E-04   -1.3852    
   6  norm          .10000E-03    30.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.900        22.530        .85588E-04   -1.4772    
   8  norm          11.590        11.752        .11767E-03   -1.5027    
   9  norm          .10000E-03    7.6697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0755        3.8518        .75109E-03   -1.5304    
  11  Prefactor     .10000E-03    21.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4121        14.873        .86356E-03   -1.5243    
  13  norm          2.1926        1.0879        .57655E-04   -1.5412    
  14  Prefactor     6.1532        5.2151        .16184E-03   -1.5212    
  15  norm          5.9049        5.2899        .16525E-03   -1.5222    
  16  Prefactor     .10000E-03    11.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8524        .13595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1257        .21932        .26106E-03   -.88931    
  19  Prefactor     .87450        .16579        .22746E-03   -.97038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66582e-09
Minuit parameter uncertainties:
  1  48.7126
  2  2.95626
  3  19.0998
  4  0.000433925
  5  112.799
  6  0.000327018
  7  22.5391
  8  11.7541
  9  7.13361e-06
  10  3.85204
  11  0.000108798
  12  14.8836
  13  1.08792
  14  5.21544
  15  5.29027
  16  1.40632e-05
  17  1.62353e-06
  18  0.219498
  19  0.165888
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  5.412e+00  1.488e+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:  8.745e-01  1.659e-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.126e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/415418/likelihoodResults_298425601_298684801_4FGL_J0821.1+1007_daily_bin228.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) = 6809.26262655
delta logL = 0.00105084324059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6809.26226338
delta logL = 0.00141400936445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8442       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3375       1.0000          .0000       10.000    
     3 'Normalizat'    1.1269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87372       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=   6809.262     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      276 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8427        18.479        .16612E-03    .26115E-03
   2  Index         2.3375        1.4038        .14522E-01    .90659E-04
   3  Normalizat    1.1269        .21350        .26094E-03   -.38776E-03
   4  Prefactor     .87377        .16584        .22755E-03   -.53209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84269
  Index      = 2.33752
  Normalizat = 1.12687
  Prefactor  = 0.873769
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.262     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8427        17.309        .66450E-05   -1.5224    
   2  Index         2.3375        1.3173        .58089E-03   -.56155    
   3  Normalizat    1.1269        .21358        .52187E-04   -.88894    
   4  Prefactor     .87377        .16579        .45510E-04   -.97064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02494e-09
Minuit parameter uncertainties:
  1  17.3237
  2  1.33958
  3  0.213741
  4  0.16589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415418': 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) = 6809.26226333
delta logL = 0.00141406575312

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  8.738e-01  1.659e-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.127e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 125.299 10.129

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/415418/cmap_HighResolution_298425601_298684801_4FGL_J0821.1+1007_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.78e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-29 17:35:52.591084', job_id='415418', GAL2='0.87', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630283752.59', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.41e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='228' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:35:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 415418: <4FGL_J0821.1+1007_daily_bin228> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin228> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 17:25:53 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:25:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:25:55 2021
Terminated at Sun Aug 29 17:35:53 2021
Results reported at Sun Aug 29 17:35:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin228 125.299 10.1287 298425601 298684801 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 :                                   584.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             387.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            600 sec.

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

