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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin543
RA = 110.488, Dec = 71.3405
tmin = 380073601, tmax = 380332801
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='291222', job_status='RUN', time_executed='2021-08-27 04:06:12.507573', time_epoch_executed='1630062372.51' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291222/ft1_4FGL_J0721.9+7120_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291222/ft2_4FGL_J0721.9+7120_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291222/ft1_4FGL_J0721.9+7120_daily_bin543.fits outfile=/scratch/kocevski/291222/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin543.fits ra=110.488 dec=71.3405 rad=12.0 tmin=380073601.0 tmax=380332801.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 5.55
user 4.23
sys 1.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291222/ft2_4FGL_J0721.9+7120_daily_bin543.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/291222/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin543.fits evtable="EVENTS" outfile="/scratch/kocevski/291222/ft1_filtered_4FGL_J0721.9+7120_daily_bin543.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 1.54
user 0.33
sys 1.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291222/ft1_filtered_4FGL_J0721.9+7120_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/291222/ft2_4FGL_J0721.9+7120_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/291222/ltcube_380073601_380332801_4FGL_J0721.9+7120_daily_bin543.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/291222/ft2_4FGL_J0721.9+7120_daily_bin543.fits
.....................!
real 13.04
user 11.31
sys 1.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291222/ft1_filtered_4FGL_J0721.9+7120_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/291222/ft2_4FGL_J0721.9+7120_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/291222/ltcube_380073601_380332801_4FGL_J0721.9+7120_daily_bin543.fits outfile=/scratch/kocevski/291222/expmap_380073601_380332801_4FGL_J0721.9+7120_daily_bin543.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/291222/ltcube_380073601_380332801_4FGL_J0721.9+7120_daily_bin543.fits
.....................!
real 193.80
user 187.34
sys 6.05

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/291222/ft1_filtered_4FGL_J0721.9+7120_daily_bin543.fits scfile=/scratch/kocevski/291222/ft2_4FGL_J0721.9+7120_daily_bin543.fits outfile=/scratch/kocevski/291222/cmap_380073601_380332801_4FGL_J0721.9+7120_daily_bin543.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 1.41
user 0.36
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291222/ft1_filtered_4FGL_J0721.9+7120_daily_bin543.fits scfile=/scratch/kocevski/291222/ft2_4FGL_J0721.9+7120_daily_bin543.fits outfile=/scratch/kocevski/291222/cmap_HighResolution_380073601_380332801_4FGL_J0721.9+7120_daily_bin543.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 1.53
user 0.37
sys 1.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6845       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.556       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4177       1.0000         .10000E-03   10000.    
     7 'norm      '    .54459       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.072       1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.375       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4863       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73648       1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.632       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.139       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6554       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69313       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98999       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=   9060.885     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2279 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.524        .36332E-06** at limit **
   2  Prefactor     .10000E-03    25.916        .72774E-07** at limit **
   3  Prefactor     .10000E-03    21.042       -.17485E-05** at limit **
   4  Prefactor     9.6968        20.935       -.12556E-06   -.11388E-03
   5  Prefactor     27.557        26.025       -.68045E-07    .19141E-05
   6  norm          1.4175        22.822        .61816E-05   -.52463E-03
   7  norm          .54453        .40310       -.27970E-07   -.23517E-03
   8  Prefactor     .10000E-03    153.90        .10113E-06** at limit **
   9  Prefactor     37.075        28.930       -.49821E-07    .17790E-03
  10  norm          .10000E-03    6.1449       -.77140E-07** at limit **
  11  Prefactor     .10000E-03    5.9680        .47302E-08** at limit **
  12  Prefactor     82.359        38.003       -.49836E-06   -.10048E-03
  13  norm          1.4866        2.3786       -.30440E-07   -.12140E-03
  14  Prefactor     .10000E-03    4.9672       -.42679E-06** at limit **
  15  Prefactor     .73668        1.4127        .87594E-07    .36161E-04
  16  norm          .10000E-03    .95011       -.12945E-05** at limit **
  17  Prefactor     39.635        30.593        .32795E-07    .84501E-04
  18  Prefactor     31.146        18.362        .13806E-05    .87383E-03
  19  Prefactor     5.6560        9.0933        .31684E-07    .12671E-04
  20  Normalizat    .69297        .15698        .20499E-05    .57249E-03
  21  Prefactor     .99004        .89322E-01   -.93228E-06    .54459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.69677
  Prefactor  = 27.5573
  norm       = 1.41752
  norm       = 0.544532
  Prefactor  = 0.0001
  Prefactor  = 37.0745
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.359
  norm       = 1.48662
  Prefactor  = 0.0001
  Prefactor  = 0.736678
  norm       = 0.000100001
  Prefactor  = 39.6351
  Prefactor  = 31.1463
  Prefactor  = 5.65602
  Normalizat = 0.692973
  Prefactor  = 0.990044
 **********
 **   18 **HESSE 
 **********

 FCN=   9060.885     FROM HESSE     STATUS=OK           311 CALLS     2590 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6968        20.787        .12877E-03   -1.5085    
   5  Prefactor     27.557        26.033        .76317E-04   -1.4658    
   6  norm          1.4175        35.149        .18174E-02   -1.5470    
   7  norm          .54453        .39947        .49571E-04   -1.5560    
   8  Prefactor     .10000E-03    155.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.075        29.026        .65824E-04   -1.4489    
  10  norm          .10000E-03    6.1484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     82.359        38.002        .44256E-04   -1.3890    
  13  norm          1.4866        2.3404        .17204E-03   -1.5464    
  14  Prefactor     .10000E-03    5.1846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .73668        1.3757        .14415E-03   -1.5536    
  16  norm          .10000E-03    1.4895        .17079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.635        30.578        .63670E-04   -1.4448    
  18  Prefactor     31.146        19.285        .71803E-04   -1.4591    
  19  Prefactor     5.6560        9.0849        .16892E-03   -1.5232    
  20  Normalizat    .69297        .17885        .31829E-03   -1.0417    
  21  Prefactor     .99004        .10005        .16582E-03   -.93062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93287e-09
