aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 207 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7493
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1748
RA = 110.488, Dec = 71.3405
tmin = 692409601, tmax = 692668801
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='876344', job_status='RUN', time_executed='2022-12-14 00:09:37.109936', time_epoch_executed='1671005377.11' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/876344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/876344/ft1_4FGL_J0721.9+7120_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/876344/ft2_4FGL_J0721.9+7120_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/876344/ft1_4FGL_J0721.9+7120_daily_bin1748.fits outfile=/scratch/kocevski/876344/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1748.fits ra=110.488 dec=71.3405 rad=12.0 tmin=692409601.0 tmax=692668801.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 3.60
user 3.37
sys 0.21

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

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

Number of photons that the gtmktime cut: 963

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/876344/ft1_filtered_4FGL_J0721.9+7120_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/876344/ft2_4FGL_J0721.9+7120_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/876344/ltcube_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.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/876344/ft2_4FGL_J0721.9+7120_daily_bin1748.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/876344/ft1_filtered_4FGL_J0721.9+7120_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/876344/ft2_4FGL_J0721.9+7120_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/876344/ltcube_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.fits outfile=/scratch/kocevski/876344/expmap_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.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/876344/ltcube_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.fits
.....................!
real 191.43
user 185.32
sys 5.81

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/876344/ft1_filtered_4FGL_J0721.9+7120_daily_bin1748.fits scfile=/scratch/kocevski/876344/ft2_4FGL_J0721.9+7120_daily_bin1748.fits outfile=/scratch/kocevski/876344/cmap_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/876344/ft1_filtered_4FGL_J0721.9+7120_daily_bin1748.fits scfile=/scratch/kocevski/876344/ft2_4FGL_J0721.9+7120_daily_bin1748.fits outfile=/scratch/kocevski/876344/cmap_HighResolution_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/876344/ft1_filtered_4FGL_J0721.9+7120_daily_bin1748.fits', '/scratch/kocevski/876344/ft2_4FGL_J0721.9+7120_daily_bin1748.fits', expMap='/scratch/kocevski/876344/expmap_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.fits', expCube='/scratch/kocevski/876344/ltcube_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/876344/Model_4FGL_J0721.9+7120_daily_bin1748.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  0.000e+00  1.000e+06 ( 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 -5.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/876344/ft1_filtered_4FGL_J0721.9+7120_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/876344/ft2_4FGL_J0721.9+7120_daily_bin1748.fits
Exposure map: /scratch/kocevski/876344/expmap_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.fits
Exposure cube: /scratch/kocevski/876344/ltcube_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/876344/Model_4FGL_J0721.9+7120_daily_bin1748.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) = 10169.1760786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16908E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25630E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .56481E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10371E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.160       1.0000          .0000       .10000E+07
     6 'norm      '    .17026E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.7205       1.0000          .0000       .10000E+07
     8 'norm      '    40.239       1.0000          .0000       .10000E+07
     9 'Prefactor '    .42973E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .33284E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .24824E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11562E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9647       1.0000          .0000       .10000E+07
    14 'norm      '    2.5173       1.0000          .0000       .10000E+07
    15 'Prefactor '    53.974       1.0000          .0000       .10000E+07
    16 'Prefactor '    19.001       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.085       1.0000          .0000       .10000E+07
    18 'Normalizat'    .96052       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10169.17     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1372 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21866E-06    5.2922       -.14558E-05** at limit **
   2  Prefactor     .25241E-06    5.9135       -.48637E-06** at limit **
   3  Prefactor     .57510E-07    6.0988        .26803E-05** at limit **
   4  Prefactor     .67168E-08    5.4030        .14024E-05** at limit **
   5  Prefactor     23.009        22.843       -.32023E-05   -.12318E-01
   6  norm          .42466E-07    5.4935       -.28525E-05** at limit **
   7  norm          1.7204        .64633        .31595E-07   -.36892E-01
   8  norm          40.292        10.722        .80799E-06    .89536E-01
   9  Prefactor     .32752E-08    20.340       -.52593E-06** at limit **
  10  Prefactor     .37803E-07    10.062        .21246E-05** at limit **
  11  norm          .99920E-09    3.7381       -.30882E-06** at limit **
  12  Prefactor     .27756E-09    1.7921        .24581E-06** at limit **
  13  Prefactor     2.9643        1.8475        .90314E-07   -.17633E-01
  14  norm          2.5138        2.1536       -.18998E-06    .17948E-01
  15  Prefactor     54.100        16.682        .17896E-05   -.12009    
  16  Prefactor     19.064        1.2775       -.17514E-07   -.72576E-02
  17  Prefactor     19.075        1.1044       -.70258E-07    .66134E-03
  18  Normalizat    .96047        .18179       -.84942E-06   -.18774E-03
  19  Prefactor     1.0680        .10562        .32829E-06    .94495E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18658e-07
  Prefactor  = 2.52409e-07
  Prefactor  = 5.75096e-08
  Prefactor  = 6.71685e-09
  Prefactor  = 23.0091
  norm       = 4.2466e-08
  norm       = 1.72036
  norm       = 40.2916
  Prefactor  = 3.27516e-09
  Prefactor  = 3.78031e-08
  norm       = 9.99201e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 2.96432
  norm       = 2.51378
  Prefactor  = 54.0995
  Prefactor  = 19.0645
  Prefactor  = 19.0751
  Normalizat = 0.960474
  Prefactor  = 1.06795
 **********
 **   18 **HESSE 
 **********

 FCN=   10169.17     FROM HESSE     STATUS=OK           304 CALLS     1676 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21866E-06    9.6692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .25241E-06    8.4274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57510E-07    6.6502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .67168E-08    5.4536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.009        29.420        .20784E-03   -1.5612    
   6  norm          .42466E-07    5.8092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7204        .64831        .80058E-03   -1.5682    
   8  norm          40.292        23.838        .15766E-03   -1.5581    
   9  Prefactor     .32752E-08    20.037        .15832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .37803E-07    10.953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .99920E-09    3.6529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27756E-09    1.7861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9643        1.8573        .58947E-03   -1.5674    
  14  norm          2.5138        2.3599        .64366E-03   -1.5676    
  15  Prefactor     54.100        40.290        .13613E-03   -1.5561    
  16  Prefactor     19.064        20.095        .22949E-03   -1.5621    
  17  Prefactor     19.075        13.236        .22898E-03   -1.5621    
  18  Normalizat    .96047        .16316        .72003E-01   -.94367    
  19  Prefactor     1.0680        .93581E-01    .38958E-01   -.90497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23608e-07
