/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 8 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 = 7237
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0721.9+7120_daily_bin137
RA = 110.488, Dec = 71.3405
tmin = 274838401, tmax = 275097601
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='288240', job_status='RUN', time_executed='2021-08-27 03:56:27.551799', time_epoch_executed='1630061787.55' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288240/ft1_4FGL_J0721.9+7120_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288240/ft2_4FGL_J0721.9+7120_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288240/ft1_4FGL_J0721.9+7120_daily_bin137.fits outfile=/scratch/kocevski/288240/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin137.fits ra=110.488 dec=71.3405 rad=12.0 tmin=274838401.0 tmax=275097601.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 6.59
user 4.00
sys 2.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288240/ft1_filtered_4FGL_J0721.9+7120_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/288240/ft2_4FGL_J0721.9+7120_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/288240/ltcube_274838401_275097601_4FGL_J0721.9+7120_daily_bin137.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/288240/ft2_4FGL_J0721.9+7120_daily_bin137.fits
.....................!
real 14.39
user 11.55
sys 2.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288240/ft1_filtered_4FGL_J0721.9+7120_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/288240/ft2_4FGL_J0721.9+7120_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/288240/ltcube_274838401_275097601_4FGL_J0721.9+7120_daily_bin137.fits outfile=/scratch/kocevski/288240/expmap_274838401_275097601_4FGL_J0721.9+7120_daily_bin137.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/288240/ltcube_274838401_275097601_4FGL_J0721.9+7120_daily_bin137.fits
.....................!
real 195.46
user 187.69
sys 7.35

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/288240/ft1_filtered_4FGL_J0721.9+7120_daily_bin137.fits scfile=/scratch/kocevski/288240/ft2_4FGL_J0721.9+7120_daily_bin137.fits outfile=/scratch/kocevski/288240/cmap_274838401_275097601_4FGL_J0721.9+7120_daily_bin137.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 2.71
user 0.37
sys 2.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288240/ft1_filtered_4FGL_J0721.9+7120_daily_bin137.fits scfile=/scratch/kocevski/288240/ft2_4FGL_J0721.9+7120_daily_bin137.fits outfile=/scratch/kocevski/288240/cmap_HighResolution_274838401_275097601_4FGL_J0721.9+7120_daily_bin137.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 2.93
user 0.38
sys 2.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.090       1.0000         .10000E-03   10000.    
     6 'norm      '    13.765       1.0000         .10000E-03   10000.    
     7 'norm      '    4.0266       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.447       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8874       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.969       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0312       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96944       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=   9479.280     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2197 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0217        .15790E-05** at limit **
   2  Prefactor     .10000E-03    10.912       -.88576E-06** at limit **
   3  Prefactor     .10000E-03    6.8766        .76002E-06** at limit **
   4  Prefactor     23.006        20.236       -.36578E-07   -.24690E-04
   5  Prefactor     16.090        21.618        .15943E-06   -.36774E-04
   6  norm          13.765        9.9486       -.16237E-06    .15646E-03
   7  norm          4.0266        .81664       -.67946E-08   -.25372E-04
   8  Prefactor     .10000E-03    46.185       -.23416E-06** at limit **
   9  Prefactor     .10000E-03    23.268        .22575E-06** at limit **
  10  norm          10.615        16.127        .83819E-06   -.14275E-03
  11  Prefactor     .10000E-03    7.1830       -.27274E-06** at limit **
  12  Prefactor     32.441        36.931       -.30475E-05   -.23657E-03
  13  norm          5.8878        3.2874        .10174E-07   -.10539E-03
  14  Prefactor     .56210        2.6589        .17432E-05   -.70203E-03
  15  Prefactor     .10000E-03    .74134       -.37066E-08** at limit **
  16  norm          .10000E-03    .95916       -.96149E-10** at limit **
  17  Prefactor     12.965        32.171       -.19315E-05   -.93478E-04
  18  Prefactor     .10000E-03    7.7556       -.11963E-05** at limit **
  19  Prefactor     .10000E-03    6.1885       -.12693E-06** at limit **
  20  Normalizat    1.0311        .15964        .67083E-06   -.82137E-04
  21  Prefactor     .96948        .90024E-01   -.28798E-06    .45357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0063
  Prefactor  = 16.0897
  norm       = 13.7652
  norm       = 4.02661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6151
  Prefactor  = 0.0001
  Prefactor  = 32.4406
  norm       = 5.8878
  Prefactor  = 0.562099
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9651
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.03111
  Prefactor  = 0.969481
 **********
 **   18 **HESSE 
 **********

 FCN=   9479.280     FROM HESSE     STATUS=OK           315 CALLS     2512 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.9619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.006        20.246        .83510E-04   -1.4748    
   5  Prefactor     16.090        21.641        .49925E-03   -1.4906    
   6  norm          13.765        9.9862        .53979E-03   -1.4966    
   7  norm          4.0266        .81792        .38005E-04   -1.5307    
   8  Prefactor     .10000E-03    46.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.615        16.202        .61486E-03   -1.5056    
  11  Prefactor     .10000E-03    7.1965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.441        37.900        .70345E-04   -1.4568    
  13  norm          5.8878        3.2685        .12443E-03   -1.5223    
  14  Prefactor     .56210        3.4525        .34803E-03   -1.5558    
  15  Prefactor     .10000E-03    1.3419        .16014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0032        .18589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.965        32.584        .11123E-03   -1.4988    
  18  Prefactor     .10000E-03    7.9647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0311        .17976        .29868E-03   -.91995    
  21  Prefactor     .96948        .10167        .18403E-03   -.93754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20243e-09
