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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin78
RA = 110.488, Dec = 71.3405
tmin = 259545601, tmax = 259804801
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='288144', job_status='RUN', time_executed='2021-08-27 03:59:27.477234', time_epoch_executed='1630061967.48' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288144

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288144/ft1_4FGL_J0721.9+7120_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288144/ft2_4FGL_J0721.9+7120_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288144/ft1_4FGL_J0721.9+7120_daily_bin78.fits outfile=/scratch/kocevski/288144/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin78.fits ra=110.488 dec=71.3405 rad=12.0 tmin=259545601.0 tmax=259804801.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 2.41
user 1.49
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288144/ft1_filtered_4FGL_J0721.9+7120_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/288144/ft2_4FGL_J0721.9+7120_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/288144/ltcube_259545601_259804801_4FGL_J0721.9+7120_daily_bin78.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/288144/ft2_4FGL_J0721.9+7120_daily_bin78.fits
.....................!
real 13.64
user 12.47
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288144/ft1_filtered_4FGL_J0721.9+7120_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/288144/ft2_4FGL_J0721.9+7120_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/288144/ltcube_259545601_259804801_4FGL_J0721.9+7120_daily_bin78.fits outfile=/scratch/kocevski/288144/expmap_259545601_259804801_4FGL_J0721.9+7120_daily_bin78.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/288144/ltcube_259545601_259804801_4FGL_J0721.9+7120_daily_bin78.fits
.....................!
real 191.39
user 185.91
sys 5.02

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/288144/ft1_filtered_4FGL_J0721.9+7120_daily_bin78.fits scfile=/scratch/kocevski/288144/ft2_4FGL_J0721.9+7120_daily_bin78.fits outfile=/scratch/kocevski/288144/cmap_259545601_259804801_4FGL_J0721.9+7120_daily_bin78.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.23
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288144/ft1_filtered_4FGL_J0721.9+7120_daily_bin78.fits scfile=/scratch/kocevski/288144/ft2_4FGL_J0721.9+7120_daily_bin78.fits outfile=/scratch/kocevski/288144/cmap_HighResolution_259545601_259804801_4FGL_J0721.9+7120_daily_bin78.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.24
user 0.37
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.814       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.811       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3671       1.0000         .10000E-03   10000.    
    10 'norm      '    18.314       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14296E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7848       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0447       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2099       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.215       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75541       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1650       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=   8060.364     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2174 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.762        34.682       -.47590E-04    .12448E-04
   2  Prefactor     .10000E-03    13.389       -.13416E-05** at limit **
   3  Prefactor     .10000E-03    12.210        .14034E-05** at limit **
   4  Prefactor     72.815        35.375        .19843E-05    .66343E-05
   5  Prefactor     .10000E-03    33.848       -.27270E-04** at limit **
   6  norm          .10000E-03    6.0053       -.74900E-07** at limit **
   7  norm          1.0443        .71027       -.11821E-06   -.52669E-03
   8  Prefactor     .10000E-03    39.847       -.65921E-05** at limit **
   9  Prefactor     9.3651        36.213       -.62410E-05   -.10391E-04
  10  norm          18.306        22.477       -.29578E-05   -.10512E-03
  11  Prefactor     .10000E-03    5.9603       -.13326E-07** at limit **
  12  Prefactor     .10000E-03    49.142        .36678E-04** at limit **
  13  norm          .10000E-03    1.4267       -.25536E-07** at limit **
  14  Prefactor     .10000E-03    1.9798       -.17793E-06** at limit **
  15  Prefactor     1.7849        1.2731       -.15167E-06   -.20959E-04
  16  norm          4.0449        2.8247        .14372E-05    .86840E-03
  17  Prefactor     .10000E-03    25.764        .12010E-04** at limit **
  18  Prefactor     2.1646        72.537       -.38184E-04   -.10827E-03
  19  Prefactor     24.215        16.830       -.34406E-06    .41628E-04
  20  Normalizat    .75508        .19596        .36618E-05    .63031E-04
  21  Prefactor     1.1652        .11100        .20659E-05   -.19909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.8153
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.04431
  Prefactor  = 0.0001
  Prefactor  = 9.36514
  norm       = 18.3064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78485
  norm       = 4.04486
  Prefactor  = 0.0001
  Prefactor  = 2.16465
  Prefactor  = 24.2154
  Normalizat = 0.755083
  Prefactor  = 1.16524
 **********
 **   18 **HESSE 
 **********

 FCN=   8060.364     FROM HESSE     STATUS=OK           319 CALLS     2493 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.762        34.618        .85759E-04   -1.4775    
   2  Prefactor     .10000E-03    13.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     72.815        35.336        .47050E-04   -1.3999    
   5  Prefactor     .10000E-03    33.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.0085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0443        .68369        .57350E-03   -1.5504    
   8  Prefactor     .10000E-03    39.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3651        36.245        .13094E-03   -1.5096    
  10  norm          18.306        22.491        .93590E-04   -1.4852    
  11  Prefactor     .10000E-03    5.9610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4704        .20929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9913        .12334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7849        1.2739        .82864E-04   -1.5441    
  16  norm          4.0449        2.7440        .99859E-04   -1.5306    
  17  Prefactor     .10000E-03    25.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1646        69.466        .27670E-03   -1.5414    
  19  Prefactor     24.215        16.830        .81402E-04   -1.4723    
  20  Normalizat    .75508        .21783        .35607E-03   -1.0176    
  21  Prefactor     1.1652        .12408        .17820E-03   -.87408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97402e-10
