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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin25
RA = 110.488, Dec = 71.3405
tmin = 245808001, tmax = 246067201
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='287000', job_status='RUN', time_executed='2021-08-27 03:54:11.185525', time_epoch_executed='1630061651.19' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287000

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287000/ft1_4FGL_J0721.9+7120_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287000/ft2_4FGL_J0721.9+7120_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287000/ft1_4FGL_J0721.9+7120_daily_bin25.fits outfile=/scratch/kocevski/287000/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin25.fits ra=110.488 dec=71.3405 rad=12.0 tmin=245808001.0 tmax=246067201.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.67
user 1.26
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287000/ft1_filtered_4FGL_J0721.9+7120_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/287000/ft2_4FGL_J0721.9+7120_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/287000/ltcube_245808001_246067201_4FGL_J0721.9+7120_daily_bin25.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/287000/ft2_4FGL_J0721.9+7120_daily_bin25.fits
.....................!
real 12.92
user 12.33
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287000/ft1_filtered_4FGL_J0721.9+7120_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/287000/ft2_4FGL_J0721.9+7120_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/287000/ltcube_245808001_246067201_4FGL_J0721.9+7120_daily_bin25.fits outfile=/scratch/kocevski/287000/expmap_245808001_246067201_4FGL_J0721.9+7120_daily_bin25.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/287000/ltcube_245808001_246067201_4FGL_J0721.9+7120_daily_bin25.fits
.....................!
real 192.57
user 186.90
sys 5.30

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/287000/ft1_filtered_4FGL_J0721.9+7120_daily_bin25.fits scfile=/scratch/kocevski/287000/ft2_4FGL_J0721.9+7120_daily_bin25.fits outfile=/scratch/kocevski/287000/cmap_245808001_246067201_4FGL_J0721.9+7120_daily_bin25.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=110.488 yref=71.3405 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287000/ft1_filtered_4FGL_J0721.9+7120_daily_bin25.fits scfile=/scratch/kocevski/287000/ft2_4FGL_J0721.9+7120_daily_bin25.fits outfile=/scratch/kocevski/287000/cmap_HighResolution_245808001_246067201_4FGL_J0721.9+7120_daily_bin25.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=110.488 yref=71.3405 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.91
user 0.39
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.993       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.986       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.760       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.880       1.0000         .10000E-03   10000.    
     6 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    100.74       1.0000         .10000E-03   10000.    
    10 'norm      '    .41514       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4934       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.973       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1930       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81398       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1364       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=   7433.784     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2290 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.013        55.099        .16533E-05    .64995E-04
   2  Prefactor     22.966        59.103       -.30352E-05   -.28682E-04
   3  Prefactor     .10000E-03    16.404        .33980E-06** at limit **
   4  Prefactor     43.779        38.663        .95427E-06    .11119E-03
   5  Prefactor     18.914        51.163        .48238E-05    .66354E-04
   6  norm          .10000E-03    7.2707       -.12508E-07** at limit **
   7  norm          4.9529        1.1482       -.24756E-07    .53855E-03
   8  Prefactor     .10000E-03    45.804       -.58785E-06** at limit **
   9  Prefactor     100.75        53.683        .83932E-06    .26106E-03
  10  norm          .62604        15.124       -.18904E-05    .27613E-03
  11  Prefactor     .10000E-03    7.5453       -.10515E-07** at limit **
  12  Prefactor     .10000E-03    17.087        .23080E-06** at limit **
  13  norm          .10000E-03    1.3895       -.56862E-07** at limit **
  14  Prefactor     2.4933        2.8868       -.41119E-07    .93957E-04
  15  Prefactor     .10000E-03    .58886       -.10241E-06** at limit **
  16  norm          .10000E-03    1.9734       -.24843E-05** at limit **
  17  Prefactor     18.745        44.469        .55160E-06    .35729E-04
  18  Prefactor     21.921        23.942        .34338E-05    .56623E-03
  19  Prefactor     9.1890        15.918        .43411E-06    .75602E-04
  20  Normalizat    .81390        .21573        .24741E-05    .39122E-03
  21  Prefactor     1.1363        .12075       -.10182E-05    .64317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.0132
  Prefactor  = 22.9662
  Prefactor  = 0.0001
  Prefactor  = 43.7789
  Prefactor  = 18.9136
  norm       = 0.0001
  norm       = 4.95292
  Prefactor  = 0.0001
  Prefactor  = 100.75
  norm       = 0.626043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.49331
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 18.7449
  Prefactor  = 21.9206
  Prefactor  = 9.18904
  Normalizat = 0.813896
  Prefactor  = 1.13632
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.784     FROM HESSE     STATUS=OK           313 CALLS     2603 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.013        55.136        .55097E-04   -1.4250    
   2  Prefactor     22.966        59.313        .83546E-04   -1.4749    
   3  Prefactor     .10000E-03    16.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.779        38.661        .60604E-04   -1.4384    
   5  Prefactor     18.914        51.372        .92178E-04   -1.4838    
   6  norm          .10000E-03    7.2773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9529        1.1486        .41575E-04   -1.5263    
   8  Prefactor     .10000E-03    45.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     100.75        54.358        .40055E-04   -1.3697    
  10  norm          .62604        85.326        .63835E-02   -1.5550    
  11  Prefactor     .10000E-03    7.5477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4208        .99187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4933        2.8846        .15311E-03   -1.5392    
  15  Prefactor     .10000E-03    .96221        .12812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2132        .20677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.745        44.476        .92498E-04   -1.4842    
  18  Prefactor     21.921        25.673        .85450E-04   -1.4771    
  19  Prefactor     9.1890        15.912        .13218E-03   -1.5102    
  20  Normalizat    .81390        .23789        .36339E-03   -.99555    
  21  Prefactor     1.1363        .13408        .18747E-03   -.88314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08852e-09