Minuit parameter uncertainties:
  1  0.00290822
  2  0.00291707
  3  0.00123688
  4  0.000383414
  5  29.4198
  6  0.000993377
  7  0.648309
  8  23.8384
  9  0.000513233
  10  0.00128716
  11  0.000121071
  12  4.57637e-05
  13  1.85731
  14  2.35992
  15  40.2904
  16  20.0949
  17  13.2356
  18  0.163241
  19  0.093595
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.720e+00  6.483e-01  0.000e+00  1.000e+06 ( 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 -5.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.068e+00  9.360e-02  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  9.605e-01  1.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.01
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 4.87e-05 +/- 1.84e-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) = 10169.1332054
delta logL = 0.0325256483229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10169.1316667
delta logL = 0.0340643655563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6929       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9000       1.0000          .0000       5.0000    
     3 'Normalizat'    .96894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0657       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=   10169.13     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6931        1.8672        .80859E-03    .59388E-02
   2  alpha         1.9002        .79734        .28958        .99957E-04
   3  Normalizat    .96894        .15863        .71734E-01    .37391E-03
   4  Prefactor     1.0657        .94430E-01    .39066E-01    .12292E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69313
  alpha      = 1.90016
  Normalizat = 0.968944
  Prefactor  = 1.0657
 **********
 **   18 **HESSE 
 **********

 FCN=   10169.13     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6931        .66977        .48812E-05   -1.5682    
   2  alpha         1.9002        .32866        .11260E-01   -.24230    
   3  Normalizat    .96894        .17574        .31738E-03   -.94078    
   4  Prefactor     1.0657        .10465        .18354E-03   -.90570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21956e-10
Minuit parameter uncertainties:
  1  0.669769
  2  0.329669
  3  0.175842
  4  0.104667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/876344': 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) = 10169.1316665
delta logL = 0.0340645142533

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.693e+00  6.698e-01  0.000e+00  1.000e+06 ( 1.000e-11)
257        alpha:  1.900e+00  3.297e-01  0.000e+00  5.000e+00 ( 1.000e+00)
258         beta:  5.814e-02  0.000e+00 -5.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.066e+00  1.047e-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:  9.689e-01  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.01
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.90 +/- 0.33
Photon Flux (Free Index): 7.45e-08 +/- 4.03e-08
Energy Flux (Free Index): 5.27e-05 +/- 2.64e-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/876344/cmap_HighResolution_692409601_692668801_4FGL_J0721.9+7120_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='5.27e-05', photon_flux_error='3.09e-08', dlogl='3.41e-02', energy_flux='4.87e-05', photon_flux2='7.45e-08', job_status='DONE', time_completed='2022-12-14 00:21:36.863827', photon_index_error2='0.33', photon_index2='1.90', ts='23.01', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.64e-05', EG='0.96', time_epoch_completed='1671006096.86', return_code='0', job_id='876344', GAL2='1.07', EG2='0.97', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='4.03e-08', ts2='23.01', photon_index='1.99' WHERE bin_id='1748' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:21:36 PST 2022

97', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='4.03e-08', ts2='23.01', photon_index='1.99' WHERE bin_id='1748' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:20:16 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 876345: <4FGL_J0721.9+7120_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:05:45 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:59 2022
Terminated at Wed Dec 14 00:20:16 2022
Results reported at Wed Dec 14 00:20:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1748 110.488 71.3405 692409601 692668801 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 :                                   721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            871 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 876344: <4FGL_J0721.9+7120_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:05:45 2022
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:59 2022
Terminated at Wed Dec 14 00:21:37 2022
Results reported at Wed Dec 14 00:21:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1748 110.488 71.3405 692409601 692668801 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 :                                   722.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            952 sec.

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

