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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1088
RA = 110.488, Dec = 71.3405
tmin = 521337601, tmax = 521596801
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='295588', job_status='RUN', time_executed='2021-08-27 04:20:48.196678', time_epoch_executed='1630063248.2' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/295588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/295588/ft1_4FGL_J0721.9+7120_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/295588/ft2_4FGL_J0721.9+7120_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/295588/ft1_4FGL_J0721.9+7120_daily_bin1088.fits outfile=/scratch/kocevski/295588/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1088.fits ra=110.488 dec=71.3405 rad=12.0 tmin=521337601.0 tmax=521596801.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.42
user 4.88
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/295588/ft1_filtered_4FGL_J0721.9+7120_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/295588/ft2_4FGL_J0721.9+7120_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/295588/ltcube_521337601_521596801_4FGL_J0721.9+7120_daily_bin1088.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/295588/ft2_4FGL_J0721.9+7120_daily_bin1088.fits
.....................!
real 12.34
user 11.67
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/295588/ft1_filtered_4FGL_J0721.9+7120_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/295588/ft2_4FGL_J0721.9+7120_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/295588/ltcube_521337601_521596801_4FGL_J0721.9+7120_daily_bin1088.fits outfile=/scratch/kocevski/295588/expmap_521337601_521596801_4FGL_J0721.9+7120_daily_bin1088.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/295588/ltcube_521337601_521596801_4FGL_J0721.9+7120_daily_bin1088.fits
.....................!
real 190.85
user 185.69
sys 4.76

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/295588/ft1_filtered_4FGL_J0721.9+7120_daily_bin1088.fits scfile=/scratch/kocevski/295588/ft2_4FGL_J0721.9+7120_daily_bin1088.fits outfile=/scratch/kocevski/295588/cmap_521337601_521596801_4FGL_J0721.9+7120_daily_bin1088.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 1.12
user 0.38
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/295588/ft1_filtered_4FGL_J0721.9+7120_daily_bin1088.fits scfile=/scratch/kocevski/295588/ft2_4FGL_J0721.9+7120_daily_bin1088.fits outfile=/scratch/kocevski/295588/cmap_HighResolution_521337601_521596801_4FGL_J0721.9+7120_daily_bin1088.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.88
user 0.39
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.868       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    97.378       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.9684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2899       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.7715       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.384       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9926       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.645       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0141       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91864       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=   9563.956     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2212 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.470        23.193        .18771E-02    .16486E-04
   2  Prefactor     12.141        19.061        .28741E-02   -.73280E-04
   3  Prefactor     .10000E-03    7.6385        .90712E-02** at limit **
   4  Prefactor     .10000E-03    31.937        .90712E-02** at limit **
   5  Prefactor     59.868        41.065        .12964E-02   -.21888E-03
   6  norm          .10000E-03    7.6503        .90712E-02** at limit **
   7  norm          2.9685        .75317        .58918E-02    .27434E-02
   8  Prefactor     97.377        92.607        .10184E-02    .97997E-03
   9  Prefactor     .10000E-03    115.34        .90712E-02** at limit **
  10  norm          5.9682        12.272        .41091E-02    .12483E-03
  11  Prefactor     18.055        20.715        .23566E-02    .45037E-03
  12  Prefactor     .10000E-03    18.193        .90712E-02** at limit **
  13  norm          1.2911        2.7870        .97495E-02    .18282E-02
  14  Prefactor     .10000E-03    1.5563        .90712E-02** at limit **
  15  Prefactor     .10000E-03    .80133        .90712E-02** at limit **
  16  norm          6.7721        2.5293        .38548E-02    .50290E-03
  17  Prefactor     42.387        37.275        .15394E-02   -.11049E-02
  18  Prefactor     8.9955        19.782        .33414E-02    .36879E-03
  19  Prefactor     12.646        11.050        .28162E-02   -.30589E-03
  20  Normalizat    1.0138        .15896        .67095E-01    .50438E-03
  21  Prefactor     .91877        .89771E-01    .45242E-01    .68629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4705
  Prefactor  = 12.1406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.8683
  norm       = 0.0001
  norm       = 2.96847
  Prefactor  = 97.3774
  Prefactor  = 0.000100002
  norm       = 5.9682
  Prefactor  = 18.0555
  Prefactor  = 0.0001
  norm       = 1.29105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.7721
  Prefactor  = 42.3874
  Prefactor  = 8.99554
  Prefactor  = 12.6458
  Normalizat = 1.01384
  Prefactor  = 0.918771
 **********
 **   18 **HESSE 
 **********

 FCN=   9563.956     FROM HESSE     STATUS=OK           309 CALLS     2521 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.470        23.201        .75084E-04   -1.4640    
   2  Prefactor     12.141        19.062        .11496E-03   -1.5011    
   3  Prefactor     .10000E-03    7.6580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.868        41.069        .51854E-04   -1.4159    
   6  norm          .10000E-03    7.6796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9685        .75347        .40666E-04   -1.5363    
   8  Prefactor     97.377        92.657        .20367E-03   -1.3731    
   9  Prefactor     .10000E-03    118.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9682        12.262        .16436E-03   -1.5219    
  11  Prefactor     18.055        20.640        .94265E-04   -1.4858    
  12  Prefactor     .10000E-03    18.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2911        2.7716        .22293E-03   -1.5481    
  14  Prefactor     .10000E-03    1.5845        .11913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .83303        .17021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.7721        2.5349        .80771E-04   -1.5187    
  17  Prefactor     42.387        37.306        .61576E-04   -1.4405    
  18  Prefactor     8.9955        19.783        .13366E-03   -1.5108    
  19  Prefactor     12.646        11.053        .11265E-03   -1.4997    
  20  Normalizat    1.0138        .18061        .29680E-03   -.92568    
  21  Prefactor     .91877        .10226        .18593E-03   -.95488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37207e-08
