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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1029
RA = 110.488, Dec = 71.3405
tmin = 506044801, tmax = 506304001
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='294456', job_status='RUN', time_executed='2021-08-27 04:19:06.865488', time_epoch_executed='1630063146.87' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294456/ft1_4FGL_J0721.9+7120_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294456/ft1_4FGL_J0721.9+7120_daily_bin1029.fits outfile=/scratch/kocevski/294456/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1029.fits ra=110.488 dec=71.3405 rad=12.0 tmin=506044801.0 tmax=506304001.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.41
user 4.06
sys 2.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.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/294456/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/294456/ft1_filtered_4FGL_J0721.9+7120_daily_bin1029.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.41
user 0.34
sys 2.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294456/ft1_filtered_4FGL_J0721.9+7120_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/294456/ltcube_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.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/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.fits
.....................!
real 13.96
user 11.29
sys 2.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294456/ft1_filtered_4FGL_J0721.9+7120_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/294456/ltcube_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.fits outfile=/scratch/kocevski/294456/expmap_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.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/294456/ltcube_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.fits
.....................!
real 192.33
user 184.99
sys 6.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 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/294456/ft1_filtered_4FGL_J0721.9+7120_daily_bin1029.fits scfile=/scratch/kocevski/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.fits outfile=/scratch/kocevski/294456/cmap_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.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 2.40
user 0.37
sys 2.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294456/ft1_filtered_4FGL_J0721.9+7120_daily_bin1029.fits scfile=/scratch/kocevski/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.fits outfile=/scratch/kocevski/294456/cmap_HighResolution_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.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 2.41
user 0.39
sys 2.01

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/294456/ft1_filtered_4FGL_J0721.9+7120_daily_bin1029.fits', '/scratch/kocevski/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.fits', expMap='/scratch/kocevski/294456/expmap_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.fits', expCube='/scratch/kocevski/294456/ltcube_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/294456/Model_4FGL_J0721.9+7120_daily_bin1029.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/294456/ft1_filtered_4FGL_J0721.9+7120_daily_bin1029.fits
Spacecraft file(s): /scratch/kocevski/294456/ft2_4FGL_J0721.9+7120_daily_bin1029.fits
Exposure map: /scratch/kocevski/294456/expmap_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.fits
Exposure cube: /scratch/kocevski/294456/ltcube_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/294456/Model_4FGL_J0721.9+7120_daily_bin1029.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) = 9013.9439119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59811E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2479       1.0000         .10000E-03   10000.    
     6 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6411       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11724E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.564       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10735E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3392       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0916       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4218       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14832E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83572       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1287       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=   9013.818     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     1947 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.207        .90712E-02** at limit **
   2  Prefactor     .10001E-03    23.275        .13459    ** at limit **
   3  Prefactor     .10000E-03    16.482        .90712E-02** at limit **
   4  Prefactor     .10000E-03    6.5709        .90712E-02** at limit **
   5  Prefactor     7.2580        29.955        .37247E-02    .23426E-03
   6  norm          .10000E-03    7.5011        .90712E-02** at limit **
   7  norm          1.6411        .69750        .82454E-02    .66302E-03
   8  Prefactor     .10000E-03    146.86        .90712E-02** at limit **
   9  Prefactor     .10000E-03    14.449        .90712E-02** at limit **
  10  norm          10.552        13.683        .30818E-02   -.98295E-04
  11  Prefactor     .10000E-03    24.543        .90712E-02** at limit **
  12  Prefactor     .10000E-03    37.683        .90712E-02** at limit **
  13  norm          .10000E-03    .70822        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.1700        .90712E-02** at limit **
  15  Prefactor     3.3391        1.6099        .55373E-02    .26482E-03
  16  norm          2.0914        2.1620        .71359E-02    .92808E-03
  17  Prefactor     .10000E-03    11.767        .90712E-02** at limit **
  18  Prefactor     9.4342        19.003        .32640E-02   -.17396E-03
  19  Prefactor     .10000E-03    9.6265        .10968    ** at limit **
  20  Normalizat    .83580        .16689        .73717E-01    .40758E-04
  21  Prefactor     1.1287        .98445E-01    .36586E-01    .18013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.25797
  norm       = 0.0001
  norm       = 1.64112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33913
  norm       = 2.09144
  Prefactor  = 0.0001
  Prefactor  = 9.43422
  Prefactor  = 0.0001
  Normalizat = 0.8358
  Prefactor  = 1.12868
 **********
 **   18 **HESSE 
 **********

 FCN=   9013.818     FROM HESSE     STATUS=OK           321 CALLS     2268 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    23.964        .13183       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2580        29.946        .14899E-03   -1.5169    
   6  norm          .10000E-03    7.5181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6411        .69111        .49374E-04   -1.5452    
   8  Prefactor     .10000E-03    147.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.552        13.681        .12327E-03   -1.5058    
  11  Prefactor     .10000E-03    24.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .71429        .77991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2163        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3391        1.6100        .80431E-04   -1.5342    
  16  norm          2.0914        2.1353        .12304E-03   -1.5419    
  17  Prefactor     .10000E-03    11.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4342        18.854        .13056E-03   -1.5094    
  19  Prefactor     .10000E-03    68.424        .56910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .83580        .18644        .32624E-03   -.98754    
  21  Prefactor     1.1287        .11089        .17399E-03   -.88555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62084e-10