Minuit parameter uncertainties:
  1  55.1894
  2  59.4657
  3  9.28501e-05
  4  38.6832
  5  51.4927
  6  3.94792e-07
  7  1.14858
  8  7.92486e-05
  9  54.3847
  10  14.6377
  11  9.10139e-08
  12  1.77226e-05
  13  8.81306e-07
  14  2.88476
  15  1.83772e-06
  16  0.00024167
  17  44.5546
  18  25.6862
  19  15.9196
  20  0.238192
  21  0.134122
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.953e+00  1.149e+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

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.136e+00  1.341e-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:  8.139e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 79.40
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.36e-07 +/- 5.47e-08
Energy Flux (Fixed Index): 1.40e-04 +/- 3.25e-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) = 7433.7240713
delta logL = 0.0598656507709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7433.71581176
delta logL = 0.0681251937758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8999       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0612       1.0000          .0000       5.0000    
     3 'Normalizat'    .80095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1401       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=   7433.716     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8999        1.4401        .45427E-02   -.55219E-03
   2  alpha         2.0612        .25859        .15125        .42934E-05
   3  Normalizat    .80095        .19767        .82605E-01    .11815E-04
   4  Prefactor     1.1401        .11724        .36230E-01   -.58127E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.89988
  alpha      = 2.06117
  Normalizat = 0.800953
  Prefactor  = 1.14009
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.716     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8999        1.1114        .40715E-04   -1.5265    
   2  alpha         2.0612        .20475        .64917E-02   -.17645    
   3  Normalizat    .80095        .21737        .36576E-03   -1.0003    
   4  Prefactor     1.1401        .12933        .18713E-03   -.88195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64676e-12
Minuit parameter uncertainties:
  1  1.11142
  2  0.204987
  3  0.217603
  4  0.129365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287000': 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) = 7433.71581176
delta logL = 0.0681251957685

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.900e+00  1.111e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.061e+00  2.050e-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.140e+00  1.294e-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:  8.010e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 79.87
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.06 +/- 0.20
Photon Flux (Free Index): 2.52e-07 +/- 6.97e-08
Energy Flux (Free Index): 1.30e-04 +/- 3.84e-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/287000/cmap_HighResolution_245808001_246067201_4FGL_J0721.9+7120_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.36e-07', energy_flux2='1.30e-04', photon_flux_error='5.47e-08', dlogl='6.81e-02', energy_flux='1.40e-04', photon_flux2='2.52e-07', job_status='DONE', time_completed='2021-08-27 04:06:04.473099', photon_index_error2='0.20', photon_index2='2.06', ts='79.40', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.84e-05', EG='0.81', time_epoch_completed='1630062364.47', return_code='0', job_id='287000', GAL2='1.14', EG2='0.80', return_code2='0', energy_flux_error='3.25e-05', photon_flux_error2='6.97e-08', ts2='79.87', photon_index='1.99' WHERE bin_id='25' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 287000: <4FGL_J0721.9+7120_daily_bin25> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin25> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 03:50:44 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 03:50:51 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:51 2021
Terminated at Fri Aug 27 04:06:05 2021
Results reported at Fri Aug 27 04:06:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin25 110.488 71.3405 245808001 246067201 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 :                                   713.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            921 sec.

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

