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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin653
RA = 110.488, Dec = 71.3405
tmin = 408585601, tmax = 408844801
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='292613', job_status='RUN', time_executed='2021-08-27 04:15:47.697583', time_epoch_executed='1630062947.7' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292613

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292613/ft1_4FGL_J0721.9+7120_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292613/ft2_4FGL_J0721.9+7120_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292613/ft1_4FGL_J0721.9+7120_daily_bin653.fits outfile=/scratch/kocevski/292613/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin653.fits ra=110.488 dec=71.3405 rad=12.0 tmin=408585601.0 tmax=408844801.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 8.68
user 4.07
sys 4.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292613/ft1_filtered_4FGL_J0721.9+7120_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/292613/ft2_4FGL_J0721.9+7120_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/292613/ltcube_408585601_408844801_4FGL_J0721.9+7120_daily_bin653.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/292613/ft2_4FGL_J0721.9+7120_daily_bin653.fits
.....................!
real 16.87
user 11.54
sys 5.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292613/ft1_filtered_4FGL_J0721.9+7120_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/292613/ft2_4FGL_J0721.9+7120_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/292613/ltcube_408585601_408844801_4FGL_J0721.9+7120_daily_bin653.fits outfile=/scratch/kocevski/292613/expmap_408585601_408844801_4FGL_J0721.9+7120_daily_bin653.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/292613/ltcube_408585601_408844801_4FGL_J0721.9+7120_daily_bin653.fits
.....................!
real 196.01
user 185.79
sys 9.72

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/292613/ft1_filtered_4FGL_J0721.9+7120_daily_bin653.fits scfile=/scratch/kocevski/292613/ft2_4FGL_J0721.9+7120_daily_bin653.fits outfile=/scratch/kocevski/292613/cmap_408585601_408844801_4FGL_J0721.9+7120_daily_bin653.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 4.86
user 0.38
sys 4.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292613/ft1_filtered_4FGL_J0721.9+7120_daily_bin653.fits scfile=/scratch/kocevski/292613/ft2_4FGL_J0721.9+7120_daily_bin653.fits outfile=/scratch/kocevski/292613/cmap_HighResolution_408585601_408844801_4FGL_J0721.9+7120_daily_bin653.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 4.92
user 0.38
sys 4.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    37.430       1.0000         .10000E-03   10000.    
     7 'norm      '    .94206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.046       1.0000         .10000E-03   10000.    
    10 'norm      '    11.510       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .23795E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9750       1.0000         .10000E-03   10000.    
    16 'norm      '    .65737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2684       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0137       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=   2970.143     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2188 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.934        .18557E-04** at limit **
   2  Prefactor     .10000E-03    43.631        .13205E-04** at limit **
   3  Prefactor     .10000E-03    16.909       -.26654E-05** at limit **
   4  Prefactor     .10000E-03    11.479        .44582E-05** at limit **
   5  Prefactor     .10001E-03    397.69       -.26063E-03** at limit **
   6  norm          37.430        32.130        .22080E-06   -.66920E-05
   7  norm          .94132        1.0041       -.22493E-07   -.13443E-03
   8  Prefactor     .10000E-03    125.48        .13980E-03** at limit **
   9  Prefactor     31.046        47.324       -.21433E-07    .19259E-04
  10  norm          11.497        34.482        .18820E-05   -.14550E-04
  11  Prefactor     .10000E-03    76.010       -.79749E-04** at limit **
  12  Prefactor     .10000E-03    35.969        .21474E-04** at limit **
  13  norm          .10002E-03    3.7363        .11438E-05** at limit **
  14  Prefactor     .10000E-03    5.5737       -.29969E-07** at limit **
  15  Prefactor     1.9747        3.1046        .79477E-07    .19571E-03
  16  norm          .65031        5.0199       -.77343E-06   -.13797E-03
  17  Prefactor     .10000E-03    30.683       -.12223E-04** at limit **
  18  Prefactor     .10000E-03    26.032       -.22105E-04** at limit **
  19  Prefactor     .10000E-03    11.667       -.75250E-05** at limit **
  20  Normalizat    1.2689        .31748        .92400E-06    .29644E-03
  21  Prefactor     1.0135        .17284        .13546E-06    .42739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 37.4296
  norm       = 0.941317
  Prefactor  = 0.0001
  Prefactor  = 31.0464
  norm       = 11.4968
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 1.9747
  norm       = 0.650311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26886
  Prefactor  = 1.01349
 **********
 **   18 **HESSE 
 **********

 FCN=   2970.143     FROM HESSE     STATUS=OK           311 CALLS     2499 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.482        .18036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    399.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          37.430        32.129        .65510E-04   -1.4484    
   7  norm          .94132        .96347        .53173E-03   -1.5514    
   8  Prefactor     .10000E-03    125.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.046        47.224        .71910E-04   -1.4593    
  10  norm          11.497        34.470        .11808E-03   -1.5030    
  11  Prefactor     .10000E-03    76.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    12.148        .19967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6386        .12565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9747        3.0517        .11332E-03   -1.5427    
  16  norm          .65031        8.8043        .21694E-02   -1.5547    
  17  Prefactor     .10000E-03    30.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2689        .35764        .29323E-03   -.84501    
  21  Prefactor     1.0135        .19788        .19160E-03   -.92281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03947e-08