Minuit parameter uncertainties:
  1  0.000194376
  2  0.000123443
  3  8.093e-05
  4  20.252
  5  21.6515
  6  9.9874
  7  0.817921
  8  7.20496e-05
  9  5.16583e-05
  10  16.2091
  11  3.11795e-05
  12  37.9281
  13  3.26863
  14  2.78615
  15  1.60785e-06
  16  2.90881e-07
  17  32.629
  18  0.000139153
  19  1.34275e-05
  20  0.179869
  21  0.101689
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.027e+00  8.179e-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.695e-01  1.017e-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.031e+00  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 95.88
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.92e-07 +/- 3.90e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 2.32e-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) = 9479.27453828
delta logL = 0.00525891451252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9479.2740288
delta logL = 0.00576839517089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0133       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0062       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97046       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=   9479.274     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      199 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0133        1.1203        .50326E-02   -.26990E-03
   2  alpha         2.0062        .24735        .15717        .61490E-04
   3  Normalizat    1.0278        .15116        .67603E-01   -.49327E-05
   4  Prefactor     .97046        .89300E-01    .45897E-01    .73625E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01326
  alpha      = 2.00621
  Normalizat = 1.02777
  Prefactor  = 0.970464
 **********
 **   18 **HESSE 
 **********

 FCN=   9479.274     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0133        .82318        .37772E-04   -1.5307    
   2  alpha         2.0062        .18780        .67092E-02   -.19882    
   3  Normalizat    1.0278        .17028        .29907E-03   -.92106    
   4  Prefactor     .97046        .10060        .18394E-03   -.93721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31318e-11
Minuit parameter uncertainties:
  1  0.823179
  2  0.187985
  3  0.170374
  4  0.100619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288240': 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) = 9479.2740288
delta logL = 0.00576839532368

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.013e+00  8.232e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.006e+00  1.880e-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.705e-01  1.006e-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.028e+00  1.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 95.83
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.01 +/- 0.19
Photon Flux (Free Index): 1.95e-07 +/- 4.88e-08
Energy Flux (Free Index): 1.12e-04 +/- 3.21e-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/288240/cmap_HighResolution_274838401_275097601_4FGL_J0721.9+7120_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-07', energy_flux2='1.12e-04', photon_flux_error='3.90e-08', dlogl='5.77e-03', energy_flux='1.14e-04', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-08-27 04:10:48.511710', photon_index_error2='0.19', photon_index2='2.01', ts='95.88', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.21e-05', EG='1.03', time_epoch_completed='1630062648.51', return_code='0', job_id='288240', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='4.88e-08', ts2='95.83', photon_index='1.99' WHERE bin_id='137' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:10:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 288240: <4FGL_J0721.9+7120_daily_bin137> in cluster <slac> Done

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

Your job looked like:

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

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