Minuit parameter uncertainties:
  1  0.00029927
  2  0.000208447
  3  0.000396349
  4  20.8029
  5  26.0435
  6  14.126
  7  0.399472
  8  0.000417189
  9  29.0374
  10  1.06839e-05
  11  3.56129e-08
  12  38.013
  13  2.34059
  14  5.03234e-05
  15  1.37578
  16  5.97117e-05
  17  30.59
  18  19.2889
  19  9.0871
  20  0.179002
  21  0.100067
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  5.445e-01  3.995e-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.900e-01  1.001e-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:  6.930e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.56
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.13e-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) = 9060.83999219
delta logL = 0.0449389379046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9060.83896453
delta logL = 0.045966597012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55742       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1672       1.0000          .0000       5.0000    
     3 'Normalizat'    .68696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99148       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=   9060.839     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55748        7.9452        .10796E-01    .86878E-03
   2  alpha         2.1677        3.3750        .41622        .31583E-04
   3  Normalizat    .68695        .54913E-01    .72193E-01    .66561E-03
   4  Prefactor     .99149        .31082E-01    .46161E-01    .13284E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.557478
  alpha      = 2.16766
  Normalizat = 0.68695
  Prefactor  = 0.991489
 **********
 **   18 **HESSE 
 **********

 FCN=   9060.839     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55748        .38894        .47958E-04   -1.5559    
   2  alpha         2.1677        .59165        .17189E-01   -.13333    
   3  Normalizat    .68695        .15895        .31953E-03   -1.0441    
   4  Prefactor     .99149        .97298E-01    .16569E-03   -.93014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76886e-10
Minuit parameter uncertainties:
  1  0.388939
  2  0.597421
  3  0.15906
  4  0.0973152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291222': 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) = 9060.83896427
delta logL = 0.0459668656531

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  5.575e-01  3.889e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.168e+00  5.974e-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.915e-01  9.732e-02  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:  6.870e-01  1.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.17 +/- 0.60
Photon Flux (Free Index): 3.21e-08 +/- 2.95e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.06e-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/291222/cmap_HighResolution_380073601_380332801_4FGL_J0721.9+7120_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='1.40e-05', photon_flux_error='1.90e-08', dlogl='4.60e-02', energy_flux='1.54e-05', photon_flux2='3.21e-08', job_status='DONE', time_completed='2021-08-27 04:20:01.439645', photon_index_error2='0.60', photon_index2='2.17', ts='5.56', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='0.69', time_epoch_completed='1630063201.44', return_code='0', job_id='291222', GAL2='0.99', EG2='0.69', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='2.95e-08', ts2='5.66', photon_index='1.99' WHERE bin_id='543' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:20:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 291222: <4FGL_J0721.9+7120_daily_bin543> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin543> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 04:05:40 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:05:42 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:05:42 2021
Terminated at Fri Aug 27 04:20:01 2021
Results reported at Fri Aug 27 04:20:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin543 110.488 71.3405 380073601 380332801 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 :                                   839.21 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             346.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

