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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin129
RA = 110.488, Dec = 71.3405
tmin = 272764801, tmax = 273024001
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='288227', job_status='RUN', time_executed='2021-08-27 03:55:48.882485', time_epoch_executed='1630061748.88' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288227/ft1_4FGL_J0721.9+7120_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288227/ft2_4FGL_J0721.9+7120_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288227/ft1_4FGL_J0721.9+7120_daily_bin129.fits outfile=/scratch/kocevski/288227/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin129.fits ra=110.488 dec=71.3405 rad=12.0 tmin=272764801.0 tmax=273024001.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.65
user 1.17
sys 0.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288227/ft2_4FGL_J0721.9+7120_daily_bin129.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/288227/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin129.fits evtable="EVENTS" outfile="/scratch/kocevski/288227/ft1_filtered_4FGL_J0721.9+7120_daily_bin129.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.70
user 0.26
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288227/ft1_filtered_4FGL_J0721.9+7120_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/288227/ft2_4FGL_J0721.9+7120_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/288227/ltcube_272764801_273024001_4FGL_J0721.9+7120_daily_bin129.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/288227/ft2_4FGL_J0721.9+7120_daily_bin129.fits
.....................!
real 10.15
user 9.53
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288227/ft1_filtered_4FGL_J0721.9+7120_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/288227/ft2_4FGL_J0721.9+7120_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/288227/ltcube_272764801_273024001_4FGL_J0721.9+7120_daily_bin129.fits outfile=/scratch/kocevski/288227/expmap_272764801_273024001_4FGL_J0721.9+7120_daily_bin129.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/288227/ltcube_272764801_273024001_4FGL_J0721.9+7120_daily_bin129.fits
.....................!
real 142.21
user 137.72
sys 4.18

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/288227/ft1_filtered_4FGL_J0721.9+7120_daily_bin129.fits scfile=/scratch/kocevski/288227/ft2_4FGL_J0721.9+7120_daily_bin129.fits outfile=/scratch/kocevski/288227/cmap_272764801_273024001_4FGL_J0721.9+7120_daily_bin129.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.76
user 0.29
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288227/ft1_filtered_4FGL_J0721.9+7120_daily_bin129.fits scfile=/scratch/kocevski/288227/ft2_4FGL_J0721.9+7120_daily_bin129.fits outfile=/scratch/kocevski/288227/cmap_HighResolution_272764801_273024001_4FGL_J0721.9+7120_daily_bin129.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.75
user 0.30
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1593       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9244       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.970       1.0000         .10000E-03   10000.    
     6 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3496       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.307       1.0000         .10000E-03   10000.    
    10 'norm      '    32.115       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0995       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9882       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10817E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0260       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83376       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1816       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=   9488.243     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2182 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.655       -.24284E-06** at limit **
   2  Prefactor     .10000E-03    22.178        .17538E-04** at limit **
   3  Prefactor     8.1433        23.544        .41153E-05   -.14014E-03
   4  Prefactor     1.8724        49.866        .30393E-04   -.11731E-03
   5  Prefactor     24.970        32.108       -.34897E-06   -.26924E-04
   6  norm          .10000E-03    8.0685        .53048E-07** at limit **
   7  norm          6.3495        1.1027       -.24485E-06   -.39476E-03
   8  Prefactor     .10000E-03    140.01       -.15425E-04** at limit **
   9  Prefactor     33.319        39.481        .99404E-05   -.45904E-04
  10  norm          32.114        23.725       -.25321E-07   -.69141E-05
  11  Prefactor     .10000E-03    12.533        .13752E-05** at limit **
  12  Prefactor     .10000E-03    16.541       -.13704E-05** at limit **
  13  norm          3.1627        3.1201        .13118E-06   -.56032E-03
  14  Prefactor     .10000E-03    2.3010       -.83784E-07** at limit **
  15  Prefactor     1.0997        1.8720       -.19193E-06   -.14867E-02
  16  norm          4.9910        2.7008       -.47677E-07    .12833E-03
  17  Prefactor     .10000E-03    16.433       -.32731E-05** at limit **
  18  Prefactor     .10000E-03    25.458       -.17146E-04** at limit **
  19  Prefactor     8.0239        20.544        .17973E-05   -.80861E-05
  20  Normalizat    .83355        .19563       -.34764E-05   -.78160E-04
  21  Prefactor     1.1818        .10724       -.15339E-07   -.28450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.14328
  Prefactor  = 1.87236
  Prefactor  = 24.9703
  norm       = 0.0001
  norm       = 6.34951
  Prefactor  = 0.0001
  Prefactor  = 33.3189
  norm       = 32.114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16275
  Prefactor  = 0.0001
  Prefactor  = 1.09966
  norm       = 4.99099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.02395
  Normalizat = 0.833549
  Prefactor  = 1.18175
 **********
 **   18 **HESSE 
 **********

 FCN=   9488.243     FROM HESSE     STATUS=OK           317 CALLS     2499 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1433        23.291        .14036E-03   -1.5137    
   4  Prefactor     1.8724        47.508        .29949E-03   -1.5434    
   5  Prefactor     24.970        32.111        .80164E-04   -1.4708    
   6  norm          .10000E-03    8.0774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3495        1.1038        .39444E-04   -1.5204    
   8  Prefactor     .10000E-03    140.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.319        39.809        .69433E-04   -1.4553    
  10  norm          32.114        23.725        .70707E-04   -1.4574    
  11  Prefactor     .10000E-03    12.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1627        3.0862        .15923E-03   -1.5352    
  14  Prefactor     .10000E-03    2.3463        .14426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0997        1.8306        .16060E-03   -1.5498    
  16  norm          4.9910        2.7008        .11050E-03   -1.5261    
  17  Prefactor     .10000E-03    16.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0239        20.544        .14153E-03   -1.5141    
  20  Normalizat    .83355        .21778        .36608E-03   -.98836    
  21  Prefactor     1.1818        .12043        .18493E-03   -.86895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02063e-09