Minuit parameter uncertainties:
  1  1.48751e-05
  2  0.000795344
  3  8.62568e-06
  4  4.57466e-06
  5  29.5105
  6  7.64987e-06
  7  0.691117
  8  0.000307652
  9  1.9093e-06
  10  13.6851
  11  3.73029e-05
  12  1.88963e-05
  13  5.9993e-07
  14  3.75808e-06
  15  1.61002
  16  2.1354
  17  9.42616e-06
  18  18.8658
  19  0.000124522
  20  0.186588
  21  0.110912
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.641e+00  6.911e-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:  1.129e+00  1.109e-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:  8.358e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.35
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 7.82e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 4.65e-05 +/- 1.96e-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) = 9012.82556686
delta logL = 0.992368629622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9012.81743572
delta logL = 1.00049976687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2878       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5112       1.0000          .0000       5.0000    
     3 'Normalizat'    .78805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1467       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=   9012.817     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2877        6.2354        .86792E-02    .47650E-03
   2  alpha         2.5116        3.6778        .23272        .67682E-04
   3  Normalizat    .78807        .69776E-01    .75639E-01    .32226E-04
   4  Prefactor     1.1467        .41271E-01    .36031E-01    .14234E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28771
  alpha      = 2.5116
  Normalizat = 0.788067
  Prefactor  = 1.14674
 **********
 **   18 **HESSE 
 **********

 FCN=   9012.817     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2877        .72883        .38886E-04   -1.5481    
   2  alpha         2.5116        .43287        .94874E-02    .46419E-02
   3  Normalizat    .78807        .18382        .33480E-03   -1.0051    
   4  Prefactor     1.1467        .11115        .17278E-03   -.87986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92246e-09
Minuit parameter uncertainties:
  1  0.728836
  2  0.43506
  3  0.18396
  4  0.111171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294456': 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) = 9012.81743475
delta logL = 1.00050073978

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.288e+00  7.288e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.512e+00  4.351e-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:  1.147e+00  1.112e-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:  7.881e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.54
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.51 +/- 0.44
Photon Flux (Free Index): 1.12e-07 +/- 4.51e-08
Energy Flux (Free Index): 3.23e-05 +/- 1.48e-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/294456/cmap_HighResolution_506044801_506304001_4FGL_J0721.9+7120_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.82e-08', energy_flux2='3.23e-05', photon_flux_error='3.29e-08', dlogl='1.00e+00', energy_flux='4.65e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-08-27 04:32:16.313560', photon_index_error2='0.44', photon_index2='2.51', ts='9.35', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='0.84', time_epoch_completed='1630063936.31', return_code='0', job_id='294456', GAL2='1.15', EG2='0.79', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='4.51e-08', ts2='11.54', photon_index='1.99' WHERE bin_id='1029' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:32:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 294456: <4FGL_J0721.9+7120_daily_bin1029> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1029> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 04:16:06 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:16:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 04:16:17 2021
Terminated at Fri Aug 27 04:32:17 2021
Results reported at Fri Aug 27 04:32:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1029 110.488 71.3405 506044801 506304001 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 :                                   815.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            971 sec.

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

