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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin33
RA = 110.488, Dec = 71.3405
tmin = 247881601, tmax = 248140801
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='287013', job_status='RUN', time_executed='2021-08-27 03:53:55.889170', time_epoch_executed='1630061635.89' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287013/ft1_4FGL_J0721.9+7120_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287013/ft2_4FGL_J0721.9+7120_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287013/ft1_4FGL_J0721.9+7120_daily_bin33.fits outfile=/scratch/kocevski/287013/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin33.fits ra=110.488 dec=71.3405 rad=12.0 tmin=247881601.0 tmax=248140801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.82
user 1.22
sys 0.58

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287013/ft2_4FGL_J0721.9+7120_daily_bin33.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/287013/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/287013/ft1_filtered_4FGL_J0721.9+7120_daily_bin33.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.96
user 0.32
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287013/ft1_filtered_4FGL_J0721.9+7120_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/287013/ft2_4FGL_J0721.9+7120_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/287013/ltcube_247881601_248140801_4FGL_J0721.9+7120_daily_bin33.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/287013/ft2_4FGL_J0721.9+7120_daily_bin33.fits
.....................!
real 13.36
user 12.15
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287013/ft1_filtered_4FGL_J0721.9+7120_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/287013/ft2_4FGL_J0721.9+7120_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/287013/ltcube_247881601_248140801_4FGL_J0721.9+7120_daily_bin33.fits outfile=/scratch/kocevski/287013/expmap_247881601_248140801_4FGL_J0721.9+7120_daily_bin33.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/287013/ltcube_247881601_248140801_4FGL_J0721.9+7120_daily_bin33.fits
.....................!
real 190.76
user 185.51
sys 4.82

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/287013/ft1_filtered_4FGL_J0721.9+7120_daily_bin33.fits scfile=/scratch/kocevski/287013/ft2_4FGL_J0721.9+7120_daily_bin33.fits outfile=/scratch/kocevski/287013/cmap_247881601_248140801_4FGL_J0721.9+7120_daily_bin33.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.19
user 0.36
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287013/ft1_filtered_4FGL_J0721.9+7120_daily_bin33.fits scfile=/scratch/kocevski/287013/ft2_4FGL_J0721.9+7120_daily_bin33.fits outfile=/scratch/kocevski/287013/cmap_HighResolution_247881601_248140801_4FGL_J0721.9+7120_daily_bin33.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.04
user 0.38
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.098       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.3489       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8361       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.209       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5997       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40774       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11616E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1144       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92584       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=   8966.084     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2217 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.097        29.070       -.22578E-05   -.70273E-06
   2  Prefactor     18.097        23.183       -.10990E-05   -.19759E-03
   3  Prefactor     .10000E-03    17.390        .38718E-05** at limit **
   4  Prefactor     .10000E-03    17.029       -.75591E-06** at limit **
   5  Prefactor     .10000E-03    57.515        .19119E-04** at limit **
   6  norm          7.3489        7.8815        .10531E-06    .59457E-04
   7  norm          1.8360        .63456        .55843E-06    .83080E-03
   8  Prefactor     .10000E-03    60.937       -.15000E-04** at limit **
   9  Prefactor     13.174        27.891       -.41073E-04   -.13231E-05
  10  norm          2.5993        29.695       -.23096E-05   -.74535E-04
  11  Prefactor     .10000E-03    13.522       -.10059E-04** at limit **
  12  Prefactor     .10000E-03    8.1568       -.20232E-06** at limit **
  13  norm          .40636        1.4348       -.11241E-05    .16823E-03
  14  Prefactor     .10000E-03    2.5222        .29373E-06** at limit **
  15  Prefactor     .10000E-03    .62752       -.13697E-06** at limit **
  16  norm          .10000E-03    .61825        .20750E-06** at limit **
  17  Prefactor     .10000E-03    11.909        .77278E-05** at limit **
  18  Prefactor     .10000E-03    4.1943       -.41715E-07** at limit **
  19  Prefactor     .10000E-03    3.3064       -.49219E-07** at limit **
  20  Normalizat    1.1149        .16836        .72272E-05   -.19704E-03
  21  Prefactor     .92557        .94659E-01   -.18129E-05    .81966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0966
  Prefactor  = 18.0969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.34892
  norm       = 1.83601
  Prefactor  = 0.0001
  Prefactor  = 13.1744
  norm       = 2.59927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11489
  Prefactor  = 0.925569
 **********
 **   18 **HESSE 
 **********

 FCN=   8966.084     FROM HESSE     STATUS=OK           319 CALLS     2536 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.097        29.078        .71850E-04   -1.4592    
   2  Prefactor     18.097        23.201        .47075E-03   -1.4857    
   3  Prefactor     .10000E-03    17.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    57.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.3489        7.8832        .14795E-03   -1.5166    
   7  norm          1.8360        .63389        .41694E-04   -1.5437    
   8  Prefactor     .10000E-03    60.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.174        28.020        .11021E-03   -1.4982    
  10  norm          2.5993        29.787        .25303E-03   -1.5386    
  11  Prefactor     .10000E-03    13.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40636        3.8001        .19682E-02   -1.5580    
  14  Prefactor     .10000E-03    2.5813        .14683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2890        .14084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.0305        .14347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3079        .16815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1149        .19215        .28342E-03   -.89275    
  21  Prefactor     .92557        .10994        .18338E-03   -.95253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5967e-09
