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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin859
RA = 110.488, Dec = 71.3405
tmin = 461980801, tmax = 462240001
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='294197', job_status='RUN', time_executed='2021-08-27 04:16:04.250648', time_epoch_executed='1630062964.25' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294197

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294197/ft1_4FGL_J0721.9+7120_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294197/ft2_4FGL_J0721.9+7120_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294197/ft1_4FGL_J0721.9+7120_daily_bin859.fits outfile=/scratch/kocevski/294197/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin859.fits ra=110.488 dec=71.3405 rad=12.0 tmin=461980801.0 tmax=462240001.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.58
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294197/ft1_filtered_4FGL_J0721.9+7120_daily_bin859.fits" evtable="EVENTS" scfile=/scratch/kocevski/294197/ft2_4FGL_J0721.9+7120_daily_bin859.fits sctable="SC_DATA" outfile=/scratch/kocevski/294197/ltcube_461980801_462240001_4FGL_J0721.9+7120_daily_bin859.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/294197/ft2_4FGL_J0721.9+7120_daily_bin859.fits
.....................!
real 12.00
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294197/ft1_filtered_4FGL_J0721.9+7120_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/294197/ft2_4FGL_J0721.9+7120_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/294197/ltcube_461980801_462240001_4FGL_J0721.9+7120_daily_bin859.fits outfile=/scratch/kocevski/294197/expmap_461980801_462240001_4FGL_J0721.9+7120_daily_bin859.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/294197/ltcube_461980801_462240001_4FGL_J0721.9+7120_daily_bin859.fits
.....................!
real 190.90
user 185.99
sys 4.39

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/294197/ft1_filtered_4FGL_J0721.9+7120_daily_bin859.fits scfile=/scratch/kocevski/294197/ft2_4FGL_J0721.9+7120_daily_bin859.fits outfile=/scratch/kocevski/294197/cmap_461980801_462240001_4FGL_J0721.9+7120_daily_bin859.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294197/ft1_filtered_4FGL_J0721.9+7120_daily_bin859.fits scfile=/scratch/kocevski/294197/ft2_4FGL_J0721.9+7120_daily_bin859.fits outfile=/scratch/kocevski/294197/cmap_HighResolution_461980801_462240001_4FGL_J0721.9+7120_daily_bin859.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.853       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.192       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.980       1.0000         .10000E-03   10000.    
     6 'norm      '    17.517       1.0000         .10000E-03   10000.    
     7 'norm      '    .89617       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31555E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.571       1.0000         .10000E-03   10000.    
    10 'norm      '    30.360       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6324       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5745       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6862       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6153       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2342       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88477       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=   9949.888     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2174 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.856        34.977        .18220E-06    .94150E-05
   2  Prefactor     32.200        41.343        .25174E-06    .16499E-04
   3  Prefactor     18.194        19.572        .33082E-06    .44678E-04
   4  Prefactor     .10000E-03    32.615        .18663E-05** at limit **
   5  Prefactor     13.960        44.443       -.14730E-06   -.32828E-04
   6  norm          17.520        15.766        .10287E-06    .16213E-05
   7  norm          .89621        .53363        .76575E-07    .52047E-04
   8  Prefactor     .10000E-03    171.32       -.17711E-05** at limit **
   9  Prefactor     20.577        27.038        .96624E-07    .31991E-05
  10  norm          30.363        17.976        .23724E-07    .11019E-04
  11  Prefactor     .10000E-03    11.586       -.10874E-06** at limit **
  12  Prefactor     .10000E-03    14.598       -.44320E-07** at limit **
  13  norm          .10000E-03    1.0730       -.36793E-07** at limit **
  14  Prefactor     .10000E-03    1.0313        .17149E-07** at limit **
  15  Prefactor     2.6313        1.5227        .24946E-07   -.93824E-05
  16  norm          7.5746        3.0952        .21011E-07   -.71792E-04
  17  Prefactor     .10000E-03    12.461        .99369E-07** at limit **
  18  Prefactor     5.6876        30.340        .16362E-06   -.34415E-05
  19  Prefactor     6.6162        11.696        .33851E-05   -.42268E-04
  20  Normalizat    1.2342        .16963       -.88147E-06    .86130E-05
  21  Prefactor     .88473        .93523E-01    .17803E-06   -.92827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.8562
  Prefactor  = 32.2001
  Prefactor  = 18.1938
  Prefactor  = 0.0001
  Prefactor  = 13.9602
  norm       = 17.5203
  norm       = 0.896214
  Prefactor  = 0.000100005
  Prefactor  = 20.5772
  norm       = 30.3635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63128
  norm       = 7.57461
  Prefactor  = 0.0001
  Prefactor  = 5.68764
  Prefactor  = 6.61624
  Normalizat = 1.23421
  Prefactor  = 0.884729
 **********
 **   18 **HESSE 
 **********

 FCN=   9949.888     FROM HESSE     STATUS=OK           323 CALLS     2497 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.856        35.004        .52296E-04   -1.4172    
   2  Prefactor     32.200        41.348        .70622E-04   -1.4572    
   3  Prefactor     18.194        19.532        .93954E-04   -1.4855    
   4  Prefactor     .10000E-03    32.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.960        44.501        .10712E-03   -1.4961    
   6  norm          17.520        15.768        .95695E-04   -1.4871    
   7  norm          .89621        .51631        .52642E-04   -1.5519    
   8  Prefactor     .10000E-03    172.00        .21368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.577        27.087        .88309E-04   -1.4800    
  10  norm          30.363        17.981        .72716E-04   -1.4605    
  11  Prefactor     .10000E-03    11.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0943        .10081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0357        .98921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6313        1.5210        .89995E-04   -1.5384    
  16  norm          7.5746        3.0810        .86454E-04   -1.5157    
  17  Prefactor     .10000E-03    12.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6876        29.896        .16845E-03   -1.5231    
  19  Prefactor     6.6162        11.704        .78010E-03   -1.5193    
  20  Normalizat    1.2342        .19345        .29073E-03   -.85552    
  21  Prefactor     .88473        .10687        .19770E-03   -.96677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50166e-11