Minuit parameter uncertainties:
  1  23.2086
  2  19.0717
  3  6.18231e-05
  4  1.50866e-05
  5  41.0888
  6  2.04149e-05
  7  0.753468
  8  92.7951
  9  0.000965856
  10  12.2671
  11  20.6479
  12  3.93792e-05
  13  2.77185
  14  1.02597e-06
  15  2.76847e-07
  16  2.53494
  17  37.3267
  18  19.7972
  19  11.055
  20  0.180722
  21  0.102286
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.968e+00  7.535e-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.188e-01  1.023e-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.014e+00  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.49
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 3.59e-08
Energy Flux (Fixed Index): 8.41e-05 +/- 2.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) = 9558.13358821
delta logL = 5.82270437926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9558.11342762
delta logL = 5.84286497069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9186       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8255       1.0000          .0000       5.0000    
     3 'Normalizat'    .87344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96504       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=   9558.113     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      221 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9187        5.0461        .58630E-02    .22973E-03
   2  alpha         2.8255        1.7688        .12970        .96593E-04
   3  Normalizat    .87344        .10196        .71299E-01    .32516E-04
   4  Prefactor     .96504        .52397E-01    .45829E-01    .45578E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91867
  alpha      = 2.82549
  Normalizat = 0.873438
  Prefactor  = 0.965041
 **********
 **   18 **HESSE 
 **********

 FCN=   9558.113     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9187        .65256        .25971E-04   -1.5431    
   2  alpha         2.8255        .26265        .56262E-03    .13057    
   3  Normalizat    .87344        .17381        .31549E-03   -.97400    
   4  Prefactor     .96504        .10232        .18159E-03   -.93904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41087e-13
Minuit parameter uncertainties:
  1  0.652559
  2  0.263148
  3  0.173921
  4  0.10234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/295588': 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) = 9558.11342759
delta logL = 5.84286500422

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.919e+00  6.526e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.825e+00  2.631e-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.650e-01  1.023e-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.734e-01  1.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.62
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.83 +/- 0.26
Photon Flux (Free Index): 2.57e-07 +/- 5.82e-08
Energy Flux (Free Index): 5.82e-05 +/- 1.24e-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/295588/cmap_HighResolution_521337601_521596801_4FGL_J0721.9+7120_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='5.82e-05', photon_flux_error='3.59e-08', dlogl='5.84e+00', energy_flux='8.41e-05', photon_flux2='2.57e-07', job_status='DONE', time_completed='2021-08-27 04:35:01.916285', photon_index_error2='0.26', photon_index2='2.83', ts='43.49', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.01', time_epoch_completed='1630064101.92', return_code='0', job_id='295588', GAL2='0.97', EG2='0.87', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='5.82e-08', ts2='56.62', photon_index='1.99' WHERE bin_id='1088' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:35:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 295588: <4FGL_J0721.9+7120_daily_bin1088> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1088> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 04:20:26 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:20:28 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:28 2021
Terminated at Fri Aug 27 04:35:02 2021
Results reported at Fri Aug 27 04:35:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1088 110.488 71.3405 521337601 521596801 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 :                                   852.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