Minuit parameter uncertainties:
  1  2.40527e-06
  2  3.53136e-06
  3  23.3168
  4  18.8791
  5  32.1328
  6  4.17113e-06
  7  1.10379
  8  0.000143375
  9  39.8405
  10  23.7323
  11  1.60343e-05
  12  1.56516e-05
  13  3.08634
  14  6.88005e-06
  15  1.83073
  16  2.70086
  17  1.15109e-05
  18  0.000102672
  19  20.5623
  20  0.21801
  21  0.120454
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  6.350e+00  1.104e+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.182e+00  1.205e-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.335e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 144.10
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.03e-07 +/- 5.26e-08
Energy Flux (Fixed Index): 1.80e-04 +/- 3.13e-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) = 9487.99909322
delta logL = 0.243926689927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9487.98587929
delta logL = 0.257140610951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4635       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8769       1.0000          .0000       5.0000    
     3 'Normalizat'    .85755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1740       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=   9487.986     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      201 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4635        1.2046        .39466E-02   -.40652E-03
   2  alpha         1.8769        .16104        .13048        .47712E-05
   3  Normalizat    .85755        .17954        .81704E-01    .99175E-04
   4  Prefactor     1.1740        .10492        .35276E-01   -.56027E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.46347
  alpha      = 1.87691
  Normalizat = 0.857555
  Prefactor  = 1.17403
 **********
 **   18 **HESSE 
 **********

 FCN=   9487.986     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4635        1.1026        .40504E-04   -1.5199    
   2  alpha         1.8769        .15064        .56386E-02   -.25189    
   3  Normalizat    .85755        .19960        .36172E-03   -.97968    
   4  Prefactor     1.1740        .11672        .18551E-03   -.87134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25036e-11
Minuit parameter uncertainties:
  1  1.10264
  2  0.150738
  3  0.199773
  4  0.116749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288227': 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) = 9487.98587929
delta logL = 0.257140612028

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  6.463e+00  1.103e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.877e+00  1.507e-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.174e+00  1.167e-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.576e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 144.68
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.88 +/- 0.15
Photon Flux (Free Index): 2.79e-07 +/- 5.79e-08
Energy Flux (Free Index): 2.07e-04 +/- 5.57e-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/288227/cmap_HighResolution_272764801_273024001_4FGL_J0721.9+7120_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.03e-07', energy_flux2='2.07e-04', photon_flux_error='5.26e-08', dlogl='2.57e-01', energy_flux='1.80e-04', photon_flux2='2.79e-07', job_status='DONE', time_completed='2021-08-27 04:06:06.781473', photon_index_error2='0.15', photon_index2='1.88', ts='144.10', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='5.57e-05', EG='0.83', time_epoch_completed='1630062366.78', return_code='0', job_id='288227', GAL2='1.17', EG2='0.86', return_code2='0', energy_flux_error='3.13e-05', photon_flux_error2='5.79e-08', ts2='144.68', photon_index='1.99' WHERE bin_id='129' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 288227: <4FGL_J0721.9+7120_daily_bin129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin129 110.488 71.3405 272764801 273024001 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 :                                   621.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             319.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            640 sec.

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