Minuit parameter uncertainties:
  1  35.0161
  2  41.3852
  3  19.5386
  4  1.82331e-05
  5  44.6069
  6  15.7714
  7  0.516315
  8  0.00182697
  9  27.1028
  10  17.9842
  11  1.89305e-05
  12  2.70806e-05
  13  1.31764e-06
  14  2.75017e-07
  15  1.52097
  16  3.08111
  17  4.4325e-05
  18  26.1001
  19  11.7078
  20  0.193562
  21  0.106899
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  8.962e-01  5.163e-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:  8.847e-01  1.069e-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.234e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.33
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.46e-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) = 9949.15513279
delta logL = 0.732476342675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9949.15444235
delta logL = 0.733166775481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76472       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6545       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90024       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=   9949.154     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76464        4.1537        .88315E-02    .95165E-03
   2  alpha         2.6542        3.7509        .35244        .75276E-04
   3  Normalizat    1.1863        .55048E-01    .66780E-01    .19419E-04
   4  Prefactor     .90040        .29638E-01    .45008E-01    .82221E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.764642
  alpha      = 2.65418
  Normalizat = 1.18633
  Prefactor  = 0.900402
 **********
 **   18 **HESSE 
 **********

 FCN=   9949.154     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76464        .51545        .39735E-04   -1.5533    
   2  alpha         2.6542        .59674        .12471E-01    .61711E-01
   3  Normalizat    1.1863        .18348        .29544E-03   -.87026    
   4  Prefactor     .90040        .10552        .19612E-03   -.96127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29713e-09
Minuit parameter uncertainties:
  1  0.515456
  2  0.602581
  3  0.183576
  4  0.105543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294197': 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) = 9949.15444054
delta logL = 0.733168586437

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  7.646e-01  5.155e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.654e+00  6.026e-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.004e-01  1.055e-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.186e+00  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.89
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.65 +/- 0.60
Photon Flux (Free Index): 8.07e-08 +/- 4.66e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.00e-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/294197/cmap_HighResolution_461980801_462240001_4FGL_J0721.9+7120_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='2.06e-05', photon_flux_error='2.46e-08', dlogl='7.33e-01', energy_flux='2.54e-05', photon_flux2='8.07e-08', job_status='DONE', time_completed='2021-08-27 04:30:16.031981', photon_index_error2='0.60', photon_index2='2.65', ts='6.33', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='1.23', time_epoch_completed='1630063816.03', return_code='0', job_id='294197', GAL2='0.90', EG2='1.19', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.66e-08', ts2='7.89', photon_index='1.99' WHERE bin_id='859' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:30:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 294197: <4FGL_J0721.9+7120_daily_bin859> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin859> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 04:15:43 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:15:44 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:15:44 2021
Terminated at Fri Aug 27 04:30:16 2021
Results reported at Fri Aug 27 04:30:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin859 110.488 71.3405 461980801 462240001 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 :                                   849.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

