/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 5 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 = 7602
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1148
RA = 110.488, Dec = 71.3405
tmin = 536889601, tmax = 537148801
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='295681', job_status='RUN', time_executed='2021-08-27 04:21:22.641694', time_epoch_executed='1630063282.64' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/295681

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/295681/ft1_4FGL_J0721.9+7120_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/295681/ft2_4FGL_J0721.9+7120_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/295681/ft1_4FGL_J0721.9+7120_daily_bin1148.fits outfile=/scratch/kocevski/295681/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1148.fits ra=110.488 dec=71.3405 rad=12.0 tmin=536889601.0 tmax=537148801.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 5.64
user 3.46
sys 2.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/295681/ft1_filtered_4FGL_J0721.9+7120_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/295681/ft2_4FGL_J0721.9+7120_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/295681/ltcube_536889601_537148801_4FGL_J0721.9+7120_daily_bin1148.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/295681/ft2_4FGL_J0721.9+7120_daily_bin1148.fits
.....................!
real 14.09
user 11.60
sys 2.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/295681/ft1_filtered_4FGL_J0721.9+7120_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/295681/ft2_4FGL_J0721.9+7120_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/295681/ltcube_536889601_537148801_4FGL_J0721.9+7120_daily_bin1148.fits outfile=/scratch/kocevski/295681/expmap_536889601_537148801_4FGL_J0721.9+7120_daily_bin1148.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/295681/ltcube_536889601_537148801_4FGL_J0721.9+7120_daily_bin1148.fits
.....................!
real 192.13
user 185.31
sys 6.32

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/295681/ft1_filtered_4FGL_J0721.9+7120_daily_bin1148.fits scfile=/scratch/kocevski/295681/ft2_4FGL_J0721.9+7120_daily_bin1148.fits outfile=/scratch/kocevski/295681/cmap_536889601_537148801_4FGL_J0721.9+7120_daily_bin1148.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.42
user 0.37
sys 2.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/295681/ft1_filtered_4FGL_J0721.9+7120_daily_bin1148.fits scfile=/scratch/kocevski/295681/ft2_4FGL_J0721.9+7120_daily_bin1148.fits outfile=/scratch/kocevski/295681/cmap_HighResolution_536889601_537148801_4FGL_J0721.9+7120_daily_bin1148.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.43
user 0.39
sys 2.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13867       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.639       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68089       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.0872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12066E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4634       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9708       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13584E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0389       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.705       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86974       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0419       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=   10252.66     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2279 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10317E-03    50.683       -.28455E-04** at limit **
   2  Prefactor     43.747        32.485       -.10262E-06    .46709E-05
   3  Prefactor     2.9163        95.586        .64952E-06    .31215E-04
   4  Prefactor     47.747        37.146       -.42643E-05   -.19153E-03
   5  Prefactor     .73935        25.460        .87628E-06    .16286E-05
   6  norm          .10000E-03    10.938        .26964E-06** at limit **
   7  norm          8.0870        1.1187        .64627E-08    .91276E-03
   8  Prefactor     .10000E-03    41.994        .16043E-06** at limit **
   9  Prefactor     .10001E-03    49.978        .13420E-05** at limit **
  10  norm          17.138        16.260        .33620E-06    .77811E-04
  11  Prefactor     15.437        22.985       -.32438E-07   -.10011E-04
  12  Prefactor     .10000E-03    17.357        .78338E-06** at limit **
  13  norm          .10000E-03    .94920        .15201E-06** at limit **
  14  Prefactor     13.792        5.7933       -.77064E-06    .63905E-03
  15  Prefactor     1.4628        1.3809       -.27164E-06   -.58293E-05
  16  norm          5.9698        2.6105       -.80466E-07    .39779E-03
  17  Prefactor     .10007E-03    247.09        .76599E-04** at limit **
  18  Prefactor     8.0364        17.057        .44240E-06    .95150E-04
  19  Prefactor     12.703        14.725       -.17377E-06    .17570E-04
  20  Normalizat    .86987        .17143        .37236E-06   -.10148E-04
  21  Prefactor     1.0419        .97116E-01    .84211E-07    .14245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103173
  Prefactor  = 43.7474
  Prefactor  = 2.91632
  Prefactor  = 47.747
  Prefactor  = 0.739347
  norm       = 0.0001
  norm       = 8.08703
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 17.1384
  Prefactor  = 15.4369
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7924
  Prefactor  = 1.46281
  norm       = 5.96982
  Prefactor  = 0.000100072
  Prefactor  = 8.03637
  Prefactor  = 12.7027
  Normalizat = 0.869866
  Prefactor  = 1.04187
 **********
 **   18 **HESSE 
 **********

 FCN=   10252.66     FROM HESSE     STATUS=OK           343 CALLS     2622 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10317E-03    18.009        .12207       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.747        32.493        .60614E-04   -1.4384    
   3  Prefactor     2.9163        89.122        .23546E-03   -1.5366    
   4  Prefactor     47.747        36.329        .58095E-04   -1.4325    
   5  Prefactor     .73935        28.113        .15109       -1.5536    
   6  norm          .10000E-03    11.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.0870        1.1195        .37747E-04   -1.5139    
   8  Prefactor     .10000E-03    42.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    50.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.138        16.267        .96729E-04   -1.4880    
  11  Prefactor     15.437        22.938        .10195E-03   -1.4922    
  12  Prefactor     .10000E-03    17.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .97556        .19258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.792        5.8048        .53919E-03   -1.4965    
  15  Prefactor     1.4628        1.3637        .10742E-03   -1.5466    
  16  norm          5.9698        2.6122        .96550E-04   -1.5219    
  17  Prefactor     .10007E-03    16.613        .14472       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0364        17.036        .14141E-03   -1.5141    
  19  Prefactor     12.703        14.723        .11238E-03   -1.4995    
  20  Normalizat    .86987        .19153        .34485E-03   -.97527    
  21  Prefactor     1.0419        .10923        .18989E-03   -.91347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29406e-09