Minuit parameter uncertainties:
  1  34.6497
  2  2.62483e-05
  3  5.90663e-06
  4  35.3466
  5  3.547e-05
  6  1.02771e-05
  7  0.683694
  8  1.55967e-05
  9  36.33
  10  22.5015
  11  4.50633e-06
  12  0.000234384
  13  1.12875e-05
  14  6.19081e-06
  15  1.27388
  16  2.7441
  17  6.85611e-05
  18  24.5557
  19  16.8334
  20  0.218082
  21  0.124111
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.044e+00  6.837e-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.165e+00  1.241e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  7.551e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.98e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.94e-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) = 8060.23341483
delta logL = 0.130434654695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8060.22598356
delta logL = 0.137865924933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98634       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2411       1.0000          .0000       5.0000    
     3 'Normalizat'    .74057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1704       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=   8060.226     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98645        10.870        .11690E-01    .77273E-03
   2  alpha         2.2410        3.5940        .36436        .25771E-04
   3  Normalizat    .74058        .64855E-01    .81117E-01    .35578E-04
   4  Prefactor     1.1704        .39283E-01    .35371E-01   -.48508E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.986448
  alpha      = 2.24098
  Normalizat = 0.740576
  Prefactor  = 1.17039
 **********
 **   18 **HESSE 
 **********

 FCN=   8060.226     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98645        .66828        .53025E-03   -1.5509    
   2  alpha         2.2410        .51899        .13444E-01   -.10379    
   3  Normalizat    .74058        .19820        .35917E-03   -1.0231    
   4  Prefactor     1.1704        .12028        .17784E-03   -.87247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18029e-10
Minuit parameter uncertainties:
  1  0.668288
  2  0.522833
  3  0.198388
  4  0.12031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288144': 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) = 8060.22598354
delta logL = 0.137865947064

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  9.864e-01  6.683e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.241e+00  5.228e-01  0.000e+00  5.000e+00 ( 1.000e+00)
258         beta:  5.814e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
259           Eb:  7.346e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.170e+00  1.203e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  7.406e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.24 +/- 0.52
Photon Flux (Free Index): 6.17e-08 +/- 4.18e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.78e-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/288144/cmap_HighResolution_259545601_259804801_4FGL_J0721.9+7120_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.98e-08', energy_flux2='2.41e-05', photon_flux_error='3.26e-08', dlogl='1.38e-01', energy_flux='2.96e-05', photon_flux2='6.17e-08', job_status='DONE', time_completed='2021-08-27 04:11:44.697035', photon_index_error2='0.52', photon_index2='2.24', ts='4.17', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.76', time_epoch_completed='1630062704.7', return_code='0', job_id='288144', GAL2='1.17', EG2='0.74', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='4.18e-08', ts2='4.46', photon_index='1.99' WHERE bin_id='78' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:11:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 288144: <4FGL_J0721.9+7120_daily_bin78> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin78> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 03:55:19 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 03:55:22 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:55:22 2021
Terminated at Fri Aug 27 04:11:45 2021
Results reported at Fri Aug 27 04:11:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin78 110.488 71.3405 259545601 259804801 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 :                                   748.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