Minuit parameter uncertainties:
  1  1.0418e-05
  2  4.92516e-05
  3  5.14048e-06
  4  2.34622e-06
  5  0.00417842
  6  32.1433
  7  0.963487
  8  8.31834e-06
  9  47.2809
  10  34.5301
  11  0.000508509
  12  2.77983e-05
  13  0.00091553
  14  3.66636e-06
  15  3.05195
  16  4.78611
  17  2.9073e-06
  18  3.72814e-05
  19  2.88008e-06
  20  0.358335
  21  0.198017
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  9.413e-01  9.635e-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.013e+00  1.980e-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.269e+00  3.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 2.73e-05

TS (Fixed Index): 1.77
Ra Dec: 110.488 71.341
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/292613/likelihoodResults_408585601_408844801_4FGL_J0721.9+7120_daily_bin653.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2969.99769414
delta logL = 0.14507446666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2969.98135428
delta logL = 0.161414322705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77998       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0229       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=   2969.981     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77994        17.099        .95989E-02    .26943E-03
   2  alpha         2.5257        3.3172        .35546        .20438E-04
   3  Normalizat    1.2405        .10006        .66870E-01    .47384E-05
   4  Prefactor     1.0229        .57040E-01    .41861E-01    .58511E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.779945
  alpha      = 2.52574
  Normalizat = 1.24054
  Prefactor  = 1.02292
 **********
 **   18 **HESSE 
 **********

 FCN=   2969.981     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77994        1.0159        .43277E-04   -1.5531    
   2  alpha         2.5257        1.0438        .12820E-01    .10297E-01
   3  Normalizat    1.2405        .32998        .29583E-03   -.85359    
   4  Prefactor     1.0229        .19409        .19080E-03   -.91969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95461e-12
Minuit parameter uncertainties:
  1  1.0159
  2  1.07678
  3  0.330538
  4  0.194221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292613': 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) = 2969.9813542
delta logL = 0.161414404115

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  7.799e-01  1.016e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.526e+00  1.077e+00  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.023e+00  1.942e-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.241e+00  3.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.53 +/- 1.08
Photon Flux (Free Index): 6.94e-08 +/- 7.19e-08
Energy Flux (Free Index): 1.97e-05 +/- 2.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/292613/cmap_HighResolution_408585601_408844801_4FGL_J0721.9+7120_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-05', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='1.97e-05', photon_flux_error='4.59e-08', dlogl='1.61e-01', energy_flux='2.67e-05', photon_flux2='6.94e-08', job_status='DONE', time_completed='2021-08-27 04:25:28.678843', photon_index_error2='1.08', photon_index2='2.53', ts='1.77', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='2.06e-05', EG='1.27', time_epoch_completed='1630063528.68', return_code='0', job_id='292613', GAL2='1.02', EG2='1.24', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='7.19e-08', ts2='2.11', photon_index='1.99' WHERE bin_id='653' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:25:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 292613: <4FGL_J0721.9+7120_daily_bin653> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin653> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 27 04:10:27 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:10:29 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:10:29 2021
Terminated at Fri Aug 27 04:25:30 2021
Results reported at Fri Aug 27 04:25:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin653 110.488 71.3405 408585601 408844801 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 :                                   648.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