Minuit parameter uncertainties:
  1  0.0151233
  2  32.5065
  3  32.2955
  4  36.3455
  5  9.12224
  6  3.2627e-05
  7  1.11949
  8  2.51243e-05
  9  0.00149684
  10  16.2717
  11  22.9512
  12  0.00014145
  13  7.78659e-07
  14  5.805
  15  1.36377
  16  2.61225
  17  0.00219049
  18  17.0458
  19  14.7276
  20  0.191676
  21  0.109249
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  8.087e+00  1.119e+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.042e+00  1.092e-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.699e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 229.51
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.86e-07 +/- 5.34e-08
Energy Flux (Fixed Index): 2.29e-04 +/- 3.17e-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) = 10252.4202068
delta logL = 0.235857162706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10252.4164433
delta logL = 0.239620664019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2249       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8998       1.0000          .0000       5.0000    
     3 'Normalizat'    .89315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0346       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=   10252.42     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2249        1.2506        .34948E-02   -.90511E-04
   2  alpha         1.8998        .13276        .11012        .17936E-04
   3  Normalizat    .89316        .16293        .77085E-01    .53128E-05
   4  Prefactor     1.0346        .95914E-01    .40910E-01   -.51801E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.22486
  alpha      = 1.8998
  Normalizat = 0.893161
  Prefactor  = 1.03461
 **********
 **   18 **HESSE 
 **********

 FCN=   10252.42     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2249        1.1494        .38686E-04   -1.5134    
   2  alpha         1.8998        .12387        .47935E-03   -.24245    
   3  Normalizat    .89316        .18302        .34118E-03   -.96701    
   4  Prefactor     1.0346        .10773        .19055E-03   -.91585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10159e-12
Minuit parameter uncertainties:
  1  1.14942
  2  0.123927
  3  0.183152
  4  0.107752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/295681': 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) = 10252.4164433
delta logL = 0.239620671406

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  8.225e+00  1.149e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.900e+00  1.239e-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.035e+00  1.078e-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.932e-01  1.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 229.48
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.90 +/- 0.12
Photon Flux (Free Index): 3.62e-07 +/- 6.09e-08
Energy Flux (Free Index): 2.56e-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/295681/cmap_HighResolution_536889601_537148801_4FGL_J0721.9+7120_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.86e-07', energy_flux2='2.56e-04', photon_flux_error='5.34e-08', dlogl='2.40e-01', energy_flux='2.29e-04', photon_flux2='3.62e-07', job_status='DONE', time_completed='2021-08-27 04:36:44.171365', photon_index_error2='0.12', photon_index2='1.90', ts='229.51', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='5.57e-05', EG='0.87', time_epoch_completed='1630064204.17', return_code='0', job_id='295681', GAL2='1.03', EG2='0.89', return_code2='0', energy_flux_error='3.17e-05', photon_flux_error2='6.09e-08', ts2='229.48', photon_index='1.99' WHERE bin_id='1148' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:36:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 295681: <4FGL_J0721.9+7120_daily_bin1148> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1148> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 04:20:35 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:20:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 04:20:36 2021
Terminated at Fri Aug 27 04:36:44 2021
Results reported at Fri Aug 27 04:36:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1148 110.488 71.3405 536889601 537148801 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 :                                   944.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

