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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin44
RA = 110.488, Dec = 71.3405
tmin = 250732801, tmax = 250992001
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='287030', job_status='RUN', time_executed='2021-08-27 03:53:38.748405', time_epoch_executed='1630061618.75' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='44'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287030/ft1_4FGL_J0721.9+7120_daily_bin44.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287030/ft2_4FGL_J0721.9+7120_daily_bin44.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287030/ft1_4FGL_J0721.9+7120_daily_bin44.fits outfile=/scratch/kocevski/287030/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin44.fits ra=110.488 dec=71.3405 rad=12.0 tmin=250732801.0 tmax=250992001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.38
user 1.25
sys 2.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287030/ft1_filtered_4FGL_J0721.9+7120_daily_bin44.fits" evtable="EVENTS" scfile=/scratch/kocevski/287030/ft2_4FGL_J0721.9+7120_daily_bin44.fits sctable="SC_DATA" outfile=/scratch/kocevski/287030/ltcube_250732801_250992001_4FGL_J0721.9+7120_daily_bin44.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/287030/ft2_4FGL_J0721.9+7120_daily_bin44.fits
.....................!
real 14.85
user 12.32
sys 2.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287030/ft1_filtered_4FGL_J0721.9+7120_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/287030/ft2_4FGL_J0721.9+7120_daily_bin44.fits sctable="SC_DATA" expcube=/scratch/kocevski/287030/ltcube_250732801_250992001_4FGL_J0721.9+7120_daily_bin44.fits outfile=/scratch/kocevski/287030/expmap_250732801_250992001_4FGL_J0721.9+7120_daily_bin44.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/287030/ltcube_250732801_250992001_4FGL_J0721.9+7120_daily_bin44.fits
.....................!
real 192.33
user 185.19
sys 6.72

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/287030/ft1_filtered_4FGL_J0721.9+7120_daily_bin44.fits scfile=/scratch/kocevski/287030/ft2_4FGL_J0721.9+7120_daily_bin44.fits outfile=/scratch/kocevski/287030/cmap_250732801_250992001_4FGL_J0721.9+7120_daily_bin44.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.51
user 0.37
sys 2.04

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14642E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.297       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15495E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0135       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9554       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .65337       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2851       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=   8331.184     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2182 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.414        .57450E-05** at limit **
   2  Prefactor     .10000E-03    52.525        .13090E-04** at limit **
   3  Prefactor     .10000E-03    44.676       -.27297E-04** at limit **
   4  Prefactor     21.297        27.391        .18683E-05    .50159E-03
   5  Prefactor     .10000E-03    27.519       -.12618E-05** at limit **
   6  norm          .10000E-03    10.943       -.75514E-06** at limit **
   7  norm          2.0414        .77408        .65785E-07    .36798E-02
   8  Prefactor     .10000E-03    106.47        .60984E-04** at limit **
   9  Prefactor     .10001E-03    139.91       -.80475E-04** at limit **
  10  norm          .10000E-03    13.768       -.92764E-05** at limit **
  11  Prefactor     .10000E-03    51.045        .88623E-05** at limit **
  12  Prefactor     .10000E-03    8.5753        .43443E-07** at limit **
  13  norm          1.0137        2.3961       -.79738E-06   -.14547E-02
  14  Prefactor     .10000E-03    1.1060       -.43111E-08** at limit **
  15  Prefactor     2.9554        2.0993       -.31333E-07   -.59517E-03
  16  norm          3.2600        2.4087       -.10235E-06   -.21169E-03
  17  Prefactor     60.628        45.101       -.13932E-05    .88979E-05
  18  Prefactor     .10000E-03    13.260        .91258E-05** at limit **
  19  Prefactor     .10000E-03    6.9579       -.65327E-08** at limit **
  20  Normalizat    .65336        .19262        .14344E-05    .42596E-03
  21  Prefactor     1.2851        .11257       -.27503E-06    .66298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2973
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.04139
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01374
  Prefactor  = 0.0001
  Prefactor  = 2.95541
  norm       = 3.25999
  Prefactor  = 60.6284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.653359
  Prefactor  = 1.28507
 **********
 **   18 **HESSE 
 **********

 FCN=   8331.184     FROM HESSE     STATUS=OK           303 CALLS     2485 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.297        27.372        .86792E-04   -1.4785    
   5  Prefactor     .10000E-03    27.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0414        .77189        .47067E-04   -1.5422    
   8  Prefactor     .10000E-03    106.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    141.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0137        2.3313        .20413E-03   -1.5507    
  14  Prefactor     .10000E-03    1.1074        .93740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9554        2.0754        .10300E-03   -1.5364    
  16  norm          3.2600        2.4059        .11332E-03   -1.5347    
  17  Prefactor     60.628        45.091        .51529E-04   -1.4149    
  18  Prefactor     .10000E-03    13.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .65336        .20655        .38376E-03   -1.0576    
  21  Prefactor     1.2851        .12194        .17661E-03   -.83752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58255e-09
