/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 103 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 = 7388
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0721.9+7120_daily_bin8
RA = 110.488, Dec = 71.3405
tmin = 241401601, tmax = 241660801
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='286972', job_status='RUN', time_executed='2021-08-27 03:52:41.704052', time_epoch_executed='1630061561.7' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286972/ft1_4FGL_J0721.9+7120_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286972/ft1_4FGL_J0721.9+7120_daily_bin8.fits outfile=/scratch/kocevski/286972/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin8.fits ra=110.488 dec=71.3405 rad=12.0 tmin=241401601.0 tmax=241660801.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 1.45
user 1.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.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/286972/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/286972/ltcube_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.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/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits
.....................!
real 12.57
user 12.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/286972/ltcube_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.fits outfile=/scratch/kocevski/286972/expmap_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.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/286972/ltcube_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.fits
.....................!
real 191.04
user 185.79
sys 4.74

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J0721.9+7120 @ 110.488 71.3405

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.fits scfile=/scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits outfile=/scratch/kocevski/286972/cmap_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.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=110.488 yref=71.3405 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.fits scfile=/scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits outfile=/scratch/kocevski/286972/cmap_HighResolution_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.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=110.488 yref=71.3405 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/286972/Model_4FGL_J0721.9+7120_daily_bin8.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/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.fits.....................!
real 93.41
user 92.00
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.fits', '/scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits', expMap='/scratch/kocevski/286972/expmap_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.fits', expCube='/scratch/kocevski/286972/ltcube_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/286972/Model_4FGL_J0721.9+7120_daily_bin8.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0721.9+7120'

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.731e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.986e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
258         beta:  5.814e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
259           Eb:  7.346e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/286972/ft1_filtered_4FGL_J0721.9+7120_daily_bin8.fits
Spacecraft file(s): /scratch/kocevski/286972/ft2_4FGL_J0721.9+7120_daily_bin8.fits
Exposure map: /scratch/kocevski/286972/expmap_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.fits
Exposure cube: /scratch/kocevski/286972/ltcube_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/286972/Model_4FGL_J0721.9+7120_daily_bin8.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) = 7706.91697696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.192       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.522       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    160.88       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.552       1.0000         .10000E-03   10000.    
     6 'norm      '    .10476E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0856       1.0000         .10000E-03   10000.    
     8 'Prefactor '    128.26       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.686       1.0000         .10000E-03   10000.    
    10 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.435       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14729E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0114       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.047       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1079       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7706.892     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2600 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.159        49.838       -.37979E-04    .48184E-04
   2  Prefactor     29.514        39.215       -.10632E-04    .28436E-04
   3  Prefactor     .10000E-03    11.403        .26173E-05** at limit **
   4  Prefactor     160.87        47.016       -.80451E-05    .92034E-04
   5  Prefactor     30.550        34.171       -.28045E-05    .19354E-04
   6  norm          .10000E-03    28.063       -.47995E-05** at limit **
   7  norm          2.0855        .83744       -.39041E-06    .45508E-03
   8  Prefactor     128.20        195.36       -.52006E-04    .40833E-04
   9  Prefactor     22.701        41.013        .22582E-04    .79353E-04
  10  norm          .10000E-03    11.828       -.33493E-05** at limit **
  11  Prefactor     3.1912        69.602       -.67101E-04   -.45681E-04
  12  Prefactor     13.407        42.516       -.56633E-04    .39046E-04
  13  norm          3.8353        2.8138        .17518E-06    .20433E-03
  14  Prefactor     .10000E-03    3.2618        .65452E-07** at limit **
  15  Prefactor     .10000E-03    1.0865        .10500E-05** at limit **
  16  norm          4.0128        2.5641       -.12142E-05   -.18308E-03
  17  Prefactor     .10000E-03    46.408        .91289E-05** at limit **
  18  Prefactor     .10000E-03    15.171        .17124E-05** at limit **
  19  Prefactor     10.047        9.8756       -.68495E-06    .40769E-04
  20  Normalizat    1.1077        .20510        .10798E-04    .21226E-04
  21  Prefactor     .92871        .11067        .40388E-05    .23121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.1586
  Prefactor  = 29.5136
  Prefactor  = 0.0001
  Prefactor  = 160.869
  Prefactor  = 30.5501
  norm       = 0.0001
  norm       = 2.08554
  Prefactor  = 128.201
  Prefactor  = 22.7014
  norm       = 0.0001
  Prefactor  = 3.19118
  Prefactor  = 13.4066
  norm       = 3.8353
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.01284
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.0474
  Normalizat = 1.10766
  Prefactor  = 0.928712
 **********
 **   18 **HESSE 
 **********

 FCN=   7706.892     FROM HESSE     STATUS=OK           317 CALLS     2917 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.159        49.816        .57763E-04   -1.4319    
   2  Prefactor     29.514        39.235        .73738E-04   -1.4621    
   3  Prefactor     .10000E-03    11.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     160.87        46.994        .31793E-04   -1.3164    
   5  Prefactor     30.550        34.170        .72487E-04   -1.4602    
   6  norm          .10000E-03    28.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0855        .83459        .47836E-04   -1.5419    
   8  Prefactor     128.20        194.92        .17774E-03   -1.3439    
   9  Prefactor     22.701        41.369        .84097E-04   -1.4755    
  10  norm          .10000E-03    11.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1912        69.398        .22584E-03   -1.5351    
  12  Prefactor     13.407        42.629        .10928E-03   -1.4976    
  13  norm          3.8353        2.8085        .12077E-03   -1.5316    
  14  Prefactor     .10000E-03    3.3009        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1248        .17748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0128        2.5791        .10455E-03   -1.5307    
  17  Prefactor     .10000E-03    46.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.047        9.8803        .12642E-03   -1.5074    
  20  Normalizat    1.1077        .23579        .31617E-03   -.89506    
  21  Prefactor     .92871        .12703        .20087E-03   -.95145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58705e-09