Minuit parameter uncertainties:
  1  29.0917
  2  23.2124
  3  6.20269e-05
  4  0.000108384
  5  0.000319143
  6  7.88428
  7  0.633894
  8  2.30513e-05
  9  28.0483
  10  17.6088
  11  5.66832e-07
  12  2.20253e-05
  13  2.48525
  14  4.09556e-05
  15  2.51918e-05
  16  0.000243774
  17  1.48254e-05
  18  4.57783e-06
  19  4.0566e-06
  20  0.19227
  21  0.10997
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.836e+00  6.339e-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.256e-01  1.100e-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.115e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.47
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 8.75e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 5.20e-05 +/- 1.80e-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) = 8966.00511824
delta logL = 0.0793469116252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8966.00173763
delta logL = 0.0827275176416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8114       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1125       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92912       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=   8966.002     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8114        9.5025        .77604E-02    .74338E-04
   2  alpha         2.1125        3.5427        .25182        .33459E-04
   3  Normalizat    1.1032        .14554        .64344E-01    .16916E-04
   4  Prefactor     .92914        .65403E-01    .45375E-01    .40546E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81142
  alpha      = 2.11249
  Normalizat = 1.10316
  Prefactor  = 0.929136
 **********
 **   18 **HESSE 
 **********

 FCN=   8966.002     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8114        .60919        .40276E-04   -1.5439    
   2  alpha         2.1125        .31216        .10112E-01   -.15563    
   3  Normalizat    1.1032        .18258        .28463E-03   -.89651    
   4  Prefactor     .92914        .10771        .18304E-03   -.95130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70035e-13
Minuit parameter uncertainties:
  1  0.609193
  2  0.312994
  3  0.18268
  4  0.107738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287013': 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) = 8966.00173761
delta logL = 0.0827275337488

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.811e+00  6.092e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.112e+00  3.130e-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.291e-01  1.077e-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.103e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.67
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.11 +/- 0.31
Photon Flux (Free Index): 9.83e-08 +/- 4.11e-08
Energy Flux (Free Index): 4.66e-05 +/- 1.93e-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/287013/cmap_HighResolution_247881601_248140801_4FGL_J0721.9+7120_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.75e-08', energy_flux2='4.66e-05', photon_flux_error='3.02e-08', dlogl='8.27e-02', energy_flux='5.20e-05', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-08-27 04:07:17.984786', photon_index_error2='0.31', photon_index2='2.11', ts='30.47', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.11', time_epoch_completed='1630062437.98', return_code='0', job_id='287013', GAL2='0.93', EG2='1.10', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='4.11e-08', ts2='30.67', photon_index='1.99' WHERE bin_id='33' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:07:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 287013: <4FGL_J0721.9+7120_daily_bin33> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin33 110.488 71.3405 247881601 248140801 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 :                                   801.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            993 sec.

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