Minuit parameter uncertainties:
  1  1.61384e-05
  2  6.14622e-05
  3  3.15368e-05
  4  27.3878
  5  8.87488e-06
  6  6.49262e-07
  7  0.771895
  8  4.05635e-05
  9  0.00225041
  10  6.46653e-06
  11  9.76286e-05
  12  2.00576e-06
  13  2.33155
  14  9.85894e-07
  15  2.0754
  16  2.40594
  17  45.1164
  18  5.66719e-06
  19  7.95027e-07
  20  0.206791
  21  0.121967
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.041e+00  7.719e-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:  1.285e+00  1.220e-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:  6.534e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.80
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 9.73e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 5.78e-05 +/- 2.19e-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) = 8330.20311178
delta logL = 0.980888280967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8330.19945697
delta logL = 0.984543092158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7891       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4613       1.0000          .0000       5.0000    
     3 'Normalizat'    .59804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3028       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=   8330.199     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7891        7.7027        .78184E-02   -.49044E-03
   2  alpha         2.4613        3.6873        .22046        .68517E-04
   3  Normalizat    .59802        .10371        .90173E-01   -.11599E-03
   4  Prefactor     1.3028        .53566E-01    .32561E-01   -.38985E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78909
  alpha      = 2.46128
  Normalizat = 0.598024
  Prefactor  = 1.30281
 **********
 **   18 **HESSE 
 **********

 FCN=   8330.199     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7891        .75042        .38984E-04   -1.5440    
   2  alpha         2.4613        .35718        .90162E-02   -.15488E-01
   3  Normalizat    .59802        .19788        .39951E-03   -1.0807    
   4  Prefactor     1.3028        .12182        .17546E-03   -.83224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04907e-10
Minuit parameter uncertainties:
  1  0.750421
  2  0.358411
  3  0.198119
  4  0.121842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287030': 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) = 8330.19945697
delta logL = 0.984543097635

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  1.789e+00  7.504e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.461e+00  3.584e-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.303e+00  1.218e-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:  5.980e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.96
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.46 +/- 0.36
Photon Flux (Free Index): 1.46e-07 +/- 5.77e-08
Energy Flux (Free Index): 4.42e-05 +/- 1.63e-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/287030/cmap_HighResolution_250732801_250992001_4FGL_J0721.9+7120_daily_bin44.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.73e-08', energy_flux2='4.42e-05', photon_flux_error='3.68e-08', dlogl='9.85e-01', energy_flux='5.78e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-08-27 04:06:24.535290', photon_index_error2='0.36', photon_index2='2.46', ts='18.80', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.65', time_epoch_completed='1630062384.54', return_code='0', job_id='287030', GAL2='1.30', EG2='0.60', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='5.77e-08', ts2='20.96', photon_index='1.99' WHERE bin_id='44' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:06:24 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin44 110.488 71.3405 250732801 250992001 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 :                                   790.53 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             298.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            939 sec.

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