Minuit parameter uncertainties:
  1  49.8593
  2  39.2696
  3  7.2263e-05
  4  47.0054
  5  34.1922
  6  0.00010494
  7  0.83459
  8  195.906
  9  41.4213
  10  0.000143736
  11  29.8021
  12  42.7256
  13  2.80862
  14  1.5569e-05
  15  0.000104832
  16  2.57917
  17  0.000378396
  18  8.70069e-05
  19  9.88185
  20  0.236018
  21  0.127069
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.086e+00  8.346e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.986e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
258         beta:  5.814e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
259           Eb:  7.346e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  9.287e-01  1.271e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.108e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.20
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 9.94e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 5.91e-05 +/- 2.36e-05

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) = 7706.71911609
delta logL = 0.172594492472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7706.69784431
delta logL = 0.193866272595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0131       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7798       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7706.698     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0130        .85334        .72938E-02   -.30315E-03
   2  alpha         1.7798        .30261        .25005       -.81637E-05
   3  Normalizat    1.1246        .18437        .71020E-01    .12865E-03
   4  Prefactor     .92428        .10812        .45314E-01    .56916E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01302
  alpha      = 1.77982
  Normalizat = 1.12457
  Prefactor  = 0.924281
 **********
 **   18 **HESSE 
 **********

 FCN=   7706.698     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0130        .84286        .48463E-04   -1.5424    
   2  alpha         1.7798        .32334        .10201E-01   -.29221    
   3  Normalizat    1.1246        .20787        .31425E-03   -.88967    
   4  Prefactor     .92428        .12187        .20134E-03   -.95298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44318e-11
Minuit parameter uncertainties:
  1  0.842863
  2  0.324331
  3  0.208024
  4  0.121902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286972': 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) = 7706.69784428
delta logL = 0.193866300141

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.013e+00  8.429e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.780e+00  3.243e-01  0.000e+00  5.000e+00 ( 1.000e+00)
258         beta:  5.814e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
259           Eb:  7.346e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  9.243e-01  1.219e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.125e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.59
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.78 +/- 0.32
Photon Flux (Free Index): 8.02e-08 +/- 4.34e-08
Energy Flux (Free Index): 7.44e-05 +/- 4.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/286972/cmap_HighResolution_241401601_241660801_4FGL_J0721.9+7120_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.94e-08', energy_flux2='7.44e-05', photon_flux_error='3.98e-08', dlogl='1.94e-01', energy_flux='5.91e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2021-08-27 04:05:24.842907', photon_index_error2='0.32', photon_index2='1.78', ts='19.20', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='4.27e-05', EG='1.11', time_epoch_completed='1630062324.84', return_code='0', job_id='286972', GAL2='0.92', EG2='1.12', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='4.34e-08', ts2='19.59', photon_index='1.99' WHERE bin_id='8' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:05:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 286972: <4FGL_J0721.9+7120_daily_bin8> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin8> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 03:50:41 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 03:50:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 03:50:49 2021
Terminated at Fri Aug 27 04:05:25 2021
Results reported at Fri Aug 27 04:05:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin8 110.488 71.3405 241401601 241660801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0721.9+7120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            884 sec.

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

